blob: cd6e381b3ca0ce87a9ba6de932f39ca3303d5398 [file]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="firestore_v1.html">Cloud Firestore API</a> . <a href="firestore_v1.projects.html">projects</a> . <a href="firestore_v1.projects.databases.html">databases</a> . <a href="firestore_v1.projects.databases.changeStreams.html">changeStreams</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#create">create(parent, body=None, changeStreamId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a new change stream for the database.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, etag=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a change stream.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets information about a change stream.</p>
<p class="toc_element">
<code><a href="#list">list(parent, x__xgafv=None)</a></code></p>
<p class="firstline">Lists all change streams in a database.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="create">create(parent, body=None, changeStreamId=None, x__xgafv=None)</code>
<pre>Creates a new change stream for the database.
Args:
parent: string, Required. The parent database to create the change stream for. Format is `projects/{project}/databases/{database}`. (required)
body: object, The request body.
The object takes the form of:
{ # A Change Stream is a resource that allows users to receive change notifications from a Firestore database.
&quot;collectionGroupScope&quot;: { # The change stream is scoped to a collection group. Only events associated with the given collection group are visible to the Change Stream. Only a single change stream can be enabled per collection group. # If set, the change stream is scoped to a collection group.
&quot;collectionGroupId&quot;: &quot;A String&quot;, # Required. The collection group name.
},
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream was created.
&quot;databaseScope&quot;: { # The change stream is scoped to the entire database. All events in the database are visible to the Change Stream. One Database scope Change Stream is allowed per database. # If set, the change stream is scoped to the entire database.
},
&quot;etag&quot;: &quot;A String&quot;, # Optional. An etag used to determine which version of the configuration is being edited.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The external resource name of the change stream. Format `projects/{project}/databases/{database}/changeStreams/{change_stream}`
&quot;retentionPeriod&quot;: &quot;A String&quot;, # Required. The retention period of the change stream. This is the amount of time a change event is available on the change stream. Must be from 1 to 7 days, inclusive. The retention_period must be in day granularity, i.e. it must be a multiple of 24 hours.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream started recording events.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream was last updated.
}
changeStreamId: string, Required. The ID to use for the change stream, which will become the final component of the change stream&#x27;s resource name. This value should be 4-63 characters. Valid characters are lowercase letters, numbers, and hyphens. The first character must be a letter, and the last character must be a letter or a number.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A Change Stream is a resource that allows users to receive change notifications from a Firestore database.
&quot;collectionGroupScope&quot;: { # The change stream is scoped to a collection group. Only events associated with the given collection group are visible to the Change Stream. Only a single change stream can be enabled per collection group. # If set, the change stream is scoped to a collection group.
&quot;collectionGroupId&quot;: &quot;A String&quot;, # Required. The collection group name.
},
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream was created.
&quot;databaseScope&quot;: { # The change stream is scoped to the entire database. All events in the database are visible to the Change Stream. One Database scope Change Stream is allowed per database. # If set, the change stream is scoped to the entire database.
},
&quot;etag&quot;: &quot;A String&quot;, # Optional. An etag used to determine which version of the configuration is being edited.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The external resource name of the change stream. Format `projects/{project}/databases/{database}/changeStreams/{change_stream}`
&quot;retentionPeriod&quot;: &quot;A String&quot;, # Required. The retention period of the change stream. This is the amount of time a change event is available on the change stream. Must be from 1 to 7 days, inclusive. The retention_period must be in day granularity, i.e. it must be a multiple of 24 hours.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream started recording events.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream was last updated.
}</pre>
</div>
<div class="method">
<code class="details" id="delete">delete(name, etag=None, x__xgafv=None)</code>
<pre>Deletes a change stream.
Args:
name: string, Required. The name of the change stream to delete. Format is `projects/{project}/databases/{database}/changeStreams/{change_stream}`. (required)
etag: string, Optional. The etag of the change stream to delete. If this is not the current etag of the change stream, the deletion will fail.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Gets information about a change stream.
Args:
name: string, Required. The name of the change stream to retrieve. Format is `projects/{project}/databases/{database}/changeStreams/{change_stream}`. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A Change Stream is a resource that allows users to receive change notifications from a Firestore database.
&quot;collectionGroupScope&quot;: { # The change stream is scoped to a collection group. Only events associated with the given collection group are visible to the Change Stream. Only a single change stream can be enabled per collection group. # If set, the change stream is scoped to a collection group.
&quot;collectionGroupId&quot;: &quot;A String&quot;, # Required. The collection group name.
},
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream was created.
&quot;databaseScope&quot;: { # The change stream is scoped to the entire database. All events in the database are visible to the Change Stream. One Database scope Change Stream is allowed per database. # If set, the change stream is scoped to the entire database.
},
&quot;etag&quot;: &quot;A String&quot;, # Optional. An etag used to determine which version of the configuration is being edited.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The external resource name of the change stream. Format `projects/{project}/databases/{database}/changeStreams/{change_stream}`
&quot;retentionPeriod&quot;: &quot;A String&quot;, # Required. The retention period of the change stream. This is the amount of time a change event is available on the change stream. Must be from 1 to 7 days, inclusive. The retention_period must be in day granularity, i.e. it must be a multiple of 24 hours.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream started recording events.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream was last updated.
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(parent, x__xgafv=None)</code>
<pre>Lists all change streams in a database.
Args:
parent: string, Required. The parent database to list change streams from. Format is `projects/{project}/databases/{database}`. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response to FirestoreAdmin.ListChangeStreams.
&quot;changeStreams&quot;: [ # The list of change streams.
{ # A Change Stream is a resource that allows users to receive change notifications from a Firestore database.
&quot;collectionGroupScope&quot;: { # The change stream is scoped to a collection group. Only events associated with the given collection group are visible to the Change Stream. Only a single change stream can be enabled per collection group. # If set, the change stream is scoped to a collection group.
&quot;collectionGroupId&quot;: &quot;A String&quot;, # Required. The collection group name.
},
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream was created.
&quot;databaseScope&quot;: { # The change stream is scoped to the entire database. All events in the database are visible to the Change Stream. One Database scope Change Stream is allowed per database. # If set, the change stream is scoped to the entire database.
},
&quot;etag&quot;: &quot;A String&quot;, # Optional. An etag used to determine which version of the configuration is being edited.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The external resource name of the change stream. Format `projects/{project}/databases/{database}/changeStreams/{change_stream}`
&quot;retentionPeriod&quot;: &quot;A String&quot;, # Required. The retention period of the change stream. This is the amount of time a change event is available on the change stream. Must be from 1 to 7 days, inclusive. The retention_period must be in day granularity, i.e. it must be a multiple of 24 hours.
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream started recording events.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the Change Stream was last updated.
},
],
}</pre>
</div>
</body></html>