#[non_exhaustive]pub struct PersistentResource {Show 15 fields
pub name: String,
pub display_name: String,
pub resource_pools: Vec<ResourcePool>,
pub state: State,
pub error: Option<Status>,
pub create_time: Option<Timestamp>,
pub start_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub network: String,
pub psc_interface_config: Option<PscInterfaceConfig>,
pub encryption_spec: Option<EncryptionSpec>,
pub resource_runtime_spec: Option<ResourceRuntimeSpec>,
pub resource_runtime: Option<ResourceRuntime>,
pub reserved_ip_ranges: Vec<String>,
/* private fields */
}persistent-resource-service only.Expand description
Represents long-lasting resources that are dedicated to users to runs custom workloads. A PersistentResource can have multiple node pools and each node pool can have its own machine spec.
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.name: StringImmutable. Resource name of a PersistentResource.
display_name: StringOptional. The display name of the PersistentResource. The name can be up to 128 characters long and can consist of any UTF-8 characters.
resource_pools: Vec<ResourcePool>Required. The spec of the pools of different resources.
state: StateOutput only. The detailed state of a Study.
error: Option<Status>Output only. Only populated when persistent resource’s state is STOPPING
or ERROR.
create_time: Option<Timestamp>Output only. Time when the PersistentResource was created.
start_time: Option<Timestamp>Output only. Time when the PersistentResource for the first time entered
the RUNNING state.
update_time: Option<Timestamp>Output only. Time when the PersistentResource was most recently updated.
labels: HashMap<String, String>Optional. The labels with user-defined metadata to organize PersistentResource.
Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed.
See https://goo.gl/xmQnxf for more information and examples of labels.
network: StringOptional. The full name of the Compute Engine
network to peered with
Vertex AI to host the persistent resources.
For example, projects/12345/global/networks/myVPC.
Format
is of the form projects/{project}/global/networks/{network}.
Where {project} is a project number, as in 12345, and {network} is a
network name.
To specify this field, you must have already configured VPC Network Peering for Vertex AI.
If this field is left unspecified, the resources aren’t peered with any network.
psc_interface_config: Option<PscInterfaceConfig>Optional. Configuration for PSC-I for PersistentResource.
encryption_spec: Option<EncryptionSpec>Optional. Customer-managed encryption key spec for a PersistentResource. If set, this PersistentResource and all sub-resources of this PersistentResource will be secured by this key.
resource_runtime_spec: Option<ResourceRuntimeSpec>Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration.
resource_runtime: Option<ResourceRuntime>Output only. Runtime information of the Persistent Resource.
reserved_ip_ranges: Vec<String>Optional. A list of names for the reserved IP ranges under the VPC network that can be used for this persistent resource.
If set, we will deploy the persistent resource within the provided IP ranges. Otherwise, the persistent resource is deployed to any IP ranges under the provided VPC network.
Example: [‘vertex-ai-ip-range’].
Implementations§
Source§impl PersistentResource
impl PersistentResource
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_resource_pools<T, V>(self, v: T) -> Self
pub fn set_resource_pools<T, V>(self, v: T) -> Self
Sets the value of resource_pools.
Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
Sets or clears the value of error.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sets the value of network.
Sourcepub fn set_psc_interface_config<T>(self, v: T) -> Selfwhere
T: Into<PscInterfaceConfig>,
pub fn set_psc_interface_config<T>(self, v: T) -> Selfwhere
T: Into<PscInterfaceConfig>,
Sets the value of psc_interface_config.
Sourcepub fn set_or_clear_psc_interface_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PscInterfaceConfig>,
pub fn set_or_clear_psc_interface_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PscInterfaceConfig>,
Sets or clears the value of psc_interface_config.
Sourcepub fn set_encryption_spec<T>(self, v: T) -> Selfwhere
T: Into<EncryptionSpec>,
pub fn set_encryption_spec<T>(self, v: T) -> Selfwhere
T: Into<EncryptionSpec>,
Sets the value of encryption_spec.
Sourcepub fn set_or_clear_encryption_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionSpec>,
pub fn set_or_clear_encryption_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionSpec>,
Sets or clears the value of encryption_spec.
Sourcepub fn set_resource_runtime_spec<T>(self, v: T) -> Selfwhere
T: Into<ResourceRuntimeSpec>,
pub fn set_resource_runtime_spec<T>(self, v: T) -> Selfwhere
T: Into<ResourceRuntimeSpec>,
Sets the value of resource_runtime_spec.
Sourcepub fn set_or_clear_resource_runtime_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceRuntimeSpec>,
pub fn set_or_clear_resource_runtime_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceRuntimeSpec>,
Sets or clears the value of resource_runtime_spec.
Sourcepub fn set_resource_runtime<T>(self, v: T) -> Selfwhere
T: Into<ResourceRuntime>,
pub fn set_resource_runtime<T>(self, v: T) -> Selfwhere
T: Into<ResourceRuntime>,
Sets the value of resource_runtime.
Sourcepub fn set_or_clear_resource_runtime<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceRuntime>,
pub fn set_or_clear_resource_runtime<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceRuntime>,
Sets or clears the value of resource_runtime.
Sourcepub fn set_reserved_ip_ranges<T, V>(self, v: T) -> Self
pub fn set_reserved_ip_ranges<T, V>(self, v: T) -> Self
Sets the value of reserved_ip_ranges.
Trait Implementations§
Source§impl Clone for PersistentResource
impl Clone for PersistentResource
Source§fn clone(&self) -> PersistentResource
fn clone(&self) -> PersistentResource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more