Sha256: a929ec7033136cd321a3047abf242fcb378f3de35db4d54c04fabc6165cec665

Contents?: true

Size: 1.6 KB

Versions: 27

Compression:

Stored size: 1.6 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::Storage::Mgmt::V2018_03_01_preview
  module Models
    #
    # IP rule with specific IP or IP range in CIDR format.
    #
    class IPRule

      include MsRestAzure

      # @return [String] Specifies the IP or IP range in CIDR format. Only IPV4
      # address is allowed.
      attr_accessor :ipaddress_or_range

      # @return [Action] The action of IP ACL rule. Possible values include:
      # 'Allow'. Default value: 'Allow' .
      attr_accessor :action


      #
      # Mapper for IPRule class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'IPRule',
          type: {
            name: 'Composite',
            class_name: 'IPRule',
            model_properties: {
              ipaddress_or_range: {
                client_side_validation: true,
                required: true,
                serialized_name: 'value',
                type: {
                  name: 'String'
                }
              },
              action: {
                client_side_validation: true,
                required: false,
                serialized_name: 'action',
                default_value: 'Allow',
                type: {
                  name: 'Enum',
                  module: 'Action'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
azure_mgmt_storage-0.23.0 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.22.0 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.21.2 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.21.1 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.21.0 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.20.1 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.20.0 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.19.3 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.19.2 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.19.1 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.19.0 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.18.2 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.18.1 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.18.0 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.17.10 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.17.9 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.17.8 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.17.7 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.17.6 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb
azure_mgmt_storage-0.17.5 lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb