Class: Google::Apis::BaremetalsolutionV2::ReimageInstanceRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_versionString

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`

Returns:

  • (String)


1982
1983
1984
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1982

def kms_key_version
  @kms_key_version
end

#os_imageString

Required. The OS image code of the image which will be used in the reimage operation. Corresponds to the JSON property osImage

Returns:

  • (String)


1988
1989
1990
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1988

def os_image
  @os_image
end

#ssh_keysArray<String>

Optional. List of SSH Keys used during reimaging an instance. Corresponds to the JSON property sshKeys

Returns:

  • (Array<String>)


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