#[non_exhaustive]pub struct PythonPackageSpec {
pub executor_image_uri: String,
pub package_uris: Vec<String>,
pub python_module: String,
pub args: Vec<String>,
pub env: Vec<EnvVar>,
/* private fields */
}Expand description
The spec of a Python packaged code.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.executor_image_uri: StringRequired. The URI of a container image in Artifact Registry that will run the provided Python package. Vertex AI provides a wide range of executor images with pre-installed packages to meet users’ various use cases. See the list of pre-built containers for training. You must use an image from this list.
package_uris: Vec<String>Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
python_module: StringRequired. The Python module name to run after installing the packages.
args: Vec<String>Command line arguments to be passed to the Python task.
env: Vec<EnvVar>Environment variables to be passed to the python module. Maximum limit is 100.
Implementations§
Source§impl PythonPackageSpec
impl PythonPackageSpec
pub fn new() -> Self
Sourcepub fn set_executor_image_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_executor_image_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of executor_image_uri.
Sourcepub fn set_package_uris<T, V>(self, v: T) -> Self
pub fn set_package_uris<T, V>(self, v: T) -> Self
Sets the value of package_uris.
Sourcepub fn set_python_module<T: Into<String>>(self, v: T) -> Self
pub fn set_python_module<T: Into<String>>(self, v: T) -> Self
Sets the value of python_module.
Trait Implementations§
Source§impl Clone for PythonPackageSpec
impl Clone for PythonPackageSpec
Source§fn clone(&self) -> PythonPackageSpec
fn clone(&self) -> PythonPackageSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more