Skip to content

Commit bca91cc

Browse files
feat(run): update the API
#### run:v1 The following keys were changed: - schemas.InstanceSplit.properties.latestRevision.description - schemas.InstanceSplit.properties.percent.description - schemas.WorkerPoolStatus.properties.instanceSplits.description #### run:v2 The following keys were added: - schemas.GoogleCloudRunV2SubmitBuildRequest.properties.machineType.description - schemas.GoogleCloudRunV2SubmitBuildRequest.properties.machineType.type The following keys were changed: - schemas.GoogleCloudRunV2WorkerPool.properties.latestReadyRevision.description - schemas.GoogleCloudRunV2WorkerPool.properties.observedGeneration.description - schemas.GoogleCloudRunV2WorkerPool.properties.reconciling.description
1 parent 23af8a9 commit bca91cc

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

discovery/run-v1.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2887,7 +2887,7 @@
28872887
}
28882888
}
28892889
},
2890-
"revision": "20250704",
2890+
"revision": "20250801",
28912891
"rootUrl": "https://run.googleapis.com/",
28922892
"schemas": {
28932893
"Addressable": {
@@ -5317,11 +5317,11 @@
53175317
"id": "InstanceSplit",
53185318
"properties": {
53195319
"latestRevision": {
5320-
"description": "Uses the \"status.latestReadyRevisionName\" to determine the traffic target. When it changes, traffic will automatically migrate from the prior \"latest ready\" revision to the new one.",
5320+
"description": "Uses the \"status.latestReadyRevisionName\" to determine the instance split target. When it changes, workloads will automatically migrate from the prior \"latest ready\" revision to the new one.",
53215321
"type": "boolean"
53225322
},
53235323
"percent": {
5324-
"description": "Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.",
5324+
"description": "Optional. Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.",
53255325
"format": "int32",
53265326
"type": "integer"
53275327
},
@@ -6942,7 +6942,7 @@
69426942
"type": "array"
69436943
},
69446944
"instanceSplits": {
6945-
"description": "Holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed.",
6945+
"description": "Holds the configured workload distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed.",
69466946
"items": {
69476947
"$ref": "InstanceSplit"
69486948
},

discovery/run-v2.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@
19221922
}
19231923
}
19241924
},
1925-
"revision": "20250718",
1925+
"revision": "20250801",
19261926
"rootUrl": "https://run.googleapis.com/",
19271927
"schemas": {
19281928
"GoogleCloudRunV2BinaryAuthorization": {
@@ -4097,6 +4097,10 @@
40974097
"description": "Required. Artifact Registry URI to store the built image.",
40984098
"type": "string"
40994099
},
4100+
"machineType": {
4101+
"description": "Optional. The machine type from default pool to use for the build. If left blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8 is supported. If worker_pool is set, this field will be ignored.",
4102+
"type": "string"
4103+
},
41004104
"serviceAccount": {
41014105
"description": "Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.",
41024106
"type": "string"
@@ -4721,7 +4725,7 @@
47214725
"type": "string"
47224726
},
47234727
"latestReadyRevision": {
4724-
"description": "Output only. Name of the latest revision that is serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.",
4728+
"description": "Output only. Name of the latest revision that is serving workloads. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.",
47254729
"readOnly": true,
47264730
"type": "string"
47274731
},
@@ -4754,13 +4758,13 @@
47544758
"type": "string"
47554759
},
47564760
"observedGeneration": {
4757-
"description": "Output only. The generation of this WorkerPool currently serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a `string` instead of an `integer`.",
4761+
"description": "Output only. The generation of this WorkerPool currently serving workloads. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a `string` instead of an `integer`.",
47584762
"format": "int64",
47594763
"readOnly": true,
47604764
"type": "string"
47614765
},
47624766
"reconciling": {
4763-
"description": "Output only. Returns true if the WorkerPool is currently being acted upon by the system to bring it into the desired state. When a new WorkerPool is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the WorkerPool to the desired serving state. This process is called reconciliation. While reconciliation is in process, `observed_generation`, `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the serving state matches the WorkerPool, or there was an error, and reconciliation failed. This state can be found in `terminal_condition.state`. If reconciliation succeeded, the following fields will match: `traffic` and `traffic_statuses`, `observed_generation` and `generation`, `latest_ready_revision` and `latest_created_revision`. If reconciliation failed, `traffic_statuses`, `observed_generation`, and `latest_ready_revision` will have the state of the last serving revision, or empty for newly created WorkerPools. Additional information on the failure can be found in `terminal_condition` and `conditions`.",
4767+
"description": "Output only. Returns true if the WorkerPool is currently being acted upon by the system to bring it into the desired state. When a new WorkerPool is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the WorkerPool to the desired serving state. This process is called reconciliation. While reconciliation is in process, `observed_generation`, `latest_ready_revison`, `instance_split_statuses`, and `uri` will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the serving state matches the WorkerPool, or there was an error, and reconciliation failed. This state can be found in `terminal_condition.state`. If reconciliation succeeded, the following fields will match: `instance_splits` and `instance_split_statuses`, `observed_generation` and `generation`, `latest_ready_revision` and `latest_created_revision`. If reconciliation failed, `instance_split_statuses`, `observed_generation`, and `latest_ready_revision` will have the state of the last serving revision, or empty for newly created WorkerPools. Additional information on the failure can be found in `terminal_condition` and `conditions`.",
47644768
"readOnly": true,
47654769
"type": "boolean"
47664770
},

