Skip to content

Commit

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

The following keys were changed:
- schemas.BuildOptions.properties.defaultLogsBucketBehavior.enum
- schemas.BuildOptions.properties.defaultLogsBucketBehavior.enumDescriptions
- schemas.BuildTrigger.properties.serviceAccount.description
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 10, 2024
1 parent f533be2 commit 16cacdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions discovery/cloudbuild-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2346,7 +2346,7 @@
}
}
},
"revision": "20240704",
"revision": "20240923",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ApprovalConfig": {
Expand Down Expand Up @@ -3017,11 +3017,13 @@
"description": "Optional. Option to specify how default logs buckets are setup.",
"enum": [
"DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED",
"REGIONAL_USER_OWNED_BUCKET"
"REGIONAL_USER_OWNED_BUCKET",
"LEGACY_BUCKET"
],
"enumDescriptions": [
"Unspecified.",
"Bucket is located in user-owned project in the same region as the build. The builder service account must have access to create and write to Cloud Storage buckets in the build project."
"Bucket is located in user-owned project in the same region as the build. The builder service account must have access to create and write to Cloud Storage buckets in the build project.",
"Bucket is located in a Google-owned project and is not regionalized."
],
"type": "string"
},
Expand Down Expand Up @@ -3428,7 +3430,7 @@
"type": "string"
},
"serviceAccount": {
"description": "The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set, then the standard Cloud Build service account ([PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`",
"description": "The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set and the legacy Cloud Build service account ([PROJECT_NUM]@cloudbuild.gserviceaccount.com) is the default for the project then it will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`",
"type": "string"
},
"sourceToBuild": {
Expand Down
2 changes: 1 addition & 1 deletion src/apis/cloudbuild/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ export namespace cloudbuild_v1 {
*/
resourceName?: string | null;
/**
* The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set, then the standard Cloud Build service account ([PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: `projects/{PROJECT_ID\}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL\}`
* The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set and the legacy Cloud Build service account ([PROJECT_NUM]@cloudbuild.gserviceaccount.com) is the default for the project then it will be used instead. Format: `projects/{PROJECT_ID\}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL\}`
*/
serviceAccount?: string | null;
/**
Expand Down

0 comments on commit 16cacdc

Please sign in to comment.