Class: Google::Apis::ComputeAlpha::NodeTemplateNodeTypeFlexibility

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeTemplateNodeTypeFlexibility

Returns a new instance of NodeTemplateNodeTypeFlexibility.



31529
31530
31531
# File 'lib/google/apis/compute_alpha/classes.rb', line 31529

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

Instance Attribute Details

#cpusString

Corresponds to the JSON property cpus

Returns:

  • (String)


31517
31518
31519
# File 'lib/google/apis/compute_alpha/classes.rb', line 31517

def cpus
  @cpus
end

#local_ssdString

Corresponds to the JSON property localSsd

Returns:

  • (String)


31522
31523
31524
# File 'lib/google/apis/compute_alpha/classes.rb', line 31522

def local_ssd
  @local_ssd
end

#memoryString

Corresponds to the JSON property memory

Returns:

  • (String)


31527
31528
31529
# File 'lib/google/apis/compute_alpha/classes.rb', line 31527

def memory
  @memory
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31534
31535
31536
31537
31538
# File 'lib/google/apis/compute_alpha/classes.rb', line 31534

def update!(**args)
  @cpus = args[:cpus] if args.key?(:cpus)
  @local_ssd = args[:local_ssd] if args.key?(:local_ssd)
  @memory = args[:memory] if args.key?(:memory)
end