Skip to content

Commit a8bdeb6

Browse files
yoshi-automationmiguelvelezsa
authored andcommitted
feat(serviceusage)!: update the API
BREAKING CHANGE: This release has breaking changes. #### serviceusage:v1beta1 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 #### 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 67d7783 commit a8bdeb6

File tree

4 files changed

+128
-42
lines changed

4 files changed

+128
-42
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",

discovery/serviceusage-v1beta1.json

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@
166166
"description": "The standard list page token.",
167167
"location": "query",
168168
"type": "string"
169+
},
170+
"returnPartialSuccess": {
171+
"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.",
172+
"location": "query",
173+
"type": "boolean"
169174
}
170175
},
171176
"path": "v1beta1/operations",
@@ -964,7 +969,7 @@
964969
}
965970
}
966971
},
967-
"revision": "20250919",
972+
"revision": "20251021",
968973
"rootUrl": "https://serviceusage.googleapis.com/",
969974
"schemas": {
970975
"AddEnableRulesMetadata": {
@@ -1781,6 +1786,22 @@
17811786
},
17821787
"type": "object"
17831788
},
1789+
"ContentSecurityPolicy": {
1790+
"description": "Content Security Policy contains the content security related policy of a resource.",
1791+
"id": "ContentSecurityPolicy",
1792+
"properties": {
1793+
"mcpContentSecurity": {
1794+
"$ref": "ContentSecurity",
1795+
"description": "mcp_content_security contains the content security related settings at resource level for MCP traffic."
1796+
},
1797+
"name": {
1798+
"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.",
1799+
"readOnly": true,
1800+
"type": "string"
1801+
}
1802+
},
1803+
"type": "object"
1804+
},
17841805
"ContentSecurityProvider": {
17851806
"description": "ContentSecurityProvider contains the name of content security provider.",
17861807
"id": "ContentSecurityProvider",
@@ -2878,13 +2899,6 @@
28782899
"description": "Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.",
28792900
"id": "GoogleApiServiceusageV2betaConsumerPolicy",
28802901
"properties": {
2881-
"annotations": {
2882-
"additionalProperties": {
2883-
"type": "string"
2884-
},
2885-
"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)",
2886-
"type": "object"
2887-
},
28882902
"createTime": {
28892903
"description": "Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.",
28902904
"format": "google-datetime",
@@ -3331,6 +3345,13 @@
33313345
"$ref": "Operation"
33323346
},
33333347
"type": "array"
3348+
},
3349+
"unreachable": {
3350+
"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.",
3351+
"items": {
3352+
"type": "string"
3353+
},
3354+
"type": "array"
33343355
}
33353356
},
33363357
"type": "object"
@@ -3463,10 +3484,6 @@
34633484
"description": "MCP Consumer Policy is a set of rules that define MCP related policy for a cloud resource hierarchy.",
34643485
"id": "McpPolicy",
34653486
"properties": {
3466-
"contentSecurity": {
3467-
"$ref": "ContentSecurity",
3468-
"description": "ContentSecurity contains the content security related fields of a MCP policy."
3469-
},
34703487
"createTime": {
34713488
"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.",
34723489
"format": "google-datetime",
@@ -4669,6 +4686,12 @@
46694686
"properties": {},
46704687
"type": "object"
46714688
},
4689+
"UpdateContentSecurityPolicyMetadata": {
4690+
"description": "Metadata for the `UpdateContentSecurityPolicy` method.",
4691+
"id": "UpdateContentSecurityPolicyMetadata",
4692+
"properties": {},
4693+
"type": "object"
4694+
},
46724695
"UpdateMcpPolicyMetadata": {
46734696
"description": "Metadata for the `UpdateMcpPolicy` method.",
46744697
"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 {

src/apis/serviceusage/v1beta1.ts

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,19 @@ export namespace serviceusage_v1beta1 {
694694
*/
695695
contentSecurityProviders?: Schema$ContentSecurityProvider[];
696696
}
697+
/**
698+
* Content Security Policy contains the content security related policy of a resource.
699+
*/
700+
export interface Schema$ContentSecurityPolicy {
701+
/**
702+
* mcp_content_security contains the content security related settings at resource level for MCP traffic.
703+
*/
704+
mcpContentSecurity?: Schema$ContentSecurity;
705+
/**
706+
* 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.
707+
*/
708+
name?: string | null;
709+
}
697710
/**
698711
* ContentSecurityProvider contains the name of content security provider.
699712
*/
@@ -1435,10 +1448,6 @@ export namespace serviceusage_v1beta1 {
14351448
* Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.
14361449
*/
14371450
export interface Schema$GoogleApiServiceusageV2betaConsumerPolicy {
1438-
/**
1439-
* 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)
1440-
*/
1441-
annotations?: {[key: string]: string} | null;
14421451
/**
14431452
* Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.
14441453
*/
@@ -1757,6 +1766,10 @@ export namespace serviceusage_v1beta1 {
17571766
* A list of operations that matches the specified filter in the request.
17581767
*/
17591768
operations?: Schema$Operation[];
1769+
/**
1770+
* 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.
1771+
*/
1772+
unreachable?: string[] | null;
17601773
}
17611774
/**
17621775
* Response message for the `ListServices` method.
@@ -1852,10 +1865,6 @@ export namespace serviceusage_v1beta1 {
18521865
* MCP Consumer Policy is a set of rules that define MCP related policy for a cloud resource hierarchy.
18531866
*/
18541867
export interface Schema$McpPolicy {
1855-
/**
1856-
* ContentSecurity contains the content security related fields of a MCP policy.
1857-
*/
1858-
contentSecurity?: Schema$ContentSecurity;
18591868
/**
18601869
* Output only. The time the policy was created. For singleton policies (such as the `default` policy), this is the first touch of the policy.
18611870
*/
@@ -2669,6 +2678,10 @@ export namespace serviceusage_v1beta1 {
26692678
* Metadata for the `UpdateConsumerPolicy` method.
26702679
*/
26712680
export interface Schema$UpdateConsumerPolicyMetadata {}
2681+
/**
2682+
* Metadata for the `UpdateContentSecurityPolicy` method.
2683+
*/
2684+
export interface Schema$UpdateContentSecurityPolicyMetadata {}
26722685
/**
26732686
* Metadata for the `UpdateMcpPolicy` method.
26742687
*/
@@ -2896,13 +2909,16 @@ export namespace serviceusage_v1beta1 {
28962909
* pageSize: 'placeholder-value',
28972910
* // The standard list page token.
28982911
* pageToken: 'placeholder-value',
2912+
* // 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.
2913+
* returnPartialSuccess: 'placeholder-value',
28992914
* });
29002915
* console.log(res.data);
29012916
*
29022917
* // Example response
29032918
* // {
29042919
* // "nextPageToken": "my_nextPageToken",
2905-
* // "operations": []
2920+
* // "operations": [],
2921+
* // "unreachable": []
29062922
* // }
29072923
* }
29082924
*
@@ -3026,6 +3042,10 @@ export namespace serviceusage_v1beta1 {
30263042
* The standard list page token.
30273043
*/
30283044
pageToken?: string;
3045+
/**
3046+
* 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.
3047+
*/
3048+
returnPartialSuccess?: boolean;
30293049
}
30303050

30313051
export class Resource$Services {

0 commit comments

Comments
 (0)