Class: Google::Apis::IamcredentialsV1::GenerateAccessTokenRequest
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::IamcredentialsV1::GenerateAccessTokenRequest
 
 
- 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
- 
  
    
      #delegates  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The sequence of service accounts in a delegation chain.
 - 
  
    
      #lifetime  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The desired lifetime duration of the access token in seconds.
 - 
  
    
      #scope  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Code to identify the scopes to be included in the OAuth 2.0 access token.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GenerateAccessTokenRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GenerateAccessTokenRequest.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GenerateAccessTokenRequest
Returns a new instance of GenerateAccessTokenRequest
      57 58 59  | 
    
      # File 'generated/google/apis/iamcredentials_v1/classes.rb', line 57 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`
Corresponds to the JSON propertydelegates`
      39 40 41  | 
    
      # File 'generated/google/apis/iamcredentials_v1/classes.rb', line 39 def delegates @delegates end  | 
  
#lifetime ⇒ String
The desired lifetime duration of the access token in seconds.
Must be set to a value less than or equal to 3600 (1 hour). If a value is
not specified, the token's lifetime will be set to a default value of one
hour.
Corresponds to the JSON property lifetime
      47 48 49  | 
    
      # File 'generated/google/apis/iamcredentials_v1/classes.rb', line 47 def lifetime @lifetime end  | 
  
#scope ⇒ Array<String>
Code to identify the scopes to be included in the OAuth 2.0 access token.
See https://developers.google.com/identity/protocols/googlescopes for more
information.
At least one value required.
Corresponds to the JSON property scope
      55 56 57  | 
    
      # File 'generated/google/apis/iamcredentials_v1/classes.rb', line 55 def scope @scope end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      62 63 64 65 66  | 
    
      # File 'generated/google/apis/iamcredentials_v1/classes.rb', line 62 def update!(**args) @delegates = args[:delegates] if args.key?(:delegates) @lifetime = args[:lifetime] if args.key?(:lifetime) @scope = args[:scope] if args.key?(:scope) end  |