Struct google_api_proto::google::cloud::parallelstore::v1beta::Instance
source · pub struct Instance {Show 14 fields
pub name: String,
pub description: String,
pub state: i32,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<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: i32,
pub directory_stripe_level: i32,
}
Expand description
A Parallelstore instance.
Fields§
§name: String
Identifier. The resource name of the instance, in the format
projects/{project}/locations/{location}/instances/{instance_id}
description: String
Optional. The description of the instance. 2048 characters or less.
state: i32
Output 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: BTreeMap<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. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.).
- Label keys must be between 1 and 63 characters long and must conform to
the following regular expression:
[a-z][a-z0-9_-]{0,62}
. - Label values must be between 0 and 63 characters long and must conform
to the regular expression
\[a-z0-9_-\]{0,63}
. - No more than 64 labels can be associated with a given resource.
See https://goo.gl/xmQnxf for more information on and examples of labels.
If you plan to use labels in your own code, please note that additional characters may be allowed in the future. Therefore, you are advised to use an internal label representation, such as JSON, which doesn’t rely upon specific characters being disallowed. For example, representing labels as the string: name + “” + value would prove problematic if we were to allow “” in a future release.
capacity_gib: i64
Required. Immutable. Storage capacity of Parallelstore instance in Gibibytes (GiB).
daos_version: String
Output only. The version of DAOS software running in the instance
access_points: Vec<String>
Output only. List of access_points. Contains a list of IPv4 addresses used for client side configuration.
network: String
Optional. Immutable. The name of the Google Compute Engine VPC network to which the instance is connected.
reserved_ip_range: String
Optional. Immutable. Contains the id of the allocated IP address range associated with the private service access connection for example, “test-default” associated with IP range 10.0.0.0/29. If no range id is provided all ranges will be considered.
effective_reserved_ip_range: String
Output only. Immutable. Contains the id of the allocated IP address range associated with the private service access connection for example, “test-default” associated with IP range 10.0.0.0/29. This field is populated by the service and and contains the value currently used by the service.
file_stripe_level: i32
Optional. Stripe level for files. MIN better suited for small size files. MAX higher throughput performance for larger files.
directory_stripe_level: i32
Optional. Stripe level for directories. MIN when directory has a small number of files. MAX when directory has a large number of files.
Implementations§
source§impl Instance
impl Instance
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn file_stripe_level(&self) -> FileStripeLevel
pub fn file_stripe_level(&self) -> FileStripeLevel
Returns the enum value of file_stripe_level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_file_stripe_level(&mut self, value: FileStripeLevel)
pub fn set_file_stripe_level(&mut self, value: FileStripeLevel)
Sets file_stripe_level
to the provided enum value.
sourcepub fn directory_stripe_level(&self) -> DirectoryStripeLevel
pub fn directory_stripe_level(&self) -> DirectoryStripeLevel
Returns the enum value of directory_stripe_level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_directory_stripe_level(&mut self, value: DirectoryStripeLevel)
pub fn set_directory_stripe_level(&mut self, value: DirectoryStripeLevel)
Sets directory_stripe_level
to the provided enum value.
Trait Implementations§
source§impl Message for Instance
impl Message for Instance
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Instance
impl PartialEq for Instance
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request