Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResourcePool
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResourcePool
- 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
Represents the spec a group of resources of same type, e.g. machine, disk and accelerators, in a PersistentResource.
Instance Attribute Summary collapse
-
#autoscaling_spec ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResourcePoolAutoscalingSpec
The min/max number of replicas allowed if enabling autoscaling Corresponds to the JSON property
autoscalingSpec. -
#disk_spec ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DiskSpec
Represents the spec of disk options.
-
#id ⇒ String
Immutable.
-
#machine_spec ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MachineSpec
Specification of a single machine.
-
#replica_count ⇒ Fixnum
Optional.
-
#used_replica_count ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ResourcePool
constructor
A new instance of GoogleCloudAiplatformV1beta1ResourcePool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ResourcePool
Returns a new instance of GoogleCloudAiplatformV1beta1ResourcePool.
15114 15115 15116 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15114 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoscaling_spec ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResourcePoolAutoscalingSpec
The min/max number of replicas allowed if enabling autoscaling
Corresponds to the JSON property autoscalingSpec
15084 15085 15086 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15084 def autoscaling_spec @autoscaling_spec end |
#disk_spec ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DiskSpec
Represents the spec of disk options.
Corresponds to the JSON property diskSpec
15089 15090 15091 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15089 def disk_spec @disk_spec end |
#id ⇒ String
Immutable. The unique ID in a PersistentResource to refer the this resource
pool. User can specify it if need to use it, otherwise we will generate it
automatically.
Corresponds to the JSON property id
15096 15097 15098 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15096 def id @id end |
#machine_spec ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MachineSpec
Specification of a single machine.
Corresponds to the JSON property machineSpec
15101 15102 15103 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15101 def machine_spec @machine_spec end |
#replica_count ⇒ Fixnum
Optional. The total number of machines to use for this resource pool.
Corresponds to the JSON property replicaCount
15106 15107 15108 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15106 def replica_count @replica_count end |
#used_replica_count ⇒ Fixnum
Output only. The number of machines currently in use by training jobs for this
resource pool. Will replace idle_replica_count.
Corresponds to the JSON property usedReplicaCount
15112 15113 15114 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15112 def used_replica_count @used_replica_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15119 15120 15121 15122 15123 15124 15125 15126 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15119 def update!(**args) @autoscaling_spec = args[:autoscaling_spec] if args.key?(:autoscaling_spec) @disk_spec = args[:disk_spec] if args.key?(:disk_spec) @id = args[:id] if args.key?(:id) @machine_spec = args[:machine_spec] if args.key?(:machine_spec) @replica_count = args[:replica_count] if args.key?(:replica_count) @used_replica_count = args[:used_replica_count] if args.key?(:used_replica_count) end |