#[non_exhaustive]pub struct Instance {Show 15 fields
pub name: String,
pub description: String,
pub state: State,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub capacity_gib: i64,
pub daos_version: String,
pub access_points: Vec<String>,
pub network: String,
pub reserved_ip_range: String,
pub effective_reserved_ip_range: String,
pub file_stripe_level: FileStripeLevel,
pub directory_stripe_level: DirectoryStripeLevel,
pub deployment_type: DeploymentType,
/* private fields */
}Expand description
A Parallelstore instance.
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: StringIdentifier. The resource name of the instance, in the format
projects/{project}/locations/{location}/instances/{instance_id}.
description: StringOptional. The description of the instance. 2048 characters or less.
state: StateOutput only. The instance state.
create_time: Option<Timestamp>Output only. The time when the instance was created.
update_time: Option<Timestamp>Output only. The time when the instance was updated.
labels: HashMap<String, String>Optional. Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer’s organizational needs and deployment strategies. See https://cloud.google.com/resource-manager/docs/labels-overview for details.
capacity_gib: i64Required. Immutable. The instance’s storage capacity in Gibibytes (GiB). Allowed values are between 12000 and 100000, in multiples of 4000; e.g., 12000, 16000, 20000, …
daos_version: StringOutput only. Deprecated ‘daos_version’ field. Output only. The version of DAOS software running in the instance.
access_points: Vec<String>Output only. A list of IPv4 addresses used for client side configuration.
network: StringOptional. Immutable. The name of the Compute Engine VPC network to which the instance is connected.
reserved_ip_range: StringOptional. Immutable. The ID of the IP address range being used by the instance’s VPC network. See Configure a VPC network. If no ID is provided, all ranges are considered.
effective_reserved_ip_range: StringOutput only. Immutable. The ID of the IP address range being used by the instance’s VPC network. This field is populated by the service and contains the value currently used by the service.
file_stripe_level: FileStripeLevelOptional. Immutable. Stripe level for files. Allowed values are:
FILE_STRIPE_LEVEL_MIN: offers the best performance for small size files.FILE_STRIPE_LEVEL_BALANCED: balances performance for workloads involving a mix of small and large files.FILE_STRIPE_LEVEL_MAX: higher throughput performance for larger files.
directory_stripe_level: DirectoryStripeLevelOptional. Immutable. Stripe level for directories. Allowed values are:
DIRECTORY_STRIPE_LEVEL_MIN: recommended when directories contain a small number of files.DIRECTORY_STRIPE_LEVEL_BALANCED: balances performance for workloads involving a mix of small and large directories.DIRECTORY_STRIPE_LEVEL_MAX: recommended for directories with a large number of files.
deployment_type: DeploymentTypeOptional. Immutable. The deployment type of the instance. Allowed values are:
SCRATCH: the instance is a scratch instance.PERSISTENT: the instance is a persistent instance.
Implementations§
Source§impl Instance
impl Instance
pub fn new() -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
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_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_capacity_gib<T: Into<i64>>(self, v: T) -> Self
pub fn set_capacity_gib<T: Into<i64>>(self, v: T) -> Self
Sets the value of capacity_gib.
Sourcepub fn set_daos_version<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_daos_version<T: Into<String>>(self, v: T) -> Self
Sets the value of daos_version.
Sourcepub fn set_access_points<T, V>(self, v: T) -> Self
pub fn set_access_points<T, V>(self, v: T) -> Self
Sets the value of access_points.
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_reserved_ip_range<T: Into<String>>(self, v: T) -> Self
pub fn set_reserved_ip_range<T: Into<String>>(self, v: T) -> Self
Sets the value of reserved_ip_range.
Sourcepub fn set_effective_reserved_ip_range<T: Into<String>>(self, v: T) -> Self
pub fn set_effective_reserved_ip_range<T: Into<String>>(self, v: T) -> Self
Sets the value of effective_reserved_ip_range.
Sourcepub fn set_file_stripe_level<T: Into<FileStripeLevel>>(self, v: T) -> Self
pub fn set_file_stripe_level<T: Into<FileStripeLevel>>(self, v: T) -> Self
Sets the value of file_stripe_level.
Sourcepub fn set_directory_stripe_level<T: Into<DirectoryStripeLevel>>(
self,
v: T,
) -> Self
pub fn set_directory_stripe_level<T: Into<DirectoryStripeLevel>>( self, v: T, ) -> Self
Sets the value of directory_stripe_level.
Sourcepub fn set_deployment_type<T: Into<DeploymentType>>(self, v: T) -> Self
pub fn set_deployment_type<T: Into<DeploymentType>>(self, v: T) -> Self
Sets the value of deployment_type.