Class: Azure::StorageCache::Mgmt::V2020_10_01::Models::NfsAccessPolicy

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_policy.rb

Overview

A set of rules describing access policies applied to NFSv3 clients of the cache.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#access_rulesArray<NfsAccessRule>

accesses allowed under this policy.



22
23
24
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_policy.rb', line 22

def access_rules
  @access_rules
end

#nameString

not case sensitive.



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

def name
  @name
end

Class Method Details

.mapperObject

Mapper for NfsAccessPolicy class as Ruby Hash. This will be used for serialization/deserialization.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_policy.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'NfsAccessPolicy',
    type: {
      name: 'Composite',
      class_name: 'NfsAccessPolicy',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        access_rules: {
          client_side_validation: true,
          required: true,
          serialized_name: 'accessRules',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'NfsAccessRuleElementType',
                type: {
                  name: 'Composite',
                  class_name: 'NfsAccessRule'
                }
            }
          }
        }
      }
    }
  }
end