Skip to content

Commit

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

The following keys were changed:
- schemas.Container.properties.image.description

#### run:v2

The following keys were added:
- resources.projects.resources.locations.resources.operations.methods.wait.description
- resources.projects.resources.locations.resources.operations.methods.wait.flatPath
- resources.projects.resources.locations.resources.operations.methods.wait.httpMethod
- resources.projects.resources.locations.resources.operations.methods.wait.id
- resources.projects.resources.locations.resources.operations.methods.wait.parameterOrder
- resources.projects.resources.locations.resources.operations.methods.wait.parameters.name.description
- resources.projects.resources.locations.resources.operations.methods.wait.parameters.name.location
- resources.projects.resources.locations.resources.operations.methods.wait.parameters.name.pattern
- resources.projects.resources.locations.resources.operations.methods.wait.parameters.name.required
- resources.projects.resources.locations.resources.operations.methods.wait.parameters.name.type
- resources.projects.resources.locations.resources.operations.methods.wait.path
- resources.projects.resources.locations.resources.operations.methods.wait.request.$ref
- resources.projects.resources.locations.resources.operations.methods.wait.response.$ref
- resources.projects.resources.locations.resources.operations.methods.wait.scopes
- schemas.GoogleCloudRunV2Execution.properties.cancelledCount.description
- schemas.GoogleCloudRunV2Execution.properties.cancelledCount.format
- schemas.GoogleCloudRunV2Execution.properties.cancelledCount.readOnly
- schemas.GoogleCloudRunV2Execution.properties.cancelledCount.type
- schemas.GoogleCloudRunV2Execution.properties.logUri.description
- schemas.GoogleCloudRunV2Execution.properties.logUri.readOnly
- schemas.GoogleCloudRunV2Execution.properties.logUri.type
- schemas.GoogleCloudRunV2Execution.properties.retriedCount.description
- schemas.GoogleCloudRunV2Execution.properties.retriedCount.format
- schemas.GoogleCloudRunV2Execution.properties.retriedCount.readOnly
- schemas.GoogleCloudRunV2Execution.properties.retriedCount.type
- schemas.GoogleCloudRunV2Task.properties.logUri.description
- schemas.GoogleCloudRunV2Task.properties.logUri.readOnly
- schemas.GoogleCloudRunV2Task.properties.logUri.type
- schemas.GoogleLongrunningWaitOperationRequest.description
- schemas.GoogleLongrunningWaitOperationRequest.id
- schemas.GoogleLongrunningWaitOperationRequest.properties.timeout.description
- schemas.GoogleLongrunningWaitOperationRequest.properties.timeout.format
- schemas.GoogleLongrunningWaitOperationRequest.properties.timeout.type
- schemas.GoogleLongrunningWaitOperationRequest.type

The following keys were changed:
- schemas.GoogleCloudRunV2Container.properties.image.description
- schemas.GoogleIamV1Binding.properties.members.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent bb06d0c commit 8de6284
Show file tree
Hide file tree
Showing 4 changed files with 256 additions and 8 deletions.
4 changes: 2 additions & 2 deletions discovery/run-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2289,7 +2289,7 @@
}
}
},
"revision": "20221213",
"revision": "20230122",
"rootUrl": "https://run.googleapis.com/",
"schemas": {
"Addressable": {
Expand Down Expand Up @@ -2560,7 +2560,7 @@
"type": "array"
},
"image": {
"description": "Required. URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images",
"description": "Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. More info: https://kubernetes.io/docs/concepts/containers/images",
"type": "string"
},
"imagePullPolicy": {
Expand Down
68 changes: 65 additions & 3 deletions discovery/run-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,34 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"wait": {
"description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.",
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:wait",
"httpMethod": "POST",
"id": "run.projects.locations.operations.wait",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource to wait on.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+name}:wait",
"request": {
"$ref": "GoogleLongrunningWaitOperationRequest"
},
"response": {
"$ref": "GoogleLongrunningOperation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
Expand Down Expand Up @@ -1059,7 +1087,7 @@
}
}
},
"revision": "20221213",
"revision": "20230129",
"rootUrl": "https://run.googleapis.com/",
"schemas": {
"GoogleCloudRunV2BinaryAuthorization": {
Expand Down Expand Up @@ -1259,7 +1287,7 @@
"type": "array"
},
"image": {
"description": "Required. URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images",
"description": "Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. More info: https://kubernetes.io/docs/concepts/containers/images",
"type": "string"
},
"livenessProbe": {
Expand Down Expand Up @@ -1356,6 +1384,12 @@
"description": "KRM-style annotations for the resource.",
"type": "object"
},
"cancelledCount": {
"description": "Output only. The number of tasks which reached phase Cancelled.",
"format": "int32",
"readOnly": true,
"type": "integer"
},
"completionTime": {
"description": "Output only. Represents time when the execution was completed. It is not guaranteed to be set in happens-before order across separate operations.",
"format": "google-datetime",
Expand Down Expand Up @@ -1441,6 +1475,11 @@
],
"type": "string"
},
"logUri": {
"description": "Output only. URI where logs for this execution can be found in Cloud Console.",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Output only. The unique name of this Execution.",
"readOnly": true,
Expand All @@ -1463,6 +1502,12 @@
"readOnly": true,
"type": "boolean"
},
"retriedCount": {
"description": "Output only. The number of tasks which have retried at least once.",
"format": "int32",
"readOnly": true,
"type": "integer"
},
"runningCount": {
"description": "Output only. The number of actively running tasks.",
"format": "int32",
Expand Down Expand Up @@ -2558,6 +2603,11 @@
"description": "Output only. Result of the last attempt of this Task.",
"readOnly": true
},
"logUri": {
"description": "Output only. URI where logs for this execution can be found in Cloud Console.",
"readOnly": true,
"type": "string"
},
"maxRetries": {
"description": "Number of retries allowed per Task, before marking this Task failed.",
"format": "int32",
Expand Down Expand Up @@ -2909,7 +2959,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 Expand Up @@ -3050,6 +3100,18 @@
},
"type": "object"
},
"GoogleLongrunningWaitOperationRequest": {
"description": "The request message for Operations.WaitOperation.",
"id": "GoogleLongrunningWaitOperationRequest",
"properties": {
"timeout": {
"description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.",
"format": "google-duration",
"type": "string"
}
},
"type": "object"
},
"GoogleProtobufEmpty": {
"description": "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); }",
"id": "GoogleProtobufEmpty",
Expand Down
2 changes: 1 addition & 1 deletion src/apis/run/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export namespace run_v1 {
*/
envFrom?: Schema$EnvFromSource[];
/**
* Required. URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
* Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. More info: https://kubernetes.io/docs/concepts/containers/images
*/
image?: string | null;
/**
Expand Down

0 comments on commit 8de6284

Please sign in to comment.