Class: Google::Apis::ComputeAlpha::LicenseResourceRequirements

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

Returns a new instance of LicenseResourceRequirements.



20260
20261
20262
# File 'lib/google/apis/compute_alpha/classes.rb', line 20260

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

Instance Attribute Details

#min_guest_cpu_countFixnum

Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start. Corresponds to the JSON property minGuestCpuCount

Returns:

  • (Fixnum)


20252
20253
20254
# File 'lib/google/apis/compute_alpha/classes.rb', line 20252

def min_guest_cpu_count
  @min_guest_cpu_count
end

#min_memory_mbFixnum

Minimum memory required to use the Instance. Enforced at Instance creation and Instance start. Corresponds to the JSON property minMemoryMb

Returns:

  • (Fixnum)


20258
20259
20260
# File 'lib/google/apis/compute_alpha/classes.rb', line 20258

def min_memory_mb
  @min_memory_mb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20265
20266
20267
20268
# File 'lib/google/apis/compute_alpha/classes.rb', line 20265

def update!(**args)
  @min_guest_cpu_count = args[:min_guest_cpu_count] if args.key?(:min_guest_cpu_count)
  @min_memory_mb = args[:min_memory_mb] if args.key?(:min_memory_mb)
end