Skip to content

Commit 7876705

Browse files
feat: Automated regeneration of serviceusage v1beta1 client (#24786)
Auto-created at 2025-11-02 09:30:01 +0000 using the toys pull request generator.
1 parent b87ba81 commit 7876705

File tree

6 files changed

+101
-21
lines changed

6 files changed

+101
-21
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357705,6 +357705,9 @@
357705357705
"/serviceusage:v1beta1/ContentSecurity": content_security
357706357706
"/serviceusage:v1beta1/ContentSecurity/contentSecurityProviders": content_security_providers
357707357707
"/serviceusage:v1beta1/ContentSecurity/contentSecurityProviders/content_security_provider": content_security_provider
357708+
"/serviceusage:v1beta1/ContentSecurityPolicy": content_security_policy
357709+
"/serviceusage:v1beta1/ContentSecurityPolicy/mcpContentSecurity": mcp_content_security
357710+
"/serviceusage:v1beta1/ContentSecurityPolicy/name": name
357708357711
"/serviceusage:v1beta1/ContentSecurityProvider": content_security_provider
357709357712
"/serviceusage:v1beta1/ContentSecurityProvider/name": name
357710357713
"/serviceusage:v1beta1/Context": context
@@ -358046,6 +358049,8 @@
358046358049
"/serviceusage:v1beta1/ListOperationsResponse/nextPageToken": next_page_token
358047358050
"/serviceusage:v1beta1/ListOperationsResponse/operations": operations
358048358051
"/serviceusage:v1beta1/ListOperationsResponse/operations/operation": operation
358052+
"/serviceusage:v1beta1/ListOperationsResponse/unreachable": unreachable
358053+
"/serviceusage:v1beta1/ListOperationsResponse/unreachable/unreachable": unreachable
358049358054
"/serviceusage:v1beta1/ListServicesResponse": list_services_response
358050358055
"/serviceusage:v1beta1/ListServicesResponse/nextPageToken": next_page_token
358051358056
"/serviceusage:v1beta1/ListServicesResponse/services": services
@@ -358346,6 +358351,7 @@
358346358351
"/serviceusage:v1beta1/UpdateAdminQuotaPolicyMetadata": update_admin_quota_policy_metadata
358347358352
"/serviceusage:v1beta1/UpdateConsumerPolicyLROMetadata": update_consumer_policy_lro_metadata
358348358353
"/serviceusage:v1beta1/UpdateConsumerPolicyMetadata": update_consumer_policy_metadata
358354+
"/serviceusage:v1beta1/UpdateContentSecurityPolicyMetadata": update_content_security_policy_metadata
358349358355
"/serviceusage:v1beta1/UpdateMcpPolicyMetadata": update_mcp_policy_metadata
358350358356
"/serviceusage:v1beta1/Usage": usage
358351358357
"/serviceusage:v1beta1/Usage/producerNotificationChannel": producer_notification_channel
@@ -358380,6 +358386,7 @@
358380358386
"/serviceusage:v1beta1/serviceusage.operations.list/name": name
358381358387
"/serviceusage:v1beta1/serviceusage.operations.list/pageSize": page_size
358382358388
"/serviceusage:v1beta1/serviceusage.operations.list/pageToken": page_token
358389+
"/serviceusage:v1beta1/serviceusage.operations.list/returnPartialSuccess": return_partial_success
358383358390
"/serviceusage:v1beta1/serviceusage.services.batchEnable": batch_enable_services
358384358391
"/serviceusage:v1beta1/serviceusage.services.batchEnable/parent": parent
358385358392
"/serviceusage:v1beta1/serviceusage.services.consumerQuotaMetrics.get": get_service_consumer_quota_metric

generated/google-apis-serviceusage_v1beta1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-serviceusage_v1beta1
22

3+
### v0.71.0 (2025-11-02)
4+
5+
* Regenerated from discovery document revision 20251021
6+
37
### v0.70.0 (2025-09-28)
48

59
* Regenerated from discovery document revision 20250919

generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/classes.rb

Lines changed: 51 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,36 @@ def update!(**args)
12631263
end
12641264
end
12651265

1266+
# Content Security Policy contains the content security related policy of a
1267+
# resource.
1268+
class ContentSecurityPolicy
1269+
include Google::Apis::Core::Hashable
1270+
1271+
# ContentSecurity defines the content security related fields of a MCP policy.
1272+
# Corresponds to the JSON property `mcpContentSecurity`
1273+
# @return [Google::Apis::ServiceusageV1beta1::ContentSecurity]
1274+
attr_accessor :mcp_content_security
1275+
1276+
# Output only. The resource name of the policy. Only the `default` policy is
1277+
# supported. We allow the following formats: `projects/`PROJECT_NUMBER`/
1278+
# contentSecurityPolicies/default`, `projects/`PROJECT_ID`/
1279+
# contentSecurityPolicies/default`, We only support project level content
1280+
# security policy for now.
1281+
# Corresponds to the JSON property `name`
1282+
# @return [String]
1283+
attr_accessor :name
1284+
1285+
def initialize(**args)
1286+
update!(**args)
1287+
end
1288+
1289+
# Update properties of this object
1290+
def update!(**args)
1291+
@mcp_content_security = args[:mcp_content_security] if args.key?(:mcp_content_security)
1292+
@name = args[:name] if args.key?(:name)
1293+
end
1294+
end
1295+
12661296
# ContentSecurityProvider contains the name of content security provider.
12671297
class ContentSecurityProvider
12681298
include Google::Apis::Core::Hashable
@@ -3060,14 +3090,6 @@ def update!(**args)
30603090
class GoogleApiServiceusageV2betaConsumerPolicy
30613091
include Google::Apis::Core::Hashable
30623092

3063-
# Optional. Annotations is an unstructured key-value map stored with a policy
3064-
# that may be set by external tools to store and retrieve arbitrary metadata.
3065-
# They are not queryable and should be preserved when modifying objects. [AIP-
3066-
# 128](https://google.aip.dev/128#annotations)
3067-
# Corresponds to the JSON property `annotations`
3068-
# @return [Hash<String,String>]
3069-
attr_accessor :annotations
3070-
30713093
# Output only. The time the policy was created. For singleton policies, this is
30723094
# the first touch of the policy.
30733095
# Corresponds to the JSON property `createTime`
@@ -3105,7 +3127,6 @@ def initialize(**args)
31053127

31063128
# Update properties of this object
31073129
def update!(**args)
3108-
@annotations = args[:annotations] if args.key?(:annotations)
31093130
@create_time = args[:create_time] if args.key?(:create_time)
31103131
@enable_rules = args[:enable_rules] if args.key?(:enable_rules)
31113132
@etag = args[:etag] if args.key?(:etag)
@@ -3848,6 +3869,13 @@ class ListOperationsResponse
38483869
# @return [Array<Google::Apis::ServiceusageV1beta1::Operation>]
38493870
attr_accessor :operations
38503871

3872+
# Unordered list. Unreachable resources. Populated when the request sets `
3873+
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
3874+
# when attempting to list all resources across all supported locations.
3875+
# Corresponds to the JSON property `unreachable`
3876+
# @return [Array<String>]
3877+
attr_accessor :unreachable
3878+
38513879
def initialize(**args)
38523880
update!(**args)
38533881
end
@@ -3856,6 +3884,7 @@ def initialize(**args)
38563884
def update!(**args)
38573885
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
38583886
@operations = args[:operations] if args.key?(:operations)
3887+
@unreachable = args[:unreachable] if args.key?(:unreachable)
38593888
end
38603889
end
38613890

@@ -4065,11 +4094,6 @@ def update!(**args)
40654094
class McpPolicy
40664095
include Google::Apis::Core::Hashable
40674096

4068-
# ContentSecurity defines the content security related fields of a MCP policy.
4069-
# Corresponds to the JSON property `contentSecurity`
4070-
# @return [Google::Apis::ServiceusageV1beta1::ContentSecurity]
4071-
attr_accessor :content_security
4072-
40734097
# Output only. The time the policy was created. For singleton policies (such as
40744098
# the `default` policy), this is the first touch of the policy.
40754099
# Corresponds to the JSON property `createTime`
@@ -4106,7 +4130,6 @@ def initialize(**args)
41064130

41074131
# Update properties of this object
41084132
def update!(**args)
4109-
@content_security = args[:content_security] if args.key?(:content_security)
41104133
@create_time = args[:create_time] if args.key?(:create_time)
41114134
@etag = args[:etag] if args.key?(:etag)
41124135
@mcp_enable_rules = args[:mcp_enable_rules] if args.key?(:mcp_enable_rules)
@@ -6032,6 +6055,19 @@ def update!(**args)
60326055
end
60336056
end
60346057

6058+
# Metadata for the `UpdateContentSecurityPolicy` method.
6059+
class UpdateContentSecurityPolicyMetadata
6060+
include Google::Apis::Core::Hashable
6061+
6062+
def initialize(**args)
6063+
update!(**args)
6064+
end
6065+
6066+
# Update properties of this object
6067+
def update!(**args)
6068+
end
6069+
end
6070+
60356071
# Metadata for the `UpdateMcpPolicy` method.
60366072
class UpdateMcpPolicyMetadata
60376073
include Google::Apis::Core::Hashable

generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ServiceusageV1beta1
1818
# Version of the google-apis-serviceusage_v1beta1 gem
19-
GEM_VERSION = "0.70.0"
19+
GEM_VERSION = "0.71.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250919"
25+
REVISION = "20251021"
2626
end
2727
end
2828
end

generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/representations.rb

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
202202
include Google::Apis::Core::JsonObjectSupport
203203
end
204204

205+
class ContentSecurityPolicy
206+
class Representation < Google::Apis::Core::JsonRepresentation; end
207+
208+
include Google::Apis::Core::JsonObjectSupport
209+
end
210+
205211
class ContentSecurityProvider
206212
class Representation < Google::Apis::Core::JsonRepresentation; end
207213

@@ -886,6 +892,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
886892
include Google::Apis::Core::JsonObjectSupport
887893
end
888894

895+
class UpdateContentSecurityPolicyMetadata
896+
class Representation < Google::Apis::Core::JsonRepresentation; end
897+
898+
include Google::Apis::Core::JsonObjectSupport
899+
end
900+
889901
class UpdateMcpPolicyMetadata
890902
class Representation < Google::Apis::Core::JsonRepresentation; end
891903

@@ -1225,6 +1237,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
12251237
end
12261238
end
12271239

1240+
class ContentSecurityPolicy
1241+
# @private
1242+
class Representation < Google::Apis::Core::JsonRepresentation
1243+
property :mcp_content_security, as: 'mcpContentSecurity', class: Google::Apis::ServiceusageV1beta1::ContentSecurity, decorator: Google::Apis::ServiceusageV1beta1::ContentSecurity::Representation
1244+
1245+
property :name, as: 'name'
1246+
end
1247+
end
1248+
12281249
class ContentSecurityProvider
12291250
# @private
12301251
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1673,7 +1694,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
16731694
class GoogleApiServiceusageV2betaConsumerPolicy
16741695
# @private
16751696
class Representation < Google::Apis::Core::JsonRepresentation
1676-
hash :annotations, as: 'annotations'
16771697
property :create_time, as: 'createTime'
16781698
collection :enable_rules, as: 'enableRules', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2betaEnableRule, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2betaEnableRule::Representation
16791699

@@ -1865,6 +1885,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
18651885
property :next_page_token, as: 'nextPageToken'
18661886
collection :operations, as: 'operations', class: Google::Apis::ServiceusageV1beta1::Operation, decorator: Google::Apis::ServiceusageV1beta1::Operation::Representation
18671887

1888+
collection :unreachable, as: 'unreachable'
18681889
end
18691890
end
18701891

@@ -1927,8 +1948,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
19271948
class McpPolicy
19281949
# @private
19291950
class Representation < Google::Apis::Core::JsonRepresentation
1930-
property :content_security, as: 'contentSecurity', class: Google::Apis::ServiceusageV1beta1::ContentSecurity, decorator: Google::Apis::ServiceusageV1beta1::ContentSecurity::Representation
1931-
19321951
property :create_time, as: 'createTime'
19331952
property :etag, as: 'etag'
19341953
collection :mcp_enable_rules, as: 'mcpEnableRules', class: Google::Apis::ServiceusageV1beta1::McpEnableRule, decorator: Google::Apis::ServiceusageV1beta1::McpEnableRule::Representation
@@ -2381,6 +2400,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
23812400
end
23822401
end
23832402

2403+
class UpdateContentSecurityPolicyMetadata
2404+
# @private
2405+
class Representation < Google::Apis::Core::JsonRepresentation
2406+
end
2407+
end
2408+
23842409
class UpdateMcpPolicyMetadata
23852410
# @private
23862411
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/service.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9494
# The standard list page size.
9595
# @param [String] page_token
9696
# The standard list page token.
97+
# @param [Boolean] return_partial_success
98+
# When set to `true`, operations that are reachable are returned as normal, and
99+
# those that are unreachable are returned in the [ListOperationsResponse.
100+
# unreachable] field. This can only be `true` when reading across collections e.
101+
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
102+
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
103+
# explicitly documented otherwise in service or product specific documentation.
97104
# @param [String] fields
98105
# Selector specifying which fields to include in a partial response.
99106
# @param [String] quota_user
@@ -111,14 +118,15 @@ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
111118
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112119
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113120
# @raise [Google::Apis::AuthorizationError] Authorization is required
114-
def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
121+
def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
115122
command = make_simple_command(:get, 'v1beta1/operations', options)
116123
command.response_representation = Google::Apis::ServiceusageV1beta1::ListOperationsResponse::Representation
117124
command.response_class = Google::Apis::ServiceusageV1beta1::ListOperationsResponse
118125
command.query['filter'] = filter unless filter.nil?
119126
command.query['name'] = name unless name.nil?
120127
command.query['pageSize'] = page_size unless page_size.nil?
121128
command.query['pageToken'] = page_token unless page_token.nil?
129+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
122130
command.query['fields'] = fields unless fields.nil?
123131
command.query['quotaUser'] = quota_user unless quota_user.nil?
124132
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)