Class: Google::Apis::CloudshellV1::AuthorizeEnvironmentRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudshell_v1/classes.rb,
generated/google/apis/cloudshell_v1/representations.rb,
generated/google/apis/cloudshell_v1/representations.rb

Overview

Request message for AuthorizeEnvironment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthorizeEnvironmentRequest

Returns a new instance of AuthorizeEnvironmentRequest.



114
115
116
# File 'generated/google/apis/cloudshell_v1/classes.rb', line 114

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#access_tokenString

The OAuth access token that should be sent to the environment. Corresponds to the JSON property accessToken

Returns:

  • (String)


101
102
103
# File 'generated/google/apis/cloudshell_v1/classes.rb', line 101

def access_token
  @access_token
end

#expire_timeString

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

Returns:

  • (String)


107
108
109
# File 'generated/google/apis/cloudshell_v1/classes.rb', line 107

def expire_time
  @expire_time
end

#id_tokenString

The OAuth ID token that should be sent to the environment. Corresponds to the JSON property idToken

Returns:

  • (String)


112
113
114
# File 'generated/google/apis/cloudshell_v1/classes.rb', line 112

def id_token
  @id_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



119
120
121
122
123
# File 'generated/google/apis/cloudshell_v1/classes.rb', line 119

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