NfsAccessRule Class
- java.
lang. Object - com.
azure. resourcemanager. storagecache. models. NfsAccessRule
- com.
public final class NfsAccessRule
Rule to place restrictions on portions of the cache namespace being presented to clients.
Constructor Summary
Constructor | Description |
---|---|
NfsAccessRule() |
Creates an instance of Nfs |
Method Summary
Modifier and Type | Method and Description |
---|---|
Nfs |
access()
Get the access property: Access allowed by this rule. |
String |
anonymousGid()
Get the anonymous |
String |
anonymousUid()
Get the anonymous |
String |
filter()
Get the filter property: Filter applied to the scope for this rule. |
Boolean |
rootSquash()
Get the root |
Nfs |
scope()
Get the scope property: Scope for this rule. |
Boolean |
submountAccess()
Get the submount |
Boolean |
suid()
Get the suid property: Allow SUID semantics. |
void |
validate()
Validates the instance. |
Nfs |
withAccess(NfsAccessRuleAccess access)
Set the access property: Access allowed by this rule. |
Nfs |
withAnonymousGid(String anonymousGid)
Set the anonymous |
Nfs |
withAnonymousUid(String anonymousUid)
Set the anonymous |
Nfs |
withFilter(String filter)
Set the filter property: Filter applied to the scope for this rule. |
Nfs |
withRootSquash(Boolean rootSquash)
Set the root |
Nfs |
withScope(NfsAccessRuleScope scope)
Set the scope property: Scope for this rule. |
Nfs |
withSubmountAccess(Boolean submountAccess)
Set the submount |
Nfs |
withSuid(Boolean suid)
Set the suid property: Allow SUID semantics. |
Methods inherited from java.lang.Object
Constructor Details
NfsAccessRule
public NfsAccessRule()
Creates an instance of NfsAccessRule class.
Method Details
access
public NfsAccessRuleAccess access()
Get the access property: Access allowed by this rule.
Returns:
anonymousGid
public String anonymousGid()
Get the anonymousGid property: GID value that replaces 0 when rootSquash is true. This will use the value of anonymousUID if not provided.
Returns:
anonymousUid
public String anonymousUid()
Get the anonymousUid property: UID value that replaces 0 when rootSquash is true. 65534 will be used if not provided.
Returns:
filter
public String filter()
Get the filter property: Filter applied to the scope for this rule. The filter's format depends on its scope. 'default' scope matches all clients and has no filter value. 'network' scope takes a filter in CIDR format (for example, 10.99.1.0/24). 'host' takes an IP address or fully qualified domain name as filter. If a client does not match any filter rule and there is no default rule, access is denied.
Returns:
rootSquash
public Boolean rootSquash()
Get the rootSquash property: Map root accesses to anonymousUID and anonymousGID.
Returns:
scope
public NfsAccessRuleScope scope()
Get the scope property: Scope for this rule. The scope and filter determine which clients match the rule.
Returns:
submountAccess
public Boolean submountAccess()
Get the submountAccess property: For the default policy, allow access to subdirectories under the root export. If this is set to no, clients can only mount the path '/'. If set to yes, clients can mount a deeper path, like '/a/b'.
Returns:
suid
public Boolean suid()
Get the suid property: Allow SUID semantics.
Returns:
validate
public void validate()
Validates the instance.
withAccess
public NfsAccessRule withAccess(NfsAccessRuleAccess access)
Set the access property: Access allowed by this rule.
Parameters:
Returns:
withAnonymousGid
public NfsAccessRule withAnonymousGid(String anonymousGid)
Set the anonymousGid property: GID value that replaces 0 when rootSquash is true. This will use the value of anonymousUID if not provided.
Parameters:
Returns:
withAnonymousUid
public NfsAccessRule withAnonymousUid(String anonymousUid)
Set the anonymousUid property: UID value that replaces 0 when rootSquash is true. 65534 will be used if not provided.
Parameters:
Returns:
withFilter
public NfsAccessRule withFilter(String filter)
Set the filter property: Filter applied to the scope for this rule. The filter's format depends on its scope. 'default' scope matches all clients and has no filter value. 'network' scope takes a filter in CIDR format (for example, 10.99.1.0/24). 'host' takes an IP address or fully qualified domain name as filter. If a client does not match any filter rule and there is no default rule, access is denied.
Parameters:
Returns:
withRootSquash
public NfsAccessRule withRootSquash(Boolean rootSquash)
Set the rootSquash property: Map root accesses to anonymousUID and anonymousGID.
Parameters:
Returns:
withScope
public NfsAccessRule withScope(NfsAccessRuleScope scope)
Set the scope property: Scope for this rule. The scope and filter determine which clients match the rule.
Parameters:
Returns:
withSubmountAccess
public NfsAccessRule withSubmountAccess(Boolean submountAccess)
Set the submountAccess property: For the default policy, allow access to subdirectories under the root export. If this is set to no, clients can only mount the path '/'. If set to yes, clients can mount a deeper path, like '/a/b'.
Parameters:
Returns:
withSuid
public NfsAccessRule withSuid(Boolean suid)
Set the suid property: Allow SUID semantics.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for