Class: Google::Apis::BaremetalsolutionV2::Instance

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

A server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Instance

Returns a new instance of Instance.



109
110
111
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 109

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

Instance Attribute Details

#create_timeString

Output only. Create a time stamp. Corresponds to the JSON property createTime

Returns:

  • (String)


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

def create_time
  @create_time
end

#hyperthreading_enabledBoolean 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

Returns:

  • (Boolean)


55
56
57
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 55

def hyperthreading_enabled
  @hyperthreading_enabled
end

#idString

An identifier for the Instance, generated by the backend. Corresponds to the JSON property id

Returns:

  • (String)


61
62
63
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 61

def id
  @id
end

#interactive_serial_console_enabledBoolean 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

Returns:

  • (Boolean)


67
68
69
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 67

def interactive_serial_console_enabled
  @interactive_serial_console_enabled
end

#labelsHash<String,String>

Labels as key value pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


73
74
75
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 73

def labels
  @labels
end

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

List of LUNs associated with this server. Corresponds to the JSON property luns



78
79
80
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 78

def luns
  @luns
end

#machine_typeString

The server type. Available server types Corresponds to the JSON property machineType

Returns:

  • (String)


84
85
86
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 84

def machine_type
  @machine_type
end

#nameString

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`

Returns:

  • (String)


92
93
94
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 92

def name
  @name
end

#networksArray<Google::Apis::BaremetalsolutionV2::Network>

List of networks associated with this server. Corresponds to the JSON property networks



97
98
99
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 97

def networks
  @networks
end

#stateString

The state of the server. Corresponds to the JSON property state

Returns:

  • (String)


102
103
104
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 102

def state
  @state
end

#update_timeString

Output only. Update a time stamp. Corresponds to the JSON property updateTime

Returns:

  • (String)


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

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



114
115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 114

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