Skip to content

Commit

Permalink
Generated from 260935ae7a85de6a552f764002091114366d1ea0 (#4701)
Browse files Browse the repository at this point in the history
updating examples for osa customerAdminGroupId field
  • Loading branch information
AutorestCI authored Apr 2, 2019
1 parent 5a6932e commit 444d796
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class OpenShiftManagedClusterAADIdentityProvider(OpenShiftManagedClusterBaseIden
:type secret: str
:param tenant_id: The tenantId associated with the provider.
:type tenant_id: str
:param customer_admin_group_id: The groupId to be granted cluster admin
role.
:type customer_admin_group_id: str
"""

_validation = {
Expand All @@ -36,11 +39,13 @@ class OpenShiftManagedClusterAADIdentityProvider(OpenShiftManagedClusterBaseIden
'client_id': {'key': 'clientId', 'type': 'str'},
'secret': {'key': 'secret', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'customer_admin_group_id': {'key': 'customerAdminGroupId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(OpenShiftManagedClusterAADIdentityProvider, self).__init__(**kwargs)
self.client_id = kwargs.get('client_id', None)
self.secret = kwargs.get('secret', None)
self.tenant_id = kwargs.get('tenant_id', None)
self.customer_admin_group_id = kwargs.get('customer_admin_group_id', None)
self.kind = 'AADIdentityProvider'
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class OpenShiftManagedClusterAADIdentityProvider(OpenShiftManagedClusterBaseIden
:type secret: str
:param tenant_id: The tenantId associated with the provider.
:type tenant_id: str
:param customer_admin_group_id: The groupId to be granted cluster admin
role.
:type customer_admin_group_id: str
"""

_validation = {
Expand All @@ -36,11 +39,13 @@ class OpenShiftManagedClusterAADIdentityProvider(OpenShiftManagedClusterBaseIden
'client_id': {'key': 'clientId', 'type': 'str'},
'secret': {'key': 'secret', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'customer_admin_group_id': {'key': 'customerAdminGroupId', 'type': 'str'},
}

def __init__(self, *, client_id: str=None, secret: str=None, tenant_id: str=None, **kwargs) -> None:
def __init__(self, *, client_id: str=None, secret: str=None, tenant_id: str=None, customer_admin_group_id: str=None, **kwargs) -> None:
super(OpenShiftManagedClusterAADIdentityProvider, self).__init__(**kwargs)
self.client_id = client_id
self.secret = secret
self.tenant_id = tenant_id
self.customer_admin_group_id = customer_admin_group_id
self.kind = 'AADIdentityProvider'

0 comments on commit 444d796

Please sign in to comment.