Class: Google::Apis::CloudshellV1alpha1::StartEnvironmentRequest

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

Overview

Request message for StartEnvironment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StartEnvironmentRequest

Returns a new instance of StartEnvironmentRequest.



339
340
341
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 339

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

Instance Attribute Details

#access_tokenString

The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment. Corresponds to the JSON property accessToken

Returns:

  • (String)


332
333
334
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 332

def access_token
  @access_token
end

#public_keysArray<Google::Apis::CloudshellV1alpha1::PublicKey>

Public keys that should be added to the environment before it is started. Corresponds to the JSON property publicKeys



337
338
339
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 337

def public_keys
  @public_keys
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



344
345
346
347
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 344

def update!(**args)
  @access_token = args[:access_token] if args.key?(:access_token)
  @public_keys = args[:public_keys] if args.key?(:public_keys)
end