Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::WorkerPoolSpec (v0.63.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::WorkerPoolSpec.

Represents the spec of a worker pool in a job.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#container_spec

def container_spec() -> ::Google::Cloud::AIPlatform::V1::ContainerSpec
Returns
  • (::Google::Cloud::AIPlatform::V1::ContainerSpec) — The custom container task.

    Note: The following fields are mutually exclusive: container_spec, python_package_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.

#container_spec=

def container_spec=(value) -> ::Google::Cloud::AIPlatform::V1::ContainerSpec
Parameter
  • value (::Google::Cloud::AIPlatform::V1::ContainerSpec) — The custom container task.

    Note: The following fields are mutually exclusive: container_spec, python_package_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::AIPlatform::V1::ContainerSpec) — The custom container task.

    Note: The following fields are mutually exclusive: container_spec, python_package_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.

#disk_spec

def disk_spec() -> ::Google::Cloud::AIPlatform::V1::DiskSpec

#disk_spec=

def disk_spec=(value) -> ::Google::Cloud::AIPlatform::V1::DiskSpec
Parameter

#machine_spec

def machine_spec() -> ::Google::Cloud::AIPlatform::V1::MachineSpec
Returns

#machine_spec=

def machine_spec=(value) -> ::Google::Cloud::AIPlatform::V1::MachineSpec
Parameter
Returns

#nfs_mounts

def nfs_mounts() -> ::Array<::Google::Cloud::AIPlatform::V1::NfsMount>
Returns

#nfs_mounts=

def nfs_mounts=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::NfsMount>
Parameter
Returns

#python_package_spec

def python_package_spec() -> ::Google::Cloud::AIPlatform::V1::PythonPackageSpec
Returns
  • (::Google::Cloud::AIPlatform::V1::PythonPackageSpec) — The Python packaged task.

    Note: The following fields are mutually exclusive: python_package_spec, container_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.

#python_package_spec=

def python_package_spec=(value) -> ::Google::Cloud::AIPlatform::V1::PythonPackageSpec
Parameter
  • value (::Google::Cloud::AIPlatform::V1::PythonPackageSpec) — The Python packaged task.

    Note: The following fields are mutually exclusive: python_package_spec, container_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::AIPlatform::V1::PythonPackageSpec) — The Python packaged task.

    Note: The following fields are mutually exclusive: python_package_spec, container_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.

#replica_count

def replica_count() -> ::Integer
Returns
  • (::Integer) — Optional. The number of worker replicas to use for this worker pool.

#replica_count=

def replica_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. The number of worker replicas to use for this worker pool.
Returns
  • (::Integer) — Optional. The number of worker replicas to use for this worker pool.