Class: Google::Apis::CloudshellV1alpha1::CreatePublicKeyRequest

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 CreatePublicKey.

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) ⇒ CreatePublicKeyRequest

Returns a new instance of CreatePublicKeyRequest



34
35
36
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 34

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

Instance Attribute Details

#keyGoogle::Apis::CloudshellV1alpha1::PublicKey

A public SSH key, corresponding to a private SSH key held by the client. Corresponds to the JSON property key



32
33
34
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 32

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



39
40
41
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 39

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