Skip to content

Commit cd3eea7

Browse files
feat(run): update the API
#### run:v2 The following keys were added: - schemas.GoogleCloudRunV2ListServicesResponse.properties.unreachable.description - schemas.GoogleCloudRunV2ListServicesResponse.properties.unreachable.items.type - schemas.GoogleCloudRunV2ListServicesResponse.properties.unreachable.readOnly - schemas.GoogleCloudRunV2ListServicesResponse.properties.unreachable.type - schemas.GoogleCloudRunV2WorkerPool.properties.threatDetectionEnabled.description - schemas.GoogleCloudRunV2WorkerPool.properties.threatDetectionEnabled.readOnly - schemas.GoogleCloudRunV2WorkerPool.properties.threatDetectionEnabled.type - schemas.GoogleDevtoolsCloudbuildV1MavenArtifact.properties.deployFolder.description - schemas.GoogleDevtoolsCloudbuildV1MavenArtifact.properties.deployFolder.type The following keys were changed: - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.description - schemas.GoogleCloudRunV2Condition.properties.executionReason.enum - schemas.GoogleCloudRunV2Condition.properties.executionReason.enumDescriptions - schemas.GoogleCloudRunV2WorkerPool.properties.customAudiences.description - schemas.GoogleLongrunningListOperationsResponse.properties.unreachable.description
1 parent f492fef commit cd3eea7

File tree

2 files changed

+46
-11
lines changed

2 files changed

+46
-11
lines changed

