Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RolloutOptions
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RolloutOptions
- 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
Configuration for rolling deployments.
Instance Attribute Summary collapse
-
#max_surge_percentage ⇒ Fixnum
Percentage of allowed additional replicas.
-
#max_surge_replicas ⇒ Fixnum
Absolute count of allowed additional replicas.
-
#max_unavailable_percentage ⇒ Fixnum
Percentage of replicas allowed to be unavailable.
-
#max_unavailable_replicas ⇒ Fixnum
Absolute count of replicas allowed to be unavailable.
-
#previous_deployed_model ⇒ String
ID of the DeployedModel that this deployment should replace.
-
#revision_number ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RolloutOptions
constructor
A new instance of GoogleCloudAiplatformV1beta1RolloutOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RolloutOptions
Returns a new instance of GoogleCloudAiplatformV1beta1RolloutOptions.
47022 47023 47024 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 47022 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_surge_percentage ⇒ Fixnum
Percentage of allowed additional replicas. For autoscaling deployments, this
refers to the target replica count.
Corresponds to the JSON property maxSurgePercentage
46992 46993 46994 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 46992 def max_surge_percentage @max_surge_percentage end |
#max_surge_replicas ⇒ Fixnum
Absolute count of allowed additional replicas.
Corresponds to the JSON property maxSurgeReplicas
46997 46998 46999 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 46997 def max_surge_replicas @max_surge_replicas end |
#max_unavailable_percentage ⇒ Fixnum
Percentage of replicas allowed to be unavailable. For autoscaling deployments,
this refers to the target replica count.
Corresponds to the JSON property maxUnavailablePercentage
47003 47004 47005 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 47003 def max_unavailable_percentage @max_unavailable_percentage end |
#max_unavailable_replicas ⇒ Fixnum
Absolute count of replicas allowed to be unavailable.
Corresponds to the JSON property maxUnavailableReplicas
47008 47009 47010 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 47008 def max_unavailable_replicas @max_unavailable_replicas end |
#previous_deployed_model ⇒ String
ID of the DeployedModel that this deployment should replace.
Corresponds to the JSON property previousDeployedModel
47013 47014 47015 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 47013 def previous_deployed_model @previous_deployed_model end |
#revision_number ⇒ Fixnum
Output only. Read-only. Revision number determines the relative priority of
DeployedModels in the same rollout. The DeployedModel with the largest
revision number specifies the intended state of the deployment.
Corresponds to the JSON property revisionNumber
47020 47021 47022 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 47020 def revision_number @revision_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47027 47028 47029 47030 47031 47032 47033 47034 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 47027 def update!(**args) @max_surge_percentage = args[:max_surge_percentage] if args.key?(:max_surge_percentage) @max_surge_replicas = args[:max_surge_replicas] if args.key?(:max_surge_replicas) @max_unavailable_percentage = args[:max_unavailable_percentage] if args.key?(:max_unavailable_percentage) @max_unavailable_replicas = args[:max_unavailable_replicas] if args.key?(:max_unavailable_replicas) @previous_deployed_model = args[:previous_deployed_model] if args.key?(:previous_deployed_model) @revision_number = args[:revision_number] if args.key?(:revision_number) end |