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.


66
67
68
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 66

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


64
65
66
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 64

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


71
72
73
# File 'generated/google/apis/cloudshell_v1alpha1/classes.rb', line 71

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