Class: Google::Apis::ComputeAlpha::NodeType

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

Represent a sole-tenant Node Type resource. Each node within a node group must have a node type. A node type specifies the total amount of cores and memory for that node. Currently, the only available node type is n1-node-96-624 node type that has 96 vCPUs and 624 GB of memory, available in multiple zones. For more information read Node types. (== resource_for $api_version.nodeTypes ==)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeType

Returns a new instance of NodeType.



25002
25003
25004
# File 'lib/google/apis/compute_alpha/classes.rb', line 25002

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

Instance Attribute Details

#cpu_platformString

[Output Only] The CPU platform used by this node type. Corresponds to the JSON property cpuPlatform

Returns:

  • (String)


24937
24938
24939
# File 'lib/google/apis/compute_alpha/classes.rb', line 24937

def cpu_platform
  @cpu_platform
end

#creation_timestampString

[Output Only] Creation timestamp in RFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


24942
24943
24944
# File 'lib/google/apis/compute_alpha/classes.rb', line 24942

def creation_timestamp
  @creation_timestamp
end

#deprecatedGoogle::Apis::ComputeAlpha::DeprecationStatus

Deprecation status for a public resource. Corresponds to the JSON property deprecated



24947
24948
24949
# File 'lib/google/apis/compute_alpha/classes.rb', line 24947

def deprecated
  @deprecated
end

#descriptionString

[Output Only] An optional textual description of the resource. Corresponds to the JSON property description

Returns:

  • (String)


24952
24953
24954
# File 'lib/google/apis/compute_alpha/classes.rb', line 24952

def description
  @description
end

#guest_cpusFixnum

[Output Only] The number of virtual CPUs that are available to the node type. Corresponds to the JSON property guestCpus

Returns:

  • (Fixnum)


24957
24958
24959
# File 'lib/google/apis/compute_alpha/classes.rb', line 24957

def guest_cpus
  @guest_cpus
end

#idFixnum

[Output Only] The unique identifier for the resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


24963
24964
24965
# File 'lib/google/apis/compute_alpha/classes.rb', line 24963

def id
  @id
end

#kindString

[Output Only] The type of the resource. Always compute#nodeType for node types. Corresponds to the JSON property kind

Returns:

  • (String)


24968
24969
24970
# File 'lib/google/apis/compute_alpha/classes.rb', line 24968

def kind
  @kind
end

#local_ssd_gbFixnum

[Output Only] Local SSD available to the node type, defined in GB. Corresponds to the JSON property localSsdGb

Returns:

  • (Fixnum)


24973
24974
24975
# File 'lib/google/apis/compute_alpha/classes.rb', line 24973

def local_ssd_gb
  @local_ssd_gb
end

#memory_mbFixnum

[Output Only] The amount of physical memory available to the node type, defined in MB. Corresponds to the JSON property memoryMb

Returns:

  • (Fixnum)


24979
24980
24981
# File 'lib/google/apis/compute_alpha/classes.rb', line 24979

def memory_mb
  @memory_mb
end

#nameString

[Output Only] Name of the resource. Corresponds to the JSON property name

Returns:

  • (String)


24984
24985
24986
# File 'lib/google/apis/compute_alpha/classes.rb', line 24984

def name
  @name
end

[Output Only] Server-defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


24989
24990
24991
# File 'lib/google/apis/compute_alpha/classes.rb', line 24989

def self_link
  @self_link
end

[Output Only] Server-defined URL for this resource with the resource id. Corresponds to the JSON property selfLinkWithId

Returns:

  • (String)


24994
24995
24996
# File 'lib/google/apis/compute_alpha/classes.rb', line 24994

def self_link_with_id
  @self_link_with_id
end

#zoneString

[Output Only] The name of the zone where the node type resides, such as us- central1-a. Corresponds to the JSON property zone

Returns:

  • (String)


25000
25001
25002
# File 'lib/google/apis/compute_alpha/classes.rb', line 25000

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
# File 'lib/google/apis/compute_alpha/classes.rb', line 25007

def update!(**args)
  @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @deprecated = args[:deprecated] if args.key?(:deprecated)
  @description = args[:description] if args.key?(:description)
  @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @local_ssd_gb = args[:local_ssd_gb] if args.key?(:local_ssd_gb)
  @memory_mb = args[:memory_mb] if args.key?(:memory_mb)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
  @zone = args[:zone] if args.key?(:zone)
end