Skip to content

Commit 3a3b420

Browse files
feat(cloudbuild): update the api
#### cloudbuild:v1 The following keys were added: - resources.projects.resources.locations.resources.workerPools.methods.create (Total Keys: 16) - resources.projects.resources.locations.resources.workerPools.methods.delete (Total Keys: 15) - resources.projects.resources.locations.resources.workerPools.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.workerPools.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.workerPools.methods.patch (Total Keys: 17) - schemas.BuildOptions.properties.pool.$ref (Total Keys: 1) - schemas.BuildTrigger.properties.autodetect.type (Total Keys: 1) - schemas.CreateWorkerPoolOperationMetadata (Total Keys: 7) - schemas.DeleteWorkerPoolOperationMetadata (Total Keys: 7) - schemas.ListWorkerPoolsResponse (Total Keys: 5) - schemas.NetworkConfig (Total Keys: 4) - schemas.PoolOption (Total Keys: 3) - schemas.PrivatePoolV1Config (Total Keys: 4) - schemas.UpdateWorkerPoolOperationMetadata (Total Keys: 7) - schemas.WorkerConfig (Total Keys: 5) - schemas.WorkerPool (Total Keys: 21) #### cloudbuild:v1alpha1 The following keys were added: - schemas.BuildOptions.properties.pool.$ref (Total Keys: 1) - schemas.CreateWorkerPoolOperationMetadata (Total Keys: 7) - schemas.DeleteWorkerPoolOperationMetadata (Total Keys: 7) - schemas.PoolOption (Total Keys: 3) - schemas.UpdateWorkerPoolOperationMetadata (Total Keys: 7) #### cloudbuild:v1alpha2 The following keys were added: - schemas.BuildOptions.properties.pool.$ref (Total Keys: 1) - schemas.CreateWorkerPoolOperationMetadata (Total Keys: 7) - schemas.DeleteWorkerPoolOperationMetadata (Total Keys: 7) - schemas.PoolOption (Total Keys: 3) - schemas.UpdateWorkerPoolOperationMetadata (Total Keys: 7) #### cloudbuild:v1beta1 The following keys were added: - schemas.BuildOptions.properties.pool.$ref (Total Keys: 1) - schemas.CreateWorkerPoolOperationMetadata (Total Keys: 7) - schemas.DeleteWorkerPoolOperationMetadata (Total Keys: 7) - schemas.PoolOption (Total Keys: 3) - schemas.UpdateWorkerPoolOperationMetadata (Total Keys: 7)
1 parent 2e31dd0 commit 3a3b420

10 files changed

+1168
-76
lines changed

docs/dyn/cloudbuild_v1.projects.builds.html

Lines changed: 24 additions & 12 deletions
Large diffs are not rendered by default.

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

Lines changed: 24 additions & 12 deletions
Large diffs are not rendered by default.

docs/dyn/cloudbuild_v1.projects.locations.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ <h2>Instance Methods</h2>
8989
</p>
9090
<p class="firstline">Returns the triggers Resource.</p>
9191

92+
<p class="toc_element">
93+
<code><a href="cloudbuild_v1.projects.locations.workerPools.html">workerPools()</a></code>
94+
</p>
95+
<p class="firstline">Returns the workerPools Resource.</p>
96+
9297
<p class="toc_element">
9398
<code><a href="#close">close()</a></code></p>
9499
<p class="firstline">Close httplib2 connections.</p>

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

Lines changed: 42 additions & 18 deletions
Large diffs are not rendered by default.

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

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

docs/dyn/cloudbuild_v1.projects.triggers.html

Lines changed: 42 additions & 18 deletions
Large diffs are not rendered by default.

googleapiclient/discovery_cache/documents/cloudbuild.v1.json

Lines changed: 416 additions & 4 deletions
Large diffs are not rendered by default.

googleapiclient/discovery_cache/documents/cloudbuild.v1alpha1.json

