Class: Google::Apis::BaremetalsolutionV2::Instance
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::Instance
- 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
A server.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#hyperthreading_enabled ⇒ Boolean
(also: #hyperthreading_enabled?)
True if you enable hyperthreading for the server, otherwise false.
-
#id ⇒ String
An identifier for the
Instance, generated by the backend. -
#interactive_serial_console_enabled ⇒ Boolean
(also: #interactive_serial_console_enabled?)
True if the interactive serial console feature is enabled for the instance, false otherwise.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#luns ⇒ Array<Google::Apis::BaremetalsolutionV2::Lun>
List of LUNs associated with this server.
-
#machine_type ⇒ String
The server type.
-
#name ⇒ String
Output only.
-
#networks ⇒ Array<Google::Apis::BaremetalsolutionV2::Network>
List of networks associated with this server.
-
#state ⇒ String
The state of the server.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Instance
constructor
A new instance of Instance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Instance
Returns a new instance of Instance.
169 170 171 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 169 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Create a time stamp.
Corresponds to the JSON property createTime
109 110 111 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 109 def create_time @create_time end |
#hyperthreading_enabled ⇒ Boolean Also known as: hyperthreading_enabled?
True if you enable hyperthreading for the server, otherwise false. The default
value is false.
Corresponds to the JSON property hyperthreadingEnabled
115 116 117 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 115 def hyperthreading_enabled @hyperthreading_enabled end |
#id ⇒ String
An identifier for the Instance, generated by the backend.
Corresponds to the JSON property id
121 122 123 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 121 def id @id end |
#interactive_serial_console_enabled ⇒ Boolean Also known as: interactive_serial_console_enabled?
True if the interactive serial console feature is enabled for the instance,
false otherwise. The default value is false.
Corresponds to the JSON property interactiveSerialConsoleEnabled
127 128 129 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 127 def interactive_serial_console_enabled @interactive_serial_console_enabled end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
133 134 135 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 133 def labels @labels end |
#luns ⇒ Array<Google::Apis::BaremetalsolutionV2::Lun>
List of LUNs associated with this server.
Corresponds to the JSON property luns
138 139 140 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 138 def luns @luns end |
#machine_type ⇒ String
The server type. Available server types
Corresponds to the JSON property machineType
144 145 146 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 144 def machine_type @machine_type end |
#name ⇒ String
Output only. The resource name of this Instance. Resource names are
schemeless URIs that follow the conventions in https://cloud.google.com/apis/
design/resource_names. Format: projects/project/locations/location/
instances/instance`
Corresponds to the JSON propertyname`
152 153 154 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 152 def name @name end |
#networks ⇒ Array<Google::Apis::BaremetalsolutionV2::Network>
List of networks associated with this server.
Corresponds to the JSON property networks
157 158 159 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 157 def networks @networks end |
#state ⇒ String
The state of the server.
Corresponds to the JSON property state
162 163 164 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 162 def state @state end |
#update_time ⇒ String
Output only. Update a time stamp.
Corresponds to the JSON property updateTime
167 168 169 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 167 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 174 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @hyperthreading_enabled = args[:hyperthreading_enabled] if args.key?(:hyperthreading_enabled) @id = args[:id] if args.key?(:id) @interactive_serial_console_enabled = args[:interactive_serial_console_enabled] if args.key?(:interactive_serial_console_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 |