Skip to content

Commit 55a1ada

Browse files
feat(cloudresourcemanager): update the API
#### cloudresourcemanager:v2beta1 The following keys were added: - schemas.Folder.properties.configuredCapabilities.description - schemas.Folder.properties.configuredCapabilities.items.type - schemas.Folder.properties.configuredCapabilities.readOnly - schemas.Folder.properties.configuredCapabilities.type - schemas.Folder.properties.managementProject.description - schemas.Folder.properties.managementProject.readOnly - schemas.Folder.properties.managementProject.type #### cloudresourcemanager:v2 The following keys were added: - schemas.Folder.properties.configuredCapabilities.description - schemas.Folder.properties.configuredCapabilities.items.type - schemas.Folder.properties.configuredCapabilities.readOnly - schemas.Folder.properties.configuredCapabilities.type - schemas.Folder.properties.managementProject.description - schemas.Folder.properties.managementProject.readOnly - schemas.Folder.properties.managementProject.type #### cloudresourcemanager:v3 The following keys were added: - resources.folders.resources.capabilities.methods.get.description - resources.folders.resources.capabilities.methods.get.flatPath - resources.folders.resources.capabilities.methods.get.httpMethod - resources.folders.resources.capabilities.methods.get.id - resources.folders.resources.capabilities.methods.get.parameterOrder - resources.folders.resources.capabilities.methods.get.parameters.name.description - resources.folders.resources.capabilities.methods.get.parameters.name.location - resources.folders.resources.capabilities.methods.get.parameters.name.pattern - resources.folders.resources.capabilities.methods.get.parameters.name.required - resources.folders.resources.capabilities.methods.get.parameters.name.type - resources.folders.resources.capabilities.methods.get.path - resources.folders.resources.capabilities.methods.get.response.$ref - resources.folders.resources.capabilities.methods.get.scopes - resources.folders.resources.capabilities.methods.patch.description - resources.folders.resources.capabilities.methods.patch.flatPath - resources.folders.resources.capabilities.methods.patch.httpMethod - resources.folders.resources.capabilities.methods.patch.id - resources.folders.resources.capabilities.methods.patch.parameterOrder - resources.folders.resources.capabilities.methods.patch.parameters.name.description - resources.folders.resources.capabilities.methods.patch.parameters.name.location - resources.folders.resources.capabilities.methods.patch.parameters.name.pattern - resources.folders.resources.capabilities.methods.patch.parameters.name.required - resources.folders.resources.capabilities.methods.patch.parameters.name.type - resources.folders.resources.capabilities.methods.patch.parameters.updateMask.description - resources.folders.resources.capabilities.methods.patch.parameters.updateMask.format - resources.folders.resources.capabilities.methods.patch.parameters.updateMask.location - resources.folders.resources.capabilities.methods.patch.parameters.updateMask.type - resources.folders.resources.capabilities.methods.patch.path - resources.folders.resources.capabilities.methods.patch.request.$ref - resources.folders.resources.capabilities.methods.patch.response.$ref - resources.folders.resources.capabilities.methods.patch.scopes - schemas.Capability.description - schemas.Capability.id - schemas.Capability.properties.name.description - schemas.Capability.properties.name.type - schemas.Capability.properties.value.description - schemas.Capability.properties.value.type - schemas.Capability.type - schemas.Folder.properties.configuredCapabilities.description - schemas.Folder.properties.configuredCapabilities.items.type - schemas.Folder.properties.configuredCapabilities.readOnly - schemas.Folder.properties.configuredCapabilities.type - schemas.Folder.properties.managementProject.description - schemas.Folder.properties.managementProject.readOnly - schemas.Folder.properties.managementProject.type
1 parent 2bd90fb commit 55a1ada

File tree

6 files changed

+364
-3
lines changed

6 files changed

+364
-3
lines changed

