Class: Google::Apis::CloudshellV1::AuthorizeEnvironmentRequest
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudshellV1::AuthorizeEnvironmentRequest
 
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudshell_v1/classes.rb,
 lib/google/apis/cloudshell_v1/representations.rb,
 lib/google/apis/cloudshell_v1/representations.rb
Overview
Request message for AuthorizeEnvironment.
Instance Attribute Summary collapse
- 
  
    
      #access_token  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The OAuth access token that should be sent to the environment. 
- 
  
    
      #expire_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time when the credentials expire. 
- 
  
    
      #id_token  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The OAuth ID token that should be sent to the environment. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AuthorizeEnvironmentRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AuthorizeEnvironmentRequest. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ AuthorizeEnvironmentRequest
Returns a new instance of AuthorizeEnvironmentRequest.
| 115 116 117 | # File 'lib/google/apis/cloudshell_v1/classes.rb', line 115 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#access_token ⇒ String
The OAuth access token that should be sent to the environment.
Corresponds to the JSON property accessToken
| 102 103 104 | # File 'lib/google/apis/cloudshell_v1/classes.rb', line 102 def access_token @access_token end | 
#expire_time ⇒ String
The time when the credentials expire. If not set, defaults to one hour from
when the server received the request.
Corresponds to the JSON property expireTime
| 108 109 110 | # File 'lib/google/apis/cloudshell_v1/classes.rb', line 108 def expire_time @expire_time end | 
#id_token ⇒ String
The OAuth ID token that should be sent to the environment.
Corresponds to the JSON property idToken
| 113 114 115 | # File 'lib/google/apis/cloudshell_v1/classes.rb', line 113 def id_token @id_token end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 120 121 122 123 124 | # File 'lib/google/apis/cloudshell_v1/classes.rb', line 120 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @expire_time = args[:expire_time] if args.key?(:expire_time) @id_token = args[:id_token] if args.key?(:id_token) end |