Skip to content

Commit a68919f

Browse files
yoshi-automationsofisl
authored andcommitted
feat(run): update the API
#### run:v1 The following keys were changed: - schemas.Container.properties.readinessProbe.description - schemas.GoogleDevtoolsCloudbuildV1BuildOptions.properties.defaultLogsBucketBehavior.enum - schemas.GoogleDevtoolsCloudbuildV1BuildOptions.properties.defaultLogsBucketBehavior.enumDescriptions - schemas.ObjectMeta.properties.annotations.description #### run:v2 The following keys were added: - schemas.GoogleCloudRunV2Service.properties.invokerIamDisabled.description - schemas.GoogleCloudRunV2Service.properties.invokerIamDisabled.type - schemas.GoogleCloudRunV2ServiceScaling.properties.scalingMode.description - schemas.GoogleCloudRunV2ServiceScaling.properties.scalingMode.enum - schemas.GoogleCloudRunV2ServiceScaling.properties.scalingMode.enumDescriptions - schemas.GoogleCloudRunV2ServiceScaling.properties.scalingMode.type - schemas.GoogleCloudRunV2SubmitBuildResponse.properties.baseImageWarning.description - schemas.GoogleCloudRunV2SubmitBuildResponse.properties.baseImageWarning.type The following keys were changed: - schemas.GoogleCloudRunV2RevisionScaling.properties.maxInstanceCount.description - schemas.GoogleCloudRunV2ServiceScaling.properties.minInstanceCount.description - schemas.GoogleDevtoolsCloudbuildV1BuildOptions.properties.defaultLogsBucketBehavior.enum - schemas.GoogleDevtoolsCloudbuildV1BuildOptions.properties.defaultLogsBucketBehavior.enumDescriptions
1 parent ee326f7 commit a68919f

File tree

4 files changed

+52
-14
lines changed

4 files changed

+52
-14
lines changed

