Class: Azure::Signalr::Mgmt::V2020_05_01::Models::SignalRCorsSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rcors_settings.rb

Overview

Cross-Origin Resource Sharing (CORS) settings.

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. If omitted, allow all by default.

Returns:

  • (Array<String>)

    Gets or sets the list of origins that should be



19
20
21
# File 'lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rcors_settings.rb', line 19

def allowed_origins
  @allowed_origins
end

Class Method Details

.mapperObject

Mapper for SignalRCorsSettings 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
52
53
54
# File 'lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rcors_settings.rb', line 26

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SignalRCorsSettings',
    type: {
      name: 'Composite',
      class_name: 'SignalRCorsSettings',
      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