Class: Google::Apis::VmwareengineV1::NodeType

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeType

Returns a new instance of NodeType.



2078
2079
2080
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2078

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

Instance Attribute Details

#available_custom_core_countsArray<Fixnum>

Output only. List of possible values of custom core count. Corresponds to the JSON property availableCustomCoreCounts

Returns:

  • (Array<Fixnum>)


2020
2021
2022
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2020

def available_custom_core_counts
  @available_custom_core_counts
end

#capabilitiesArray<String>

Output only. Capabilities of this node type. Corresponds to the JSON property capabilities

Returns:

  • (Array<String>)


2025
2026
2027
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2025

def capabilities
  @capabilities
end

#disk_size_gbFixnum

Output only. The amount of storage available, defined in GB. Corresponds to the JSON property diskSizeGb

Returns:

  • (Fixnum)


2030
2031
2032
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2030

def disk_size_gb
  @disk_size_gb
end

#display_nameString

Output only. The friendly name for this node type. For example: ve1-standard- 72 Corresponds to the JSON property displayName

Returns:

  • (String)


2036
2037
2038
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2036

def display_name
  @display_name
end

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

Returns:

  • (Array<String>)


2042
2043
2044
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2042

def families
  @families
end

#kindString

Output only. The type of the resource. Corresponds to the JSON property kind

Returns:

  • (String)


2047
2048
2049
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2047

def kind
  @kind
end

#memory_gbFixnum

Output only. The amount of physical memory available, defined in GB. Corresponds to the JSON property memoryGb

Returns:

  • (Fixnum)


2052
2053
2054
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2052

def memory_gb
  @memory_gb
end

#nameString

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

Returns:

  • (String)


2060
2061
2062
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2060

def name
  @name
end

#node_type_idString

Output only. The canonical identifier of the node type (corresponds to the NodeType). For example: standard-72. Corresponds to the JSON property nodeTypeId

Returns:

  • (String)


2066
2067
2068
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2066

def node_type_id
  @node_type_id
end

#total_core_countFixnum

Output only. The total number of CPU cores in a single node. Corresponds to the JSON property totalCoreCount

Returns:

  • (Fixnum)


2071
2072
2073
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2071

def total_core_count
  @total_core_count
end

#virtual_cpu_countFixnum

Output only. The total number of virtual CPUs in a single node. Corresponds to the JSON property virtualCpuCount

Returns:

  • (Fixnum)


2076
2077
2078
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2076

def virtual_cpu_count
  @virtual_cpu_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2083

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