class Google::Apis::BaremetalsolutionV2::Instance

An instance resource.

Attributes

create_time[RW]

Output only. Create time stamp. Corresponds to the JSON property `createTime` @return [String]

hyperthreading_enabled[RW]

True if hyperthreading enabled for the instance, false otherwise. The default value is false. Corresponds to the JSON property `hyperthreadingEnabled` @return [Boolean]

hyperthreading_enabled?[RW]

True if hyperthreading enabled for the instance, false otherwise. The default value is false. Corresponds to the JSON property `hyperthreadingEnabled` @return [Boolean]

labels[RW]

Labels as key value pairs. Corresponds to the JSON property `labels` @return [Hash<String,String>]

luns[RW]

List of luns associated with this instance. Corresponds to the JSON property `luns` @return [Array<Google::Apis::BaremetalsolutionV2::Lun>]

machine_type[RW]

The type of this Instance. [Available Instance types](cloud.google.com/ bare-metal/docs/bms-planning#server_configurations) Corresponds to the JSON property `machineType` @return [String]

name[RW]

Output only. The resource name of this `Instance`. Resource names are schemeless URIs that follow the conventions in cloud.google.com/apis/ design/resource_names. Format: `projects/`project`/locations/`location`/ instances/`instanceā€œ Corresponds to the JSON property `name` @return [String]

networks[RW]

List of networks associated with this instance. Corresponds to the JSON property `networks` @return [Array<Google::Apis::BaremetalsolutionV2::Network>]

state[RW]

The state of this Instance. Corresponds to the JSON property `state` @return [String]

update_time[RW]

Output only. Update time stamp. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/baremetalsolution_v2/classes.rb, line 235
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/baremetalsolution_v2/classes.rb, line 240
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @hyperthreading_enabled = args[:hyperthreading_enabled] if args.key?(:hyperthreading_enabled)
  @labels = args[:labels] if args.key?(:labels)
  @luns = args[:luns] if args.key?(:luns)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @name = args[:name] if args.key?(:name)
  @networks = args[:networks] if args.key?(:networks)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end