Class: Google::Apis::ComputeAlpha::InstanceConsumptionInfo
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InstanceConsumptionInfo
- 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
-
#guest_cpus ⇒ Fixnum
The number of virtual CPUs that are available to the instance.
-
#local_ssd_gb ⇒ Fixnum
The amount of local SSD storage available to the instance, defined in GiB.
-
#memory_mb ⇒ Fixnum
The amount of physical memory available to the instance, defined in MiB.
-
#min_node_cpus ⇒ Fixnum
The minimal guaranteed number of virtual CPUs that are reserved.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceConsumptionInfo
constructor
A new instance of InstanceConsumptionInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceConsumptionInfo
Returns a new instance of InstanceConsumptionInfo.
16287 16288 16289 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 16287 def initialize(**args) update!(**args) end |
Instance Attribute Details
#guest_cpus ⇒ Fixnum
The number of virtual CPUs that are available to the instance.
Corresponds to the JSON property guestCpus
16270 16271 16272 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 16270 def guest_cpus @guest_cpus end |
#local_ssd_gb ⇒ Fixnum
The amount of local SSD storage available to the instance, defined in GiB.
Corresponds to the JSON property localSsdGb
16275 16276 16277 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 16275 def local_ssd_gb @local_ssd_gb end |
#memory_mb ⇒ Fixnum
The amount of physical memory available to the instance, defined in MiB.
Corresponds to the JSON property memoryMb
16280 16281 16282 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 16280 def memory_mb @memory_mb end |
#min_node_cpus ⇒ Fixnum
The minimal guaranteed number of virtual CPUs that are reserved.
Corresponds to the JSON property minNodeCpus
16285 16286 16287 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 16285 def min_node_cpus @min_node_cpus end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16292 16293 16294 16295 16296 16297 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 16292 def update!(**args) @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus) @local_ssd_gb = args[:local_ssd_gb] if args.key?(:local_ssd_gb) @memory_mb = args[:memory_mb] if args.key?(:memory_mb) @min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus) end |