Class: Google::Apis::BaremetalsolutionV1alpha1::InstanceConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb
more...

Overview

Configuration parameters for a new instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceConfig

Returns a new instance of InstanceConfig.

[View source]

72
73
74
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 72

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#client_networkGoogle::Apis::BaremetalsolutionV1alpha1::NetworkAddress

A network. Corresponds to the JSON property clientNetwork


32
33
34
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 32

def client_network
  @client_network
end

#hyperthreadingBoolean Also known as: hyperthreading?

Whether the instance should be provisioned with Hyperthreading enabled. Corresponds to the JSON property hyperthreading

Returns:

  • (Boolean)

37
38
39
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 37

def hyperthreading
  @hyperthreading
end

#idString

A transient unique identifier to idenfity an instance within an ProvisioningConfig request. Corresponds to the JSON property id

Returns:

  • (String)

44
45
46
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 44

def id
  @id
end

#instance_typeString

Instance type. Corresponds to the JSON property instanceType

Returns:

  • (String)

49
50
51
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 49

def instance_type
  @instance_type
end

#locationString

Location where to deploy the instance. Corresponds to the JSON property location

Returns:

  • (String)

54
55
56
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 54

def location
  @location
end

#os_imageString

OS image to initialize the instance. Corresponds to the JSON property osImage

Returns:

  • (String)

59
60
61
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 59

def os_image
  @os_image
end

#private_networkGoogle::Apis::BaremetalsolutionV1alpha1::NetworkAddress

A network. Corresponds to the JSON property privateNetwork


64
65
66
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 64

def private_network
  @private_network
end

#user_noteString

User note field, it can be used by customers to add additional information for the BMS Ops team (b/194021617). Corresponds to the JSON property userNote

Returns:

  • (String)

70
71
72
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 70

def user_note
  @user_note
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

77
78
79
80
81
82
83
84
85
86
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 77

def update!(**args)
  @client_network = args[:client_network] if args.key?(:client_network)
  @hyperthreading = args[:hyperthreading] if args.key?(:hyperthreading)
  @id = args[:id] if args.key?(:id)
  @instance_type = args[:instance_type] if args.key?(:instance_type)
  @location = args[:location] if args.key?(:location)
  @os_image = args[:os_image] if args.key?(:os_image)
  @private_network = args[:private_network] if args.key?(:private_network)
  @user_note = args[:user_note] if args.key?(:user_note)
end