Class: Google::Apis::IamcredentialsV1::GenerateIdTokenRequest
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::IamcredentialsV1::GenerateIdTokenRequest
 
 
- 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
- 
  
    
      #audience  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The audience for the token, such as the API or account that this token grants access to.
 - 
  
    
      #delegates  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The sequence of service accounts in a delegation chain.
 - 
  
    
      #include_email  ⇒ Boolean 
    
    
      (also: #include_email?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Include the service account email in the token.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GenerateIdTokenRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GenerateIdTokenRequest.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GenerateIdTokenRequest
Returns a new instance of GenerateIdTokenRequest
      124 125 126  | 
    
      # File 'generated/google/apis/iamcredentials_v1/classes.rb', line 124 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#audience ⇒ String
The audience for the token, such as the API or account that this token
grants access to.
Corresponds to the JSON property audience
      103 104 105  | 
    
      # File 'generated/google/apis/iamcredentials_v1/classes.rb', line 103 def audience @audience end  | 
  
#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`
      115 116 117  | 
    
      # File 'generated/google/apis/iamcredentials_v1/classes.rb', line 115 def delegates @delegates end  | 
  
#include_email ⇒ Boolean Also known as: include_email?
Include the service account email in the token. If set to true, the
token will contain email and email_verified claims.
Corresponds to the JSON property includeEmail
      121 122 123  | 
    
      # File 'generated/google/apis/iamcredentials_v1/classes.rb', line 121 def include_email @include_email end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      129 130 131 132 133  | 
    
      # File 'generated/google/apis/iamcredentials_v1/classes.rb', line 129 def update!(**args) @audience = args[:audience] if args.key?(:audience) @delegates = args[:delegates] if args.key?(:delegates) @include_email = args[:include_email] if args.key?(:include_email) end  |