Class: Google::Apis::VmwareengineV1::NodeType
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::NodeType
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmwareengine_v1/classes.rb,
lib/google/apis/vmwareengine_v1/representations.rb,
lib/google/apis/vmwareengine_v1/representations.rb
Overview
Describes node type.
Instance Attribute Summary collapse
-
#available_custom_core_counts ⇒ Array<Fixnum>
Output only.
-
#capabilities ⇒ Array<String>
Output only.
-
#disk_size_gb ⇒ Fixnum
Output only.
-
#display_name ⇒ String
Output only.
-
#families ⇒ Array<String>
Output only.
-
#kind ⇒ String
Output only.
-
#memory_gb ⇒ Fixnum
Output only.
-
#name ⇒ String
Output only.
-
#node_type_id ⇒ String
Output only.
-
#total_core_count ⇒ Fixnum
Output only.
-
#virtual_cpu_count ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeType
constructor
A new instance of NodeType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NodeType
Returns a new instance of NodeType.
2193 2194 2195 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2193 def initialize(**args) update!(**args) end |
Instance Attribute Details
#available_custom_core_counts ⇒ Array<Fixnum>
Output only. List of possible values of custom core count.
Corresponds to the JSON property availableCustomCoreCounts
2135 2136 2137 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2135 def available_custom_core_counts @available_custom_core_counts end |
#capabilities ⇒ Array<String>
Output only. Capabilities of this node type.
Corresponds to the JSON property capabilities
2140 2141 2142 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2140 def capabilities @capabilities end |
#disk_size_gb ⇒ Fixnum
Output only. The amount of storage available, defined in GB.
Corresponds to the JSON property diskSizeGb
2145 2146 2147 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2145 def disk_size_gb @disk_size_gb end |
#display_name ⇒ String
Output only. The friendly name for this node type. For example: ve1-standard-
72
Corresponds to the JSON property displayName
2151 2152 2153 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2151 def display_name @display_name end |
#families ⇒ Array<String>
Output only. Families of the node type. For node types to be in the same
cluster they must share at least one element in the families
.
Corresponds to the JSON property families
2157 2158 2159 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2157 def families @families end |
#kind ⇒ String
Output only. The type of the resource.
Corresponds to the JSON property kind
2162 2163 2164 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2162 def kind @kind end |
#memory_gb ⇒ Fixnum
Output only. The amount of physical memory available, defined in GB.
Corresponds to the JSON property memoryGb
2167 2168 2169 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2167 def memory_gb @memory_gb end |
#name ⇒ String
Output only. The resource name of this node type. Resource names are
schemeless URIs that follow the conventions in https://cloud.google.com/apis/
design/resource_names. For example: projects/my-proj/locations/us-central1-a/
nodeTypes/standard-72
Corresponds to the JSON property name
2175 2176 2177 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2175 def name @name end |
#node_type_id ⇒ String
Output only. The canonical identifier of the node type (corresponds to the
NodeType
). For example: standard-72.
Corresponds to the JSON property nodeTypeId
2181 2182 2183 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2181 def node_type_id @node_type_id end |
#total_core_count ⇒ Fixnum
Output only. The total number of CPU cores in a single node.
Corresponds to the JSON property totalCoreCount
2186 2187 2188 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2186 def total_core_count @total_core_count end |
#virtual_cpu_count ⇒ Fixnum
Output only. The total number of virtual CPUs in a single node.
Corresponds to the JSON property virtualCpuCount
2191 2192 2193 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2191 def virtual_cpu_count @virtual_cpu_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2198 def update!(**args) @available_custom_core_counts = args[:available_custom_core_counts] if args.key?(:available_custom_core_counts) @capabilities = args[:capabilities] if args.key?(:capabilities) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @display_name = args[:display_name] if args.key?(:display_name) @families = args[:families] if args.key?(:families) @kind = args[:kind] if args.key?(:kind) @memory_gb = args[:memory_gb] if args.key?(:memory_gb) @name = args[:name] if args.key?(:name) @node_type_id = args[:node_type_id] if args.key?(:node_type_id) @total_core_count = args[:total_core_count] if args.key?(:total_core_count) @virtual_cpu_count = args[:virtual_cpu_count] if args.key?(:virtual_cpu_count) end |