Skip to content

Commit f814b6a

Browse files
feat: Automated regeneration of servicecontrol v1 client (googleapis#24193)
Auto-created at 2025-09-07 09:49:24 +0000 using the toys pull request generator.
1 parent 13d0f39 commit f814b6a

File tree

5 files changed

+120
-3
lines changed

5 files changed

+120
-3
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344310,10 +344310,14 @@
344310344310
"/servicecontrol:v1/Auth/claims": claims
344311344311
"/servicecontrol:v1/Auth/claims/claim": claim
344312344312
"/servicecontrol:v1/Auth/credentialId": credential_id
344313+
"/servicecontrol:v1/Auth/oauth": oauth
344313344314
"/servicecontrol:v1/Auth/presenter": presenter
344314344315
"/servicecontrol:v1/Auth/principal": principal
344315344316
"/servicecontrol:v1/AuthenticationInfo": authentication_info
344316344317
"/servicecontrol:v1/AuthenticationInfo/authoritySelector": authority_selector
344318+
"/servicecontrol:v1/AuthenticationInfo/loggableShortLivedCredential": loggable_short_lived_credential
344319+
"/servicecontrol:v1/AuthenticationInfo/loggableShortLivedCredential/loggable_short_lived_credential": loggable_short_lived_credential
344320+
"/servicecontrol:v1/AuthenticationInfo/oauthInfo": oauth_info
344317344321
"/servicecontrol:v1/AuthenticationInfo/principalEmail": principal_email
344318344322
"/servicecontrol:v1/AuthenticationInfo/principalSubject": principal_subject
344319344323
"/servicecontrol:v1/AuthenticationInfo/serviceAccountDelegationInfo": service_account_delegation_info
@@ -344336,6 +344340,7 @@
344336344340
"/servicecontrol:v1/CheckInfo": check_info
344337344341
"/servicecontrol:v1/CheckInfo/apiKeyUid": api_key_uid
344338344342
"/servicecontrol:v1/CheckInfo/consumerInfo": consumer_info
344343+
"/servicecontrol:v1/CheckInfo/ignoreApiKeyUidAsCredentialId": ignore_api_key_uid_as_credential_id
344339344344
"/servicecontrol:v1/CheckInfo/unusedArguments": unused_arguments
344340344345
"/servicecontrol:v1/CheckInfo/unusedArguments/unused_argument": unused_argument
344341344346
"/servicecontrol:v1/CheckRequest": check_request
@@ -344462,6 +344467,10 @@
344462344467
"/servicecontrol:v1/Money/currencyCode": currency_code
344463344468
"/servicecontrol:v1/Money/nanos": nanos
344464344469
"/servicecontrol:v1/Money/units": units
344470+
"/servicecontrol:v1/OAuthInfo": o_auth_info
344471+
"/servicecontrol:v1/OAuthInfo/oauthClientId": oauth_client_id
344472+
"/servicecontrol:v1/Oauth": oauth
344473+
"/servicecontrol:v1/Oauth/clientId": client_id
344465344474
"/servicecontrol:v1/Operation": operation
344466344475
"/servicecontrol:v1/Operation/consumerId": consumer_id
344467344476
"/servicecontrol:v1/Operation/endTime": end_time

generated/google-apis-servicecontrol_v1/CHANGELOG.md

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

3+
### v0.44.0 (2025-09-07)
4+
5+
* Regenerated from discovery document revision 20250820
6+
* Regenerated using generator version 0.18.0
7+
38
### v0.43.0 (2025-05-11)
49

510
* Regenerated using generator version 0.17.0

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

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@ class Auth
355355
# @return [Hash<String,Object>]
356356
attr_accessor :claims
357357

358+
# This message defines attributes associated with OAuth credentials.
359+
# Corresponds to the JSON property `oauth`
360+
# @return [Google::Apis::ServicecontrolV1::Oauth]
361+
attr_accessor :oauth
362+
358363
# The authorized presenter of the credential. Reflects the optional Authorized
359364
# Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a
360365
# Google Cloud Platform client id looks as follows: "123456789012.apps.
@@ -380,6 +385,7 @@ def update!(**args)
380385
@access_levels = args[:access_levels] if args.key?(:access_levels)
381386
@audiences = args[:audiences] if args.key?(:audiences)
382387
@claims = args[:claims] if args.key?(:claims)
388+
@oauth = args[:oauth] if args.key?(:oauth)
383389
@presenter = args[:presenter] if args.key?(:presenter)
384390
@principal = args[:principal] if args.key?(:principal)
385391
end
@@ -395,6 +401,20 @@ class AuthenticationInfo
395401
# @return [String]
396402
attr_accessor :authority_selector
397403

404+
# Converted from "identity_cloudgaia.AuditLoggableShortLivedCredential" proto.
405+
# This message will be used by security, detection and response team. For
406+
# context please refer to go/cg:short-lived-credential-logging. When the JSON
407+
# object represented here has a proto equivalent, the proto name will be
408+
# indicated in the `@type` property.
409+
# Corresponds to the JSON property `loggableShortLivedCredential`
410+
# @return [Hash<String,Object>]
411+
attr_accessor :loggable_short_lived_credential
412+
413+
# OAuth related information about the request.
414+
# Corresponds to the JSON property `oauthInfo`
415+
# @return [Google::Apis::ServicecontrolV1::OAuthInfo]
416+
attr_accessor :oauth_info
417+
398418
# The email address of the authenticated user (or service account on behalf of
399419
# third party principal) making the request. For third party identity callers,
400420
# the `principal_subject` field is populated instead of this field. For privacy
@@ -450,6 +470,8 @@ def initialize(**args)
450470
# Update properties of this object
451471
def update!(**args)
452472
@authority_selector = args[:authority_selector] if args.key?(:authority_selector)
473+
@loggable_short_lived_credential = args[:loggable_short_lived_credential] if args.key?(:loggable_short_lived_credential)
474+
@oauth_info = args[:oauth_info] if args.key?(:oauth_info)
453475
@principal_email = args[:principal_email] if args.key?(:principal_email)
454476
@principal_subject = args[:principal_subject] if args.key?(:principal_subject)
455477
@service_account_delegation_info = args[:service_account_delegation_info] if args.key?(:service_account_delegation_info)
@@ -569,6 +591,13 @@ class CheckInfo
569591
# @return [Google::Apis::ServicecontrolV1::ConsumerInfo]
570592
attr_accessor :consumer_info
571593

594+
# Whether or not the api key should be ignored in the credential_id during
595+
# reporting.
596+
# Corresponds to the JSON property `ignoreApiKeyUidAsCredentialId`
597+
# @return [Boolean]
598+
attr_accessor :ignore_api_key_uid_as_credential_id
599+
alias_method :ignore_api_key_uid_as_credential_id?, :ignore_api_key_uid_as_credential_id
600+
572601
# A list of fields and label keys that are ignored by the server. The client
573602
# doesn't need to send them for following requests to improve performance and
574603
# allow better aggregation.
@@ -584,6 +613,7 @@ def initialize(**args)
584613
def update!(**args)
585614
@api_key_uid = args[:api_key_uid] if args.key?(:api_key_uid)
586615
@consumer_info = args[:consumer_info] if args.key?(:consumer_info)
616+
@ignore_api_key_uid_as_credential_id = args[:ignore_api_key_uid_as_credential_id] if args.key?(:ignore_api_key_uid_as_credential_id)
587617
@unused_arguments = args[:unused_arguments] if args.key?(:unused_arguments)
588618
end
589619
end
@@ -1411,6 +1441,47 @@ def update!(**args)
14111441
end
14121442
end
14131443

1444+
# OAuth related information about the request.
1445+
class OAuthInfo
1446+
include Google::Apis::Core::Hashable
1447+
1448+
# The OAuth client ID of the 1P or 3P application acting on behalf of the user.
1449+
# Corresponds to the JSON property `oauthClientId`
1450+
# @return [String]
1451+
attr_accessor :oauth_client_id
1452+
1453+
def initialize(**args)
1454+
update!(**args)
1455+
end
1456+
1457+
# Update properties of this object
1458+
def update!(**args)
1459+
@oauth_client_id = args[:oauth_client_id] if args.key?(:oauth_client_id)
1460+
end
1461+
end
1462+
1463+
# This message defines attributes associated with OAuth credentials.
1464+
class Oauth
1465+
include Google::Apis::Core::Hashable
1466+
1467+
# The optional OAuth client ID. This is the unique public identifier issued by
1468+
# an authorization server to a registered client application. Empty string is
1469+
# equivalent to no oauth client id. WARNING: This is for MCP tools/call and
1470+
# tools/list authorization and not for general use.
1471+
# Corresponds to the JSON property `clientId`
1472+
# @return [String]
1473+
attr_accessor :client_id
1474+
1475+
def initialize(**args)
1476+
update!(**args)
1477+
end
1478+
1479+
# Update properties of this object
1480+
def update!(**args)
1481+
@client_id = args[:client_id] if args.key?(:client_id)
1482+
end
1483+
end
1484+
14141485
# Represents information regarding an operation.
14151486
class Operation
14161487
include Google::Apis::Core::Hashable

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ServicecontrolV1
1818
# Version of the google-apis-servicecontrol_v1 gem
19-
GEM_VERSION = "0.43.0"
19+
GEM_VERSION = "0.44.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.17.0"
22+
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
184184
include Google::Apis::Core::JsonObjectSupport
185185
end
186186

187+
class OAuthInfo
188+
class Representation < Google::Apis::Core::JsonRepresentation; end
189+
190+
include Google::Apis::Core::JsonObjectSupport
191+
end
192+
193+
class Oauth
194+
class Representation < Google::Apis::Core::JsonRepresentation; end
195+
196+
include Google::Apis::Core::JsonObjectSupport
197+
end
198+
187199
class Operation
188200
class Representation < Google::Apis::Core::JsonRepresentation; end
189201

@@ -446,6 +458,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
446458
collection :access_levels, as: 'accessLevels'
447459
collection :audiences, as: 'audiences'
448460
hash :claims, as: 'claims'
461+
property :oauth, as: 'oauth', class: Google::Apis::ServicecontrolV1::Oauth, decorator: Google::Apis::ServicecontrolV1::Oauth::Representation
462+
449463
property :presenter, as: 'presenter'
450464
property :principal, as: 'principal'
451465
end
@@ -455,6 +469,9 @@ class AuthenticationInfo
455469
# @private
456470
class Representation < Google::Apis::Core::JsonRepresentation
457471
property :authority_selector, as: 'authoritySelector'
472+
hash :loggable_short_lived_credential, as: 'loggableShortLivedCredential'
473+
property :oauth_info, as: 'oauthInfo', class: Google::Apis::ServicecontrolV1::OAuthInfo, decorator: Google::Apis::ServicecontrolV1::OAuthInfo::Representation
474+
458475
property :principal_email, as: 'principalEmail'
459476
property :principal_subject, as: 'principalSubject'
460477
collection :service_account_delegation_info, as: 'serviceAccountDelegationInfo', class: Google::Apis::ServicecontrolV1::ServiceAccountDelegationInfo, decorator: Google::Apis::ServicecontrolV1::ServiceAccountDelegationInfo::Representation
@@ -495,6 +512,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
495512
property :api_key_uid, as: 'apiKeyUid'
496513
property :consumer_info, as: 'consumerInfo', class: Google::Apis::ServicecontrolV1::ConsumerInfo, decorator: Google::Apis::ServicecontrolV1::ConsumerInfo::Representation
497514

515+
property :ignore_api_key_uid_as_credential_id, as: 'ignoreApiKeyUidAsCredentialId'
498516
collection :unused_arguments, as: 'unusedArguments'
499517
end
500518
end
@@ -692,6 +710,20 @@ class Representation < Google::Apis::Core::JsonRepresentation
692710
end
693711
end
694712

713+
class OAuthInfo
714+
# @private
715+
class Representation < Google::Apis::Core::JsonRepresentation
716+
property :oauth_client_id, as: 'oauthClientId'
717+
end
718+
end
719+
720+
class Oauth
721+
# @private
722+
class Representation < Google::Apis::Core::JsonRepresentation
723+
property :client_id, as: 'clientId'
724+
end
725+
end
726+
695727
class Operation
696728
# @private
697729
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)