Skip to content

Commit 140fb54

Browse files
feat(all): auto-regenerate discovery clients (#2394)
1 parent e5a7a15 commit 140fb54

19 files changed

+2757
-286
lines changed

api-list.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@
772772
"name": "batch",
773773
"version": "v1",
774774
"title": "Batch API",
775-
"description": "An API to manage the running of batch jobs on Google Cloud Platform.",
775+
"description": "An API to manage the running of batch resources on Google Cloud Platform.",
776776
"discoveryRestUrl": "https://batch.googleapis.com/$discovery/rest?version=v1",
777777
"icons": {
778778
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",

batch/v1/batch-api.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@
561561
}
562562
}
563563
},
564-
"revision": "20240112",
564+
"revision": "20240202",
565565
"rootUrl": "https://batch.googleapis.com/",
566566
"schemas": {
567567
"Accelerator": {
@@ -1108,11 +1108,11 @@
11081108
"type": "string"
11091109
},
11101110
"password": {
1111-
"description": "Optional password for logging in to a docker registry. If password matches `projects/*/secrets/*/versions/*` then Batch will read the password from the Secret Manager;",
1111+
"description": "Required if the container image is from a private Docker registry. The password to login to the Docker registry that contains the image. For security, it is strongly recommended to specify an encrypted password by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. Warning: If you specify the password using plain text, you risk the password being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the password instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).",
11121112
"type": "string"
11131113
},
11141114
"username": {
1115-
"description": "Optional username for logging in to a docker registry. If username matches `projects/*/secrets/*/versions/*` then Batch will read the username from the Secret Manager.",
1115+
"description": "Required if the container image is from a private Docker registry. The username to login to the Docker registry that contains the image. You can either specify the username directly by using plain text or specify an encrypted username by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. However, using a secret is recommended for enhanced security. Caution: If you specify the username using plain text, you risk the username being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the username instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).",
11161116
"type": "string"
11171117
},
11181118
"volumes": {
@@ -2093,11 +2093,11 @@
20932093
"type": "boolean"
20942094
},
20952095
"requireHostsFile": {
2096-
"description": "When true, Batch will populate a file with a list of all VMs assigned to the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path of that file. Defaults to false.",
2096+
"description": "When true, Batch will populate a file with a list of all VMs assigned to the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path of that file. Defaults to false. The host file supports up to 1000 VMs.",
20972097
"type": "boolean"
20982098
},
20992099
"runAsNonRoot": {
2100-
"description": "Optional. If not set or set to false, Batch uses the root user to execute runnables. If set to true, Batch will make sure to run the runnables using a non-root user. Currently, the non-root user Batch used is generated by OS Login. For more information, see [About OS Login](https://cloud.google.com/compute/docs/oslogin).",
2100+
"description": "Optional. If not set or set to false, Batch uses the root user to execute runnables. If set to true, Batch runs the runnables using a non-root user. Currently, the non-root user Batch used is generated by OS Login. For more information, see [About OS Login](https://cloud.google.com/compute/docs/oslogin).",
21012101
"type": "boolean"
21022102
},
21032103
"schedulingPolicy": {

batch/v1/batch-gen.go

Lines changed: 29 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudbuild/v2/cloudbuild-api.json

Lines changed: 109 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@
844844
}
845845
}
846846
},
847-
"revision": "20231231",
847+
"revision": "20240130",
848848
"rootUrl": "https://cloudbuild.googleapis.com/",
849849
"schemas": {
850850
"AuditConfig": {
@@ -939,7 +939,7 @@
939939
"type": "array"
940940
},
941941
"role": {
942-
"description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.",
942+
"description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).",
943943
"type": "string"
944944
}
945945
},
@@ -1867,6 +1867,14 @@
18671867
"readOnly": true,
18681868
"type": "string"
18691869
},
1870+
"gcbParams": {
1871+
"additionalProperties": {
1872+
"type": "string"
1873+
},
1874+
"description": "Output only. GCB default params.",
1875+
"readOnly": true,
1876+
"type": "object"
1877+
},
18701878
"name": {
18711879
"description": "Output only. The `PipelineRun` name with format `projects/{project}/locations/{location}/pipelineRuns/{pipeline_run}`",
18721880
"readOnly": true,
@@ -1899,11 +1907,19 @@
18991907
"$ref": "PipelineSpec",
19001908
"description": "PipelineSpec defines the desired state of Pipeline."
19011909
},
1910+
"provenance": {
1911+
"$ref": "Provenance",
1912+
"description": "Optional. Provenance configuration."
1913+
},
19021914
"resolvedPipelineSpec": {
19031915
"$ref": "PipelineSpec",
19041916
"description": "Output only. The exact PipelineSpec used to instantiate the run.",
19051917
"readOnly": true
19061918
},
1919+
"security": {
1920+
"$ref": "Security",
1921+
"description": "Optional. Security configuration."
1922+
},
19071923
"serviceAccount": {
19081924
"description": "Service account used in the Pipeline.",
19091925
"type": "string"
@@ -1937,6 +1953,10 @@
19371953
"readOnly": true,
19381954
"type": "string"
19391955
},
1956+
"worker": {
1957+
"$ref": "Worker",
1958+
"description": "Optional. Worker configuration."
1959+
},
19401960
"workerPool": {
19411961
"description": "Output only. The WorkerPool used to run this PipelineRun.",
19421962
"readOnly": true,
@@ -2139,6 +2159,57 @@
21392159
},
21402160
"type": "object"
21412161
},
2162+
"Provenance": {
2163+
"description": "Provenance configuration.",
2164+
"id": "Provenance",
2165+
"properties": {
2166+
"enabled": {
2167+
"description": "Optional. Provenance push mode.",
2168+
"enum": [
2169+
"ENABLED_UNSPECIFIED",
2170+
"REQUIRED",
2171+
"OPTIMISTIC",
2172+
"DISABLED"
2173+
],
2174+
"enumDescriptions": [
2175+
"Default to disabled (before AA regionalization), optimistic after",
2176+
"Provenance failures would fail the run",
2177+
"GCB will attempt to push to artifact analaysis and build state would not be impacted by the push failures.",
2178+
"Disable the provenance push entirely."
2179+
],
2180+
"type": "string"
2181+
},
2182+
"region": {
2183+
"description": "Optional. Provenance region.",
2184+
"enum": [
2185+
"REGION_UNSPECIFIED",
2186+
"GLOBAL"
2187+
],
2188+
"enumDescriptions": [
2189+
"The PipelineRun/TaskRun/Workflow will be rejected. Update this comment to push to the same region as the run in Artifact Analysis when it's regionalized.",
2190+
"Push provenance to Artifact Analysis in global region."
2191+
],
2192+
"type": "string"
2193+
},
2194+
"storage": {
2195+
"description": "Optional. Where provenance is stored.",
2196+
"enum": [
2197+
"STORAGE_UNSPECIFIED",
2198+
"PREFER_ARTIFACT_PROJECT",
2199+
"ARTIFACT_PROJECT_ONLY",
2200+
"BUILD_PROJECT_ONLY"
2201+
],
2202+
"enumDescriptions": [
2203+
"Default PREFER_ARTIFACT_PROJECT.",
2204+
"GCB will attempt to push provenance to the artifact project. If it is not available, fallback to build project.",
2205+
"Only push to artifact project.",
2206+
"Only push to build project."
2207+
],
2208+
"type": "string"
2209+
}
2210+
},
2211+
"type": "object"
2212+
},
21422213
"Repository": {
21432214
"description": "A repository associated to a parent connection.",
21442215
"id": "Repository",
@@ -2242,6 +2313,31 @@
22422313
},
22432314
"type": "object"
22442315
},
2316+
"Security": {
2317+
"description": "Security configuration.",
2318+
"id": "Security",
2319+
"properties": {
2320+
"privilegeMode": {
2321+
"description": "Optional. Privilege mode.",
2322+
"enum": [
2323+
"PRIVILEGE_MODE_UNSPECIFIED",
2324+
"PRIVILEGED",
2325+
"UNPRIVILEGED"
2326+
],
2327+
"enumDescriptions": [
2328+
"Default to PRIVILEGED.",
2329+
"Privileged mode.",
2330+
"Unprivileged mode."
2331+
],
2332+
"type": "string"
2333+
},
2334+
"serviceAccount": {
2335+
"description": "IAM service account whose credentials will be used at runtime.",
2336+
"type": "string"
2337+
}
2338+
},
2339+
"type": "object"
2340+
},
22452341
"SecurityContext": {
22462342
"description": "Security options the container should be run with.",
22472343
"id": "SecurityContext",
@@ -2777,6 +2873,17 @@
27772873
},
27782874
"type": "object"
27792875
},
2876+
"Worker": {
2877+
"description": "Configuration for the worker.",
2878+
"id": "Worker",
2879+
"properties": {
2880+
"machineType": {
2881+
"description": "Optional. Machine type of a worker, default is \"e2-standard-2\".",
2882+
"type": "string"
2883+
}
2884+
},
2885+
"type": "object"
2886+
},
27802887
"WorkspaceBinding": {
27812888
"description": "WorkspaceBinding maps a workspace to a Volume. PipelineRef can be used to refer to a specific instance of a Pipeline.",
27822889
"id": "WorkspaceBinding",

0 commit comments

Comments
 (0)