Class: Google::Apis::IamcredentialsV1::SignJwtRequest
- Inherits:
-
Object
- Object
- Google::Apis::IamcredentialsV1::SignJwtRequest
- 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
-
#delegates ⇒ Array<String>
The sequence of service accounts in a delegation chain.
-
#payload ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SignJwtRequest
constructor
A new instance of SignJwtRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SignJwtRequest
Returns a new instance of SignJwtRequest.
279 280 281 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 279 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delegates ⇒ Array<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`
268 269 270 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 268 def delegates @delegates end |
#payload ⇒ String
Required. The JWT payload to sign. Must be a serialized JSON object that
contains a JWT Claims Set. For example: "sub": "user@example.com", "iat":
313435 If the JWT Claims Set contains an expiration time (exp) claim, it
must be an integer timestamp that is not in the past and no more than 12 hours
in the future.
Corresponds to the JSON property payload
277 278 279 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 277 def payload @payload end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
284 285 286 287 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 284 def update!(**args) @delegates = args[:delegates] if args.key?(:delegates) @payload = args[:payload] if args.key?(:payload) end |