Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions generated/google-apis-iamcredentials_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>]
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
Expand Down Expand Up @@ -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<String>]
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<String>]
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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down