Skip to content

Commit 81a66b6

Browse files
feat(run)!: update the API
BREAKING CHANGE: This release has breaking changes. #### run:v1 The following keys were added: - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.description - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.flatPath - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.httpMethod - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.id - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.parameterOrder - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.parameters.options.requestedPolicyVersion.description - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.parameters.options.requestedPolicyVersion.format - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.parameters.options.requestedPolicyVersion.location - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.parameters.options.requestedPolicyVersion.type - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.parameters.resource.description - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.parameters.resource.location - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.parameters.resource.pattern - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.parameters.resource.required - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.parameters.resource.type - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.path - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.response.$ref - resources.projects.resources.locations.resources.workerpools.methods.getIamPolicy.scopes - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.description - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.flatPath - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.httpMethod - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.id - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.parameterOrder - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.parameters.resource.description - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.parameters.resource.location - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.parameters.resource.pattern - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.parameters.resource.required - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.parameters.resource.type - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.path - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.request.$ref - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.response.$ref - resources.projects.resources.locations.resources.workerpools.methods.setIamPolicy.scopes - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.description - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.flatPath - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.httpMethod - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.id - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.parameterOrder - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.parameters.resource.description - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.parameters.resource.location - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.parameters.resource.pattern - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.parameters.resource.required - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.parameters.resource.type - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.path - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.request.$ref - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.response.$ref - resources.projects.resources.locations.resources.workerpools.methods.testIamPermissions.scopes #### run:v2 The following keys were deleted: - schemas.GoogleCloudRunV2WorkerPoolScaling.properties.maxInstanceCount.description - schemas.GoogleCloudRunV2WorkerPoolScaling.properties.maxInstanceCount.format - schemas.GoogleCloudRunV2WorkerPoolScaling.properties.maxInstanceCount.type - schemas.GoogleCloudRunV2WorkerPoolScaling.properties.minInstanceCount.description - schemas.GoogleCloudRunV2WorkerPoolScaling.properties.minInstanceCount.format - schemas.GoogleCloudRunV2WorkerPoolScaling.properties.minInstanceCount.type - schemas.GoogleCloudRunV2WorkerPoolScaling.properties.scalingMode.description - schemas.GoogleCloudRunV2WorkerPoolScaling.properties.scalingMode.enum - schemas.GoogleCloudRunV2WorkerPoolScaling.properties.scalingMode.enumDescriptions - schemas.GoogleCloudRunV2WorkerPoolScaling.properties.scalingMode.type The following keys were added: - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.description - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.flatPath - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.httpMethod - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.id - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.parameterOrder - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.parameters.options.requestedPolicyVersion.description - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.parameters.options.requestedPolicyVersion.format - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.parameters.options.requestedPolicyVersion.location - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.parameters.options.requestedPolicyVersion.type - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.parameters.resource.description - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.parameters.resource.location - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.parameters.resource.pattern - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.parameters.resource.required - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.parameters.resource.type - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.path - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.response.$ref - resources.projects.resources.locations.resources.workerPools.methods.getIamPolicy.scopes - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.description - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.flatPath - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.httpMethod - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.id - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.parameterOrder - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.parameters.resource.description - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.parameters.resource.location - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.parameters.resource.pattern - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.parameters.resource.required - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.parameters.resource.type - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.path - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.request.$ref - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.response.$ref - resources.projects.resources.locations.resources.workerPools.methods.setIamPolicy.scopes
1 parent bdb6fa0 commit 81a66b6

File tree

4 files changed

+684
-38
lines changed

4 files changed

+684
-38
lines changed

discovery/run-v1.json

