diff --git a/generated/google-apis-iamcredentials_v1/CHANGELOG.md b/generated/google-apis-iamcredentials_v1/CHANGELOG.md index 84281b940c0..4bf026af794 100644 --- a/generated/google-apis-iamcredentials_v1/CHANGELOG.md +++ b/generated/google-apis-iamcredentials_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-iamcredentials_v1 +### v0.26.0 (2025-11-09) + +* Regenerated from discovery document revision 20251022 + ### v0.25.0 (2025-10-26) * Regenerated from discovery document revision 20251009 diff --git a/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/classes.rb b/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/classes.rb index 00d45e3f07c..1d5effb6b53 100644 --- a/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/classes.rb +++ b/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/classes.rb @@ -173,6 +173,32 @@ def update!(**args) end end + # Represents a list of allowed locations for given service account. + class ServiceAccountAllowedLocations + include Google::Apis::Core::Hashable + + # Output only. The hex encoded bitmap of the trust boundary locations + # Corresponds to the JSON property `encodedLocations` + # @return [String] + attr_accessor :encoded_locations + + # Output only. The human readable trust boundary locations. For example, ["us- + # central1", "europe-west1"] + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @encoded_locations = args[:encoded_locations] if args.key?(:encoded_locations) + @locations = args[:locations] if args.key?(:locations) + end + end + # class SignBlobRequest include Google::Apis::Core::Hashable @@ -314,6 +340,58 @@ def update!(**args) @signed_jwt = args[:signed_jwt] if args.key?(:signed_jwt) end end + + # Represents a list of allowed locations for given workforce pool. + class WorkforcePoolAllowedLocations + include Google::Apis::Core::Hashable + + # Output only. The hex encoded bitmap of the trust boundary locations + # Corresponds to the JSON property `encodedLocations` + # @return [String] + attr_accessor :encoded_locations + + # Output only. The human readable trust boundary locations. For example, ["us- + # central1", "europe-west1"] + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @encoded_locations = args[:encoded_locations] if args.key?(:encoded_locations) + @locations = args[:locations] if args.key?(:locations) + end + end + + # Represents a list of allowed locations for given workload identity pool. + class WorkloadIdentityPoolAllowedLocations + include Google::Apis::Core::Hashable + + # Output only. The hex encoded bitmap of the trust boundary locations + # Corresponds to the JSON property `encodedLocations` + # @return [String] + attr_accessor :encoded_locations + + # Output only. The human readable trust boundary locations. For example, ["us- + # central1", "europe-west1"] + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @encoded_locations = args[:encoded_locations] if args.key?(:encoded_locations) + @locations = args[:locations] if args.key?(:locations) + end + end end end end diff --git a/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/gem_version.rb b/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/gem_version.rb index 7144767d8ac..afe646157f2 100644 --- a/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/gem_version.rb +++ b/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module IamcredentialsV1 # Version of the google-apis-iamcredentials_v1 gem - GEM_VERSION = "0.25.0" + GEM_VERSION = "0.26.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251009" + REVISION = "20251022" end end end diff --git a/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/representations.rb b/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/representations.rb index e7c69138a73..9a8f297de1f 100644 --- a/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/representations.rb +++ b/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/representations.rb @@ -46,6 +46,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ServiceAccountAllowedLocations + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SignBlobRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -70,6 +76,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class WorkforcePoolAllowedLocations + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkloadIdentityPoolAllowedLocations + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GenerateAccessTokenRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -104,6 +122,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ServiceAccountAllowedLocations + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :encoded_locations, as: 'encodedLocations' + collection :locations, as: 'locations' + end + end + class SignBlobRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -135,6 +161,22 @@ class Representation < Google::Apis::Core::JsonRepresentation property :signed_jwt, as: 'signedJwt' end end + + class WorkforcePoolAllowedLocations + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :encoded_locations, as: 'encodedLocations' + collection :locations, as: 'locations' + end + end + + class WorkloadIdentityPoolAllowedLocations + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :encoded_locations, as: 'encodedLocations' + collection :locations, as: 'locations' + end + end end end end diff --git a/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/service.rb b/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/service.rb index 8d92c272c4e..aea1217036b 100644 --- a/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/service.rb +++ b/generated/google-apis-iamcredentials_v1/lib/google/apis/iamcredentials_v1/service.rb @@ -53,6 +53,66 @@ def initialize @batch_path = 'batch' end + # Returns the trust boundary info for a given workforce pool. + # @param [String] name + # Required. Resource name of workforce pool. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamcredentialsV1::WorkforcePoolAllowedLocations] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamcredentialsV1::WorkforcePoolAllowedLocations] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_location_workforce_pool_allowed_locations(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/allowedLocations', options) + command.response_representation = Google::Apis::IamcredentialsV1::WorkforcePoolAllowedLocations::Representation + command.response_class = Google::Apis::IamcredentialsV1::WorkforcePoolAllowedLocations + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the trust boundary info for a given workload identity pool. + # @param [String] name + # Required. Resource name of workload identity pool. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamcredentialsV1::WorkloadIdentityPoolAllowedLocations] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamcredentialsV1::WorkloadIdentityPoolAllowedLocations] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_workload_identity_pool_allowed_locations(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/allowedLocations', options) + command.response_representation = Google::Apis::IamcredentialsV1::WorkloadIdentityPoolAllowedLocations::Representation + command.response_class = Google::Apis::IamcredentialsV1::WorkloadIdentityPoolAllowedLocations + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Generates an OAuth 2.0 access token for a service account. # @param [String] name # Required. The resource name of the service account for which the credentials @@ -125,6 +185,36 @@ def generate_service_account_id_token(name, generate_id_token_request_object = n execute_or_queue_command(command, &block) end + # Returns the trust boundary info for a given service account. + # @param [String] name + # Required. Resource name of service account. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::IamcredentialsV1::ServiceAccountAllowedLocations] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IamcredentialsV1::ServiceAccountAllowedLocations] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_service_account_allowed_locations(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/allowedLocations', options) + command.response_representation = Google::Apis::IamcredentialsV1::ServiceAccountAllowedLocations::Representation + command.response_class = Google::Apis::IamcredentialsV1::ServiceAccountAllowedLocations + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Signs a blob using a service account's system-managed private key. # @param [String] name # Required. The resource name of the service account for which the credentials