#[non_exhaustive]pub struct AllowedClient {
pub network: String,
pub share_ip: String,
pub allowed_clients_cidr: String,
pub mount_permissions: MountPermissions,
pub allow_dev: bool,
pub allow_suid: bool,
pub no_root_squash: bool,
pub nfs_path: String,
/* private fields */
}Expand description
Represents an ‘access point’ for the share.
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.network: StringThe network the access point sits on.
Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network’s services_cidr.
allowed_clients_cidr: StringThe subnet of IP addresses permitted to access the share.
mount_permissions: MountPermissionsMount permissions.
allow_dev: boolAllow dev flag. Which controls whether to allow creation of devices.
allow_suid: boolAllow the setuid flag.
no_root_squash: boolDisable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
nfs_path: StringOutput only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like “10.0.0.0:/g123456789-nfs001”
Implementations§
Source§impl AllowedClient
impl AllowedClient
pub fn new() -> Self
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_allowed_clients_cidr<T: Into<String>>(self, v: T) -> Self
pub fn set_allowed_clients_cidr<T: Into<String>>(self, v: T) -> Self
Sets the value of allowed_clients_cidr.
§Example
let x = AllowedClient::new().set_allowed_clients_cidr("example");Sourcepub fn set_mount_permissions<T: Into<MountPermissions>>(self, v: T) -> Self
pub fn set_mount_permissions<T: Into<MountPermissions>>(self, v: T) -> Self
Sets the value of mount_permissions.
§Example
use google_cloud_baremetalsolution_v2::model::nfs_share::MountPermissions;
let x0 = AllowedClient::new().set_mount_permissions(MountPermissions::Read);
let x1 = AllowedClient::new().set_mount_permissions(MountPermissions::ReadWrite);Sourcepub fn set_allow_dev<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_dev<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_allow_suid<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_suid<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_no_root_squash<T: Into<bool>>(self, v: T) -> Self
pub fn set_no_root_squash<T: Into<bool>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AllowedClient
impl Clone for AllowedClient
Source§fn clone(&self) -> AllowedClient
fn clone(&self) -> AllowedClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more