Skip to content

Commit 41e76d1

Browse files
feat(cloudbuild): update the api
#### cloudbuild:v1 The following keys were added: - schemas.Artifacts.properties.goModules (Total Keys: 2) - schemas.BuildOptions.properties.enableStructuredLogging.type (Total Keys: 1) - schemas.GoModule (Total Keys: 8) - schemas.Results.properties.goModules (Total Keys: 2) - schemas.UploadedGoModule (Total Keys: 6) The following keys were changed: - endpoints (Total Keys: 1) #### cloudbuild:v2 The following keys were changed: - endpoints (Total Keys: 1)
1 parent ef72b5f commit 41e76d1

File tree

6 files changed

+635
-12
lines changed

6 files changed

+635
-12
lines changed

docs/dyn/cloudbuild_v1.projects.builds.html

Lines changed: 112 additions & 0 deletions
Large diffs are not rendered by default.

docs/dyn/cloudbuild_v1.projects.locations.builds.html

Lines changed: 112 additions & 0 deletions
Large diffs are not rendered by default.

docs/dyn/cloudbuild_v1.projects.locations.triggers.html

Lines changed: 168 additions & 0 deletions
Large diffs are not rendered by default.

docs/dyn/cloudbuild_v1.projects.triggers.html

Lines changed: 168 additions & 0 deletions
Large diffs are not rendered by default.

googleapiclient/discovery_cache/documents/cloudbuild.v1.json

Lines changed: 74 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,6 @@
163163
},
164164
{
165165
"description": "Regional Endpoint",
166-
"endpointUrl": "https://cloudbuild.northamerica-south1.rep.googleapis.com/",
167-
"location": "northamerica-south1"
168-
},
169-
{
170-
"description": "Regional Endpoint",
171166
"endpointUrl": "https://cloudbuild.southamerica-east1.rep.googleapis.com/",
172167
"location": "southamerica-east1"
173168
},
@@ -2568,7 +2563,7 @@
25682563
}
25692564
}
25702565
},
2571-
"revision": "20250102",
2566+
"revision": "20250114",
25722567
"rootUrl": "https://cloudbuild.googleapis.com/",
25732568
"schemas": {
25742569
"ApprovalConfig": {
@@ -2678,6 +2673,13 @@
26782673
"description": "Artifacts produced by a build that should be uploaded upon successful completion of all build steps.",
26792674
"id": "Artifacts",
26802675
"properties": {
2676+
"goModules": {
2677+
"description": "Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE.",
2678+
"items": {
2679+
"$ref": "GoModule"
2680+
},
2681+
"type": "array"
2682+
},
26812683
"images": {
26822684
"description": "A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.",
26832685
"items": {
@@ -3258,6 +3260,10 @@
32583260
"description": "Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.",
32593261
"type": "boolean"
32603262
},
3263+
"enableStructuredLogging": {
3264+
"description": "Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs.",
3265+
"type": "boolean"
3266+
},
32613267
"env": {
32623268
"description": "A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form \"KEY=VALUE\" for the environment variable \"KEY\" being given the value \"VALUE\".",
32633269
"items": {
@@ -3365,12 +3371,14 @@ false
33653371
"NONE",
33663372
"SHA256",
33673373
"MD5",
3374+
"GO_MODULE_H1",
33683375
"SHA512"
33693376
],
33703377
"enumDescriptions": [
33713378
"No hash requested.",
33723379
"Use a sha256 hash.",
33733380
"Use a md5 hash.",
3381+
"Dirhash of a Go module's source code which is then hex-encoded.",
33743382
"Use a sha512 hash."
33753383
],
33763384
"type": "string"
@@ -4459,6 +4467,37 @@ false
44594467
},
44604468
"type": "object"
44614469
},
4470+
"GoModule": {
4471+
"description": "Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.",
4472+
"id": "GoModule",
4473+
"properties": {
4474+
"modulePath": {
4475+
"description": "Optional. The Go module's \"module path\". e.g. example.com/foo/v2",
4476+
"type": "string"
4477+
},
4478+
"moduleVersion": {
4479+
"description": "Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5",
4480+
"type": "string"
4481+
},
4482+
"repositoryLocation": {
4483+
"description": "Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build\u2019s location.",
4484+
"type": "string"
4485+
},
4486+
"repositoryName": {
4487+
"description": "Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo",
4488+
"type": "string"
4489+
},
4490+
"repositoryProjectId": {
4491+
"description": "Optional. Project ID of the Artifact Registry repository. Defaults to the build project.",
4492+
"type": "string"
4493+
},
4494+
"sourcePath": {
4495+
"description": "Optional. Source path of the go.mod file in the build's workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage",
4496+
"type": "string"
4497+
}
4498+
},
4499+
"type": "object"
4500+
},
44624501
"Hash": {
44634502
"description": "Container message for hash values.",
44644503
"id": "Hash",
@@ -4469,12 +4508,14 @@ false
44694508
"NONE",
44704509
"SHA256",
44714510
"MD5",
4511+
"GO_MODULE_H1",
44724512
"SHA512"
44734513
],
44744514
"enumDescriptions": [
44754515
"No hash requested.",
44764516
"Use a sha256 hash.",
44774517
"Use a md5 hash.",
4518+
"Dirhash of a Go module's source code which is then hex-encoded.",
44784519
"Use a sha512 hash."
44794520
],
44804521
"type": "string"
@@ -5145,6 +5186,13 @@ false
51455186
},
51465187
"type": "array"
51475188
},
5189+
"goModules": {
5190+
"description": "Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.",
5191+
"items": {
5192+
"$ref": "UploadedGoModule"
5193+
},
5194+
"type": "array"
5195+
},
51485196
"images": {
51495197
"description": "Container images that were built as a part of the build.",
51505198
"items": {
@@ -5535,6 +5583,26 @@ false
55355583
},
55365584
"type": "object"
55375585
},
5586+
"UploadedGoModule": {
5587+
"description": "A Go module artifact uploaded to Artifact Registry using the GoModule directive.",
5588+
"id": "UploadedGoModule",
5589+
"properties": {
5590+
"fileHashes": {
5591+
"$ref": "FileHashes",
5592+
"description": "Hash types and values of the Go Module Artifact."
5593+
},
5594+
"pushTiming": {
5595+
"$ref": "TimeSpan",
5596+
"description": "Output only. Stores timing information for pushing the specified artifact.",
5597+
"readOnly": true
5598+
},
5599+
"uri": {
5600+
"description": "URI of the uploaded artifact.",
5601+
"type": "string"
5602+
}
5603+
},
5604+
"type": "object"
5605+
},
55385606
"UploadedMavenArtifact": {
55395607
"description": "A Maven artifact uploaded using the MavenArtifact directive.",
55405608
"id": "UploadedMavenArtifact",

googleapiclient/discovery_cache/documents/cloudbuild.v2.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,6 @@
163163
},
164164
{
165165
"description": "Regional Endpoint",
166-
"endpointUrl": "https://cloudbuild.northamerica-south1.rep.googleapis.com/",
167-
"location": "northamerica-south1"
168-
},
169-
{
170-
"description": "Regional Endpoint",
171166
"endpointUrl": "https://cloudbuild.southamerica-east1.rep.googleapis.com/",
172167
"location": "southamerica-east1"
173168
},
@@ -1066,7 +1061,7 @@
10661061
}
10671062
}
10681063
},
1069-
"revision": "20250102",
1064+
"revision": "20250114",
10701065
"rootUrl": "https://cloudbuild.googleapis.com/",
10711066
"schemas": {
10721067
"AuditConfig": {

0 commit comments

Comments
 (0)