Skip to content

Commit 19e13f8

Browse files
yoshi-automationquirogas
authored andcommitted
feat(cloudresourcemanager)!: update the API
BREAKING CHANGE: This release has breaking changes. #### cloudresourcemanager:v2beta1 The following keys were changed: - schemas.FolderOperationError.properties.errorMessageId.enum - schemas.FolderOperationError.properties.errorMessageId.enumDescriptions #### cloudresourcemanager:v1 The following keys were changed: - schemas.FolderOperationError.properties.errorMessageId.enum - schemas.FolderOperationError.properties.errorMessageId.enumDescriptions #### cloudresourcemanager:v2 The following keys were changed: - schemas.FolderOperationError.properties.errorMessageId.enum - schemas.FolderOperationError.properties.errorMessageId.enumDescriptions #### cloudresourcemanager:v3 The following keys were deleted: - resources.locations.resources.tagBindingCollections.methods.update.description - resources.locations.resources.tagBindingCollections.methods.update.flatPath - resources.locations.resources.tagBindingCollections.methods.update.httpMethod - resources.locations.resources.tagBindingCollections.methods.update.id - resources.locations.resources.tagBindingCollections.methods.update.parameterOrder - resources.locations.resources.tagBindingCollections.methods.update.parameters.name.description - resources.locations.resources.tagBindingCollections.methods.update.parameters.name.location - resources.locations.resources.tagBindingCollections.methods.update.parameters.name.pattern - resources.locations.resources.tagBindingCollections.methods.update.parameters.name.required - resources.locations.resources.tagBindingCollections.methods.update.parameters.name.type - resources.locations.resources.tagBindingCollections.methods.update.path - resources.locations.resources.tagBindingCollections.methods.update.request.$ref - resources.locations.resources.tagBindingCollections.methods.update.response.$ref - resources.locations.resources.tagBindingCollections.methods.update.scopes The following keys were added: - resources.locations.resources.tagBindingCollections.methods.patch.description - resources.locations.resources.tagBindingCollections.methods.patch.flatPath - resources.locations.resources.tagBindingCollections.methods.patch.httpMethod - resources.locations.resources.tagBindingCollections.methods.patch.id - resources.locations.resources.tagBindingCollections.methods.patch.parameterOrder - resources.locations.resources.tagBindingCollections.methods.patch.parameters.name.description - resources.locations.resources.tagBindingCollections.methods.patch.parameters.name.location - resources.locations.resources.tagBindingCollections.methods.patch.parameters.name.pattern - resources.locations.resources.tagBindingCollections.methods.patch.parameters.name.required - resources.locations.resources.tagBindingCollections.methods.patch.parameters.name.type - resources.locations.resources.tagBindingCollections.methods.patch.parameters.updateMask.description - resources.locations.resources.tagBindingCollections.methods.patch.parameters.updateMask.format - resources.locations.resources.tagBindingCollections.methods.patch.parameters.updateMask.location - resources.locations.resources.tagBindingCollections.methods.patch.parameters.updateMask.type - resources.locations.resources.tagBindingCollections.methods.patch.path - resources.locations.resources.tagBindingCollections.methods.patch.request.$ref - resources.locations.resources.tagBindingCollections.methods.patch.response.$ref - resources.locations.resources.tagBindingCollections.methods.patch.scopes - schemas.TagKey.properties.allowedValuesRegex.description - schemas.TagKey.properties.allowedValuesRegex.type The following keys were changed: - schemas.FolderOperationError.properties.errorMessageId.enum - schemas.FolderOperationError.properties.errorMessageId.enumDescriptions - schemas.ListTagValuesResponse.properties.nextPageToken.description
1 parent b52c547 commit 19e13f8

File tree

5 files changed

+82
-52
lines changed

5 files changed

+82
-52
lines changed

