Class: Azure::StorageCache::Mgmt::V2020_10_01::Models::NfsAccessRule

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#accessNfsAccessRuleAccess

values include: ‘no’, ‘ro’, ‘rw’

Returns:



31
32
33
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 31

def access
  @access
end

#anonymous_gidString

Default value: ‘-2’ .

Returns:

  • (String)

    GID value that replaces 0 when rootSquash is true.



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_uidString

Default value: ‘-2’ .

Returns:

  • (String)

    UID value that replaces 0 when rootSquash is true.



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

#filterString

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:

  • (String)

    Filter applied to the scope for this rule. The



27
28
29
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 27

def filter
  @filter
end

#root_squashBoolean

Returns Map root accesses to anonymousUID and anonymousGID.

Returns:

  • (Boolean)

    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

#scopeNfsAccessRuleScope

determine which clients match the rule. Possible values include: ‘default’, ‘network’, ‘host’

Returns:



19
20
21
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb', line 19

def scope
  @scope
end

#submount_accessBoolean

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:

  • (Boolean)

    For the default policy, allow access to



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

#suidBoolean

Returns Allow SUID semantics.

Returns:

  • (Boolean)

    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

.mapperObject

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