Skip to content

Commit

Permalink
Generated from de0361efa3a14d035efd6a1de02554370e819595
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel committed Mar 4, 2016
1 parent af6f583 commit 13060f8
Show file tree
Hide file tree
Showing 616 changed files with 4,244 additions and 3,755 deletions.
4 changes: 4 additions & 0 deletions azure-graphrbac/azure/graphrbac/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@
# --------------------------------------------------------------------------

from .graph_rbac_management_client import GraphRbacManagementClient, GraphRbacManagementClientConfiguration
from .version import VERSION

__all__ = [
'GraphRbacManagementClient',
'GraphRbacManagementClientConfiguration'
]

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from msrest.service_client import ServiceClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.application_operations import ApplicationOperations
from .operations.objects_operations import ObjectsOperations
from .operations.group_operations import GroupOperations
Expand Down Expand Up @@ -73,7 +74,8 @@ def __init__(

super(GraphRbacManagementClientConfiguration, self).__init__(base_url, filepath)

self.add_user_agent('graphrbacmanagementclient/1.42-previewInternal')
self.add_user_agent('graphrbacmanagementclient/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Expand Down
6 changes: 2 additions & 4 deletions azure-graphrbac/azure/graphrbac/models/aad_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ class AADObject(Model):
:param list service_principal_names: Gets or sets the list of service
principal names.
:param str user_type: Gets or sets the user type
"""

_required = []
"""

_attribute_map = {
'object_id': {'key': 'objectId', 'type': 'str'},
Expand All @@ -54,7 +52,7 @@ class AADObject(Model):
'user_type': {'key': 'userType', 'type': 'str'},
}

def __init__(self, object_id=None, object_type=None, display_name=None, user_principal_name=None, mail=None, mail_enabled=None, security_enabled=None, sign_in_name=None, service_principal_names=None, user_type=None):
def __init__(self, object_id=None, object_type=None, display_name=None, user_principal_name=None, mail=None, mail_enabled=None, security_enabled=None, sign_in_name=None, service_principal_names=None, user_type=None, **kwargs):
self.object_id = object_id
self.object_type = object_type
self.display_name = display_name
Expand Down
6 changes: 2 additions & 4 deletions azure-graphrbac/azure/graphrbac/models/ad_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ class ADGroup(Model):
:param str display_name: Gets or sets group display name
:param bool security_enabled: Gets or sets security enabled field
:param str mail: Gets or sets mail field
"""

_required = []
"""

_attribute_map = {
'object_id': {'key': 'objectId', 'type': 'str'},
Expand All @@ -43,7 +41,7 @@ class ADGroup(Model):
'mail': {'key': 'mail', 'type': 'str'},
}

def __init__(self, object_id=None, object_type=None, display_name=None, security_enabled=None, mail=None):
def __init__(self, object_id=None, object_type=None, display_name=None, security_enabled=None, mail=None, **kwargs):
self.object_id = object_id
self.object_type = object_type
self.display_name = display_name
Expand Down
6 changes: 2 additions & 4 deletions azure-graphrbac/azure/graphrbac/models/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ class Application(Model):
:param str display_name: Gets or sets the displayName
:param list identifier_uris: Gets or sets the application identifier Uris
:param list reply_urls: Gets or sets the application reply Urls
"""

_required = []
"""

_attribute_map = {
'object_id': {'key': 'objectId', 'type': 'str'},
Expand All @@ -50,7 +48,7 @@ class Application(Model):
'reply_urls': {'key': 'replyUrls', 'type': '[str]'},
}

def __init__(self, object_id=None, object_type=None, app_id=None, app_permissions=None, available_to_other_tenants=None, display_name=None, identifier_uris=None, reply_urls=None):
def __init__(self, object_id=None, object_type=None, app_id=None, app_permissions=None, available_to_other_tenants=None, display_name=None, identifier_uris=None, reply_urls=None, **kwargs):
self.object_id = object_id
self.object_type = object_type
self.app_id = app_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ class ApplicationCreateParameters(Model):
objects
:param list password_credentials: Gets or sets the list of
PasswordCredential objects
"""
"""

_required = ['available_to_other_tenants', 'display_name', 'homepage', 'identifier_uris']
_validation = {
'available_to_other_tenants': {'required': True},
'display_name': {'required': True},
'homepage': {'required': True},
'identifier_uris': {'required': True},
}

_attribute_map = {
'available_to_other_tenants': {'key': 'availableToOtherTenants', 'type': 'bool'},
Expand All @@ -50,7 +55,7 @@ class ApplicationCreateParameters(Model):
'password_credentials': {'key': 'passwordCredentials', 'type': '[PasswordCredential]'},
}

def __init__(self, available_to_other_tenants, display_name, homepage, identifier_uris, reply_urls=None, key_credentials=None, password_credentials=None):
def __init__(self, available_to_other_tenants, display_name, homepage, identifier_uris, reply_urls=None, key_credentials=None, password_credentials=None, **kwargs):
self.available_to_other_tenants = available_to_other_tenants
self.display_name = display_name
self.homepage = homepage
Expand Down
6 changes: 2 additions & 4 deletions azure-graphrbac/azure/graphrbac/models/application_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@ class ApplicationFilter(Model):
:param str display_name_starts_with: Application display name starts with
:param str app_id: ApplicationId
:param str identifier_uri: Identifier Uri
"""

_required = []
"""

_attribute_map = {
'display_name_starts_with': {'key': 'displayNameStartsWith', 'type': 'str'},
'app_id': {'key': 'appId', 'type': 'str'},
'identifier_uri': {'key': 'identifierUri', 'type': 'str'},
}

def __init__(self, display_name_starts_with=None, app_id=None, identifier_uri=None):
def __init__(self, display_name_starts_with=None, app_id=None, identifier_uri=None, **kwargs):
self.display_name_starts_with = display_name_starts_with
self.app_id = app_id
self.identifier_uri = identifier_uri
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ class ApplicationListResult(Model):
Role assignment list operation result.
:param list value: Application list.
"""

_required = []
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[Application]'},
}

def __init__(self, value=None):
def __init__(self, value=None, **kwargs):
self.value = value
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,19 @@ class GetObjectsParameters(Model):
:param list types: Requested object types
:param bool include_directory_object_references: If true, also searches
for object ids in the partner tenant
"""
"""

_required = ['include_directory_object_references']
_validation = {
'include_directory_object_references': {'required': True},
}

_attribute_map = {
'object_ids': {'key': 'objectIds', 'type': '[str]'},
'types': {'key': 'types', 'type': '[str]'},
'include_directory_object_references': {'key': 'includeDirectoryObjectReferences', 'type': 'bool'},
}

def __init__(self, include_directory_object_references, object_ids=None, types=None):
def __init__(self, include_directory_object_references, object_ids=None, types=None, **kwargs):
self.object_ids = object_ids
self.types = types
self.include_directory_object_references = include_directory_object_references
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ class GroupAddMemberParameters(Model):
Request parameters for adding members to a groups
:param str url: Group display name
"""
"""

_required = ['url']
_validation = {
'url': {'required': True},
}

_attribute_map = {
'url': {'key': 'url', 'type': 'str'},
}

def __init__(self, url):
def __init__(self, url, **kwargs):
self.url = url
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ class GroupCreateParameters(Model):
:param bool mail_enabled: Mail
:param str mail_nickname: Mail nick name
:param bool security_enabled: Is security enabled
"""
"""

_required = ['display_name', 'mail_enabled', 'mail_nickname', 'security_enabled']
_validation = {
'display_name': {'required': True},
'mail_enabled': {'required': True},
'mail_nickname': {'required': True},
'security_enabled': {'required': True},
}

_attribute_map = {
'display_name': {'key': 'displayName', 'type': 'str'},
Expand All @@ -41,7 +46,7 @@ class GroupCreateParameters(Model):
'security_enabled': {'key': 'securityEnabled', 'type': 'bool'},
}

def __init__(self, display_name, mail_enabled, mail_nickname, security_enabled):
def __init__(self, display_name, mail_enabled, mail_nickname, security_enabled, **kwargs):
self.display_name = display_name
self.mail_enabled = mail_enabled
self.mail_nickname = mail_nickname
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ class GroupGetMemberGroupsParameters(Model):
:param bool security_enabled_only: If true only membership in security
enabled groups should be checked. Otherwise membership in all groups
should be checked
"""
"""

_required = ['security_enabled_only']
_validation = {
'security_enabled_only': {'required': True},
}

_attribute_map = {
'security_enabled_only': {'key': 'securityEnabledOnly', 'type': 'bool'},
}

def __init__(self, security_enabled_only):
def __init__(self, security_enabled_only, **kwargs):
self.security_enabled_only = security_enabled_only
6 changes: 2 additions & 4 deletions azure-graphrbac/azure/graphrbac/models/key_credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ class KeyCredential(Model):
:param str key_id: Gets or sets key Id
:param str usage: Gets or sets usage
:param str type: Gets or sets type
"""

_required = []
"""

_attribute_map = {
'start_date': {'key': 'startDate', 'type': 'iso-8601'},
Expand All @@ -45,7 +43,7 @@ class KeyCredential(Model):
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, start_date=None, end_date=None, value=None, key_id=None, usage=None, type=None):
def __init__(self, start_date=None, end_date=None, value=None, key_id=None, usage=None, type=None, **kwargs):
self.start_date = start_date
self.end_date = end_date
self.value = value
Expand Down
6 changes: 2 additions & 4 deletions azure-graphrbac/azure/graphrbac/models/password_credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ class PasswordCredential(Model):
:param datetime end_date: Gets or sets end date
:param str key_id: Gets or sets key Id
:param str value: Gets or sets value
"""

_required = []
"""

_attribute_map = {
'start_date': {'key': 'startDate', 'type': 'iso-8601'},
Expand All @@ -41,7 +39,7 @@ class PasswordCredential(Model):
'value': {'key': 'value', 'type': 'str'},
}

def __init__(self, start_date=None, end_date=None, key_id=None, value=None):
def __init__(self, start_date=None, end_date=None, key_id=None, value=None, **kwargs):
self.start_date = start_date
self.end_date = end_date
self.key_id = key_id
Expand Down
6 changes: 2 additions & 4 deletions azure-graphrbac/azure/graphrbac/models/service_principal.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ class ServicePrincipal(Model):
:param str display_name: Gets or sets service principal display name
:param str app_id: Gets or sets app id
:param list service_principal_names: Gets or sets the list of names.
"""

_required = []
"""

_attribute_map = {
'object_id': {'key': 'objectId', 'type': 'str'},
Expand All @@ -43,7 +41,7 @@ class ServicePrincipal(Model):
'service_principal_names': {'key': 'servicePrincipalNames', 'type': '[str]'},
}

def __init__(self, object_id=None, object_type=None, display_name=None, app_id=None, service_principal_names=None):
def __init__(self, object_id=None, object_type=None, display_name=None, app_id=None, service_principal_names=None, **kwargs):
self.object_id = object_id
self.object_type = object_type
self.display_name = display_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@ class ServicePrincipalCreateParameters(Model):
:param str app_id: Gets or sets application Id
:param bool account_enabled: Specifies if the account is enabled
"""
"""

_required = ['app_id', 'account_enabled']
_validation = {
'app_id': {'required': True},
'account_enabled': {'required': True},
}

_attribute_map = {
'app_id': {'key': 'appId', 'type': 'str'},
'account_enabled': {'key': 'accountEnabled', 'type': 'bool'},
}

def __init__(self, app_id, account_enabled):
def __init__(self, app_id, account_enabled, **kwargs):
self.app_id = app_id
self.account_enabled = account_enabled
6 changes: 2 additions & 4 deletions azure-graphrbac/azure/graphrbac/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ class User(Model):
:param str display_name: Gets or sets user display name
:param str sign_in_name: Gets or sets user signIn name
:param str mail: Gets or sets user mail
"""

_required = []
"""

_attribute_map = {
'object_id': {'key': 'objectId', 'type': 'str'},
Expand All @@ -45,7 +43,7 @@ class User(Model):
'mail': {'key': 'mail', 'type': 'str'},
}

def __init__(self, object_id=None, object_type=None, user_principal_name=None, display_name=None, sign_in_name=None, mail=None):
def __init__(self, object_id=None, object_type=None, user_principal_name=None, display_name=None, sign_in_name=None, mail=None, **kwargs):
self.object_id = object_id
self.object_type = object_type
self.user_principal_name = user_principal_name
Expand Down
12 changes: 9 additions & 3 deletions azure-graphrbac/azure/graphrbac/models/user_create_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ class UserCreateParameters(Model):
:param str mail_nickname: Mail nick name
:param UserCreateParametersPasswordProfile password_profile: Password
Profile
"""
"""

_required = ['user_principal_name', 'account_enabled', 'display_name', 'mail_nickname', 'password_profile']
_validation = {
'user_principal_name': {'required': True},
'account_enabled': {'required': True},
'display_name': {'required': True},
'mail_nickname': {'required': True},
'password_profile': {'required': True},
}

_attribute_map = {
'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'},
Expand All @@ -44,7 +50,7 @@ class UserCreateParameters(Model):
'password_profile': {'key': 'passwordProfile', 'type': 'UserCreateParametersPasswordProfile'},
}

def __init__(self, user_principal_name, account_enabled, display_name, mail_nickname, password_profile):
def __init__(self, user_principal_name, account_enabled, display_name, mail_nickname, password_profile, **kwargs):
self.user_principal_name = user_principal_name
self.account_enabled = account_enabled
self.display_name = display_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ class UserCreateParametersPasswordProfile(Model):
:param str password: Password
:param bool force_change_password_next_login: Force change password on
next login
"""
"""

_required = ['password']
_validation = {
'password': {'required': True},
}

_attribute_map = {
'password': {'key': 'password', 'type': 'str'},
'force_change_password_next_login': {'key': 'forceChangePasswordNextLogin', 'type': 'bool'},
}

def __init__(self, password, force_change_password_next_login=None):
def __init__(self, password, force_change_password_next_login=None, **kwargs):
self.password = password
self.force_change_password_next_login = force_change_password_next_login
Loading

0 comments on commit 13060f8

Please sign in to comment.