Lines changed: 82 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
}
307307
}
308308
},
309-
"revision": "20210613",
309+
"revision": "20210701",
310310
"rootUrl": "https://cloudbuild.googleapis.com/",
311311
"schemas": {
312312
"ArtifactObjects": {
@@ -628,6 +628,10 @@
628628
],
629629
"type": "string"
630630
},
631+
"pool": {
632+
"$ref": "PoolOption",
633+
"description": "Optional. Specification for execution on a `WorkerPool`. See [running builds in a custom worker pool](https://cloud.google.com/build/docs/custom-workers/run-builds-in-custom-worker-pool) for more information."
634+
},
631635
"requestedVerifyOption": {
632636
"description": "Requested verifiability options.",
633637
"enum": [
@@ -684,7 +688,7 @@
684688
"type": "array"
685689
},
686690
"workerPool": {
687-
"description": "Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is in beta and is available only to restricted users.",
691+
"description": "This field deprecated; please use `pool.name` instead.",
688692
"type": "string"
689693
}
690694
},
@@ -816,6 +820,48 @@
816820
"properties": {},
817821
"type": "object"
818822
},
823+
"CreateWorkerPoolOperationMetadata": {
824+
"description": "Metadata for the `CreateWorkerPool` operation.",
825+
"id": "CreateWorkerPoolOperationMetadata",
826+
"properties": {
827+
"completeTime": {
828+
"description": "Time the operation was completed.",
829+
"format": "google-datetime",
830+
"type": "string"
831+
},
832+
"createTime": {
833+
"description": "Time the operation was created.",
834+
"format": "google-datetime",
835+
"type": "string"
836+
},
837+
"workerPool": {
838+
"description": "The resource name of the `WorkerPool` to create. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`.",
839+
"type": "string"
840+
}
841+
},
842+
"type": "object"
843+
},
844+
"DeleteWorkerPoolOperationMetadata": {
845+
"description": "Metadata for the `DeleteWorkerPool` operation.",
846+
"id": "DeleteWorkerPoolOperationMetadata",
847+
"properties": {
848+
"completeTime": {
849+
"description": "Time the operation was completed.",
850+
"format": "google-datetime",
851+
"type": "string"
852+
},
853+
"createTime": {
854+
"description": "Time the operation was created.",
855+
"format": "google-datetime",
856+
"type": "string"
857+
},
858+
"workerPool": {
859+
"description": "The resource name of the `WorkerPool` being deleted. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`.",
860+
"type": "string"
861+
}
862+
},
863+
"type": "object"
864+
},
819865
"Empty": {
820866
"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); } The JSON representation for `Empty` is empty JSON object `{}`.",
821867
"id": "Empty",
@@ -1073,6 +1119,17 @@
10731119
},
10741120
"type": "object"
10751121
},
1122+
"PoolOption": {
1123+
"description": "Details about how a build should be executed on a `WorkerPool`. See [running builds in a custom worker pool](https://cloud.google.com/build/docs/custom-workers/run-builds-in-custom-worker-pool) for more information.",
1124+
"id": "PoolOption",
1125+
"properties": {
1126+
"name": {
1127+
"description": "The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}",
1128+
"type": "string"
1129+
}
1130+
},
1131+
"type": "object"
1132+
},
10761133
"RepoSource": {
10771134
"description": "Location of the source in a Google Cloud Source Repository.",
10781135
"id": "RepoSource",
@@ -1271,7 +1328,7 @@
12711328
},
12721329
"storageSourceManifest": {
12731330
"$ref": "StorageSourceManifest",
1274-
"description": "If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview."
1331+
"description": "If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher)."
12751332
}
12761333
},
12771334
"type": "object"
@@ -1351,7 +1408,7 @@
13511408
"type": "object"
13521409
},
13531410
"StorageSourceManifest": {
1354-
"description": "Location of the source manifest in Google Cloud Storage. This feature is in Preview.",
1411+
"description": "Location of the source manifest in Google Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).",
13551412
"id": "StorageSourceManifest",
13561413
"properties": {
13571414
"bucket": {
@@ -1387,6 +1444,27 @@
13871444
},
13881445
"type": "object"
13891446
},
1447+
"UpdateWorkerPoolOperationMetadata": {
1448+
"description": "Metadata for the `UpdateWorkerPool` operation.",
1449+
"id": "UpdateWorkerPoolOperationMetadata",
1450+
"properties": {
1451+
"completeTime": {
1452+
"description": "Time the operation was completed.",
1453+
"format": "google-datetime",
1454+
"type": "string"
1455+
},
1456+
"createTime": {
1457+
"description": "Time the operation was created.",
1458+
"format": "google-datetime",
1459+
"type": "string"
1460+
},
1461+
"workerPool": {
1462+
"description": "The resource name of the `WorkerPool` being updated. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`.",
1463+
"type": "string"
1464+
}
1465+
},
1466+
"type": "object"
1467+
},
13901468
"Volume": {
13911469
"description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.",
13921470
"id": "Volume",

googleapiclient/discovery_cache/documents/cloudbuild.v1alpha2.json

Lines changed: 82 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
}
318318
}
319319
},
320-
"revision": "20210613",
320+
"revision": "20210701",
321321
"rootUrl": "https://cloudbuild.googleapis.com/",
322322
"schemas": {
323323
"ArtifactObjects": {
@@ -639,6 +639,10 @@
639639
],
640640
"type": "string"
641641
},
642+
"pool": {
643+
"$ref": "PoolOption",
644+
"description": "Optional. Specification for execution on a `WorkerPool`. See [running builds in a custom worker pool](https://cloud.google.com/build/docs/custom-workers/run-builds-in-custom-worker-pool) for more information."
645+
},
642646
"requestedVerifyOption": {
643647
"description": "Requested verifiability options.",
644648
"enum": [
@@ -695,7 +699,7 @@
695699
"type": "array"
696700
},
697701
"workerPool": {
698-
"description": "Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is in beta and is available only to restricted users.",
702+
"description": "This field deprecated; please use `pool.name` instead.",
699703
"type": "string"
700704
}
701705
},
@@ -827,6 +831,48 @@
827831
"properties": {},
828832
"type": "object"
829833
},
834+
"CreateWorkerPoolOperationMetadata": {
835+
"description": "Metadata for the `CreateWorkerPool` operation.",
836+
"id": "CreateWorkerPoolOperationMetadata",
837+
"properties": {
838+
"completeTime": {
839+
"description": "Time the operation was completed.",
840+
"format": "google-datetime",
841+
"type": "string"
842+
},
843+
"createTime": {
844+
"description": "Time the operation was created.",
845+
"format": "google-datetime",
846+
"type": "string"
847+
},
848+
"workerPool": {
849+
"description": "The resource name of the `WorkerPool` to create. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`.",
850+
"type": "string"
851+
}
852+
},
853+
"type": "object"
854+
},
855+
"DeleteWorkerPoolOperationMetadata": {
856+
"description": "Metadata for the `DeleteWorkerPool` operation.",
857+
"id": "DeleteWorkerPoolOperationMetadata",
858+
"properties": {
859+
"completeTime": {
860+
"description": "Time the operation was completed.",
861+
"format": "google-datetime",
862+
"type": "string"
863+
},
864+
"createTime": {
865+
"description": "Time the operation was created.",
866+
"format": "google-datetime",
867+
"type": "string"
868+
},
869+
"workerPool": {
870+
"description": "The resource name of the `WorkerPool` being deleted. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`.",
871+
"type": "string"
872+
}
873+
},
874+
"type": "object"
875+
},
830876
"Empty": {
831877
"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); } The JSON representation for `Empty` is empty JSON object `{}`.",
832878
"id": "Empty",
@@ -1076,6 +1122,17 @@
10761122
},
10771123
"type": "object"
10781124
},
1125+
"PoolOption": {
1126+
"description": "Details about how a build should be executed on a `WorkerPool`. See [running builds in a custom worker pool](https://cloud.google.com/build/docs/custom-workers/run-builds-in-custom-worker-pool) for more information.",
1127+
"id": "PoolOption",
1128+
"properties": {
1129+
"name": {
1130+
"description": "The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}",
1131+
"type": "string"
1132+
}
1133+
},
1134+
"type": "object"
1135+
},
10791136
"RepoSource": {
10801137
"description": "Location of the source in a Google Cloud Source Repository.",
10811138
"id": "RepoSource",
@@ -1274,7 +1331,7 @@
12741331
},
12751332
"storageSourceManifest": {
12761333
"$ref": "StorageSourceManifest",
1277-
"description": "If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview."
1334+
"description": "If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher)."
12781335
}
12791336
},
12801337
"type": "object"
@@ -1354,7 +1411,7 @@
13541411
"type": "object"
13551412
},
13561413
"StorageSourceManifest": {
1357-
"description": "Location of the source manifest in Google Cloud Storage. This feature is in Preview.",
1414+
"description": "Location of the source manifest in Google Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).",
13581415
"id": "StorageSourceManifest",
13591416
"properties": {
13601417
"bucket": {
@@ -1390,6 +1447,27 @@
13901447
},
13911448
"type": "object"
13921449
},
1450+
"UpdateWorkerPoolOperationMetadata": {
1451+
"description": "Metadata for the `UpdateWorkerPool` operation.",
1452+
"id": "UpdateWorkerPoolOperationMetadata",
1453+
"properties": {
1454+
"completeTime": {
1455+
"description": "Time the operation was completed.",
1456+
"format": "google-datetime",
1457+
"type": "string"
1458+
},
1459+
"createTime": {
1460+
"description": "Time the operation was created.",
1461+
"format": "google-datetime",
1462+
"type": "string"
1463+
},
1464+
"workerPool": {
1465+
"description": "The resource name of the `WorkerPool` being updated. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`.",
1466+
"type": "string"
1467+
}
1468+
},
1469+
"type": "object"
1470+
},
13931471
"Volume": {
13941472
"description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.",
13951473
"id": "Volume",

0 commit comments

Comments
 (0)