Skip to content

Commit a5cb23b

Browse files
feat(serviceusage)!: update the API
BREAKING CHANGE: This release has breaking changes. #### serviceusage:v1 The following keys were deleted: - schemas.GoogleApiServiceusageV2betaConsumerPolicy.properties.annotations.additionalProperties.type - schemas.GoogleApiServiceusageV2betaConsumerPolicy.properties.annotations.description - schemas.GoogleApiServiceusageV2betaConsumerPolicy.properties.annotations.type - schemas.McpPolicy.properties.contentSecurity.$ref - schemas.McpPolicy.properties.contentSecurity.description The following keys were added: - resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.operations.methods.list.parameters.returnPartialSuccess.type - schemas.ContentSecurityPolicy.description - schemas.ContentSecurityPolicy.id - schemas.ContentSecurityPolicy.properties.mcpContentSecurity.$ref - schemas.ContentSecurityPolicy.properties.mcpContentSecurity.description - schemas.ContentSecurityPolicy.properties.name.description - schemas.ContentSecurityPolicy.properties.name.readOnly - schemas.ContentSecurityPolicy.properties.name.type - schemas.ContentSecurityPolicy.type - schemas.ListOperationsResponse.properties.unreachable.description - schemas.ListOperationsResponse.properties.unreachable.items.type - schemas.ListOperationsResponse.properties.unreachable.type - schemas.UpdateContentSecurityPolicyMetadata.description - schemas.UpdateContentSecurityPolicyMetadata.id - schemas.UpdateContentSecurityPolicyMetadata.type
1 parent e9e3931 commit a5cb23b

File tree

2 files changed

+64
-21
lines changed

2 files changed

+64
-21
lines changed

