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.



35216
35217
35218
# File 'lib/google/apis/compute_alpha/classes.rb', line 35216

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

Instance Attribute Details

#cpusString

Corresponds to the JSON property cpus

Returns:

  • (String)


35204
35205
35206
# File 'lib/google/apis/compute_alpha/classes.rb', line 35204

def cpus
  @cpus
end

#local_ssdString

Corresponds to the JSON property localSsd

Returns:

  • (String)


35209
35210
35211
# File 'lib/google/apis/compute_alpha/classes.rb', line 35209

def local_ssd
  @local_ssd
end

#memoryString

Corresponds to the JSON property memory

Returns:

  • (String)


35214
35215
35216
# File 'lib/google/apis/compute_alpha/classes.rb', line 35214

def memory
  @memory
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35221
35222
35223
35224
35225
# File 'lib/google/apis/compute_alpha/classes.rb', line 35221

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