Class: Google::Apis::ComputeAlpha::FutureResourcesSpec
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::FutureResourcesSpec
- 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
Specification of resources to be created at some time in the future within an optionally specified set of locations, and within the specified time range.
Instance Attribute Summary collapse
-
#deployment_type ⇒ String
Indicates if the reservation allocation strategy is static (DENSE) or dynamic ( STANDARD).
-
#location_policy ⇒ Google::Apis::ComputeAlpha::FutureResourcesSpecLocationPolicy
Specification of locations to create resources in.
-
#target_resources ⇒ Google::Apis::ComputeAlpha::FutureResourcesSpecTargetResources
Specification of reserved resources.
-
#time_range_spec ⇒ Google::Apis::ComputeAlpha::FlexibleTimeRange
A flexible specification of a time range that has 3 points of flexibility: (1) a flexible start time, (2) a flexible end time, (3) a flexible duration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FutureResourcesSpec
constructor
A new instance of FutureResourcesSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FutureResourcesSpec
Returns a new instance of FutureResourcesSpec.
13352 13353 13354 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 13352 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deployment_type ⇒ String
Indicates if the reservation allocation strategy is static (DENSE) or dynamic (
STANDARD). Defaults to DENSE.
Corresponds to the JSON property deploymentType
13332 13333 13334 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 13332 def deployment_type @deployment_type end |
#location_policy ⇒ Google::Apis::ComputeAlpha::FutureResourcesSpecLocationPolicy
Specification of locations to create resources in.
Corresponds to the JSON property locationPolicy
13337 13338 13339 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 13337 def location_policy @location_policy end |
#target_resources ⇒ Google::Apis::ComputeAlpha::FutureResourcesSpecTargetResources
Specification of reserved resources.
Corresponds to the JSON property targetResources
13342 13343 13344 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 13342 def target_resources @target_resources end |
#time_range_spec ⇒ Google::Apis::ComputeAlpha::FlexibleTimeRange
A flexible specification of a time range that has 3 points of flexibility: (1)
a flexible start time, (2) a flexible end time, (3) a flexible duration. It is
possible to specify a contradictory time range that cannot be matched by any
Interval. This causes a validation error.
Corresponds to the JSON property timeRangeSpec
13350 13351 13352 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 13350 def time_range_spec @time_range_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13357 13358 13359 13360 13361 13362 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 13357 def update!(**args) @deployment_type = args[:deployment_type] if args.key?(:deployment_type) @location_policy = args[:location_policy] if args.key?(:location_policy) @target_resources = args[:target_resources] if args.key?(:target_resources) @time_range_spec = args[:time_range_spec] if args.key?(:time_range_spec) end |