discovery/serviceusage-v1.json

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@
221221
"description": "The standard list page token.",
222222
"location": "query",
223223
"type": "string"
224+
},
225+
"returnPartialSuccess": {
226+
"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.",
227+
"location": "query",
228+
"type": "boolean"
224229
}
225230
},
226231
"path": "v1/operations",
@@ -426,7 +431,7 @@
426431
}
427432
}
428433
},
429-
"revision": "20250919",
434+
"revision": "20251021",
430435
"rootUrl": "https://serviceusage.googleapis.com/",
431436
"schemas": {
432437
"AddEnableRulesMetadata": {
@@ -1185,6 +1190,22 @@
11851190
},
11861191
"type": "object"
11871192
},
1193+
"ContentSecurityPolicy": {
1194+
"description": "Content Security Policy contains the content security related policy of a resource.",
1195+
"id": "ContentSecurityPolicy",
1196+
"properties": {
1197+
"mcpContentSecurity": {
1198+
"$ref": "ContentSecurity",
1199+
"description": "mcp_content_security contains the content security related settings at resource level for MCP traffic."
1200+
},
1201+
"name": {
1202+
"description": "Output only. The resource name of the policy. Only the `default` policy is supported. We allow the following formats: `projects/{PROJECT_NUMBER}/contentSecurityPolicies/default`, `projects/{PROJECT_ID}/contentSecurityPolicies/default`, We only support project level content security policy for now.",
1203+
"readOnly": true,
1204+
"type": "string"
1205+
}
1206+
},
1207+
"type": "object"
1208+
},
11881209
"ContentSecurityProvider": {
11891210
"description": "ContentSecurityProvider contains the name of content security provider.",
11901211
"id": "ContentSecurityProvider",
@@ -2301,13 +2322,6 @@
23012322
"description": "Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.",
23022323
"id": "GoogleApiServiceusageV2betaConsumerPolicy",
23032324
"properties": {
2304-
"annotations": {
2305-
"additionalProperties": {
2306-
"type": "string"
2307-
},
2308-
"description": "Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)",
2309-
"type": "object"
2310-
},
23112325
"createTime": {
23122326
"description": "Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.",
23132327
"format": "google-datetime",
@@ -2636,6 +2650,13 @@
26362650
"$ref": "Operation"
26372651
},
26382652
"type": "array"
2653+
},
2654+
"unreachable": {
2655+
"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.",
2656+
"items": {
2657+
"type": "string"
2658+
},
2659+
"type": "array"
26392660
}
26402661
},
26412662
"type": "object"
@@ -2768,10 +2789,6 @@
27682789
"description": "MCP Consumer Policy is a set of rules that define MCP related policy for a cloud resource hierarchy.",
27692790
"id": "McpPolicy",
27702791
"properties": {
2771-
"contentSecurity": {
2772-
"$ref": "ContentSecurity",
2773-
"description": "ContentSecurity contains the content security related fields of a MCP policy."
2774-
},
27752792
"createTime": {
27762793
"description": "Output only. The time the policy was created. For singleton policies (such as the `default` policy), this is the first touch of the policy.",
27772794
"format": "google-datetime",
@@ -3781,6 +3798,12 @@
37813798
"properties": {},
37823799
"type": "object"
37833800
},
3801+
"UpdateContentSecurityPolicyMetadata": {
3802+
"description": "Metadata for the `UpdateContentSecurityPolicy` method.",
3803+
"id": "UpdateContentSecurityPolicyMetadata",
3804+
"properties": {},
3805+
"type": "object"
3806+
},
37843807
"UpdateMcpPolicyMetadata": {
37853808
"description": "Metadata for the `UpdateMcpPolicy` method.",
37863809
"id": "UpdateMcpPolicyMetadata",

src/apis/serviceusage/v1.ts

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,19 @@ export namespace serviceusage_v1 {
645645
*/
646646
contentSecurityProviders?: Schema$ContentSecurityProvider[];
647647
}
648+
/**
649+
* Content Security Policy contains the content security related policy of a resource.
650+
*/
651+
export interface Schema$ContentSecurityPolicy {
652+
/**
653+
* mcp_content_security contains the content security related settings at resource level for MCP traffic.
654+
*/
655+
mcpContentSecurity?: Schema$ContentSecurity;
656+
/**
657+
* Output only. The resource name of the policy. Only the `default` policy is supported. We allow the following formats: `projects/{PROJECT_NUMBER\}/contentSecurityPolicies/default`, `projects/{PROJECT_ID\}/contentSecurityPolicies/default`, We only support project level content security policy for now.
658+
*/
659+
name?: string | null;
660+
}
648661
/**
649662
* ContentSecurityProvider contains the name of content security provider.
650663
*/
@@ -1395,10 +1408,6 @@ export namespace serviceusage_v1 {
13951408
* Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.
13961409
*/
13971410
export interface Schema$GoogleApiServiceusageV2betaConsumerPolicy {
1398-
/**
1399-
* Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)
1400-
*/
1401-
annotations?: {[key: string]: string} | null;
14021411
/**
14031412
* Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.
14041413
*/
@@ -1644,6 +1653,10 @@ export namespace serviceusage_v1 {
16441653
* A list of operations that matches the specified filter in the request.
16451654
*/
16461655
operations?: Schema$Operation[];
1656+
/**
1657+
* 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.
1658+
*/
1659+
unreachable?: string[] | null;
16471660
}
16481661
/**
16491662
* Response message for the `ListServices` method.
@@ -1739,10 +1752,6 @@ export namespace serviceusage_v1 {
17391752
* MCP Consumer Policy is a set of rules that define MCP related policy for a cloud resource hierarchy.
17401753
*/
17411754
export interface Schema$McpPolicy {
1742-
/**
1743-
* ContentSecurity contains the content security related fields of a MCP policy.
1744-
*/
1745-
contentSecurity?: Schema$ContentSecurity;
17461755
/**
17471756
* Output only. The time the policy was created. For singleton policies (such as the `default` policy), this is the first touch of the policy.
17481757
*/
@@ -2406,6 +2415,10 @@ export namespace serviceusage_v1 {
24062415
* Metadata for the `UpdateConsumerPolicy` method.
24072416
*/
24082417
export interface Schema$UpdateConsumerPolicyMetadata {}
2418+
/**
2419+
* Metadata for the `UpdateContentSecurityPolicy` method.
2420+
*/
2421+
export interface Schema$UpdateContentSecurityPolicyMetadata {}
24092422
/**
24102423
* Metadata for the `UpdateMcpPolicy` method.
24112424
*/
@@ -2909,13 +2922,16 @@ export namespace serviceusage_v1 {
29092922
* pageSize: 'placeholder-value',
29102923
* // The standard list page token.
29112924
* pageToken: 'placeholder-value',
2925+
* // 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.
2926+
* returnPartialSuccess: 'placeholder-value',
29122927
* });
29132928
* console.log(res.data);
29142929
*
29152930
* // Example response
29162931
* // {
29172932
* // "nextPageToken": "my_nextPageToken",
2918-
* // "operations": []
2933+
* // "operations": [],
2934+
* // "unreachable": []
29192935
* // }
29202936
* }
29212937
*
@@ -3055,6 +3071,10 @@ export namespace serviceusage_v1 {
30553071
* The standard list page token.
30563072
*/
30573073
pageToken?: string;
3074+
/**
3075+
* 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.
3076+
*/
3077+
returnPartialSuccess?: boolean;
30583078
}
30593079

30603080
export class Resource$Services {

0 commit comments

Comments
 (0)