Skip to content

Commit

Permalink
feat(pubsub): update the API
Browse files Browse the repository at this point in the history
#### pubsub:v1

The following keys were added:
- resources.projects.resources.schemas.methods.commit.description
- resources.projects.resources.schemas.methods.commit.flatPath
- resources.projects.resources.schemas.methods.commit.httpMethod
- resources.projects.resources.schemas.methods.commit.id
- resources.projects.resources.schemas.methods.commit.parameterOrder
- resources.projects.resources.schemas.methods.commit.parameters.name.description
- resources.projects.resources.schemas.methods.commit.parameters.name.location
- resources.projects.resources.schemas.methods.commit.parameters.name.pattern
- resources.projects.resources.schemas.methods.commit.parameters.name.required
- resources.projects.resources.schemas.methods.commit.parameters.name.type
- resources.projects.resources.schemas.methods.commit.path
- resources.projects.resources.schemas.methods.commit.request.$ref
- resources.projects.resources.schemas.methods.commit.response.$ref
- resources.projects.resources.schemas.methods.commit.scopes
- resources.projects.resources.schemas.methods.deleteRevision.description
- resources.projects.resources.schemas.methods.deleteRevision.flatPath
- resources.projects.resources.schemas.methods.deleteRevision.httpMethod
- resources.projects.resources.schemas.methods.deleteRevision.id
- resources.projects.resources.schemas.methods.deleteRevision.parameterOrder
- resources.projects.resources.schemas.methods.deleteRevision.parameters.name.description
- resources.projects.resources.schemas.methods.deleteRevision.parameters.name.location
- resources.projects.resources.schemas.methods.deleteRevision.parameters.name.pattern
- resources.projects.resources.schemas.methods.deleteRevision.parameters.name.required
- resources.projects.resources.schemas.methods.deleteRevision.parameters.name.type
- resources.projects.resources.schemas.methods.deleteRevision.parameters.revisionId.description
- resources.projects.resources.schemas.methods.deleteRevision.parameters.revisionId.location
- resources.projects.resources.schemas.methods.deleteRevision.parameters.revisionId.type
- resources.projects.resources.schemas.methods.deleteRevision.path
- resources.projects.resources.schemas.methods.deleteRevision.response.$ref
- resources.projects.resources.schemas.methods.deleteRevision.scopes
- resources.projects.resources.schemas.methods.listRevisions.description
- resources.projects.resources.schemas.methods.listRevisions.flatPath
- resources.projects.resources.schemas.methods.listRevisions.httpMethod
- resources.projects.resources.schemas.methods.listRevisions.id
- resources.projects.resources.schemas.methods.listRevisions.parameterOrder
- resources.projects.resources.schemas.methods.listRevisions.parameters.name.description
- resources.projects.resources.schemas.methods.listRevisions.parameters.name.location
- resources.projects.resources.schemas.methods.listRevisions.parameters.name.pattern
- resources.projects.resources.schemas.methods.listRevisions.parameters.name.required
- resources.projects.resources.schemas.methods.listRevisions.parameters.name.type
- resources.projects.resources.schemas.methods.listRevisions.parameters.pageSize.description
- resources.projects.resources.schemas.methods.listRevisions.parameters.pageSize.format
- resources.projects.resources.schemas.methods.listRevisions.parameters.pageSize.location
- resources.projects.resources.schemas.methods.listRevisions.parameters.pageSize.type
- resources.projects.resources.schemas.methods.listRevisions.parameters.pageToken.description
- resources.projects.resources.schemas.methods.listRevisions.parameters.pageToken.location
- resources.projects.resources.schemas.methods.listRevisions.parameters.pageToken.type
- resources.projects.resources.schemas.methods.listRevisions.parameters.view.description
- resources.projects.resources.schemas.methods.listRevisions.parameters.view.enum
- resources.projects.resources.schemas.methods.listRevisions.parameters.view.enumDescriptions
- resources.projects.resources.schemas.methods.listRevisions.parameters.view.location
- resources.projects.resources.schemas.methods.listRevisions.parameters.view.type
- resources.projects.resources.schemas.methods.listRevisions.path
- resources.projects.resources.schemas.methods.listRevisions.response.$ref
- resources.projects.resources.schemas.methods.listRevisions.scopes
- resources.projects.resources.schemas.methods.rollback.description
- resources.projects.resources.schemas.methods.rollback.flatPath
- resources.projects.resources.schemas.methods.rollback.httpMethod
- resources.projects.resources.schemas.methods.rollback.id
- resources.projects.resources.schemas.methods.rollback.parameterOrder
- resources.projects.resources.schemas.methods.rollback.parameters.name.description
- resources.projects.resources.schemas.methods.rollback.parameters.name.location
- resources.projects.resources.schemas.methods.rollback.parameters.name.pattern
- resources.projects.resources.schemas.methods.rollback.parameters.name.required
- resources.projects.resources.schemas.methods.rollback.parameters.name.type
- resources.projects.resources.schemas.methods.rollback.path
- resources.projects.resources.schemas.methods.rollback.request.$ref
- resources.projects.resources.schemas.methods.rollback.response.$ref
- resources.projects.resources.schemas.methods.rollback.scopes
- schemas.CommitSchemaRequest.description
- schemas.CommitSchemaRequest.id
- schemas.CommitSchemaRequest.properties.schema.$ref
- schemas.CommitSchemaRequest.properties.schema.description
- schemas.CommitSchemaRequest.type
- schemas.ListSchemaRevisionsResponse.description
- schemas.ListSchemaRevisionsResponse.id
- schemas.ListSchemaRevisionsResponse.properties.nextPageToken.description
- schemas.ListSchemaRevisionsResponse.properties.nextPageToken.type
- schemas.ListSchemaRevisionsResponse.properties.schemas.description
- schemas.ListSchemaRevisionsResponse.properties.schemas.items.$ref
- schemas.ListSchemaRevisionsResponse.properties.schemas.type
- schemas.ListSchemaRevisionsResponse.type
- schemas.RollbackSchemaRequest.description
- schemas.RollbackSchemaRequest.id
- schemas.RollbackSchemaRequest.properties.revisionId.description
- schemas.RollbackSchemaRequest.properties.revisionId.type
- schemas.RollbackSchemaRequest.type

