Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bbeb0f3

Browse files
committedJan 24, 2023
feat(pubsub): update the api
#### pubsub:v1 The following keys were added: - resources.projects.resources.schemas.methods.commit (Total Keys: 12) - resources.projects.resources.schemas.methods.rollback (Total Keys: 12) - schemas.CommitSchemaRequest (Total Keys: 3) - schemas.RollbackSchemaRequest (Total Keys: 2)
1 parent af8e656 commit bbeb0f3

File tree

4 files changed

+338
-3
lines changed

4 files changed

+338
-3
lines changed
 

‎docs/dyn/pubsub_v1.projects.schemas.html

+154
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,18 @@ <h2>Instance Methods</h2>
7777
<p class="toc_element">
7878
<code><a href="#close">close()</a></code></p>
7979
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#commit">commit(name, body=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Commits a new schema revision to an existing schema.</p>
8083
<p class="toc_element">
8184
<code><a href="#create">create(parent, body=None, schemaId=None, x__xgafv=None)</a></code></p>
8285
<p class="firstline">Creates a schema.</p>
8386
<p class="toc_element">
8487
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
8588
<p class="firstline">Deletes a schema.</p>
89+
<p class="toc_element">
90+
<code><a href="#deleteRevision">deleteRevision(name, revisionId=None, x__xgafv=None)</a></code></p>
91+
<p class="firstline">Deletes a specific schema revision.</p>
8692
<p class="toc_element">
8793
<code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
8894
<p class="firstline">Gets a schema.</p>
@@ -92,9 +98,18 @@ <h2>Instance Methods</h2>
9298
<p class="toc_element">
9399
<code><a href="#list">list(parent, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
94100
<p class="firstline">Lists schemas in a project.</p>
101+
<p class="toc_element">
102+
<code><a href="#listRevisions">listRevisions(name, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
103+
<p class="firstline">Lists all schema revisions for the named schema.</p>
104+
<p class="toc_element">
105+
<code><a href="#listRevisions_next">listRevisions_next()</a></code></p>
106+
<p class="firstline">Retrieves the next page of results.</p>
95107
<p class="toc_element">
96108
<code><a href="#list_next">list_next()</a></code></p>
97109
<p class="firstline">Retrieves the next page of results.</p>
110+
<p class="toc_element">
111+
<code><a href="#rollback">rollback(name, body=None, x__xgafv=None)</a></code></p>
112+
<p class="firstline">Creates a new schema revision that is a copy of the provided revision_id.</p>
98113
<p class="toc_element">
99114
<code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
100115
<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
@@ -113,6 +128,42 @@ <h3>Method Details</h3>
113128
<pre>Close httplib2 connections.</pre>
114129
</div>
115130

131+
<div class="method">
132+
<code class="details" id="commit">commit(name, body=None, x__xgafv=None)</code>
133+
<pre>Commits a new schema revision to an existing schema.
134+
135+
Args:
136+
name: string, Required. The name of the schema we are revising. Format is `projects/{project}/schemas/{schema}`. (required)
137+
body: object, The request body.
138+
The object takes the form of:
139+
140+
{ # Request for CommitSchema method.
141+
&quot;schema&quot;: { # A schema resource. # Required. The schema revision to commit.
142+
&quot;definition&quot;: &quot;A String&quot;, # The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
143+
&quot;name&quot;: &quot;A String&quot;, # Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
144+
&quot;revisionCreateTime&quot;: &quot;A String&quot;, # Output only. The timestamp that the revision was created.
145+
&quot;revisionId&quot;: &quot;A String&quot;, # Output only. Immutable. The revision ID of the schema.
146+
&quot;type&quot;: &quot;A String&quot;, # The type of the schema definition.
147+
},
148+
}
149+
150+
x__xgafv: string, V1 error format.
151+
Allowed values
152+
1 - v1 error format
153+
2 - v2 error format
154+
155+
Returns:
156+
An object of the form:
157+
158+
{ # A schema resource.
159+
&quot;definition&quot;: &quot;A String&quot;, # The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
160+
&quot;name&quot;: &quot;A String&quot;, # Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
161+
&quot;revisionCreateTime&quot;: &quot;A String&quot;, # Output only. The timestamp that the revision was created.
162+
&quot;revisionId&quot;: &quot;A String&quot;, # Output only. Immutable. The revision ID of the schema.
163+
&quot;type&quot;: &quot;A String&quot;, # The type of the schema definition.
164+
}</pre>
165+
</div>
166+
116167
<div class="method">
117168
<code class="details" id="create">create(parent, body=None, schemaId=None, x__xgafv=None)</code>
118169
<pre>Creates a schema.
@@ -166,6 +217,30 @@ <h3>Method Details</h3>
166217
}</pre>
167218
</div>
168219

220+
<div class="method">
221+
<code class="details" id="deleteRevision">deleteRevision(name, revisionId=None, x__xgafv=None)</code>
222+
<pre>Deletes a specific schema revision.
223+
224+
Args:
225+
name: string, Required. The name of the schema revision to be deleted, with a revision ID explicitly included. Example: projects/123/schemas/my-schema@c7cfa2a8 (required)
226+
revisionId: string, Required. The revision ID to roll back to. It must be a revision of the same schema. Example: c7cfa2a8
227+
x__xgafv: string, V1 error format.
228+
Allowed values
229+
1 - v1 error format
230+
2 - v2 error format
231+
232+
Returns:
233+
An object of the form:
234+
235+
{ # A schema resource.
236+
&quot;definition&quot;: &quot;A String&quot;, # The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
237+
&quot;name&quot;: &quot;A String&quot;, # Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
238+
&quot;revisionCreateTime&quot;: &quot;A String&quot;, # Output only. The timestamp that the revision was created.
239+
&quot;revisionId&quot;: &quot;A String&quot;, # Output only. Immutable. The revision ID of the schema.
240+
&quot;type&quot;: &quot;A String&quot;, # The type of the schema definition.
241+
}</pre>
242+
</div>
243+
169244
<div class="method">
170245
<code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
171246
<pre>Gets a schema.
@@ -264,6 +339,55 @@ <h3>Method Details</h3>
264339
}</pre>
265340
</div>
266341

