Sha256: 46e1860df23844700137a756900d3076f81879cfee5e16cbd4c020b6803a9b43

Contents?: true

Size: 1.55 KB

Versions: 2

Compression:

Stored size: 1.55 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::V2020_08_01_preview
  module Models
    #
    # Sets the CORS rules. You can include up to five CorsRule elements in the
    # request.
    #
    class CorsRules

      include MsRestAzure

      # @return [Array<CorsRule>] The List of CORS rules. You can include up to
      # five CorsRule elements in the request.
      attr_accessor :cors_rules


      #
      # Mapper for CorsRules class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CorsRules',
          type: {
            name: 'Composite',
            class_name: 'CorsRules',
            model_properties: {
              cors_rules: {
                client_side_validation: true,
                required: false,
                serialized_name: 'corsRules',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'CorsRuleElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'CorsRule'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_storage-0.23.0 lib/2020-08-01-preview/generated/azure_mgmt_storage/models/cors_rules.rb
azure_mgmt_storage-0.22.0 lib/2020-08-01-preview/generated/azure_mgmt_storage/models/cors_rules.rb