The following keys were changed:
- schemas.BigQueryConfig.properties.state.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent d3c834b commit f102db0
Show file tree
Hide file tree
Showing 2 changed files with 906 additions and 71 deletions.
185 changes: 183 additions & 2 deletions discovery/pubsub-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,35 @@
"resources": {
"schemas": {
"methods": {
"commit": {
"description": "Commits a new schema revision to an existing schema.",
"flatPath": "v1/projects/{projectsId}/schemas/{schemasId}:commit",
"httpMethod": "POST",
"id": "pubsub.projects.schemas.commit",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the schema we are revising. Format is `projects/{project}/schemas/{schema}`.",
"location": "path",
"pattern": "^projects/[^/]+/schemas/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:commit",
"request": {
"$ref": "CommitSchemaRequest"
},
"response": {
"$ref": "Schema"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
]
},
"create": {
"description": "Creates a schema.",
"flatPath": "v1/projects/{projectsId}/schemas",
Expand Down Expand Up @@ -171,6 +200,37 @@
"https://www.googleapis.com/auth/pubsub"
]
},
"deleteRevision": {
"description": "Deletes a specific schema revision.",
"flatPath": "v1/projects/{projectsId}/schemas/{schemasId}:deleteRevision",
"httpMethod": "DELETE",
"id": "pubsub.projects.schemas.deleteRevision",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the schema revision to be deleted, with a revision ID explicitly included. Example: projects/123/schemas/my-schema@c7cfa2a8",
"location": "path",
"pattern": "^projects/[^/]+/schemas/[^/]+$",
"required": true,
"type": "string"
},
"revisionId": {
"description": "Required. The revision ID to roll back to. It must be a revision of the same schema. Example: c7cfa2a8",
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}:deleteRevision",
"response": {
"$ref": "Schema"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
]
},
"get": {
"description": "Gets a schema.",
"flatPath": "v1/projects/{projectsId}/schemas/{schemasId}",
Expand Down Expand Up @@ -296,6 +356,87 @@
"https://www.googleapis.com/auth/pubsub"
]
},
"listRevisions": {
"description": "Lists all schema revisions for the named schema.",
"flatPath": "v1/projects/{projectsId}/schemas/{schemasId}:listRevisions",
"httpMethod": "GET",
"id": "pubsub.projects.schemas.listRevisions",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the schema to list revisions for.",
"location": "path",
"pattern": "^projects/[^/]+/schemas/[^/]+$",
"required": true,
"type": "string"
},
"pageSize": {
"description": "The maximum number of revisions to return per page.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The page token, received from a previous ListSchemaRevisions call. Provide this to retrieve the subsequent page.",
"location": "query",
"type": "string"
},
"view": {
"description": "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.",
"enum": [
"SCHEMA_VIEW_UNSPECIFIED",
"BASIC",
"FULL"
],
"enumDescriptions": [
"The default / unset value. The API will default to the BASIC view.",
"Include the name and type of the schema, but not the definition.",
"Include all Schema object fields."
],
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}:listRevisions",
"response": {
"$ref": "ListSchemaRevisionsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
]
},
"rollback": {
"description": "Creates a new schema revision that is a copy of the provided revision_id.",
"flatPath": "v1/projects/{projectsId}/schemas/{schemasId}:rollback",
"httpMethod": "POST",
"id": "pubsub.projects.schemas.rollback",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The schema being rolled back with revision id.",
"location": "path",
"pattern": "^projects/[^/]+/schemas/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:rollback",
"request": {
"$ref": "RollbackSchemaRequest"
},
"response": {
"$ref": "Schema"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
]
},
"setIamPolicy": {
"description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.",
"flatPath": "v1/projects/{projectsId}/schemas/{schemasId}:setIamPolicy",
Expand Down Expand Up @@ -1424,7 +1565,7 @@
}
}
},
"revision": "20221020",
"revision": "20230119",
"rootUrl": "https://pubsub.googleapis.com/",
"schemas": {
"AcknowledgeRequest": {
Expand Down Expand Up @@ -1461,7 +1602,7 @@
"enumDescriptions": [
"Default value. This value is unused.",
"The subscription can actively send messages to BigQuery",
"Cannot write to the BigQuery table because of permission denied errors.",
"Cannot write to the BigQuery table because of permission denied errors. This can happen if - Pub/Sub SA has not been granted the [appropriate BigQuery IAM permissions](https://cloud.google.com/pubsub/docs/create-subscription#assign_bigquery_service_account) - bigquery.googleapis.com API is not enabled for the project ([instructions](https://cloud.google.com/service-usage/docs/enable-disable))",
"Cannot write to the BigQuery table because it does not exist.",
"Cannot write to the BigQuery table due to a schema mismatch."
],
Expand Down Expand Up @@ -1505,6 +1646,17 @@
},
"type": "object"
},
"CommitSchemaRequest": {
"description": "Request for CommitSchema method.",
"id": "CommitSchemaRequest",
"properties": {
"schema": {
"$ref": "Schema",
"description": "Required. The schema revision to commit."
}
},
"type": "object"
},
"CreateSnapshotRequest": {
"description": "Request for the `CreateSnapshot` method.",
"id": "CreateSnapshotRequest",
Expand Down Expand Up @@ -1586,6 +1738,24 @@
},
"type": "object"
},
"ListSchemaRevisionsResponse": {
"description": "Response for the `ListSchemaRevisions` method.",
"id": "ListSchemaRevisionsResponse",
"properties": {
"nextPageToken": {
"description": "A token that can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.",
"type": "string"
},
"schemas": {
"description": "The revisions of the schema.",
"items": {
"$ref": "Schema"
},
"type": "array"
}
},
"type": "object"
},
"ListSchemasResponse": {
"description": "Response for the `ListSchemas` method.",
"id": "ListSchemasResponse",
Expand Down Expand Up @@ -1925,6 +2095,17 @@
},
"type": "object"
},
"RollbackSchemaRequest": {
"description": "Request for the `RollbackSchema` method.",
"id": "RollbackSchemaRequest",
"properties": {
"revisionId": {
"description": "Required. The revision ID to roll back to. It must be a revision of the same schema. Example: c7cfa2a8",
"type": "string"
}
},
"type": "object"
},
"Schema": {
"description": "A schema resource.",
"id": "Schema",
Expand Down

0 comments on commit f102db0

Please sign in to comment.