Class: Google::Apis::AppengineV1beta4::Resources
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta4::Resources
- 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
-
#cpu ⇒ Float
How many CPU cores an app version needs.
-
#disk_gb ⇒ Float
How much disk size, in GB, an app version needs.
-
#memory_gb ⇒ Float
How much memory, in GB, an app version needs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Resources
constructor
A new instance of Resources.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
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
#cpu ⇒ Float
How many CPU cores an app version needs.
Corresponds to the JSON property cpu
632 633 634 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 632 def cpu @cpu end |
#disk_gb ⇒ Float
How much disk size, in GB, an app version needs.
Corresponds to the JSON property diskGb
637 638 639 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 637 def disk_gb @disk_gb end |
#memory_gb ⇒ Float
How much memory, in GB, an app version needs.
Corresponds to the JSON property memoryGb
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 |