Struct google_api_proto::google::cloud::netapp::v1::SimpleExportPolicyRule
source · pub struct SimpleExportPolicyRule {
pub allowed_clients: Option<String>,
pub has_root_access: Option<String>,
pub access_type: Option<i32>,
pub nfsv3: Option<bool>,
pub nfsv4: Option<bool>,
pub kerberos_5_read_only: Option<bool>,
pub kerberos_5_read_write: Option<bool>,
pub kerberos_5i_read_only: Option<bool>,
pub kerberos_5i_read_write: Option<bool>,
pub kerberos_5p_read_only: Option<bool>,
pub kerberos_5p_read_write: Option<bool>,
}
Expand description
An export policy rule describing various export options.
Fields§
§allowed_clients: Option<String>
Comma separated list of allowed clients IP addresses
has_root_access: Option<String>
Whether Unix root access will be granted.
access_type: Option<i32>
Access type (ReadWrite, ReadOnly, None)
nfsv3: Option<bool>
NFS V3 protocol.
nfsv4: Option<bool>
NFS V4 protocol.
kerberos_5_read_only: Option<bool>
If enabled (true) the rule defines a read only access for clients matching the ‘allowedClients’ specification. It enables nfs clients to mount using ‘authentication’ kerberos security mode.
kerberos_5_read_write: Option<bool>
If enabled (true) the rule defines read and write access for clients matching the ‘allowedClients’ specification. It enables nfs clients to mount using ‘authentication’ kerberos security mode. The ‘kerberos5ReadOnly’ value be ignored if this is enabled.
kerberos_5i_read_only: Option<bool>
If enabled (true) the rule defines a read only access for clients matching the ‘allowedClients’ specification. It enables nfs clients to mount using ‘integrity’ kerberos security mode.
kerberos_5i_read_write: Option<bool>
If enabled (true) the rule defines read and write access for clients matching the ‘allowedClients’ specification. It enables nfs clients to mount using ‘integrity’ kerberos security mode. The ‘kerberos5iReadOnly’ value be ignored if this is enabled.
kerberos_5p_read_only: Option<bool>
If enabled (true) the rule defines a read only access for clients matching the ‘allowedClients’ specification. It enables nfs clients to mount using ‘privacy’ kerberos security mode.
kerberos_5p_read_write: Option<bool>
If enabled (true) the rule defines read and write access for clients matching the ‘allowedClients’ specification. It enables nfs clients to mount using ‘privacy’ kerberos security mode. The ‘kerberos5pReadOnly’ value be ignored if this is enabled.
Implementations§
source§impl SimpleExportPolicyRule
impl SimpleExportPolicyRule
sourcepub fn allowed_clients(&self) -> &str
pub fn allowed_clients(&self) -> &str
Returns the value of allowed_clients
, or the default value if allowed_clients
is unset.
sourcepub fn has_root_access(&self) -> &str
pub fn has_root_access(&self) -> &str
Returns the value of has_root_access
, or the default value if has_root_access
is unset.
sourcepub fn access_type(&self) -> AccessType
pub fn access_type(&self) -> AccessType
Returns the enum value of access_type
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_access_type(&mut self, value: AccessType)
pub fn set_access_type(&mut self, value: AccessType)
Sets access_type
to the provided enum value.
sourcepub fn nfsv3(&self) -> bool
pub fn nfsv3(&self) -> bool
Returns the value of nfsv3
, or the default value if nfsv3
is unset.
sourcepub fn nfsv4(&self) -> bool
pub fn nfsv4(&self) -> bool
Returns the value of nfsv4
, or the default value if nfsv4
is unset.
sourcepub fn kerberos_5_read_only(&self) -> bool
pub fn kerberos_5_read_only(&self) -> bool
Returns the value of kerberos_5_read_only
, or the default value if kerberos_5_read_only
is unset.
sourcepub fn kerberos_5_read_write(&self) -> bool
pub fn kerberos_5_read_write(&self) -> bool
Returns the value of kerberos_5_read_write
, or the default value if kerberos_5_read_write
is unset.
sourcepub fn kerberos_5i_read_only(&self) -> bool
pub fn kerberos_5i_read_only(&self) -> bool
Returns the value of kerberos_5i_read_only
, or the default value if kerberos_5i_read_only
is unset.
sourcepub fn kerberos_5i_read_write(&self) -> bool
pub fn kerberos_5i_read_write(&self) -> bool
Returns the value of kerberos_5i_read_write
, or the default value if kerberos_5i_read_write
is unset.
sourcepub fn kerberos_5p_read_only(&self) -> bool
pub fn kerberos_5p_read_only(&self) -> bool
Returns the value of kerberos_5p_read_only
, or the default value if kerberos_5p_read_only
is unset.
sourcepub fn kerberos_5p_read_write(&self) -> bool
pub fn kerberos_5p_read_write(&self) -> bool
Returns the value of kerberos_5p_read_write
, or the default value if kerberos_5p_read_write
is unset.
Trait Implementations§
source§impl Clone for SimpleExportPolicyRule
impl Clone for SimpleExportPolicyRule
source§fn clone(&self) -> SimpleExportPolicyRule
fn clone(&self) -> SimpleExportPolicyRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SimpleExportPolicyRule
impl Debug for SimpleExportPolicyRule
source§impl Default for SimpleExportPolicyRule
impl Default for SimpleExportPolicyRule
source§impl Message for SimpleExportPolicyRule
impl Message for SimpleExportPolicyRule
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 SimpleExportPolicyRule
impl PartialEq for SimpleExportPolicyRule
source§fn eq(&self, other: &SimpleExportPolicyRule) -> bool
fn eq(&self, other: &SimpleExportPolicyRule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SimpleExportPolicyRule
Auto Trait Implementations§
impl Freeze for SimpleExportPolicyRule
impl RefUnwindSafe for SimpleExportPolicyRule
impl Send for SimpleExportPolicyRule
impl Sync for SimpleExportPolicyRule
impl Unpin for SimpleExportPolicyRule
impl UnwindSafe for SimpleExportPolicyRule
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