Class: Google::Apis::IamcredentialsV1::SignBlobRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SignBlobRequest

Returns a new instance of SignBlobRequest.



181
182
183
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 181

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>)


173
174
175
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 173

def delegates
  @delegates
end

#payloadString

Required. The bytes to sign. Corresponds to the JSON property payload NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


179
180
181
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 179

def payload
  @payload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



186
187
188
189
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 186

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