Skip to content

Commit

Permalink
feat(metastore)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### metastore:v1alpha

The following keys were added:
- resources.projects.resources.locations.resources.operations.methods.cancel.description
- resources.projects.resources.locations.resources.operations.methods.cancel.flatPath
- resources.projects.resources.locations.resources.operations.methods.cancel.httpMethod
- resources.projects.resources.locations.resources.operations.methods.cancel.id
- resources.projects.resources.locations.resources.operations.methods.cancel.parameterOrder
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.description
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.location
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.pattern
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.required
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.type
- resources.projects.resources.locations.resources.operations.methods.cancel.path
- resources.projects.resources.locations.resources.operations.methods.cancel.request.$ref
- resources.projects.resources.locations.resources.operations.methods.cancel.response.$ref
- resources.projects.resources.locations.resources.operations.methods.cancel.scopes
- schemas.CancelOperationRequest.description
- schemas.CancelOperationRequest.id
- schemas.CancelOperationRequest.type

The following keys were changed:
- schemas.Binding.properties.members.description

#### metastore:v1beta

The following keys were added:
- resources.projects.resources.locations.resources.operations.methods.cancel.description
- resources.projects.resources.locations.resources.operations.methods.cancel.flatPath
- resources.projects.resources.locations.resources.operations.methods.cancel.httpMethod
- resources.projects.resources.locations.resources.operations.methods.cancel.id
- resources.projects.resources.locations.resources.operations.methods.cancel.parameterOrder
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.description
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.location
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.pattern
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.required
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.type
- resources.projects.resources.locations.resources.operations.methods.cancel.path
- resources.projects.resources.locations.resources.operations.methods.cancel.request.$ref
- resources.projects.resources.locations.resources.operations.methods.cancel.response.$ref
- resources.projects.resources.locations.resources.operations.methods.cancel.scopes
- schemas.CancelOperationRequest.description
- schemas.CancelOperationRequest.id
- schemas.CancelOperationRequest.type

The following keys were changed:
- schemas.Binding.properties.members.description

#### metastore:v1

The following keys were deleted:
- resources.operations.methods.cancel.description
- resources.operations.methods.cancel.flatPath
- resources.operations.methods.cancel.httpMethod
- resources.operations.methods.cancel.id
- resources.operations.methods.cancel.parameterOrder
- resources.operations.methods.cancel.parameters.name.description
- resources.operations.methods.cancel.parameters.name.location
- resources.operations.methods.cancel.parameters.name.pattern
- resources.operations.methods.cancel.parameters.name.required
- resources.operations.methods.cancel.parameters.name.type
- resources.operations.methods.cancel.path
- resources.operations.methods.cancel.request.$ref
- resources.operations.methods.cancel.response.$ref
- resources.operations.methods.cancel.scopes

The following keys were added:
- resources.projects.resources.locations.resources.operations.methods.cancel.description
- resources.projects.resources.locations.resources.operations.methods.cancel.flatPath
- resources.projects.resources.locations.resources.operations.methods.cancel.httpMethod
- resources.projects.resources.locations.resources.operations.methods.cancel.id
- resources.projects.resources.locations.resources.operations.methods.cancel.parameterOrder
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.description
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.location
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.pattern
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.required
- resources.projects.resources.locations.resources.operations.methods.cancel.parameters.name.type
- resources.projects.resources.locations.resources.operations.methods.cancel.path
- resources.projects.resources.locations.resources.operations.methods.cancel.request.$ref
- resources.projects.resources.locations.resources.operations.methods.cancel.response.$ref
- resources.projects.resources.locations.resources.operations.methods.cancel.scopes

The following keys were changed:
- schemas.Binding.properties.members.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 9, 2023
1 parent d603fb9 commit 9c7891e
Show file tree
Hide file tree
Showing 6 changed files with 545 additions and 193 deletions.
64 changes: 30 additions & 34 deletions discovery/metastore-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,38 +105,6 @@
},
"protocol": "rest",
"resources": {
"operations": {
"methods": {
"cancel": {
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.",
"flatPath": "v1/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "metastore.operations.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to be cancelled.",
"location": "path",
"pattern": "^operations/.*$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:cancel",
"request": {
"$ref": "CancelOperationRequest"
},
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"projects": {
"resources": {
"locations": {
Expand Down Expand Up @@ -480,6 +448,34 @@
},
"operations": {
"methods": {
"cancel": {
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "metastore.projects.locations.operations.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to be cancelled.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:cancel",
"request": {
"$ref": "CancelOperationRequest"
},
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
Expand Down Expand Up @@ -1259,7 +1255,7 @@
}
}
},
"revision": "20230111",
"revision": "20230131",
"rootUrl": "https://metastore.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -1403,7 +1399,7 @@
"description": "The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies)."
},
"members": {
"description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.",
"description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.",
"items": {
"type": "string"
},
Expand Down
38 changes: 36 additions & 2 deletions discovery/metastore-v1alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,34 @@
},
"operations": {
"methods": {
"cancel": {
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "metastore.projects.locations.operations.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to be cancelled.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+name}:cancel",
"request": {
"$ref": "CancelOperationRequest"
},
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
Expand Down Expand Up @@ -1551,7 +1579,7 @@
}
}
},
"revision": "20230111",
"revision": "20230131",
"rootUrl": "https://metastore.googleapis.com/",
"schemas": {
"AlterMetadataResourceLocationRequest": {
Expand Down Expand Up @@ -1741,7 +1769,7 @@
"description": "The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies)."
},
"members": {
"description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.",
"description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.",
"items": {
"type": "string"
},
Expand All @@ -1754,6 +1782,12 @@
},
"type": "object"
},
"CancelOperationRequest": {
"description": "The request message for Operations.CancelOperation.",
"id": "CancelOperationRequest",
"properties": {},
"type": "object"
},
"Consumer": {
"description": "Contains information of the customer's network configurations.",
"id": "Consumer",
Expand Down

0 comments on commit 9c7891e

Please sign in to comment.