From b0c39fca67c7f2cfe4ef704bae9568ac0c25badc Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 25 Jul 2019 22:20:28 -0700 Subject: [PATCH] Generated from b038fea5b8d2c6dd81eed2ac64771d22084389e6 (#5347) Add new property for CORS settings --- profiles/latest/signalr/mgmt/signalr/models.go | 1 + profiles/preview/signalr/mgmt/signalr/models.go | 1 + services/signalr/mgmt/2018-10-01/signalr/models.go | 10 ++++++++++ 3 files changed, 12 insertions(+) diff --git a/profiles/latest/signalr/mgmt/signalr/models.go b/profiles/latest/signalr/mgmt/signalr/models.go index 644c4916c908..d7a4c612b6ab 100644 --- a/profiles/latest/signalr/mgmt/signalr/models.go +++ b/profiles/latest/signalr/mgmt/signalr/models.go @@ -61,6 +61,7 @@ const ( type BaseClient = original.BaseClient type Client = original.Client +type CorsSettings = original.CorsSettings type CreateOrUpdateFuture = original.CreateOrUpdateFuture type CreateOrUpdateProperties = original.CreateOrUpdateProperties type CreateParameters = original.CreateParameters diff --git a/profiles/preview/signalr/mgmt/signalr/models.go b/profiles/preview/signalr/mgmt/signalr/models.go index 505b5777531a..2e63915998b2 100644 --- a/profiles/preview/signalr/mgmt/signalr/models.go +++ b/profiles/preview/signalr/mgmt/signalr/models.go @@ -61,6 +61,7 @@ const ( type BaseClient = original.BaseClient type Client = original.Client +type CorsSettings = original.CorsSettings type CreateOrUpdateFuture = original.CreateOrUpdateFuture type CreateOrUpdateProperties = original.CreateOrUpdateProperties type CreateParameters = original.CreateParameters diff --git a/services/signalr/mgmt/2018-10-01/signalr/models.go b/services/signalr/mgmt/2018-10-01/signalr/models.go index 917a7037fa67..39a3e259d3a8 100644 --- a/services/signalr/mgmt/2018-10-01/signalr/models.go +++ b/services/signalr/mgmt/2018-10-01/signalr/models.go @@ -93,6 +93,12 @@ func PossibleSkuTierValues() []SkuTier { return []SkuTier{Basic, Free, Premium, Standard} } +// CorsSettings cross-Origin Resource Sharing (CORS) settings. +type CorsSettings struct { + // AllowedOrigins - Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. If omitted, allow all by default. + AllowedOrigins *[]string `json:"allowedOrigins,omitempty"` +} + // CreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type CreateOrUpdateFuture struct { @@ -134,6 +140,8 @@ type CreateOrUpdateProperties struct { // When a featureFlag is not explicitly set, SignalR service will use its globally default value. // But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. Features *[]Feature `json:"features,omitempty"` + // Cors - Cross-Origin Resource Sharing (CORS) settings. + Cors *CorsSettings `json:"cors,omitempty"` } // CreateParameters parameters for SignalR service create/update operation. @@ -485,6 +493,8 @@ type Properties struct { // When a featureFlag is not explicitly set, SignalR service will use its globally default value. // But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. Features *[]Feature `json:"features,omitempty"` + // Cors - Cross-Origin Resource Sharing (CORS) settings. + Cors *CorsSettings `json:"cors,omitempty"` } // RegenerateKeyFuture an abstraction for monitoring and retrieving the results of a long-running