You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="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>
<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
+
"schema": { # A schema resource. # Required. The schema revision to commit.
142
+
"definition": "A String", # 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
+
"name": "A String", # Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
144
+
"revisionCreateTime": "A String", # Output only. The timestamp that the revision was created.
145
+
"revisionId": "A String", # Output only. Immutable. The revision ID of the schema.
146
+
"type": "A String", # 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
+
"definition": "A String", # 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
+
"name": "A String", # Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
161
+
"revisionCreateTime": "A String", # Output only. The timestamp that the revision was created.
162
+
"revisionId": "A String", # Output only. Immutable. The revision ID of the schema.
163
+
"type": "A String", # The type of the schema definition.
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
+
"definition": "A String", # 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
+
"name": "A String", # Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
238
+
"revisionCreateTime": "A String", # Output only. The timestamp that the revision was created.
239
+
"revisionId": "A String", # Output only. Immutable. The revision ID of the schema.
240
+
"type": "A String", # The type of the schema definition.
<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
+
"nextPageToken": "A String", # 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
+
"schemas": [ # The revisions of the schema.
366
+
{ # A schema resource.
367
+
"definition": "A String", # 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
+
"name": "A String", # Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
369
+
"revisionCreateTime": "A String", # Output only. The timestamp that the revision was created.
370
+
"revisionId": "A String", # Output only. Immutable. The revision ID of the schema.
371
+
"type": "A String", # The type of the schema definition.
<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
+
"revisionId": "A String", # 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
+
"definition": "A String", # 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
+
"name": "A String", # Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
429
+
"revisionCreateTime": "A String", # Output only. The timestamp that the revision was created.
430
+
"revisionId": "A String", # Output only. Immutable. The revision ID of the schema.
431
+
"type": "A String", # The type of the schema definition.
<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