Class: Google::Apis::ComputeAlpha::InstanceConsumptionInfo

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) ⇒ InstanceConsumptionInfo

Returns a new instance of InstanceConsumptionInfo.



21862
21863
21864
# File 'lib/google/apis/compute_alpha/classes.rb', line 21862

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

Instance Attribute Details

#guest_cpusFixnum

The number of virtual CPUs that are available to the instance. Corresponds to the JSON property guestCpus

Returns:

  • (Fixnum)


21845
21846
21847
# File 'lib/google/apis/compute_alpha/classes.rb', line 21845

def guest_cpus
  @guest_cpus
end

#local_ssd_gbFixnum

The amount of local SSD storage available to the instance, defined in GiB. Corresponds to the JSON property localSsdGb

Returns:

  • (Fixnum)


21850
21851
21852
# File 'lib/google/apis/compute_alpha/classes.rb', line 21850

def local_ssd_gb
  @local_ssd_gb
end

#memory_mbFixnum

The amount of physical memory available to the instance, defined in MiB. Corresponds to the JSON property memoryMb

Returns:

  • (Fixnum)


21855
21856
21857
# File 'lib/google/apis/compute_alpha/classes.rb', line 21855

def memory_mb
  @memory_mb
end

#min_node_cpusFixnum

The minimal guaranteed number of virtual CPUs that are reserved. Corresponds to the JSON property minNodeCpus

Returns:

  • (Fixnum)


21860
21861
21862
# File 'lib/google/apis/compute_alpha/classes.rb', line 21860

def min_node_cpus
  @min_node_cpus
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21867
21868
21869
21870
21871
21872
# File 'lib/google/apis/compute_alpha/classes.rb', line 21867

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