‎discovery/cloudresourcemanager-v2.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450
}
451451
}
452452
},
453-
"revision": "20240310",
453+
"revision": "20250417",
454454
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
455455
"schemas": {
456456
"AuditConfig": {
@@ -705,6 +705,14 @@
705705
"description": "A Folder in an Organization's resource hierarchy, used to organize that Organization's resources.",
706706
"id": "Folder",
707707
"properties": {
708+
"configuredCapabilities": {
709+
"description": "Output only. Optional capabilities configured for this folder (via UpdateCapability API). Example: `folders/123/capabilities/app-management`.",
710+
"items": {
711+
"type": "string"
712+
},
713+
"readOnly": true,
714+
"type": "array"
715+
},
708716
"createTime": {
709717
"description": "Output only. Timestamp when the Folder was created. Assigned by the server.",
710718
"format": "google-datetime",
@@ -730,6 +738,11 @@
730738
"readOnly": true,
731739
"type": "string"
732740
},
741+
"managementProject": {
742+
"description": "Output only. Management Project associated with this folder (if app-management capability is enabled). Example: `projects/google-mp-123` OUTPUT ONLY.",
743+
"readOnly": true,
744+
"type": "string"
745+
},
733746
"name": {
734747
"description": "Output only. The resource name of the Folder. Its format is `folders/{folder_id}`, for example: \"folders/1234\".",
735748
"readOnly": true,

‎discovery/cloudresourcemanager-v2beta1.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450
}
451451
}
452452
},
453-
"revision": "20240310",
453+
"revision": "20250417",
454454
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
455455
"schemas": {
456456
"AuditConfig": {
@@ -705,6 +705,14 @@
705705
"description": "A Folder in an Organization's resource hierarchy, used to organize that Organization's resources.",
706706
"id": "Folder",
707707
"properties": {
708+
"configuredCapabilities": {
709+
"description": "Output only. Optional capabilities configured for this folder (via UpdateCapability API). Example: `folders/123/capabilities/app-management`.",
710+
"items": {
711+
"type": "string"
712+
},
713+
"readOnly": true,
714+
"type": "array"
715+
},
708716
"createTime": {
709717
"description": "Output only. Timestamp when the Folder was created. Assigned by the server.",
710718
"format": "google-datetime",
@@ -730,6 +738,11 @@
730738
"readOnly": true,
731739
"type": "string"
732740
},
741+
"managementProject": {
742+
"description": "Output only. Management Project associated with this folder (if app-management capability is enabled). Example: `projects/google-mp-123` OUTPUT ONLY.",
743+
"readOnly": true,
744+
"type": "string"
745+
},
733746
"name": {
734747
"description": "Output only. The resource name of the Folder. Its format is `folders/{folder_id}`, for example: \"folders/1234\".",
735748
"readOnly": true,

‎discovery/cloudresourcemanager-v3.json

Lines changed: 94 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,71 @@
462462
"https://www.googleapis.com/auth/cloud-platform"
463463
]
464464
}
465+
},
466+
"resources": {
467+
"capabilities": {
468+
"methods": {
469+
"get": {
470+
"description": "Retrieves the Capability identified by the supplied resource name.",
471+
"flatPath": "v3/folders/{foldersId}/capabilities/{capabilitiesId}",
472+
"httpMethod": "GET",
473+
"id": "cloudresourcemanager.folders.capabilities.get",
474+
"parameterOrder": [
475+
"name"
476+
],
477+
"parameters": {
478+
"name": {
479+
"description": "Required. The name of the capability to get. For example, `folders/123/capabilities/app-management`",
480+
"location": "path",
481+
"pattern": "^folders/[^/]+/capabilities/[^/]+$",
482+
"required": true,
483+
"type": "string"
484+
}
485+
},
486+
"path": "v3/{+name}",
487+
"response": {
488+
"$ref": "Capability"
489+
},
490+
"scopes": [
491+
"https://www.googleapis.com/auth/cloud-platform"
492+
]
493+
},
494+
"patch": {
495+
"description": "Updates the Capability.",
496+
"flatPath": "v3/folders/{foldersId}/capabilities/{capabilitiesId}",
497+
"httpMethod": "PATCH",
498+
"id": "cloudresourcemanager.folders.capabilities.patch",
499+
"parameterOrder": [
500+
"name"
501+
],
502+
"parameters": {
503+
"name": {
504+
"description": "Immutable. Identifier. The resource name of the capability. Must be in the following form: * `folders/{folder_id}/capabilities/{capability_name}` For example, `folders/123/capabilities/app-management` Following are the allowed {capability_name} values: * `app-management`",
505+
"location": "path",
506+
"pattern": "^folders/[^/]+/capabilities/[^/]+$",
507+
"required": true,
508+
"type": "string"
509+
},
510+
"updateMask": {
511+
"description": "Optional. The list of fields to update. Only [Capability.value] can be updated.",
512+
"format": "google-fieldmask",
513+
"location": "query",
514+
"type": "string"
515+
}
516+
},
517+
"path": "v3/{+name}",
518+
"request": {
519+
"$ref": "Capability"
520+
},
521+
"response": {
522+
"$ref": "Operation"
523+
},
524+
"scopes": [
525+
"https://www.googleapis.com/auth/cloud-platform"
526+
]
527+
}
528+
}
529+
}
465530
}
466531
},
467532
"liens": {
@@ -1805,7 +1870,7 @@
18051870
}
18061871
}
18071872
},
1808-
"revision": "20250206",
1873+
"revision": "20250417",
18091874
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
18101875
"schemas": {
18111876
"AuditConfig": {
@@ -1878,6 +1943,21 @@
18781943
},
18791944
"type": "object"
18801945
},
1946+
"Capability": {
1947+
"description": "Representation of a Capability.",
1948+
"id": "Capability",
1949+
"properties": {
1950+
"name": {
1951+
"description": "Immutable. Identifier. The resource name of the capability. Must be in the following form: * `folders/{folder_id}/capabilities/{capability_name}` For example, `folders/123/capabilities/app-management` Following are the allowed {capability_name} values: * `app-management`",
1952+
"type": "string"
1953+
},
1954+
"value": {
1955+
"description": "Required. The configured value of the capability at the given parent resource.",
1956+
"type": "boolean"
1957+
}
1958+
},
1959+
"type": "object"
1960+
},
18811961
"CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation": {
18821962
"description": "Metadata describing a long running folder operation",
18831963
"id": "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation",
@@ -2097,6 +2177,14 @@
20972177
"description": "A folder in an organization's resource hierarchy, used to organize that organization's resources.",
20982178
"id": "Folder",
20992179
"properties": {
2180+
"configuredCapabilities": {
2181+
"description": "Output only. Optional capabilities configured for this folder (via UpdateCapability API). Example: `folders/123/capabilities/app-management`.",
2182+
"items": {
2183+
"type": "string"
2184+
},
2185+
"readOnly": true,
2186+
"type": "array"
2187+
},
21002188
"createTime": {
21012189
"description": "Output only. Timestamp when the folder was created.",
21022190
"format": "google-datetime",
@@ -2118,6 +2206,11 @@
21182206
"readOnly": true,
21192207
"type": "string"
21202208
},
2209+
"managementProject": {
2210+
"description": "Output only. Management Project associated with this folder (if app-management capability is enabled). Example: `projects/google-mp-123` OUTPUT ONLY.",
2211+
"readOnly": true,
2212+
"type": "string"
2213+
},
21212214
"name": {
21222215
"description": "Output only. The resource name of the folder. Its format is `folders/{folder_id}`, for example: \"folders/1234\".",
21232216
"readOnly": true,

‎src/apis/cloudresourcemanager/v2.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,10 @@ export namespace cloudresourcemanager_v2 {
302302
* A Folder in an Organization's resource hierarchy, used to organize that Organization's resources.
303303
*/
304304
export interface Schema$Folder {
305+
/**
306+
* Output only. Optional capabilities configured for this folder (via UpdateCapability API). Example: `folders/123/capabilities/app-management`.
307+
*/
308+
configuredCapabilities?: string[] | null;
305309
/**
306310
* Output only. Timestamp when the Folder was created. Assigned by the server.
307311
*/
@@ -314,6 +318,10 @@ export namespace cloudresourcemanager_v2 {
314318
* Output only. The lifecycle state of the folder. Updates to the lifecycle_state must be performed via DeleteFolder and UndeleteFolder.
315319
*/
316320
lifecycleState?: string | null;
321+
/**
322+
* Output only. Management Project associated with this folder (if app-management capability is enabled). Example: `projects/google-mp-123` OUTPUT ONLY.
323+
*/
324+
managementProject?: string | null;
317325
/**
318326
* Output only. The resource name of the Folder. Its format is `folders/{folder_id\}`, for example: "folders/1234".
319327
*/

‎src/apis/cloudresourcemanager/v2beta1.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,10 @@ export namespace cloudresourcemanager_v2beta1 {
302302
* A Folder in an Organization's resource hierarchy, used to organize that Organization's resources.
303303
*/
304304
export interface Schema$Folder {
305+
/**
306+
* Output only. Optional capabilities configured for this folder (via UpdateCapability API). Example: `folders/123/capabilities/app-management`.
307+
*/
308+
configuredCapabilities?: string[] | null;
305309
/**
306310
* Output only. Timestamp when the Folder was created. Assigned by the server.
307311
*/
@@ -314,6 +318,10 @@ export namespace cloudresourcemanager_v2beta1 {
314318
* Output only. The lifecycle state of the folder. Updates to the lifecycle_state must be performed via DeleteFolder and UndeleteFolder.
315319
*/
316320
lifecycleState?: string | null;
321+
/**
322+
* Output only. Management Project associated with this folder (if app-management capability is enabled). Example: `projects/google-mp-123` OUTPUT ONLY.
323+
*/
324+
managementProject?: string | null;
317325
/**
318326
* Output only. The resource name of the Folder. Its format is `folders/{folder_id\}`, for example: "folders/1234".
319327
*/

0 commit comments

Comments
 (0)