342+
<div class="method">
343+
<code class="details" id="listRevisions">listRevisions(name, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
344+
<pre>Lists all schema revisions for the named schema.
345+
346+
Args:
347+
name: string, Required. The name of the schema to list revisions for. (required)
348+
pageSize: integer, The maximum number of revisions to return per page.
349+
pageToken: string, The page token, received from a previous ListSchemaRevisions call. Provide this to retrieve the subsequent page.
350+
view: string, The set of Schema fields to return in the response. If not set, returns Schemas with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all fields.
351+
Allowed values
352+
SCHEMA_VIEW_UNSPECIFIED - The default / unset value. The API will default to the BASIC view.
353+
BASIC - Include the name and type of the schema, but not the definition.
354+
FULL - Include all Schema object fields.
355+
x__xgafv: string, V1 error format.
356+
Allowed values
357+
1 - v1 error format
358+
2 - v2 error format
359+
360+
Returns:
361+
An object of the form:
362+
363+
{ # Response for the `ListSchemaRevisions` method.
364+
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.
365+
&quot;schemas&quot;: [ # The revisions of the schema.
366+
{ # A schema resource.
367+
&quot;definition&quot;: &quot;A String&quot;, # The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
368+
&quot;name&quot;: &quot;A String&quot;, # Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
369+
&quot;revisionCreateTime&quot;: &quot;A String&quot;, # Output only. The timestamp that the revision was created.
370+
&quot;revisionId&quot;: &quot;A String&quot;, # Output only. Immutable. The revision ID of the schema.
371+
&quot;type&quot;: &quot;A String&quot;, # The type of the schema definition.
372+
},
373+
],
374+
}</pre>
375+
</div>
376+
377+
<div class="method">
378+
<code class="details" id="listRevisions_next">listRevisions_next()</code>
379+
<pre>Retrieves the next page of results.
380+
381+
Args:
382+
previous_request: The request for the previous page. (required)
383+
previous_response: The response from the request for the previous page. (required)
384+
385+
Returns:
386+
A request object that you can call &#x27;execute()&#x27; on to request the next
387+
page. Returns None if there are no more items in the collection.
388+
</pre>
389+
</div>
390+
267391
<div class="method">
268392
<code class="details" id="list_next">list_next()</code>
269393
<pre>Retrieves the next page of results.
@@ -278,6 +402,36 @@ <h3>Method Details</h3>
278402
</pre>
279403
</div>
280404

405+
<div class="method">
406+
<code class="details" id="rollback">rollback(name, body=None, x__xgafv=None)</code>
407+
<pre>Creates a new schema revision that is a copy of the provided revision_id.
408+
409+
Args:
410+
name: string, Required. The schema being rolled back with revision id. (required)
411+
body: object, The request body.
412+
The object takes the form of:
413+
414+
{ # Request for the `RollbackSchema` method.
415+
&quot;revisionId&quot;: &quot;A String&quot;, # Required. The revision ID to roll back to. It must be a revision of the same schema. Example: c7cfa2a8
416+
}
417+
418+
x__xgafv: string, V1 error format.
419+
Allowed values
420+
1 - v1 error format
421+
2 - v2 error format
422+
423+
Returns:
424+
An object of the form:
425+
426+
{ # A schema resource.
427+
&quot;definition&quot;: &quot;A String&quot;, # The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
428+
&quot;name&quot;: &quot;A String&quot;, # Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
429+
&quot;revisionCreateTime&quot;: &quot;A String&quot;, # Output only. The timestamp that the revision was created.
430+
&quot;revisionId&quot;: &quot;A String&quot;, # Output only. Immutable. The revision ID of the schema.
431+
&quot;type&quot;: &quot;A String&quot;, # The type of the schema definition.
432+
}</pre>
433+
</div>
434+
281435
<div class="method">
282436
<code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
283437
<pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.

0 commit comments

Comments
 (0)
Please sign in to comment.