discovery/cloudresourcemanager-v1.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@
11711171
}
11721172
}
11731173
},
1174-
"revision": "20250606",
1174+
"revision": "20251103",
11751175
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
11761176
"schemas": {
11771177
"Ancestor": {
@@ -1567,7 +1567,8 @@
15671567
"CYCLE_INTRODUCED_VIOLATION",
15681568
"FOLDER_BEING_MOVED_VIOLATION",
15691569
"FOLDER_TO_DELETE_NON_EMPTY_VIOLATION",
1570-
"DELETED_FOLDER_HEIGHT_VIOLATION"
1570+
"DELETED_FOLDER_HEIGHT_VIOLATION",
1571+
"FOLDER_TO_DELETE_CONFIGURED_CAPABILITY_VIOLATION"
15711572
],
15721573
"enumDescriptions": [
15731574
"The error type was unrecognized or unspecified.",
@@ -1579,7 +1580,8 @@
15791580
"The attempted action would introduce cycle in resource path.",
15801581
"The attempted action would move a folder that is already being moved.",
15811582
"The folder the caller is trying to delete contains active resources.",
1582-
"The attempted action would violate the max deleted folder depth constraint."
1583+
"The attempted action would violate the max deleted folder depth constraint.",
1584+
"The folder being deleted has a configured capability."
15831585
],
15841586
"type": "string"
15851587
}

discovery/cloudresourcemanager-v2.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450
}
451451
}
452452
},
453-
"revision": "20250417",
453+
"revision": "20251103",
454454
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
455455
"schemas": {
456456
"AuditConfig": {
@@ -811,7 +811,8 @@
811811
"CYCLE_INTRODUCED_VIOLATION",
812812
"FOLDER_BEING_MOVED_VIOLATION",
813813
"FOLDER_TO_DELETE_NON_EMPTY_VIOLATION",
814-
"DELETED_FOLDER_HEIGHT_VIOLATION"
814+
"DELETED_FOLDER_HEIGHT_VIOLATION",
815+
"FOLDER_TO_DELETE_CONFIGURED_CAPABILITY_VIOLATION"
815816
],
816817
"enumDescriptions": [
817818
"The error type was unrecognized or unspecified.",
@@ -823,7 +824,8 @@
823824
"The attempted action would introduce cycle in resource path.",
824825
"The attempted action would move a folder that is already being moved.",
825826
"The folder the caller is trying to delete contains active resources.",
826-
"The attempted action would violate the max deleted folder depth constraint."
827+
"The attempted action would violate the max deleted folder depth constraint.",
828+
"The folder being deleted has a configured capability."
827829
],
828830
"type": "string"
829831
}

discovery/cloudresourcemanager-v2beta1.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450
}
451451
}
452452
},
453-
"revision": "20250417",
453+
"revision": "20251103",
454454
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
455455
"schemas": {
456456
"AuditConfig": {
@@ -811,7 +811,8 @@
811811
"CYCLE_INTRODUCED_VIOLATION",
812812
"FOLDER_BEING_MOVED_VIOLATION",
813813
"FOLDER_TO_DELETE_NON_EMPTY_VIOLATION",
814-
"DELETED_FOLDER_HEIGHT_VIOLATION"
814+
"DELETED_FOLDER_HEIGHT_VIOLATION",
815+
"FOLDER_TO_DELETE_CONFIGURED_CAPABILITY_VIOLATION"
815816
],
816817
"enumDescriptions": [
817818
"The error type was unrecognized or unspecified.",
@@ -823,7 +824,8 @@
823824
"The attempted action would introduce cycle in resource path.",
824825
"The attempted action would move a folder that is already being moved.",
825826
"The folder the caller is trying to delete contains active resources.",
826-
"The attempted action would violate the max deleted folder depth constraint."
827+
"The attempted action would violate the max deleted folder depth constraint.",
828+
"The folder being deleted has a configured capability."
827829
],
828830
"type": "string"
829831
}

