Sha256: 4917a179db477a92d88558dbfe9b65e5f92b615d4cc730d26d4e02f4118b640a

Contents?: true

Size: 1.93 KB

Versions: 2

Compression:

Stored size: 1.93 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::StorageCache::Mgmt::V2020_10_01
  module Models
    #
    # A set of rules describing access policies applied to NFSv3 clients of the
    # cache.
    #
    class NfsAccessPolicy

      include MsRestAzure

      # @return [String] Name identifying this policy. Access Policy names are
      # not case sensitive.
      attr_accessor :name

      # @return [Array<NfsAccessRule>] The set of rules describing client
      # accesses allowed under this policy.
      attr_accessor :access_rules


      #
      # Mapper for NfsAccessPolicy class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_storagecache-0.19.1 lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_policy.rb
azure_mgmt_storagecache-0.19.0 lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_policy.rb