class Azure::Signalr::Mgmt::V2020_05_01::Models::SignalRCorsSettings
Cross-Origin Resource
Sharing (CORS) settings.
Attributes
allowed_origins[RW]
@return [Array<String>] Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: example.com:12345). Use “*” to allow all. If omitted, allow all by default.
Private Class Methods
mapper()
click to toggle source
Mapper for SignalRCorsSettings
class as Ruby Hash. This will be used for serialization/deserialization.
# 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