Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DedicatedResourcesScaleToZeroSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DedicatedResourcesScaleToZeroSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Specification for scale-to-zero feature.
Instance Attribute Summary collapse
-
#idle_scaledown_period ⇒ String
Optional.
-
#min_scaleup_period ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1DedicatedResourcesScaleToZeroSpec
constructor
A new instance of GoogleCloudAiplatformV1beta1DedicatedResourcesScaleToZeroSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1DedicatedResourcesScaleToZeroSpec
Returns a new instance of GoogleCloudAiplatformV1beta1DedicatedResourcesScaleToZeroSpec.
15557 15558 15559 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15557 def initialize(**args) update!(**args) end |
Instance Attribute Details
#idle_scaledown_period ⇒ String
Optional. Duration of no traffic before scaling to zero. MinValue=300 MaxValue=28800
Corresponds to the JSON property idleScaledownPeriod
15548 15549 15550 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15548 def idle_scaledown_period @idle_scaledown_period end |
#min_scaleup_period ⇒ String
Optional. Minimum duration that a deployment will be scaled up before traffic
is evaluated for potential scale-down. MinValue=300 MaxValue=
28800
Corresponds to the JSON property minScaleupPeriod
15555 15556 15557 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15555 def min_scaleup_period @min_scaleup_period end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15562 15563 15564 15565 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15562 def update!(**args) @idle_scaledown_period = args[:idle_scaledown_period] if args.key?(:idle_scaledown_period) @min_scaleup_period = args[:min_scaleup_period] if args.key?(:min_scaleup_period) end |