Class: Google::Apis::BaremetalsolutionV2::ReimageInstanceRequest
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::ReimageInstanceRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb
Overview
Message requesting to perform reimage operation on a server.
Instance Attribute Summary collapse
-
#kms_key_version ⇒ String
Optional.
-
#os_image ⇒ String
Required.
-
#ssh_keys ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReimageInstanceRequest
constructor
A new instance of ReimageInstanceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReimageInstanceRequest
Returns a new instance of ReimageInstanceRequest.
1995 1996 1997 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1995 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kms_key_version ⇒ String
Optional. Name of the KMS crypto key version used to encrypt the initial
passwords. The key has to have ASYMMETRIC_DECRYPT purpose. Format is projects/
project/locations/
location/keyRings/
keyring/cryptoKeys/
key/
cryptoKeyVersions/
version`.
Corresponds to the JSON property
kmsKeyVersion`
1982 1983 1984 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1982 def kms_key_version @kms_key_version end |
#os_image ⇒ String
Required. The OS image code of the image which will be used in the reimage
operation.
Corresponds to the JSON property osImage
1988 1989 1990 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1988 def os_image @os_image end |
#ssh_keys ⇒ Array<String>
Optional. List of SSH Keys used during reimaging an instance.
Corresponds to the JSON property sshKeys
1993 1994 1995 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1993 def ssh_keys @ssh_keys end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2000 2001 2002 2003 2004 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2000 def update!(**args) @kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version) @os_image = args[:os_image] if args.key?(:os_image) @ssh_keys = args[:ssh_keys] if args.key?(:ssh_keys) end |