Skip to content

Commit 69956ce

Browse files
feat: Automated regeneration of serviceusage v1 client (googleapis#24762)
Auto-created at 2025-10-26 11:02:28 +0000 using the toys pull request generator.
1 parent 9db9c76 commit 69956ce

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
@@ -356763,6 +356763,9 @@
356763356763
"/serviceusage:v1/ContentSecurity": content_security
356764356764
"/serviceusage:v1/ContentSecurity/contentSecurityProviders": content_security_providers
356765356765
"/serviceusage:v1/ContentSecurity/contentSecurityProviders/content_security_provider": content_security_provider
356766+
"/serviceusage:v1/ContentSecurityPolicy": content_security_policy
356767+
"/serviceusage:v1/ContentSecurityPolicy/mcpContentSecurity": mcp_content_security
356768+
"/serviceusage:v1/ContentSecurityPolicy/name": name
356766356769
"/serviceusage:v1/ContentSecurityProvider": content_security_provider
356767356770
"/serviceusage:v1/ContentSecurityProvider/name": name
356768356771
"/serviceusage:v1/Context": context
@@ -357090,6 +357093,8 @@
357090357093
"/serviceusage:v1/ListOperationsResponse/nextPageToken": next_page_token
357091357094
"/serviceusage:v1/ListOperationsResponse/operations": operations
357092357095
"/serviceusage:v1/ListOperationsResponse/operations/operation": operation
357096+
"/serviceusage:v1/ListOperationsResponse/unreachable": unreachable
357097+
"/serviceusage:v1/ListOperationsResponse/unreachable/unreachable": unreachable
357093357098
"/serviceusage:v1/ListServicesResponse": list_services_response
357094357099
"/serviceusage:v1/ListServicesResponse/nextPageToken": next_page_token
357095357100
"/serviceusage:v1/ListServicesResponse/services": services
@@ -357359,6 +357364,7 @@
357359357364
"/serviceusage:v1/UpdateAdminQuotaPolicyMetadata": update_admin_quota_policy_metadata
357360357365
"/serviceusage:v1/UpdateConsumerPolicyLROMetadata": update_consumer_policy_lro_metadata
357361357366
"/serviceusage:v1/UpdateConsumerPolicyMetadata": update_consumer_policy_metadata
357367+
"/serviceusage:v1/UpdateContentSecurityPolicyMetadata": update_content_security_policy_metadata
357362357368
"/serviceusage:v1/UpdateMcpPolicyMetadata": update_mcp_policy_metadata
357363357369
"/serviceusage:v1/Usage": usage
357364357370
"/serviceusage:v1/Usage/producerNotificationChannel": producer_notification_channel
@@ -357397,6 +357403,7 @@
357397357403
"/serviceusage:v1/serviceusage.operations.list/name": name
357398357404
"/serviceusage:v1/serviceusage.operations.list/pageSize": page_size
357399357405
"/serviceusage:v1/serviceusage.operations.list/pageToken": page_token
357406+
"/serviceusage:v1/serviceusage.operations.list/returnPartialSuccess": return_partial_success
357400357407
"/serviceusage:v1/serviceusage.services.batchEnable": batch_enable_services
357401357408
"/serviceusage:v1/serviceusage.services.batchEnable/parent": parent
357402357409
"/serviceusage:v1/serviceusage.services.batchGet": batch_service_get

generated/google-apis-serviceusage_v1/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_v1
22

3+
### v0.71.0 (2025-10-26)
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_v1/lib/google/apis/serviceusage_v1/classes.rb

Lines changed: 51 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,36 @@ def update!(**args)
11691169
end
11701170
end
11711171

1172+
# Content Security Policy contains the content security related policy of a
1173+
# resource.
1174+
class ContentSecurityPolicy
1175+
include Google::Apis::Core::Hashable
1176+
1177+
# ContentSecurity defines the content security related fields of a MCP policy.
1178+
# Corresponds to the JSON property `mcpContentSecurity`
1179+
# @return [Google::Apis::ServiceusageV1::ContentSecurity]
1180+
attr_accessor :mcp_content_security
1181+
1182+
# Output only. The resource name of the policy. Only the `default` policy is
1183+
# supported. We allow the following formats: `projects/`PROJECT_NUMBER`/
1184+
# contentSecurityPolicies/default`, `projects/`PROJECT_ID`/
1185+
# contentSecurityPolicies/default`, We only support project level content
1186+
# security policy for now.
1187+
# Corresponds to the JSON property `name`
1188+
# @return [String]
1189+
attr_accessor :name
1190+
1191+
def initialize(**args)
1192+
update!(**args)
1193+
end
1194+
1195+
# Update properties of this object
1196+
def update!(**args)
1197+
@mcp_content_security = args[:mcp_content_security] if args.key?(:mcp_content_security)
1198+
@name = args[:name] if args.key?(:name)
1199+
end
1200+
end
1201+
11721202
# ContentSecurityProvider contains the name of content security provider.
11731203
class ContentSecurityProvider
11741204
include Google::Apis::Core::Hashable
@@ -2982,14 +3012,6 @@ def update!(**args)
29823012
class GoogleApiServiceusageV2betaConsumerPolicy
29833013
include Google::Apis::Core::Hashable
29843014

2985-
# Optional. Annotations is an unstructured key-value map stored with a policy
2986-
# that may be set by external tools to store and retrieve arbitrary metadata.
2987-
# They are not queryable and should be preserved when modifying objects. [AIP-
2988-
# 128](https://google.aip.dev/128#annotations)
2989-
# Corresponds to the JSON property `annotations`
2990-
# @return [Hash<String,String>]
2991-
attr_accessor :annotations
2992-
29933015
# Output only. The time the policy was created. For singleton policies, this is
29943016
# the first touch of the policy.
29953017
# Corresponds to the JSON property `createTime`
@@ -3027,7 +3049,6 @@ def initialize(**args)
30273049

30283050
# Update properties of this object
30293051
def update!(**args)
3030-
@annotations = args[:annotations] if args.key?(:annotations)
30313052
@create_time = args[:create_time] if args.key?(:create_time)
30323053
@enable_rules = args[:enable_rules] if args.key?(:enable_rules)
30333054
@etag = args[:etag] if args.key?(:etag)
@@ -3613,6 +3634,13 @@ class ListOperationsResponse
36133634
# @return [Array<Google::Apis::ServiceusageV1::Operation>]
36143635
attr_accessor :operations
36153636

3637+
# Unordered list. Unreachable resources. Populated when the request sets `
3638+
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
3639+
# when attempting to list all resources across all supported locations.
3640+
# Corresponds to the JSON property `unreachable`
3641+
# @return [Array<String>]
3642+
attr_accessor :unreachable
3643+
36163644
def initialize(**args)
36173645
update!(**args)
36183646
end
@@ -3621,6 +3649,7 @@ def initialize(**args)
36213649
def update!(**args)
36223650
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
36233651
@operations = args[:operations] if args.key?(:operations)
3652+
@unreachable = args[:unreachable] if args.key?(:unreachable)
36243653
end
36253654
end
36263655

@@ -3830,11 +3859,6 @@ def update!(**args)
38303859
class McpPolicy
38313860
include Google::Apis::Core::Hashable
38323861

3833-
# ContentSecurity defines the content security related fields of a MCP policy.
3834-
# Corresponds to the JSON property `contentSecurity`
3835-
# @return [Google::Apis::ServiceusageV1::ContentSecurity]
3836-
attr_accessor :content_security
3837-
38383862
# Output only. The time the policy was created. For singleton policies (such as
38393863
# the `default` policy), this is the first touch of the policy.
38403864
# Corresponds to the JSON property `createTime`
@@ -3871,7 +3895,6 @@ def initialize(**args)
38713895

38723896
# Update properties of this object
38733897
def update!(**args)
3874-
@content_security = args[:content_security] if args.key?(:content_security)
38753898
@create_time = args[:create_time] if args.key?(:create_time)
38763899
@etag = args[:etag] if args.key?(:etag)
38773900
@mcp_enable_rules = args[:mcp_enable_rules] if args.key?(:mcp_enable_rules)
@@ -5431,6 +5454,19 @@ def update!(**args)
54315454
end
54325455
end
54335456

5457+
# Metadata for the `UpdateContentSecurityPolicy` method.
5458+
class UpdateContentSecurityPolicyMetadata
5459+
include Google::Apis::Core::Hashable
5460+
5461+
def initialize(**args)
5462+
update!(**args)
5463+
end
5464+
5465+
# Update properties of this object
5466+
def update!(**args)
5467+
end
5468+
end
5469+
54345470
# Metadata for the `UpdateMcpPolicy` method.
54355471
class UpdateMcpPolicyMetadata
54365472
include Google::Apis::Core::Hashable

generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/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 ServiceusageV1
1818
# Version of the google-apis-serviceusage_v1 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_v1/lib/google/apis/serviceusage_v1/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

@@ -820,6 +826,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
820826
include Google::Apis::Core::JsonObjectSupport
821827
end
822828

829+
class UpdateContentSecurityPolicyMetadata
830+
class Representation < Google::Apis::Core::JsonRepresentation; end
831+
832+
include Google::Apis::Core::JsonObjectSupport
833+
end
834+
823835
class UpdateMcpPolicyMetadata
824836
class Representation < Google::Apis::Core::JsonRepresentation; end
825837

@@ -1145,6 +1157,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
11451157
end
11461158
end
11471159

1160+
class ContentSecurityPolicy
1161+
# @private
1162+
class Representation < Google::Apis::Core::JsonRepresentation
1163+
property :mcp_content_security, as: 'mcpContentSecurity', class: Google::Apis::ServiceusageV1::ContentSecurity, decorator: Google::Apis::ServiceusageV1::ContentSecurity::Representation
1164+
1165+
property :name, as: 'name'
1166+
end
1167+
end
1168+
11481169
class ContentSecurityProvider
11491170
# @private
11501171
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1595,7 +1616,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
15951616
class GoogleApiServiceusageV2betaConsumerPolicy
15961617
# @private
15971618
class Representation < Google::Apis::Core::JsonRepresentation
1598-
hash :annotations, as: 'annotations'
15991619
property :create_time, as: 'createTime'
16001620
collection :enable_rules, as: 'enableRules', class: Google::Apis::ServiceusageV1::GoogleApiServiceusageV2betaEnableRule, decorator: Google::Apis::ServiceusageV1::GoogleApiServiceusageV2betaEnableRule::Representation
16011621

@@ -1740,6 +1760,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
17401760
property :next_page_token, as: 'nextPageToken'
17411761
collection :operations, as: 'operations', class: Google::Apis::ServiceusageV1::Operation, decorator: Google::Apis::ServiceusageV1::Operation::Representation
17421762

1763+
collection :unreachable, as: 'unreachable'
17431764
end
17441765
end
17451766

@@ -1802,8 +1823,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
18021823
class McpPolicy
18031824
# @private
18041825
class Representation < Google::Apis::Core::JsonRepresentation
1805-
property :content_security, as: 'contentSecurity', class: Google::Apis::ServiceusageV1::ContentSecurity, decorator: Google::Apis::ServiceusageV1::ContentSecurity::Representation
1806-
18071826
property :create_time, as: 'createTime'
18081827
property :etag, as: 'etag'
18091828
collection :mcp_enable_rules, as: 'mcpEnableRules', class: Google::Apis::ServiceusageV1::McpEnableRule, decorator: Google::Apis::ServiceusageV1::McpEnableRule::Representation
@@ -2175,6 +2194,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
21752194
end
21762195
end
21772196

2197+
class UpdateContentSecurityPolicyMetadata
2198+
# @private
2199+
class Representation < Google::Apis::Core::JsonRepresentation
2200+
end
2201+
end
2202+
21782203
class UpdateMcpPolicyMetadata
21792204
# @private
21802205
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
167167
# The standard list page size.
168168
# @param [String] page_token
169169
# The standard list page token.
170+
# @param [Boolean] return_partial_success
171+
# When set to `true`, operations that are reachable are returned as normal, and
172+
# those that are unreachable are returned in the [ListOperationsResponse.
173+
# unreachable] field. This can only be `true` when reading across collections e.
174+
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
175+
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
176+
# explicitly documented otherwise in service or product specific documentation.
170177
# @param [String] fields
171178
# Selector specifying which fields to include in a partial response.
172179
# @param [String] quota_user
@@ -184,14 +191,15 @@ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
184191
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
185192
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
186193
# @raise [Google::Apis::AuthorizationError] Authorization is required
187-
def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
194+
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)
188195
command = make_simple_command(:get, 'v1/operations', options)
189196
command.response_representation = Google::Apis::ServiceusageV1::ListOperationsResponse::Representation
190197
command.response_class = Google::Apis::ServiceusageV1::ListOperationsResponse
191198
command.query['filter'] = filter unless filter.nil?
192199
command.query['name'] = name unless name.nil?
193200
command.query['pageSize'] = page_size unless page_size.nil?
194201
command.query['pageToken'] = page_token unless page_token.nil?
202+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
195203
command.query['fields'] = fields unless fields.nil?
196204
command.query['quotaUser'] = quota_user unless quota_user.nil?
197205
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)