Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResourcePool

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ResourcePool

Returns a new instance of GoogleCloudAiplatformV1beta1ResourcePool.



14968
14969
14970
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14968

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#autoscaling_specGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResourcePoolAutoscalingSpec

The min/max number of replicas allowed if enabling autoscaling Corresponds to the JSON property autoscalingSpec



14932
14933
14934
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14932

def autoscaling_spec
  @autoscaling_spec
end

#disk_specGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DiskSpec

Represents the spec of disk options. Corresponds to the JSON property diskSpec



14937
14938
14939
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14937

def disk_spec
  @disk_spec
end

#idString

Optional. 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

Returns:

  • (String)


14944
14945
14946
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14944

def id
  @id
end

#idle_replica_countFixnum

Output only. The number of machines currently not in use by training jobs for this resource pool. Deprecated. Use used_replica_count instead. Corresponds to the JSON property idleReplicaCount

Returns:

  • (Fixnum)


14950
14951
14952
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14950

def idle_replica_count
  @idle_replica_count
end

#machine_specGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MachineSpec

Specification of a single machine. Corresponds to the JSON property machineSpec



14955
14956
14957
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14955

def machine_spec
  @machine_spec
end

#replica_countFixnum

Optional. The total number of machines to use for this resource pool. Corresponds to the JSON property replicaCount

Returns:

  • (Fixnum)


14960
14961
14962
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14960

def replica_count
  @replica_count
end

#used_replica_countFixnum

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

Returns:

  • (Fixnum)


14966
14967
14968
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14966

def used_replica_count
  @used_replica_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14973
14974
14975
14976
14977
14978
14979
14980
14981
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14973

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)
  @idle_replica_count = args[:idle_replica_count] if args.key?(:idle_replica_count)
  @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