Class: Azure::ARM::Web::Models::CorsSettings

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_web/models/cors_settings.rb

Overview

Cross-Origin Resource Sharing (CORS) settings for the app.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#allowed_originsArray<String>

allowed to make cross-origin calls (for example: example.com:12345). Use “*” to allow all.

Returns:

  • (Array<String>)

    Gets or sets the list of origins that should be



19
20
21
# File 'lib/generated/azure_mgmt_web/models/cors_settings.rb', line 19

def allowed_origins
  @allowed_origins
end

Class Method Details

.mapperObject

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



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/generated/azure_mgmt_web/models/cors_settings.rb', line 26

def self.mapper()
  {
    required: false,
    serialized_name: 'CorsSettings',
    type: {
      name: 'Composite',
      class_name: 'CorsSettings',
      model_properties: {
        allowed_origins: {
          required: false,
          serialized_name: 'allowedOrigins',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end