Class: Google::Apis::BaremetalsolutionV1alpha1::Instance

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

Overview

An Instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Instance

Returns a new instance of Instance.



130
131
132
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 130

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

Instance Attribute Details

#hyperthreading_enabledBoolean Also known as: hyperthreading_enabled?

Is hyperthreading enabled for this instance? Corresponds to the JSON property hyperthreadingEnabled

Returns:

  • (Boolean)


101
102
103
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 101

def hyperthreading_enabled
  @hyperthreading_enabled
end

#lunsArray<Google::Apis::BaremetalsolutionV1alpha1::Lun>

The Luns attached to this instance Corresponds to the JSON property luns



107
108
109
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 107

def luns
  @luns
end

#nameString

Output only. The name of this Instance. Corresponds to the JSON property name

Returns:

  • (String)


112
113
114
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 112

def name
  @name
end

#scheduled_power_reset_timeString

The scheduled power reset time. Corresponds to the JSON property scheduledPowerResetTime

Returns:

  • (String)


117
118
119
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 117

def scheduled_power_reset_time
  @scheduled_power_reset_time
end

#ssh_enabledBoolean Also known as: ssh_enabled?

Is SSH enabled for this instance? Corresponds to the JSON property sshEnabled

Returns:

  • (Boolean)


122
123
124
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 122

def ssh_enabled
  @ssh_enabled
end

#stateString

The state of this Instance. Corresponds to the JSON property state

Returns:

  • (String)


128
129
130
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 128

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



135
136
137
138
139
140
141
142
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 135

def update!(**args)
  @hyperthreading_enabled = args[:hyperthreading_enabled] if args.key?(:hyperthreading_enabled)
  @luns = args[:luns] if args.key?(:luns)
  @name = args[:name] if args.key?(:name)
  @scheduled_power_reset_time = args[:scheduled_power_reset_time] if args.key?(:scheduled_power_reset_time)
  @ssh_enabled = args[:ssh_enabled] if args.key?(:ssh_enabled)
  @state = args[:state] if args.key?(:state)
end