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.
7728 7729 7730 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7728 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
7719 7720 7721 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7719 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
7726 7727 7728 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7726 def min_scaleup_period @min_scaleup_period end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7733 7734 7735 7736 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7733 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 |