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.
1986 1987 1988 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1986 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 propertykmsKeyVersion`
1973 1974 1975 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1973 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
1979 1980 1981 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1979 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
1984 1985 1986 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1984 def ssh_keys @ssh_keys end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1991 1992 1993 1994 1995 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1991 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 |