Class: Azure::Signalr::Mgmt::V2020_05_01::Models::SignalRCorsSettings
- Inherits:
-
Object
- Object
- Azure::Signalr::Mgmt::V2020_05_01::Models::SignalRCorsSettings
- 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
-
#allowed_origins ⇒ Array<String>
allowed to make cross-origin calls (for example: example.com:12345).
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SignalRCorsSettings class as Ruby Hash.
Instance Attribute Details
#allowed_origins ⇒ Array<String>
allowed to make cross-origin calls (for example: example.com:12345). Use “*” to allow all. If omitted, allow all by default.
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
.mapper ⇒ Object
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 |