discovery/run-v2.json

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@
13291329
"type": "string"
13301330
},
13311331
"returnPartialSuccess": {
1332-
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
1332+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
13331333
"location": "query",
13341334
"type": "boolean"
13351335
}
@@ -2177,7 +2177,7 @@
21772177
}
21782178
}
21792179
},
2180-
"revision": "20251107",
2180+
"revision": "20251202",
21812181
"rootUrl": "https://run.googleapis.com/",
21822182
"schemas": {
21832183
"GoogleCloudRunV2BinaryAuthorization": {
@@ -2363,15 +2363,17 @@
23632363
"NON_ZERO_EXIT_CODE",
23642364
"CANCELLED",
23652365
"CANCELLING",
2366-
"DELETED"
2366+
"DELETED",
2367+
"FLEX_START_PENDING"
23672368
],
23682369
"enumDescriptions": [
23692370
"Default value.",
23702371
"Internal system error getting execution status. System will retry.",
23712372
"A task reached its retry limit and the last attempt failed due to the user container exiting with a non-zero exit code.",
23722373
"The execution was cancelled by users.",
23732374
"The execution is in the process of being cancelled.",
2374-
"The execution was deleted."
2375+
"The execution was deleted.",
2376+
"A Flex priority execution is waiting for a start time."
23752377
],
23762378
"readOnly": true,
23772379
"type": "string"
@@ -3418,6 +3420,14 @@
34183420
"$ref": "GoogleCloudRunV2Service"
34193421
},
34203422
"type": "array"
3423+
},
3424+
"unreachable": {
3425+
"description": "Output only. For global requests, returns the list of regions that could not be reached within the deadline.",
3426+
"items": {
3427+
"type": "string"
3428+
},
3429+
"readOnly": true,
3430+
"type": "array"
34213431
}
34223432
},
34233433
"type": "object"
@@ -4982,7 +4992,7 @@
49824992
"type": "string"
49834993
},
49844994
"customAudiences": {
4985-
"description": "One or more custom audiences that you want this worker pool to support. Specify each custom audience as the full URL in a string. The custom audiences are encoded in the token and used to authenticate requests. For more information, see https://cloud.google.com/run/docs/configuring/custom-audiences.",
4995+
"description": "Not supported, and ignored by Cloud Run.",
49864996
"items": {
49874997
"type": "string"
49884998
},
@@ -5108,6 +5118,11 @@
51085118
"description": "Output only. The Condition of this WorkerPool, containing its readiness status, and detailed error information in case it did not reach a serving state. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.",
51095119
"readOnly": true
51105120
},
5121+
"threatDetectionEnabled": {
5122+
"description": "Output only. Indicates whether Cloud Run Threat Detection monitoring is enabled for the parent project of this worker pool.",
5123+
"readOnly": true,
5124+
"type": "boolean"
5125+
},
51115126
"uid": {
51125127
"description": "Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.",
51135128
"readOnly": true,
@@ -6195,6 +6210,10 @@
61956210
"description": "Maven `artifactId` value used when uploading the artifact to Artifact Registry.",
61966211
"type": "string"
61976212
},
6213+
"deployFolder": {
6214+
"description": "Optional. Path to a folder containing the files to upload to Artifact Registry. This can be either an absolute path, e.g. `/workspace/my-app/target/`, or a relative path from /workspace, e.g. `my-app/target/`. This field is mutually exclusive with the `path` field.",
6215+
"type": "string"
6216+
},
61986217
"groupId": {
61996218
"description": "Maven `groupId` value used when uploading the artifact to Artifact Registry.",
62006219
"type": "string"
@@ -6867,7 +6886,7 @@
68676886
"type": "array"
68686887
},
68696888
"unreachable": {
6870-
"description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.",
6889+
"description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.",
68716890
"items": {
68726891
"type": "string"
68736892
},

src/apis/run/v2.ts

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,10 @@ export namespace run_v2 {
923923
* The resulting list of Services.
924924
*/
925925
services?: Schema$GoogleCloudRunV2Service[];
926+
/**
927+
* Output only. For global requests, returns the list of regions that could not be reached within the deadline.
928+
*/
929+
unreachable?: string[] | null;
926930
}
927931
/**
928932
* Response message containing a list of Tasks.
@@ -2015,7 +2019,7 @@ export namespace run_v2 {
20152019
*/
20162020
creator?: string | null;
20172021
/**
2018-
* One or more custom audiences that you want this worker pool to support. Specify each custom audience as the full URL in a string. The custom audiences are encoded in the token and used to authenticate requests. For more information, see https://cloud.google.com/run/docs/configuring/custom-audiences.
2022+
* Not supported, and ignored by Cloud Run.
20192023
*/
20202024
customAudiences?: string[] | null;
20212025
/**
@@ -2094,6 +2098,10 @@ export namespace run_v2 {
20942098
* Output only. The Condition of this WorkerPool, containing its readiness status, and detailed error information in case it did not reach a serving state. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.
20952099
*/
20962100
terminalCondition?: Schema$GoogleCloudRunV2Condition;
2101+
/**
2102+
* Output only. Indicates whether Cloud Run Threat Detection monitoring is enabled for the parent project of this worker pool.
2103+
*/
2104+
threatDetectionEnabled?: boolean | null;
20972105
/**
20982106
* Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
20992107
*/
@@ -2780,6 +2788,10 @@ export namespace run_v2 {
27802788
* Maven `artifactId` value used when uploading the artifact to Artifact Registry.
27812789
*/
27822790
artifactId?: string | null;
2791+
/**
2792+
* Optional. Path to a folder containing the files to upload to Artifact Registry. This can be either an absolute path, e.g. `/workspace/my-app/target/`, or a relative path from /workspace, e.g. `my-app/target/`. This field is mutually exclusive with the `path` field.
2793+
*/
2794+
deployFolder?: string | null;
27832795
/**
27842796
* Maven `groupId` value used when uploading the artifact to Artifact Registry.
27852797
*/
@@ -3282,7 +3294,7 @@ export namespace run_v2 {
32823294
*/
32833295
operations?: Schema$GoogleLongrunningOperation[];
32843296
/**
3285-
* Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.
3297+
* Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.
32863298
*/
32873299
unreachable?: string[] | null;
32883300
}
@@ -7278,7 +7290,7 @@ export namespace run_v2 {
72787290
* pageSize: 'placeholder-value',
72797291
* // Token identifying which result to start with, which is returned by a previous list call.
72807292
* pageToken: 'placeholder-value',
7281-
* // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
7293+
* // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
72827294
* returnPartialSuccess: 'placeholder-value',
72837295
* });
72847296
* console.log(res.data);
@@ -7577,7 +7589,7 @@ export namespace run_v2 {
75777589
*/
75787590
pageToken?: string;
75797591
/**
7580-
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
7592+
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
75817593
*/
75827594
returnPartialSuccess?: boolean;
75837595
}
@@ -8305,7 +8317,8 @@ export namespace run_v2 {
83058317
* // Example response
83068318
* // {
83078319
* // "nextPageToken": "my_nextPageToken",
8308-
* // "services": []
8320+
* // "services": [],
8321+
* // "unreachable": []
83098322
* // }
83108323
* }
83118324
*
@@ -9787,6 +9800,7 @@ export namespace run_v2 {
97879800
* // "scaling": {},
97889801
* // "template": {},
97899802
* // "terminalCondition": {},
9803+
* // "threatDetectionEnabled": false,
97909804
* // "uid": "my_uid",
97919805
* // "updateTime": "my_updateTime"
97929806
* // }
@@ -10114,6 +10128,7 @@ export namespace run_v2 {
1011410128
* // "scaling": {},
1011510129
* // "template": {},
1011610130
* // "terminalCondition": {},
10131+
* // "threatDetectionEnabled": false,
1011710132
* // "uid": "my_uid",
1011810133
* // "updateTime": "my_updateTime"
1011910134
* // }
@@ -10588,6 +10603,7 @@ export namespace run_v2 {
1058810603
* // "scaling": {},
1058910604
* // "template": {},
1059010605
* // "terminalCondition": {},
10606+
* // "threatDetectionEnabled": false,
1059110607
* // "uid": "my_uid",
1059210608
* // "updateTime": "my_updateTime"
1059310609
* // }

0 commit comments

Comments
 (0)