Skip to content

Commit

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

The following keys were added:
- resources.projects.resources.locations.resources.deliveryPipelines.resources.releases.resources.rollouts.methods.create.parameters.startingPhaseId.description
- resources.projects.resources.locations.resources.deliveryPipelines.resources.releases.resources.rollouts.methods.create.parameters.startingPhaseId.location
- resources.projects.resources.locations.resources.deliveryPipelines.resources.releases.resources.rollouts.methods.create.parameters.startingPhaseId.type

The following keys were changed:
- schemas.Binding.properties.members.description
- schemas.DeployJobRun.properties.failureCause.enum
- schemas.DeployJobRun.properties.failureCause.enumDescriptions
- schemas.Rollout.properties.deployFailureCause.enum
- schemas.Rollout.properties.deployFailureCause.enumDescriptions
- schemas.SkaffoldVersion.properties.supportEndDate.description
- schemas.TargetRender.properties.failureCause.enum
- schemas.TargetRender.properties.failureCause.enumDescriptions
- schemas.VerifyJobRun.properties.failureCause.enum
- schemas.VerifyJobRun.properties.failureCause.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent e4b1b2f commit 1856ed8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
35 changes: 24 additions & 11 deletions discovery/clouddeploy-v1.json
Expand Up @@ -708,6 +708,11 @@
"location": "query",
"type": "string"
},
"startingPhaseId": {
"description": "Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` will start at the first phase.",
"location": "query",
"type": "string"
},
"validateOnly": {
"description": "Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.",
"location": "query",
Expand Down Expand Up @@ -1334,7 +1339,7 @@
}
}
},
"revision": "20221208",
"revision": "20230124",
"rootUrl": "https://clouddeploy.googleapis.com/",
"schemas": {
"AbandonReleaseRequest": {
Expand Down Expand Up @@ -1434,7 +1439,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 @@ -1676,13 +1681,15 @@
"FAILURE_CAUSE_UNSPECIFIED",
"CLOUD_BUILD_UNAVAILABLE",
"EXECUTION_FAILED",
"DEADLINE_EXCEEDED"
"DEADLINE_EXCEEDED",
"CLOUD_BUILD_REQUEST_FAILED"
],
"enumDescriptions": [
"No reason for failure is specified.",
"Cloud Build is not available, either because it is not enabled or because Google Cloud Deploy has insufficient permissions. See [Required permission](/deploy/docs/cloud-deploy-service-account#required_permissions).",
"The deploy operation did not complete successfully; check Cloud Build logs.",
"The deploy build did not complete within the alloted time."
"The deploy build did not complete within the alloted time.",
"Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details."
],
"readOnly": true,
"type": "string"
Expand Down Expand Up @@ -2652,7 +2659,8 @@
"DEADLINE_EXCEEDED",
"RELEASE_FAILED",
"RELEASE_ABANDONED",
"VERIFICATION_CONFIG_NOT_FOUND"
"VERIFICATION_CONFIG_NOT_FOUND",
"CLOUD_BUILD_REQUEST_FAILED"
],
"enumDescriptions": [
"No reason for failure is specified.",
Expand All @@ -2661,7 +2669,8 @@
"Deployment did not complete within the alloted time.",
"Release is in a failed state.",
"Release is abandoned.",
"No skaffold verify configuration was found."
"No skaffold verify configuration was found.",
"Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details."
],
"readOnly": true,
"type": "string"
Expand Down Expand Up @@ -2834,7 +2843,7 @@
"properties": {
"supportEndDate": {
"$ref": "Date",
"description": "Date when this version is expected to no longer be supported. For a more precise time, use the `support_expiration_time` field."
"description": "Date when this version is expected to no longer be supported."
},
"version": {
"description": "Release version number. For example, \"1.20.3\".",
Expand Down Expand Up @@ -3052,12 +3061,14 @@
"enum": [
"FAILURE_CAUSE_UNSPECIFIED",
"CLOUD_BUILD_UNAVAILABLE",
"EXECUTION_FAILED"
"EXECUTION_FAILED",
"CLOUD_BUILD_REQUEST_FAILED"
],
"enumDescriptions": [
"No reason for failure is specified.",
"Cloud Build is not available, either because it is not enabled or because Google Cloud Deploy has insufficient permissions. See [required permission](/deploy/docs/cloud-deploy-service-account#required_permissions).",
"The render operation did not complete successfully; check Cloud Build logs."
"The render operation did not complete successfully; check Cloud Build logs.",
"Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details."
],
"readOnly": true,
"type": "string"
Expand Down Expand Up @@ -3190,14 +3201,16 @@
"CLOUD_BUILD_UNAVAILABLE",
"EXECUTION_FAILED",
"DEADLINE_EXCEEDED",
"VERIFICATION_CONFIG_NOT_FOUND"
"VERIFICATION_CONFIG_NOT_FOUND",
"CLOUD_BUILD_REQUEST_FAILED"
],
"enumDescriptions": [
"No reason for failure is specified.",
"Cloud Build is not available, either because it is not enabled or because Google Cloud Deploy has insufficient permissions. See [required permission](/deploy/docs/cloud-deploy-service-account#required_permissions).",
"The verify operation did not complete successfully; check Cloud Build logs.",
"The verify build did not complete within the alloted time.",
"No Skaffold verify configuration was found."
"No Skaffold verify configuration was found.",
"Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details."
],
"readOnly": true,
"type": "string"
Expand Down
10 changes: 8 additions & 2 deletions src/apis/clouddeploy/v1.ts
Expand Up @@ -189,7 +189,7 @@ export namespace clouddeploy_v1 {
*/
condition?: Schema$Expr;
/**
* 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`.
* 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.
*/
members?: string[] | null;
/**
Expand Down Expand Up @@ -1131,7 +1131,7 @@ export namespace clouddeploy_v1 {
*/
export interface Schema$SkaffoldVersion {
/**
* Date when this version is expected to no longer be supported. For a more precise time, use the `support_expiration_time` field.
* Date when this version is expected to no longer be supported.
*/
supportEndDate?: Schema$Date;
/**
Expand Down Expand Up @@ -4044,6 +4044,8 @@ export namespace clouddeploy_v1 {
* requestId: 'placeholder-value',
* // Required. ID of the `Rollout`.
* rolloutId: 'placeholder-value',
* // Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` will start at the first phase.
* startingPhaseId: 'placeholder-value',
* // Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
* validateOnly: 'placeholder-value',
*
Expand Down Expand Up @@ -4643,6 +4645,10 @@ export namespace clouddeploy_v1 {
* Required. ID of the `Rollout`.
*/
rolloutId?: string;
/**
* Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` will start at the first phase.
*/
startingPhaseId?: string;
/**
* Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
*/
Expand Down

0 comments on commit 1856ed8

Please sign in to comment.