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



53
54
55
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 53

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



51
52
53
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 51

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



58
59
60
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 58

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