NfsAccessRule Class

  • java.lang.Object
    • com.azure.resourcemanager.storagecache.models.NfsAccessRule

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 NfsAccessRule class.

Method Summary

Modifier and Type Method and Description
NfsAccessRuleAccess access()

Get the access property: Access allowed by this rule.

String anonymousGid()

Get the anonymousGid property: GID value that replaces 0 when rootSquash is true.

String anonymousUid()

Get the anonymousUid property: UID value that replaces 0 when rootSquash is true.

String filter()

Get the filter property: Filter applied to the scope for this rule.

Boolean rootSquash()

Get the rootSquash property: Map root accesses to anonymousUID and anonymousGID.

NfsAccessRuleScope scope()

Get the scope property: Scope for this rule.

Boolean submountAccess()

Get the submountAccess property: For the default policy, allow access to subdirectories under the root export.

Boolean suid()

Get the suid property: Allow SUID semantics.

void validate()

Validates the instance.

NfsAccessRule withAccess(NfsAccessRuleAccess access)

Set the access property: Access allowed by this rule.

NfsAccessRule withAnonymousGid(String anonymousGid)

Set the anonymousGid property: GID value that replaces 0 when rootSquash is true.

NfsAccessRule withAnonymousUid(String anonymousUid)

Set the anonymousUid property: UID value that replaces 0 when rootSquash is true.

NfsAccessRule withFilter(String filter)

Set the filter property: Filter applied to the scope for this rule.

NfsAccessRule withRootSquash(Boolean rootSquash)

Set the rootSquash property: Map root accesses to anonymousUID and anonymousGID.

NfsAccessRule withScope(NfsAccessRuleScope scope)

Set the scope property: Scope for this rule.

NfsAccessRule withSubmountAccess(Boolean submountAccess)

Set the submountAccess property: For the default policy, allow access to subdirectories under the root export.

NfsAccessRule 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:

the access value.

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:

the anonymousGid value.

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:

the anonymousUid value.

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:

the filter value.

rootSquash

public Boolean rootSquash()

Get the rootSquash property: Map root accesses to anonymousUID and anonymousGID.

Returns:

the rootSquash value.

scope

public NfsAccessRuleScope scope()

Get the scope property: Scope for this rule. The scope and filter determine which clients match the rule.

Returns:

the scope value.

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:

the submountAccess value.

suid

public Boolean suid()

Get the suid property: Allow SUID semantics.

Returns:

the suid value.

validate

public void validate()

Validates the instance.

withAccess

public NfsAccessRule withAccess(NfsAccessRuleAccess access)

Set the access property: Access allowed by this rule.

Parameters:

access - the access value to set.

Returns:

the NfsAccessRule object itself.

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:

anonymousGid - the anonymousGid value to set.

Returns:

the NfsAccessRule object itself.

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:

anonymousUid - the anonymousUid value to set.

Returns:

the NfsAccessRule object itself.

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:

filter - the filter value to set.

Returns:

the NfsAccessRule object itself.

withRootSquash

public NfsAccessRule withRootSquash(Boolean rootSquash)

Set the rootSquash property: Map root accesses to anonymousUID and anonymousGID.

Parameters:

rootSquash - the rootSquash value to set.

Returns:

the NfsAccessRule object itself.

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:

scope - the scope value to set.

Returns:

the NfsAccessRule object itself.

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:

submountAccess - the submountAccess value to set.

Returns:

the NfsAccessRule object itself.

withSuid

public NfsAccessRule withSuid(Boolean suid)

Set the suid property: Allow SUID semantics.

Parameters:

suid - the suid value to set.

Returns:

the NfsAccessRule object itself.

Applies to