discovery/cloudresourcemanager-v3.json

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,11 @@
697697
"https://www.googleapis.com/auth/cloud-platform.read-only"
698698
]
699699
},
700-
"update": {
701-
"description": "Updates tag bindings directly attached to a GCP resource.",
700+
"patch": {
701+
"description": "Updates tag bindings directly attached to a GCP resource. Update_mask can be kept empty or \"*\".",
702702
"flatPath": "v3/locations/{locationsId}/tagBindingCollections/{tagBindingCollectionsId}",
703-
"httpMethod": "PUT",
704-
"id": "cloudresourcemanager.locations.tagBindingCollections.update",
703+
"httpMethod": "PATCH",
704+
"id": "cloudresourcemanager.locations.tagBindingCollections.patch",
705705
"parameterOrder": [
706706
"name"
707707
],
@@ -712,6 +712,12 @@
712712
"pattern": "^locations/[^/]+/tagBindingCollections/[^/]+$",
713713
"required": true,
714714
"type": "string"
715+
},
716+
"updateMask": {
717+
"description": "Optional. An update mask to selectively update fields.",
718+
"format": "google-fieldmask",
719+
"location": "query",
720+
"type": "string"
715721
}
716722
},
717723
"path": "v3/{+name}",
@@ -1962,7 +1968,7 @@
19621968
}
19631969
}
19641970
},
1965-
"revision": "20250606",
1971+
"revision": "20251103",
19661972
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
19671973
"schemas": {
19681974
"AuditConfig": {
@@ -2413,7 +2419,8 @@
24132419
"CYCLE_INTRODUCED_VIOLATION",
24142420
"FOLDER_BEING_MOVED_VIOLATION",
24152421
"FOLDER_TO_DELETE_NON_EMPTY_VIOLATION",
2416-
"DELETED_FOLDER_HEIGHT_VIOLATION"
2422+
"DELETED_FOLDER_HEIGHT_VIOLATION",
2423+
"FOLDER_TO_DELETE_CONFIGURED_CAPABILITY_VIOLATION"
24172424
],
24182425
"enumDescriptions": [
24192426
"The error type was unrecognized or unspecified.",
@@ -2425,7 +2432,8 @@
24252432
"The attempted action would introduce cycle in resource path.",
24262433
"The attempted action would move a folder that is already being moved.",
24272434
"The folder the caller is trying to delete contains active resources.",
2428-
"The attempted action would violate the max deleted folder depth constraint."
2435+
"The attempted action would violate the max deleted folder depth constraint.",
2436+
"The folder being deleted has a configured capability."
24292437
],
24302438
"type": "string"
24312439
}
@@ -2621,7 +2629,7 @@
26212629
"id": "ListTagValuesResponse",
26222630
"properties": {
26232631
"nextPageToken": {
2624-
"description": "A pagination token returned from a previous call to `ListTagValues` that indicates from where listing should continue. This is currently not used, but the server may at any point start supplying a valid token.",
2632+
"description": "A pagination token returned from a previous call to `ListTagValues` that indicates from where listing should continue.",
26252633
"type": "string"
26262634
},
26272635
"tagValues": {
@@ -3091,6 +3099,10 @@
30913099
"description": "A TagKey, used to group a set of TagValues.",
30923100
"id": "TagKey",
30933101
"properties": {
3102+
"allowedValuesRegex": {
3103+
"description": "Optional. Regular expression constraint for freeform tag values. If present, it implicitly allows freeform values (constrained by the regex).",
3104+
"type": "string"
3105+
},
30943106
"createTime": {
30953107
"description": "Output only. Creation time.",
30963108
"format": "google-datetime",

src/apis/cloudresourcemanager/v3.ts

Lines changed: 47 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ export namespace cloudresourcemanager_v3 {
599599
*/
600600
export interface Schema$ListTagValuesResponse {
601601
/**
602-
* A pagination token returned from a previous call to `ListTagValues` that indicates from where listing should continue. This is currently not used, but the server may at any point start supplying a valid token.
602+
* A pagination token returned from a previous call to `ListTagValues` that indicates from where listing should continue.
603603
*/
604604
nextPageToken?: string | null;
605605
/**
@@ -939,6 +939,10 @@ export namespace cloudresourcemanager_v3 {
939939
* A TagKey, used to group a set of TagValues.
940940
*/
941941
export interface Schema$TagKey {
942+
/**
943+
* Optional. Regular expression constraint for freeform tag values. If present, it implicitly allows freeform values (constrained by the regex).
944+
*/
945+
allowedValuesRegex?: string | null;
942946
/**
943947
* Output only. Creation time.
944948
*/
@@ -4259,7 +4263,7 @@ export namespace cloudresourcemanager_v3 {
42594263
}
42604264

42614265
/**
4262-
* Updates tag bindings directly attached to a GCP resource.
4266+
* Updates tag bindings directly attached to a GCP resource. Update_mask can be kept empty or "*".
42634267
* @example
42644268
* ```js
42654269
* // Before running the sample:
@@ -4288,23 +4292,23 @@ export namespace cloudresourcemanager_v3 {
42884292
* google.options({auth: authClient});
42894293
*
42904294
* // Do the magic
4291-
* const res = await cloudresourcemanager.locations.tagBindingCollections.update(
4292-
* {
4293-
* // Identifier. The name of the TagBindingCollection, following the convention: `locations/{location\}/tagBindingCollections/{encoded-full-resource-name\}` where the encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123"
4294-
* name: 'locations/my-location/tagBindingCollections/my-tagBindingCollection',
4295-
*
4296-
* // Request body metadata
4297-
* requestBody: {
4298-
* // request body parameters
4299-
* // {
4300-
* // "etag": "my_etag",
4301-
* // "fullResourceName": "my_fullResourceName",
4302-
* // "name": "my_name",
4303-
* // "tags": {}
4304-
* // }
4305-
* },
4295+
* const res = await cloudresourcemanager.locations.tagBindingCollections.patch({
4296+
* // Identifier. The name of the TagBindingCollection, following the convention: `locations/{location\}/tagBindingCollections/{encoded-full-resource-name\}` where the encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123"
4297+
* name: 'locations/my-location/tagBindingCollections/my-tagBindingCollection',
4298+
* // Optional. An update mask to selectively update fields.
4299+
* updateMask: 'placeholder-value',
4300+
*
4301+
* // Request body metadata
4302+
* requestBody: {
4303+
* // request body parameters
4304+
* // {
4305+
* // "etag": "my_etag",
4306+
* // "fullResourceName": "my_fullResourceName",
4307+
* // "name": "my_name",
4308+
* // "tags": {}
4309+
* // }
43064310
* },
4307-
* );
4311+
* });
43084312
* console.log(res.data);
43094313
*
43104314
* // Example response
@@ -4329,32 +4333,32 @@ export namespace cloudresourcemanager_v3 {
43294333
* @param callback - Optional callback that handles the response.
43304334
* @returns A promise if used with async/await, or void if used with a callback.
43314335
*/
4332-
update(
4333-
params: Params$Resource$Locations$Tagbindingcollections$Update,
4336+
patch(
4337+
params: Params$Resource$Locations$Tagbindingcollections$Patch,
43344338
options: StreamMethodOptions
43354339
): Promise<GaxiosResponseWithHTTP2<Readable>>;
4336-
update(
4337-
params?: Params$Resource$Locations$Tagbindingcollections$Update,
4340+
patch(
4341+
params?: Params$Resource$Locations$Tagbindingcollections$Patch,
43384342
options?: MethodOptions
43394343
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4340-
update(
4341-
params: Params$Resource$Locations$Tagbindingcollections$Update,
4344+
patch(
4345+
params: Params$Resource$Locations$Tagbindingcollections$Patch,
43424346
options: StreamMethodOptions | BodyResponseCallback<Readable>,
43434347
callback: BodyResponseCallback<Readable>
43444348
): void;
4345-
update(
4346-
params: Params$Resource$Locations$Tagbindingcollections$Update,
4349+
patch(
4350+
params: Params$Resource$Locations$Tagbindingcollections$Patch,
43474351
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
43484352
callback: BodyResponseCallback<Schema$Operation>
43494353
): void;
4350-
update(
4351-
params: Params$Resource$Locations$Tagbindingcollections$Update,
4354+
patch(
4355+
params: Params$Resource$Locations$Tagbindingcollections$Patch,
43524356
callback: BodyResponseCallback<Schema$Operation>
43534357
): void;
4354-
update(callback: BodyResponseCallback<Schema$Operation>): void;
4355-
update(
4358+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
4359+
patch(
43564360
paramsOrCallback?:
4357-
| Params$Resource$Locations$Tagbindingcollections$Update
4361+
| Params$Resource$Locations$Tagbindingcollections$Patch
43584362
| BodyResponseCallback<Schema$Operation>
43594363
| BodyResponseCallback<Readable>,
43604364
optionsOrCallback?:
@@ -4370,12 +4374,12 @@ export namespace cloudresourcemanager_v3 {
43704374
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
43714375
| Promise<GaxiosResponseWithHTTP2<Readable>> {
43724376
let params = (paramsOrCallback ||
4373-
{}) as Params$Resource$Locations$Tagbindingcollections$Update;
4377+
{}) as Params$Resource$Locations$Tagbindingcollections$Patch;
43744378
let options = (optionsOrCallback || {}) as MethodOptions;
43754379

43764380
if (typeof paramsOrCallback === 'function') {
43774381
callback = paramsOrCallback;
4378-
params = {} as Params$Resource$Locations$Tagbindingcollections$Update;
4382+
params = {} as Params$Resource$Locations$Tagbindingcollections$Patch;
43794383
options = {};
43804384
}
43814385

@@ -4390,7 +4394,7 @@ export namespace cloudresourcemanager_v3 {
43904394
options: Object.assign(
43914395
{
43924396
url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'),
4393-
method: 'PUT',
4397+
method: 'PATCH',
43944398
apiVersion: '',
43954399
},
43964400
options
@@ -4418,12 +4422,16 @@ export namespace cloudresourcemanager_v3 {
44184422
*/
44194423
name?: string;
44204424
}
4421-
export interface Params$Resource$Locations$Tagbindingcollections$Update
4425+
export interface Params$Resource$Locations$Tagbindingcollections$Patch
44224426
extends StandardParameters {
44234427
/**
44244428
* Identifier. The name of the TagBindingCollection, following the convention: `locations/{location\}/tagBindingCollections/{encoded-full-resource-name\}` where the encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123"
44254429
*/
44264430
name?: string;
4431+
/**
4432+
* Optional. An update mask to selectively update fields.
4433+
*/
4434+
updateMask?: string;
44274435

44284436
/**
44294437
* Request body metadata
@@ -7693,6 +7701,7 @@ export namespace cloudresourcemanager_v3 {
76937701
* requestBody: {
76947702
* // request body parameters
76957703
* // {
7704+
* // "allowedValuesRegex": "my_allowedValuesRegex",
76967705
* // "createTime": "my_createTime",
76977706
* // "description": "my_description",
76987707
* // "etag": "my_etag",
@@ -7993,6 +8002,7 @@ export namespace cloudresourcemanager_v3 {
79938002
*
79948003
* // Example response
79958004
* // {
8005+
* // "allowedValuesRegex": "my_allowedValuesRegex",
79968006
* // "createTime": "my_createTime",
79978007
* // "description": "my_description",
79988008
* // "etag": "my_etag",
@@ -8291,6 +8301,7 @@ export namespace cloudresourcemanager_v3 {
82918301
*
82928302
* // Example response
82938303
* // {
8304+
* // "allowedValuesRegex": "my_allowedValuesRegex",
82948305
* // "createTime": "my_createTime",
82958306
* // "description": "my_description",
82968307
* // "etag": "my_etag",
@@ -8584,6 +8595,7 @@ export namespace cloudresourcemanager_v3 {
85848595
* requestBody: {
85858596
* // request body parameters
85868597
* // {
8598+
* // "allowedValuesRegex": "my_allowedValuesRegex",
85878599
* // "createTime": "my_createTime",
85888600
* // "description": "my_description",
85898601
* // "etag": "my_etag",

0 commit comments

Comments
 (0)