Class: Google::Apis::AppengineV1beta4::Resources

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable
Defined in:
generated/google/apis/appengine_v1beta4/classes.rb,
generated/google/apis/appengine_v1beta4/representations.rb,
generated/google/apis/appengine_v1beta4/representations.rb

Overview

Used to specify how many machine resources an app version needs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Resources

Returns a new instance of Resources.



644
645
646
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 644

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

Instance Attribute Details

#cpuFloat

How many CPU cores an app version needs. Corresponds to the JSON property cpu

Returns:

  • (Float)


632
633
634
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 632

def cpu
  @cpu
end

#disk_gbFloat

How much disk size, in GB, an app version needs. Corresponds to the JSON property diskGb

Returns:

  • (Float)


637
638
639
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 637

def disk_gb
  @disk_gb
end

#memory_gbFloat

How much memory, in GB, an app version needs. Corresponds to the JSON property memoryGb

Returns:

  • (Float)


642
643
644
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 642

def memory_gb
  @memory_gb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



649
650
651
652
653
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 649

def update!(**args)
  @cpu = args[:cpu] if args.key?(:cpu)
  @disk_gb = args[:disk_gb] if args.key?(:disk_gb)
  @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
end