Class: Azure::StorageCache::Mgmt::V2020_10_01::Models::NfsAccessRule
- Inherits:
-
Object
- Object
- Azure::StorageCache::Mgmt::V2020_10_01::Models::NfsAccessRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb
Overview
Rule to place restrictions on portions of the cache namespace being presented to clients.
Instance Attribute Summary collapse
-
#access ⇒ NfsAccessRuleAccess
values include: ‘no’, ‘ro’, ‘rw’.
-
#anonymous_gid ⇒ String
Default value: ‘-2’ .
-
#anonymous_uid ⇒ String
Default value: ‘-2’ .
-
#filter ⇒ String
filter’s format depends on its scope.
-
#root_squash ⇒ Boolean
Map root accesses to anonymousUID and anonymousGID.
-
#scope ⇒ NfsAccessRuleScope
determine which clients match the rule.
-
#submount_access ⇒ Boolean
subdirectories under the root export.
-
#suid ⇒ Boolean
Allow SUID semantics.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for NfsAccessRule class as Ruby Hash.
Instance Attribute Details
#access ⇒ NfsAccessRuleAccess
values include: ‘no’, ‘ro’, ‘rw’
31 32 33 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 31 def access @access end |
#anonymous_gid ⇒ String
Default value: ‘-2’ .
51 52 53 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 51 def anonymous_gid @anonymous_gid end |
#anonymous_uid ⇒ String
Default value: ‘-2’ .
47 48 49 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 47 def anonymous_uid @anonymous_uid end |
#filter ⇒ String
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.
27 28 29 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 27 def filter @filter end |
#root_squash ⇒ Boolean
Returns Map root accesses to anonymousUID and anonymousGID.
43 44 45 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 43 def root_squash @root_squash end |
#scope ⇒ NfsAccessRuleScope
determine which clients match the rule. Possible values include: ‘default’, ‘network’, ‘host’
19 20 21 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 19 def scope @scope end |
#submount_access ⇒ Boolean
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’.
40 41 42 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 40 def submount_access @submount_access end |
#suid ⇒ Boolean
Returns Allow SUID semantics.
34 35 36 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 34 def suid @suid end |
Class Method Details
.mapper ⇒ Object
Mapper for NfsAccessRule class as Ruby Hash. This will be used for serialization/deserialization.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 58 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'NfsAccessRule', type: { name: 'Composite', class_name: 'NfsAccessRule', model_properties: { scope: { client_side_validation: true, required: true, serialized_name: 'scope', type: { name: 'String' } }, filter: { client_side_validation: true, required: false, serialized_name: 'filter', type: { name: 'String' } }, access: { client_side_validation: true, required: true, serialized_name: 'access', type: { name: 'String' } }, suid: { client_side_validation: true, required: false, serialized_name: 'suid', type: { name: 'Boolean' } }, submount_access: { client_side_validation: true, required: false, serialized_name: 'submountAccess', type: { name: 'Boolean' } }, root_squash: { client_side_validation: true, required: false, serialized_name: 'rootSquash', type: { name: 'Boolean' } }, anonymous_uid: { client_side_validation: true, required: false, serialized_name: 'anonymousUID', default_value: '-2', type: { name: 'String' } }, anonymous_gid: { client_side_validation: true, required: false, serialized_name: 'anonymousGID', default_value: '-2', type: { name: 'String' } } } } } end |