Sha256: 3ed1fc5af679385583107564c439315d00a54db3630e1cef728b7ab4914ce7ae

Contents?: true

Size: 1.55 KB

Versions: 10

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::Web::Mgmt::V2016_03_01
  module Models
    #
    # Cross-Origin Resource Sharing (CORS) settings for the app.
    #
    class CorsSettings

      include MsRestAzure

      # @return [Array<String>] Gets or sets the list of origins that should be
      # allowed to make cross-origin
      # calls (for example: http://example.com:12345). Use "*" to allow all.
      attr_accessor :allowed_origins


      #
      # Mapper for CorsSettings class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CorsSettings',
          type: {
            name: 'Composite',
            class_name: 'CorsSettings',
            model_properties: {
              allowed_origins: {
                client_side_validation: true,
                required: false,
                serialized_name: 'allowedOrigins',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
azure_mgmt_web-0.18.1 lib/2016-03-01/generated/azure_mgmt_web/models/cors_settings.rb
azure_mgmt_web-0.18.0 lib/2016-03-01/generated/azure_mgmt_web/models/cors_settings.rb
azure_mgmt_web-0.17.6 lib/2016-03-01/generated/azure_mgmt_web/models/cors_settings.rb
azure_mgmt_web-0.17.5 lib/2016-03-01/generated/azure_mgmt_web/models/cors_settings.rb
azure_mgmt_web-0.17.4 lib/2016-03-01/generated/azure_mgmt_web/models/cors_settings.rb
azure_mgmt_web-0.17.3 lib/2016-03-01/generated/azure_mgmt_web/models/cors_settings.rb
azure_mgmt_web-0.17.2 lib/2016-03-01/generated/azure_mgmt_web/models/cors_settings.rb
azure_mgmt_web-0.17.1 lib/2016-03-01/generated/azure_mgmt_web/models/cors_settings.rb
azure_mgmt_web-0.17.0 lib/2016-03-01/generated/azure_mgmt_web/models/cors_settings.rb
azure_mgmt_web-0.16.0 lib/2016-03-01/generated/azure_mgmt_web/models/cors_settings.rb