Class: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstancePropertiesScheduling

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

Overview

Defines the instance scheduling options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityAdviceRequestInstancePropertiesScheduling

Returns a new instance of CapacityAdviceRequestInstancePropertiesScheduling.



8752
8753
8754
# File 'lib/google/apis/compute_alpha/classes.rb', line 8752

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

Instance Attribute Details

#max_run_durationString

The maximum time that instances can run before Compute Engine terminates them. Corresponds to the JSON property maxRunDuration

Returns:

  • (String)


8745
8746
8747
# File 'lib/google/apis/compute_alpha/classes.rb', line 8745

def max_run_duration
  @max_run_duration
end

#provisioning_modelString

Specifies the provisioning model. Corresponds to the JSON property provisioningModel

Returns:

  • (String)


8750
8751
8752
# File 'lib/google/apis/compute_alpha/classes.rb', line 8750

def provisioning_model
  @provisioning_model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8757
8758
8759
8760
# File 'lib/google/apis/compute_alpha/classes.rb', line 8757

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