Class: Google::Apis::IamcredentialsV1::SignJwtRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/iamcredentials_v1/classes.rb,
generated/google/apis/iamcredentials_v1/representations.rb,
generated/google/apis/iamcredentials_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SignJwtRequest

Returns a new instance of SignJwtRequest.



242
243
244
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 242

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#delegatesArray<String>

The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator role on the service account that is specified in the name field of the request. The delegates must have the following format: projects/-/serviceAccounts/ACCOUNT_EMAIL_OR_UNIQUEID`. The-wildcard character is required; replacing it with a project ID is invalid. Corresponds to the JSON propertydelegates`

Returns:

  • (Array<String>)


234
235
236
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 234

def delegates
  @delegates
end

#payloadString

Required. The JWT payload to sign: a JSON object that contains a JWT Claims Set. Corresponds to the JSON property payload

Returns:

  • (String)


240
241
242
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 240

def payload
  @payload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



247
248
249
250
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 247

def update!(**args)
  @delegates = args[:delegates] if args.key?(:delegates)
  @payload = args[:payload] if args.key?(:payload)
end