src/apis/run/v1.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,11 +1854,11 @@ export namespace run_v1 {
18541854
*/
18551855
export interface Schema$InstanceSplit {
18561856
/**
1857-
* Uses the "status.latestReadyRevisionName" to determine the traffic target. When it changes, traffic will automatically migrate from the prior "latest ready" revision to the new one.
1857+
* Uses the "status.latestReadyRevisionName" to determine the instance split target. When it changes, workloads will automatically migrate from the prior "latest ready" revision to the new one.
18581858
*/
18591859
latestRevision?: boolean | null;
18601860
/**
1861-
* Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
1861+
* Optional. Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
18621862
*/
18631863
percent?: number | null;
18641864
/**
@@ -3139,7 +3139,7 @@ export namespace run_v1 {
31393139
*/
31403140
conditions?: Schema$GoogleCloudRunV1Condition[];
31413141
/**
3142-
* Holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed.
3142+
* Holds the configured workload distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed.
31433143
*/
31443144
instanceSplits?: Schema$InstanceSplit[];
31453145
/**

src/apis/run/v2.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,10 @@ export namespace run_v2 {
15721572
* Required. Artifact Registry URI to store the built image.
15731573
*/
15741574
imageUri?: string | null;
1575+
/**
1576+
* Optional. The machine type from default pool to use for the build. If left blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8 is supported. If worker_pool is set, this field will be ignored.
1577+
*/
1578+
machineType?: string | null;
15751579
/**
15761580
* Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.
15771581
*/
@@ -2013,7 +2017,7 @@ export namespace run_v2 {
20132017
*/
20142018
latestCreatedRevision?: string | null;
20152019
/**
2016-
* Output only. Name of the latest revision that is serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.
2020+
* Output only. Name of the latest revision that is serving workloads. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.
20172021
*/
20182022
latestReadyRevision?: string | null;
20192023
/**
@@ -2025,11 +2029,11 @@ export namespace run_v2 {
20252029
*/
20262030
name?: string | null;
20272031
/**
2028-
* Output only. The generation of this WorkerPool currently serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a `string` instead of an `integer`.
2032+
* Output only. The generation of this WorkerPool currently serving workloads. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a `string` instead of an `integer`.
20292033
*/
20302034
observedGeneration?: string | null;
20312035
/**
2032-
* Output only. Returns true if the WorkerPool is currently being acted upon by the system to bring it into the desired state. When a new WorkerPool is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the WorkerPool to the desired serving state. This process is called reconciliation. While reconciliation is in process, `observed_generation`, `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the serving state matches the WorkerPool, or there was an error, and reconciliation failed. This state can be found in `terminal_condition.state`. If reconciliation succeeded, the following fields will match: `traffic` and `traffic_statuses`, `observed_generation` and `generation`, `latest_ready_revision` and `latest_created_revision`. If reconciliation failed, `traffic_statuses`, `observed_generation`, and `latest_ready_revision` will have the state of the last serving revision, or empty for newly created WorkerPools. Additional information on the failure can be found in `terminal_condition` and `conditions`.
2036+
* Output only. Returns true if the WorkerPool is currently being acted upon by the system to bring it into the desired state. When a new WorkerPool is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the WorkerPool to the desired serving state. This process is called reconciliation. While reconciliation is in process, `observed_generation`, `latest_ready_revison`, `instance_split_statuses`, and `uri` will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the serving state matches the WorkerPool, or there was an error, and reconciliation failed. This state can be found in `terminal_condition.state`. If reconciliation succeeded, the following fields will match: `instance_splits` and `instance_split_statuses`, `observed_generation` and `generation`, `latest_ready_revision` and `latest_created_revision`. If reconciliation failed, `instance_split_statuses`, `observed_generation`, and `latest_ready_revision` will have the state of the last serving revision, or empty for newly created WorkerPools. Additional information on the failure can be found in `terminal_condition` and `conditions`.
20332037
*/
20342038
reconciling?: boolean | null;
20352039
/**
@@ -4011,6 +4015,7 @@ export namespace run_v2 {
40114015
* // "buildpackBuild": {},
40124016
* // "dockerBuild": {},
40134017
* // "imageUri": "my_imageUri",
4018+
* // "machineType": "my_machineType",
40144019
* // "serviceAccount": "my_serviceAccount",
40154020
* // "storageSource": {},
40164021
* // "tags": [],

0 commit comments

Comments
 (0)