Class: Google::Apis::ComputeV1::InstanceConsumptionInfo
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::InstanceConsumptionInfo
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb
Instance Attribute Summary collapse
-
#guest_cpus ⇒ Fixnum
Output only.
-
#local_ssd_gb ⇒ Fixnum
Output only.
-
#memory_mb ⇒ Fixnum
Output only.
-
#min_node_cpus ⇒ Fixnum
Output only.
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.
22059 22060 22061 |
# File 'lib/google/apis/compute_v1/classes.rb', line 22059 def initialize(**args) update!(**args) end |
Instance Attribute Details
#guest_cpus ⇒ Fixnum
Output only. The number of virtual CPUs that are available to the instance.
Corresponds to the JSON property guestCpus
22040 22041 22042 |
# File 'lib/google/apis/compute_v1/classes.rb', line 22040 def guest_cpus @guest_cpus end |
#local_ssd_gb ⇒ Fixnum
Output only. The amount of local SSD storage available to the instance,
defined in GiB.
Corresponds to the JSON property localSsdGb
22046 22047 22048 |
# File 'lib/google/apis/compute_v1/classes.rb', line 22046 def local_ssd_gb @local_ssd_gb end |
#memory_mb ⇒ Fixnum
Output only. The amount of physical memory available to the instance,
defined in MiB.
Corresponds to the JSON property memoryMb
22052 22053 22054 |
# File 'lib/google/apis/compute_v1/classes.rb', line 22052 def memory_mb @memory_mb end |
#min_node_cpus ⇒ Fixnum
Output only. The minimal guaranteed number of virtual CPUs that are reserved.
Corresponds to the JSON property minNodeCpus
22057 22058 22059 |
# File 'lib/google/apis/compute_v1/classes.rb', line 22057 def min_node_cpus @min_node_cpus end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22064 22065 22066 22067 22068 22069 |
# File 'lib/google/apis/compute_v1/classes.rb', line 22064 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 |