class Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::CorsPolicy
The CORS policy for the Cosmos DB database account.
Attributes
allowed_headers[RW]
@return [String] The request headers that the origin domain may specify on the CORS request.
allowed_methods[RW]
@return [String] The methods (HTTP request verbs) that the origin domain may use for a CORS request.
allowed_origins[RW]
@return [String] The origin domains that are permitted to make a request against the service via CORS.
exposed_headers[RW]
@return [String] The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.
max_age_in_seconds[RW]
@return [Integer] The maximum amount time that a browser should cache the preflight OPTIONS request.
Public Class Methods
mapper()
click to toggle source
Mapper for CorsPolicy
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cors_policy.rb, line 40 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CorsPolicy', type: { name: 'Composite', class_name: 'CorsPolicy', model_properties: { allowed_origins: { client_side_validation: true, required: true, serialized_name: 'allowedOrigins', type: { name: 'String' } }, allowed_methods: { client_side_validation: true, required: false, serialized_name: 'allowedMethods', type: { name: 'String' } }, allowed_headers: { client_side_validation: true, required: false, serialized_name: 'allowedHeaders', type: { name: 'String' } }, exposed_headers: { client_side_validation: true, required: false, serialized_name: 'exposedHeaders', type: { name: 'String' } }, max_age_in_seconds: { client_side_validation: true, required: false, serialized_name: 'maxAgeInSeconds', constraints: { InclusiveMaximum: 2147483647, InclusiveMinimum: 1 }, type: { name: 'Number' } } } } } end