discovery/run-v1.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2614,7 +2614,7 @@
26142614
}
26152615
}
26162616
},
2617-
"revision": "20240802",
2617+
"revision": "20240927",
26182618
"rootUrl": "https://run.googleapis.com/",
26192619
"schemas": {
26202620
"Addressable": {
@@ -2934,7 +2934,7 @@
29342934
},
29352935
"readinessProbe": {
29362936
"$ref": "Probe",
2937-
"description": "Not supported by Cloud Run."
2937+
"description": "Readiness probe to be used for health checks. Not supported by Cloud Run."
29382938
},
29392939
"resources": {
29402940
"$ref": "ResourceRequirements",
@@ -3801,11 +3801,13 @@
38013801
"description": "Optional. Option to specify how default logs buckets are setup.",
38023802
"enum": [
38033803
"DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED",
3804-
"REGIONAL_USER_OWNED_BUCKET"
3804+
"REGIONAL_USER_OWNED_BUCKET",
3805+
"LEGACY_BUCKET"
38053806
],
38063807
"enumDescriptions": [
38073808
"Unspecified.",
3808-
"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."
3809+
"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.",
3810+
"Bucket is located in a Google-owned project and is not regionalized."
38093811
],
38103812
"type": "string"
38113813
},
@@ -5381,7 +5383,7 @@
53815383
"additionalProperties": {
53825384
"type": "string"
53835385
},
5384-
"description": "Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/base-images`: Service, Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/build-base-image`: Service. * `run.googleapis.com/build-environment-variables`: Service. * `run.googleapis.com/build-id`: Service. * `run.googleapis.com/build-name`: Service. * `run.googleapis.com/build-service-account`: Service. * `run.googleapis.com/build-worker-pool`: Service. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/enable-automatic-updates`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/function-target`: Service. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/image-uri`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/source-location`: Service. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution.",
5386+
"description": "Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/base-images`: Service, Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/build-base-image`: Service. * `run.googleapis.com/build-enable-automatic-updates`: Service. * `run.googleapis.com/build-environment-variables`: Service. * `run.googleapis.com/build-function-target`: Service. * `run.googleapis.com/build-id`: Service. * `run.googleapis.com/build-image-uri`: Service. * `run.googleapis.com/build-name`: Service. * `run.googleapis.com/build-service-account`: Service. * `run.googleapis.com/build-source-location`: Service. * `run.googleapis.com/build-worker-pool`: Service. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution.",
53855387
"type": "object"
53865388
},
53875389
"clusterName": {

discovery/run-v2.json

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@
15261526
}
15271527
}
15281528
},
1529-
"revision": "20240823",
1529+
"revision": "20240927",
15301530
"rootUrl": "https://run.googleapis.com/",
15311531
"schemas": {
15321532
"GoogleCloudRunV2BinaryAuthorization": {
@@ -2984,7 +2984,7 @@
29842984
"id": "GoogleCloudRunV2RevisionScaling",
29852985
"properties": {
29862986
"maxInstanceCount": {
2987-
"description": "Optional. Maximum number of serving instances that this resource should have.",
2987+
"description": "Optional. Maximum number of serving instances that this resource should have. When unspecified, the field is set to the server default value of 100. For more information see https://cloud.google.com/run/docs/configuring/max-instances",
29882988
"format": "int32",
29892989
"type": "integer"
29902990
},
@@ -3258,6 +3258,10 @@
32583258
],
32593259
"type": "string"
32603260
},
3261+
"invokerIamDisabled": {
3262+
"description": "Optional. Disables IAM permission check for run.routes.invoke for callers of this service. This setting should not be used with external ingress.",
3263+
"type": "boolean"
3264+
},
32613265
"labels": {
32623266
"additionalProperties": {
32633267
"type": "string"
@@ -3395,9 +3399,23 @@
33953399
"id": "GoogleCloudRunV2ServiceScaling",
33963400
"properties": {
33973401
"minInstanceCount": {
3398-
"description": "Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving. (BETA)",
3402+
"description": "Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving.",
33993403
"format": "int32",
34003404
"type": "integer"
3405+
},
3406+
"scalingMode": {
3407+
"description": "Optional. The scaling mode for the service.",
3408+
"enum": [
3409+
"SCALING_MODE_UNSPECIFIED",
3410+
"AUTOMATIC",
3411+
"MANUAL"
3412+
],
3413+
"enumDescriptions": [
3414+
"Unspecified.",
3415+
"Scale based on traffic between min and max instances.",
3416+
"Scale to exactly min instances and ignore max instances."
3417+
],
3418+
"type": "string"
34013419
}
34023420
},
34033421
"type": "object"
@@ -3468,6 +3486,10 @@
34683486
"description": "URI of the base builder image in Artifact Registry being used in the build. Used to opt into automatic base image updates.",
34693487
"type": "string"
34703488
},
3489+
"baseImageWarning": {
3490+
"description": "Warning message for the base image.",
3491+
"type": "string"
3492+
},
34713493
"buildOperation": {
34723494
"$ref": "GoogleLongrunningOperation",
34733495
"description": "Cloud Build operation to be polled via CloudBuild API."
@@ -4291,11 +4313,13 @@
42914313
"description": "Optional. Option to specify how default logs buckets are setup.",
42924314
"enum": [
42934315
"DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED",
4294-
"REGIONAL_USER_OWNED_BUCKET"
4316+
"REGIONAL_USER_OWNED_BUCKET",
4317+
"LEGACY_BUCKET"
42954318
],
42964319
"enumDescriptions": [
42974320
"Unspecified.",
4298-
"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."
4321+
"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.",
4322+
"Bucket is located in a Google-owned project and is not regionalized."
42994323
],
43004324
"type": "string"
43014325
},

src/apis/run/v1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export namespace run_v1 {
347347
*/
348348
ports?: Schema$ContainerPort[];
349349
/**
350-
* Not supported by Cloud Run.
350+
* Readiness probe to be used for health checks. Not supported by Cloud Run.
351351
*/
352352
readinessProbe?: Schema$Probe;
353353
/**
@@ -2111,7 +2111,7 @@ export namespace run_v1 {
21112111
*/
21122112
export interface Schema$ObjectMeta {
21132113
/**
2114-
* Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/base-images`: Service, Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/build-base-image`: Service. * `run.googleapis.com/build-environment-variables`: Service. * `run.googleapis.com/build-id`: Service. * `run.googleapis.com/build-name`: Service. * `run.googleapis.com/build-service-account`: Service. * `run.googleapis.com/build-worker-pool`: Service. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/enable-automatic-updates`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/function-target`: Service. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/image-uri`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/source-location`: Service. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution.
2114+
* Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/base-images`: Service, Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/build-base-image`: Service. * `run.googleapis.com/build-enable-automatic-updates`: Service. * `run.googleapis.com/build-environment-variables`: Service. * `run.googleapis.com/build-function-target`: Service. * `run.googleapis.com/build-id`: Service. * `run.googleapis.com/build-image-uri`: Service. * `run.googleapis.com/build-name`: Service. * `run.googleapis.com/build-service-account`: Service. * `run.googleapis.com/build-source-location`: Service. * `run.googleapis.com/build-worker-pool`: Service. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution.
21152115
*/
21162116
annotations?: {[key: string]: string} | null;
21172117
/**

src/apis/run/v2.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ export namespace run_v2 {
10651065
*/
10661066
export interface Schema$GoogleCloudRunV2RevisionScaling {
10671067
/**
1068-
* Optional. Maximum number of serving instances that this resource should have.
1068+
* Optional. Maximum number of serving instances that this resource should have. When unspecified, the field is set to the server default value of 100. For more information see https://cloud.google.com/run/docs/configuring/max-instances
10691069
*/
10701070
maxInstanceCount?: number | null;
10711071
/**
@@ -1262,6 +1262,10 @@ export namespace run_v2 {
12621262
* Optional. Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
12631263
*/
12641264
ingress?: string | null;
1265+
/**
1266+
* Optional. Disables IAM permission check for run.routes.invoke for callers of this service. This setting should not be used with external ingress.
1267+
*/
1268+
invokerIamDisabled?: boolean | null;
12651269
/**
12661270
* Optional. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Service.
12671271
*/
@@ -1349,9 +1353,13 @@ export namespace run_v2 {
13491353
*/
13501354
export interface Schema$GoogleCloudRunV2ServiceScaling {
13511355
/**
1352-
* Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving. (BETA)
1356+
* Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving.
13531357
*/
13541358
minInstanceCount?: number | null;
1359+
/**
1360+
* Optional. The scaling mode for the service.
1361+
*/
1362+
scalingMode?: string | null;
13551363
}
13561364
/**
13571365
* Location of the source in an archive file in Google Cloud Storage.
@@ -1411,6 +1419,10 @@ export namespace run_v2 {
14111419
* URI of the base builder image in Artifact Registry being used in the build. Used to opt into automatic base image updates.
14121420
*/
14131421
baseImageUri?: string | null;
1422+
/**
1423+
* Warning message for the base image.
1424+
*/
1425+
baseImageWarning?: string | null;
14141426
/**
14151427
* Cloud Build operation to be polled via CloudBuild API.
14161428
*/

0 commit comments

Comments
 (0)