From ab9a24ac33b940d25e4285c3600a87d955bd9679 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 15 Oct 2018 13:45:02 -0700 Subject: [PATCH] Generated from 0d3fa76ca7abc30f7d80506e5183c45c66aef6d3 (#3006) add openid connect in authentication settings --- .../mgmt/apimanagement/models.go | 11 ++++++++ .../mgmt/2018-01-01/apimanagement/models.go | 28 +++++++++++++++++++ .../apimanagement/models.go | 28 +++++++++++++++++++ 3 files changed, 67 insertions(+) diff --git a/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go b/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go index ded96192fb09..b0f25fd82615 100644 --- a/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go +++ b/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go @@ -100,6 +100,13 @@ const ( Query BearerTokenSendingMethod = original.Query ) +type BearerTokenSendingMethods = original.BearerTokenSendingMethods + +const ( + BearerTokenSendingMethodsAuthorizationHeader BearerTokenSendingMethods = original.BearerTokenSendingMethodsAuthorizationHeader + BearerTokenSendingMethodsQuery BearerTokenSendingMethods = original.BearerTokenSendingMethodsQuery +) + type ClientAuthenticationMethod = original.ClientAuthenticationMethod const ( @@ -488,6 +495,7 @@ type NotificationCollectionPage = original.NotificationCollectionPage type NotificationContract = original.NotificationContract type NotificationContractProperties = original.NotificationContractProperties type OAuth2AuthenticationSettingsContract = original.OAuth2AuthenticationSettingsContract +type OpenIDAuthenticationSettingsContract = original.OpenIDAuthenticationSettingsContract type OpenIDConnectProviderCollection = original.OpenIDConnectProviderCollection type OpenIDConnectProviderCollectionIterator = original.OpenIDConnectProviderCollectionIterator type OpenIDConnectProviderCollectionPage = original.OpenIDConnectProviderCollectionPage @@ -853,6 +861,9 @@ func PossibleBackendProtocolValues() []BackendProtocol { func PossibleBearerTokenSendingMethodValues() []BearerTokenSendingMethod { return original.PossibleBearerTokenSendingMethodValues() } +func PossibleBearerTokenSendingMethodsValues() []BearerTokenSendingMethods { + return original.PossibleBearerTokenSendingMethodsValues() +} func PossibleClientAuthenticationMethodValues() []ClientAuthenticationMethod { return original.PossibleClientAuthenticationMethodValues() } diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/models.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/models.go index c4a114a35baa..9fc72e35cdf2 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/models.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/models.go @@ -118,6 +118,22 @@ func PossibleBearerTokenSendingMethodValues() []BearerTokenSendingMethod { return []BearerTokenSendingMethod{AuthorizationHeader, Query} } +// BearerTokenSendingMethods enumerates the values for bearer token sending methods. +type BearerTokenSendingMethods string + +const ( + // BearerTokenSendingMethodsAuthorizationHeader Access token will be transmitted in the Authorization + // header using Bearer schema + BearerTokenSendingMethodsAuthorizationHeader BearerTokenSendingMethods = "authorizationHeader" + // BearerTokenSendingMethodsQuery Access token will be transmitted as query parameters. + BearerTokenSendingMethodsQuery BearerTokenSendingMethods = "query" +) + +// PossibleBearerTokenSendingMethodsValues returns an array of possible values for the BearerTokenSendingMethods const type. +func PossibleBearerTokenSendingMethodsValues() []BearerTokenSendingMethods { + return []BearerTokenSendingMethods{BearerTokenSendingMethodsAuthorizationHeader, BearerTokenSendingMethodsQuery} +} + // ClientAuthenticationMethod enumerates the values for client authentication method. type ClientAuthenticationMethod string @@ -1767,6 +1783,10 @@ type APIVersionSetUpdateParametersProperties struct { type AuthenticationSettingsContract struct { // OAuth2 - OAuth2 Authentication settings OAuth2 *OAuth2AuthenticationSettingsContract `json:"oAuth2,omitempty"` + // Openid - OpenID Connect Authentication Settings + Openid *OpenIDAuthenticationSettingsContract `json:"openid,omitempty"` + // SubscriptionKeyRequired - Specifies whether subscription key is required during call to this API, true - API is included into closed products only, false - API is included into open products alone, null - there is a mix of products. + SubscriptionKeyRequired *bool `json:"subscriptionKeyRequired,omitempty"` } // AuthorizationServerCollection paged OAuth2 Authorization Servers list representation. @@ -5100,6 +5120,14 @@ type OAuth2AuthenticationSettingsContract struct { Scope *string `json:"scope,omitempty"` } +// OpenIDAuthenticationSettingsContract API OAuth2 Authentication settings details. +type OpenIDAuthenticationSettingsContract struct { + // OpenidProviderID - OAuth authorization server identifier. + OpenidProviderID *string `json:"openidProviderId,omitempty"` + // BearerTokenSendingMethods - How to send token to the server. + BearerTokenSendingMethods *[]BearerTokenSendingMethods `json:"bearerTokenSendingMethods,omitempty"` +} + // OpenIDConnectProviderCollection paged OpenIdProviders list representation. type OpenIDConnectProviderCollection struct { autorest.Response `json:"-"` diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go index 32cad5cbcc91..6deb1717033a 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go @@ -131,6 +131,22 @@ func PossibleBearerTokenSendingMethodValues() []BearerTokenSendingMethod { return []BearerTokenSendingMethod{AuthorizationHeader, Query} } +// BearerTokenSendingMethods enumerates the values for bearer token sending methods. +type BearerTokenSendingMethods string + +const ( + // BearerTokenSendingMethodsAuthorizationHeader Access token will be transmitted in the Authorization + // header using Bearer schema + BearerTokenSendingMethodsAuthorizationHeader BearerTokenSendingMethods = "authorizationHeader" + // BearerTokenSendingMethodsQuery Access token will be transmitted as query parameters. + BearerTokenSendingMethodsQuery BearerTokenSendingMethods = "query" +) + +// PossibleBearerTokenSendingMethodsValues returns an array of possible values for the BearerTokenSendingMethods const type. +func PossibleBearerTokenSendingMethodsValues() []BearerTokenSendingMethods { + return []BearerTokenSendingMethods{BearerTokenSendingMethodsAuthorizationHeader, BearerTokenSendingMethodsQuery} +} + // ClientAuthenticationMethod enumerates the values for client authentication method. type ClientAuthenticationMethod string @@ -1803,6 +1819,10 @@ type APIVersionSetUpdateParametersProperties struct { type AuthenticationSettingsContract struct { // OAuth2 - OAuth2 Authentication settings OAuth2 *OAuth2AuthenticationSettingsContract `json:"oAuth2,omitempty"` + // Openid - OpenID Connect Authentication Settings + Openid *OpenIDAuthenticationSettingsContract `json:"openid,omitempty"` + // SubscriptionKeyRequired - Specifies whether subscription key is required during call to this API, true - API is included into closed products only, false - API is included into open products alone, null - there is a mix of products. + SubscriptionKeyRequired *bool `json:"subscriptionKeyRequired,omitempty"` } // AuthorizationServerCollection paged OAuth2 Authorization Servers list representation. @@ -5163,6 +5183,14 @@ type OAuth2AuthenticationSettingsContract struct { Scope *string `json:"scope,omitempty"` } +// OpenIDAuthenticationSettingsContract API OAuth2 Authentication settings details. +type OpenIDAuthenticationSettingsContract struct { + // OpenidProviderID - OAuth authorization server identifier. + OpenidProviderID *string `json:"openidProviderId,omitempty"` + // BearerTokenSendingMethods - How to send token to the server. + BearerTokenSendingMethods *[]BearerTokenSendingMethods `json:"bearerTokenSendingMethods,omitempty"` +} + // OpenIDConnectProviderCollection paged OpenIdProviders list representation. type OpenIDConnectProviderCollection struct { autorest.Response `json:"-"`