Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,14 @@ class AuthenticationSettingsContract(Model):
:param openid: OpenID Connect Authentication Settings
:type openid:
~azure.mgmt.apimanagement.models.OpenIdAuthenticationSettingsContract
:param subscription_key_required: 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.
:type subscription_key_required: bool
"""

_attribute_map = {
'o_auth2': {'key': 'oAuth2', 'type': 'OAuth2AuthenticationSettingsContract'},
'openid': {'key': 'openid', 'type': 'OpenIdAuthenticationSettingsContract'},
'subscription_key_required': {'key': 'subscriptionKeyRequired', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(AuthenticationSettingsContract, self).__init__(**kwargs)
self.o_auth2 = kwargs.get('o_auth2', None)
self.openid = kwargs.get('openid', None)
self.subscription_key_required = kwargs.get('subscription_key_required', None)
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,14 @@ class AuthenticationSettingsContract(Model):
:param openid: OpenID Connect Authentication Settings
:type openid:
~azure.mgmt.apimanagement.models.OpenIdAuthenticationSettingsContract
:param subscription_key_required: 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.
:type subscription_key_required: bool
"""

_attribute_map = {
'o_auth2': {'key': 'oAuth2', 'type': 'OAuth2AuthenticationSettingsContract'},
'openid': {'key': 'openid', 'type': 'OpenIdAuthenticationSettingsContract'},
'subscription_key_required': {'key': 'subscriptionKeyRequired', 'type': 'bool'},
}

def __init__(self, *, o_auth2=None, openid=None, subscription_key_required: bool=None, **kwargs) -> None:
def __init__(self, *, o_auth2=None, openid=None, **kwargs) -> None:
super(AuthenticationSettingsContract, self).__init__(**kwargs)
self.o_auth2 = o_auth2
self.openid = openid
self.subscription_key_required = subscription_key_required