Lines changed: 92 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2790,13 +2790,104 @@
27902790
]
27912791
}
27922792
}
2793+
},
2794+
"workerpools": {
2795+
"methods": {
2796+
"getIamPolicy": {
2797+
"description": "Get the IAM Access Control policy currently in effect for the given worker pool. This result does not include any inherited policies.",
2798+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workerpools/{workerpoolsId}:getIamPolicy",
2799+
"httpMethod": "GET",
2800+
"id": "run.projects.locations.workerpools.getIamPolicy",
2801+
"parameterOrder": [
2802+
"resource"
2803+
],
2804+
"parameters": {
2805+
"options.requestedPolicyVersion": {
2806+
"description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
2807+
"format": "int32",
2808+
"location": "query",
2809+
"type": "integer"
2810+
},
2811+
"resource": {
2812+
"description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
2813+
"location": "path",
2814+
"pattern": "^projects/[^/]+/locations/[^/]+/workerpools/[^/]+$",
2815+
"required": true,
2816+
"type": "string"
2817+
}
2818+
},
2819+
"path": "v1/{+resource}:getIamPolicy",
2820+
"response": {
2821+
"$ref": "Policy"
2822+
},
2823+
"scopes": [
2824+
"https://www.googleapis.com/auth/cloud-platform"
2825+
]
2826+
},
2827+
"setIamPolicy": {
2828+
"description": "Sets the IAM Access control policy for the specified worker pool. Overwrites any existing policy.",
2829+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workerpools/{workerpoolsId}:setIamPolicy",
2830+
"httpMethod": "POST",
2831+
"id": "run.projects.locations.workerpools.setIamPolicy",
2832+
"parameterOrder": [
2833+
"resource"
2834+
],
2835+
"parameters": {
2836+
"resource": {
2837+
"description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
2838+
"location": "path",
2839+
"pattern": "^projects/[^/]+/locations/[^/]+/workerpools/[^/]+$",
2840+
"required": true,
2841+
"type": "string"
2842+
}
2843+
},
2844+
"path": "v1/{+resource}:setIamPolicy",
2845+
"request": {
2846+
"$ref": "SetIamPolicyRequest"
2847+
},
2848+
"response": {
2849+
"$ref": "Policy"
2850+
},
2851+
"scopes": [
2852+
"https://www.googleapis.com/auth/cloud-platform"
2853+
]
2854+
},
2855+
"testIamPermissions": {
2856+
"description": "Returns permissions that a caller has on the specified worker pool. There are no permissions required for making this API call.",
2857+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workerpools/{workerpoolsId}:testIamPermissions",
2858+
"httpMethod": "POST",
2859+
"id": "run.projects.locations.workerpools.testIamPermissions",
2860+
"parameterOrder": [
2861+
"resource"
2862+
],
2863+
"parameters": {
2864+
"resource": {
2865+
"description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
2866+
"location": "path",
2867+
"pattern": "^projects/[^/]+/locations/[^/]+/workerpools/[^/]+$",
2868+
"required": true,
2869+
"type": "string"
2870+
}
2871+
},
2872+
"path": "v1/{+resource}:testIamPermissions",
2873+
"request": {
2874+
"$ref": "TestIamPermissionsRequest"
2875+
},
2876+
"response": {
2877+
"$ref": "TestIamPermissionsResponse"
2878+
},
2879+
"scopes": [
2880+
"https://www.googleapis.com/auth/cloud-platform"
2881+
]
2882+
}
2883+
}
27932884
}
27942885
}
27952886
}
27962887
}
27972888
}
27982889
},
2799-
"revision": "20250425",
2890+
"revision": "20250509",
28002891
"rootUrl": "https://run.googleapis.com/",
28012892
"schemas": {
28022893
"Addressable": {

discovery/run-v2.json

Lines changed: 60 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,37 @@
16311631
"https://www.googleapis.com/auth/cloud-platform"
16321632
]
16331633
},
1634+
"getIamPolicy": {
1635+
"description": "Gets the IAM Access Control policy currently in effect for the given Cloud Run WorkerPool. This result does not include any inherited policies.",
1636+
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}:getIamPolicy",
1637+
"httpMethod": "GET",
1638+
"id": "run.projects.locations.workerPools.getIamPolicy",
1639+
"parameterOrder": [
1640+
"resource"
1641+
],
1642+
"parameters": {
1643+
"options.requestedPolicyVersion": {
1644+
"description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
1645+
"format": "int32",
1646+
"location": "query",
1647+
"type": "integer"
1648+
},
1649+
"resource": {
1650+
"description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
1651+
"location": "path",
1652+
"pattern": "^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$",
1653+
"required": true,
1654+
"type": "string"
1655+
}
1656+
},
1657+
"path": "v2/{+resource}:getIamPolicy",
1658+
"response": {
1659+
"$ref": "GoogleIamV1Policy"
1660+
},
1661+
"scopes": [
1662+
"https://www.googleapis.com/auth/cloud-platform"
1663+
]
1664+
},
16341665
"list": {
16351666
"description": "Lists WorkerPools. Results are sorted by creation time, descending.",
16361667
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/workerPools",
@@ -1721,6 +1752,34 @@
17211752
"https://www.googleapis.com/auth/cloud-platform"
17221753
]
17231754
},
1755+
"setIamPolicy": {
1756+
"description": "Sets the IAM Access control policy for the specified WorkerPool. Overwrites any existing policy.",
1757+
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}:setIamPolicy",
1758+
"httpMethod": "POST",
1759+
"id": "run.projects.locations.workerPools.setIamPolicy",
1760+
"parameterOrder": [
1761+
"resource"
1762+
],
1763+
"parameters": {
1764+
"resource": {
1765+
"description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
1766+
"location": "path",
1767+
"pattern": "^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$",
1768+
"required": true,
1769+
"type": "string"
1770+
}
1771+
},
1772+
"path": "v2/{+resource}:setIamPolicy",
1773+
"request": {
1774+
"$ref": "GoogleIamV1SetIamPolicyRequest"
1775+
},
1776+
"response": {
1777+
"$ref": "GoogleIamV1Policy"
1778+
},
1779+
"scopes": [
1780+
"https://www.googleapis.com/auth/cloud-platform"
1781+
]
1782+
},
17241783
"testIamPermissions": {
17251784
"description": "Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.",
17261785
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}:testIamPermissions",
@@ -1863,7 +1922,7 @@
18631922
}
18641923
}
18651924
},
1866-
"revision": "20250425",
1925+
"revision": "20250509",
18671926
"rootUrl": "https://run.googleapis.com/",
18681927
"schemas": {
18691928
"GoogleCloudRunV2BinaryAuthorization": {
@@ -4798,30 +4857,6 @@
47984857
"description": "Optional. The total number of instances in manual scaling mode.",
47994858
"format": "int32",
48004859
"type": "integer"
4801-
},
4802-
"maxInstanceCount": {
4803-
"description": "Optional. The maximum count of instances distributed among revisions based on the specified instance split percentages.",
4804-
"format": "int32",
4805-
"type": "integer"
4806-
},
4807-
"minInstanceCount": {
4808-
"description": "Optional. The minimum count of instances distributed among revisions based on the specified instance split percentages.",
4809-
"format": "int32",
4810-
"type": "integer"
4811-
},
4812-
"scalingMode": {
4813-
"description": "Optional. The scaling mode for the worker pool.",
4814-
"enum": [
4815-
"SCALING_MODE_UNSPECIFIED",
4816-
"AUTOMATIC",
4817-
"MANUAL"
4818-
],
4819-
"enumDescriptions": [
4820-
"Unspecified.",
4821-
"Automatically scale between min and max instances.",
4822-
"Scale to exactly min instances and ignore the max instances."
4823-
],
4824-
"type": "string"
48254860
}
48264861
},
48274862
"type": "object"

0 commit comments

Comments
 (0)