Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c0f1564
Generated from 38da2338b7f2a290829acc0a0cd49cf1edc4cc0b
AutorestCI Aug 30, 2018
c4d1400
Generated from cdebe8cf0d91d18108365b4a12041034983e9c93
AutorestCI Aug 31, 2018
3515733
Generated from b4cbab2542757412fd65a260fce4db66402f7339
AutorestCI Aug 31, 2018
8168906
Generated from cdebe8cf0d91d18108365b4a12041034983e9c93
AutorestCI Aug 31, 2018
9448def
Generated from 89ee79b8d1b444917dc0f8962ecfaf6a9cfa3328
AutorestCI Aug 31, 2018
880b9a5
Generated from 876ad7a85c38b9cebaf850cc330e9426c1cf6b37
AutorestCI Aug 31, 2018
0659e57
Generated from fd2fd304255560910d77c7c6a9befe9463f9435c
AutorestCI Aug 31, 2018
66ca0d1
Generated from 8128b10ff61e1bfa9804116016b123bc3f3eb472
AutorestCI Aug 31, 2018
3b04d7c
Generated from 3a866e49fbfe1527711a06527c86e3834d049ad8
AutorestCI Aug 31, 2018
c80dceb
Test SignedInUser
lmazuel Aug 31, 2018
a6988e5
Test deleted apps
lmazuel Aug 31, 2018
b4f319c
Test AppRoles
lmazuel Aug 31, 2018
34e49bc
Generated from 04d197ad2a8922a79bd2ea253b07aff0175d4f87
AutorestCI Sep 5, 2018
f8c3575
Generated from 48aa8260d0f81091922fd75f5b5f2038f99ca4dc
AutorestCI Sep 5, 2018
ec0d956
Generated from f338c565c9b0d1073820c866848e3003e36bd15d
AutorestCI Sep 5, 2018
71f1947
SP update
lmazuel Sep 5, 2018
f915cd2
Generated from 0e9e02eb70d464b996b5870f0a25d7be243fe1ac
AutorestCI Sep 11, 2018
c1c131c
Generated from 9c0eebd27cb20ef36a1f377d3550bebce47b0def
AutorestCI Sep 11, 2018
bcf700c
Generated from 203554316693c183cd5e1c03f4cac598e42c4ed8
AutorestCI Sep 11, 2018
4a8be00
Packaging update of azure-graphrbac
azuresdkci Sep 11, 2018
bb91edb
Test get_objects_by_object_ids
lmazuel Sep 12, 2018
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
Prev Previous commit
Next Next commit
Generated from 04d197ad2a8922a79bd2ea253b07aff0175d4f87
Add SP update
  • Loading branch information
AutorestCI committed Sep 5, 2018
commit 34e49bc7b25427b03996c8dc5e01a07a1898843c
3 changes: 3 additions & 0 deletions azure-graphrbac/azure/graphrbac/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from .check_group_membership_parameters_py3 import CheckGroupMembershipParameters
from .check_group_membership_result_py3 import CheckGroupMembershipResult
from .service_principal_create_parameters_py3 import ServicePrincipalCreateParameters
from .service_principal_update_parameters_py3 import ServicePrincipalUpdateParameters
from .service_principal_py3 import ServicePrincipal
from .password_profile_py3 import PasswordProfile
from .user_base_py3 import UserBase
Expand Down Expand Up @@ -66,6 +67,7 @@
from .check_group_membership_parameters import CheckGroupMembershipParameters
from .check_group_membership_result import CheckGroupMembershipResult
from .service_principal_create_parameters import ServicePrincipalCreateParameters
from .service_principal_update_parameters import ServicePrincipalUpdateParameters
from .service_principal import ServicePrincipal
from .password_profile import PasswordProfile
from .user_base import UserBase
Expand Down Expand Up @@ -114,6 +116,7 @@
'CheckGroupMembershipParameters',
'CheckGroupMembershipResult',
'ServicePrincipalCreateParameters',
'ServicePrincipalUpdateParameters',
'ServicePrincipal',
'PasswordProfile',
'UserBase',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,72 @@ class ServicePrincipalCreateParameters(Model):
:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, object]
:param account_enabled: Whether the account is enabled
:type account_enabled: bool
:param app_id: Required. application Id
:type app_id: str
:param account_enabled: Required. Whether the account is enabled
:type account_enabled: bool
:param app_role_assignment_required: Specifies whether an
AppRoleAssignment to a user or group is required before Azure AD will
issue a user or access token to the application.
:type app_role_assignment_required: bool
:param display_name: The display name for the service principal.
:type display_name: str
:param error_url:
:type error_url: str
:param homepage: The URL to the homepage of the associated application.
:type homepage: str
:param key_credentials: A collection of KeyCredential objects.
:type key_credentials: list[~azure.graphrbac.models.KeyCredential]
:param password_credentials: A collection of PasswordCredential objects
:type password_credentials:
list[~azure.graphrbac.models.PasswordCredential]
:param publisher_name: The display name of the tenant in which the
associated application is specified.
:type publisher_name: str
:param reply_urls: A collection of reply URLs for the service principal.
:type reply_urls: list[str]
:param saml_metadata_url:
:type saml_metadata_url: str
:param service_principal_names: A collection of service principal names.
:type service_principal_names: list[str]
:param tags:
:type tags: list[str]
"""

_validation = {
'app_id': {'required': True},
'account_enabled': {'required': True},
}

_attribute_map = {
'additional_properties': {'key': '', 'type': '{object}'},
'app_id': {'key': 'appId', 'type': 'str'},
'account_enabled': {'key': 'accountEnabled', 'type': 'bool'},
'app_id': {'key': 'appId', 'type': 'str'},
'app_role_assignment_required': {'key': 'appRoleAssignmentRequired', 'type': 'bool'},
'display_name': {'key': 'displayName', 'type': 'str'},
'error_url': {'key': 'errorUrl', 'type': 'str'},
'homepage': {'key': 'homepage', 'type': 'str'},
'key_credentials': {'key': 'keyCredentials', 'type': '[KeyCredential]'},
'password_credentials': {'key': 'passwordCredentials', 'type': '[PasswordCredential]'},
'publisher_name': {'key': 'publisherName', 'type': 'str'},
'reply_urls': {'key': 'replyUrls', 'type': '[str]'},
'saml_metadata_url': {'key': 'samlMetadataUrl', 'type': 'str'},
'service_principal_names': {'key': 'servicePrincipalNames', 'type': '[str]'},
'tags': {'key': 'tags', 'type': '[str]'},
}

def __init__(self, **kwargs):
super(ServicePrincipalCreateParameters, self).__init__(**kwargs)
self.additional_properties = kwargs.get('additional_properties', None)
self.app_id = kwargs.get('app_id', None)
self.account_enabled = kwargs.get('account_enabled', None)
self.app_id = kwargs.get('app_id', None)
self.app_role_assignment_required = kwargs.get('app_role_assignment_required', None)
self.display_name = kwargs.get('display_name', None)
self.error_url = kwargs.get('error_url', None)
self.homepage = kwargs.get('homepage', None)
self.key_credentials = kwargs.get('key_credentials', None)
self.password_credentials = kwargs.get('password_credentials', None)
self.publisher_name = kwargs.get('publisher_name', None)
self.reply_urls = kwargs.get('reply_urls', None)
self.saml_metadata_url = kwargs.get('saml_metadata_url', None)
self.service_principal_names = kwargs.get('service_principal_names', None)
self.tags = kwargs.get('tags', None)
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,72 @@ class ServicePrincipalCreateParameters(Model):
:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, object]
:param account_enabled: Whether the account is enabled
:type account_enabled: bool
:param app_id: Required. application Id
:type app_id: str
:param account_enabled: Required. Whether the account is enabled
:type account_enabled: bool
:param app_role_assignment_required: Specifies whether an
AppRoleAssignment to a user or group is required before Azure AD will
issue a user or access token to the application.
:type app_role_assignment_required: bool
:param display_name: The display name for the service principal.
:type display_name: str
:param error_url:
:type error_url: str
:param homepage: The URL to the homepage of the associated application.
:type homepage: str
:param key_credentials: A collection of KeyCredential objects.
:type key_credentials: list[~azure.graphrbac.models.KeyCredential]
:param password_credentials: A collection of PasswordCredential objects
:type password_credentials:
list[~azure.graphrbac.models.PasswordCredential]
:param publisher_name: The display name of the tenant in which the
associated application is specified.
:type publisher_name: str
:param reply_urls: A collection of reply URLs for the service principal.
:type reply_urls: list[str]
:param saml_metadata_url:
:type saml_metadata_url: str
:param service_principal_names: A collection of service principal names.
:type service_principal_names: list[str]
:param tags:
:type tags: list[str]
"""

_validation = {
'app_id': {'required': True},
'account_enabled': {'required': True},
}

_attribute_map = {
'additional_properties': {'key': '', 'type': '{object}'},
'app_id': {'key': 'appId', 'type': 'str'},
'account_enabled': {'key': 'accountEnabled', 'type': 'bool'},
'app_id': {'key': 'appId', 'type': 'str'},
'app_role_assignment_required': {'key': 'appRoleAssignmentRequired', 'type': 'bool'},
'display_name': {'key': 'displayName', 'type': 'str'},
'error_url': {'key': 'errorUrl', 'type': 'str'},
'homepage': {'key': 'homepage', 'type': 'str'},
'key_credentials': {'key': 'keyCredentials', 'type': '[KeyCredential]'},
'password_credentials': {'key': 'passwordCredentials', 'type': '[PasswordCredential]'},
'publisher_name': {'key': 'publisherName', 'type': 'str'},
'reply_urls': {'key': 'replyUrls', 'type': '[str]'},
'saml_metadata_url': {'key': 'samlMetadataUrl', 'type': 'str'},
'service_principal_names': {'key': 'servicePrincipalNames', 'type': '[str]'},
'tags': {'key': 'tags', 'type': '[str]'},
}

def __init__(self, *, app_id: str, account_enabled: bool, additional_properties=None, key_credentials=None, password_credentials=None, **kwargs) -> None:
def __init__(self, *, app_id: str, additional_properties=None, account_enabled: bool=None, app_role_assignment_required: bool=None, display_name: str=None, error_url: str=None, homepage: str=None, key_credentials=None, password_credentials=None, publisher_name: str=None, reply_urls=None, saml_metadata_url: str=None, service_principal_names=None, tags=None, **kwargs) -> None:
super(ServicePrincipalCreateParameters, self).__init__(**kwargs)
self.additional_properties = additional_properties
self.app_id = app_id
self.account_enabled = account_enabled
self.app_id = app_id
self.app_role_assignment_required = app_role_assignment_required
self.display_name = display_name
self.error_url = error_url
self.homepage = homepage
self.key_credentials = key_credentials
self.password_credentials = password_credentials
self.publisher_name = publisher_name
self.reply_urls = reply_urls
self.saml_metadata_url = saml_metadata_url
self.service_principal_names = service_principal_names
self.tags = tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ServicePrincipalUpdateParameters(Model):
"""Request parameters for creating a new service principal.

:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, object]
:param account_enabled: Whether the account is enabled
:type account_enabled: bool
:param app_id: application Id
:type app_id: str
:param app_role_assignment_required: Specifies whether an
AppRoleAssignment to a user or group is required before Azure AD will
issue a user or access token to the application.
:type app_role_assignment_required: bool
:param display_name: The display name for the service principal.
:type display_name: str
:param error_url:
:type error_url: str
:param homepage: The URL to the homepage of the associated application.
:type homepage: str
:param key_credentials: A collection of KeyCredential objects.
:type key_credentials: list[~azure.graphrbac.models.KeyCredential]
:param password_credentials: A collection of PasswordCredential objects
:type password_credentials:
list[~azure.graphrbac.models.PasswordCredential]
:param publisher_name: The display name of the tenant in which the
associated application is specified.
:type publisher_name: str
:param reply_urls: A collection of reply URLs for the service principal.
:type reply_urls: list[str]
:param saml_metadata_url:
:type saml_metadata_url: str
:param service_principal_names: A collection of service principal names.
:type service_principal_names: list[str]
:param tags:
:type tags: list[str]
"""

_attribute_map = {
'additional_properties': {'key': '', 'type': '{object}'},
'account_enabled': {'key': 'accountEnabled', 'type': 'bool'},
'app_id': {'key': 'appId', 'type': 'str'},
'app_role_assignment_required': {'key': 'appRoleAssignmentRequired', 'type': 'bool'},
'display_name': {'key': 'displayName', 'type': 'str'},
'error_url': {'key': 'errorUrl', 'type': 'str'},
'homepage': {'key': 'homepage', 'type': 'str'},
'key_credentials': {'key': 'keyCredentials', 'type': '[KeyCredential]'},
'password_credentials': {'key': 'passwordCredentials', 'type': '[PasswordCredential]'},
'publisher_name': {'key': 'publisherName', 'type': 'str'},
'reply_urls': {'key': 'replyUrls', 'type': '[str]'},
'saml_metadata_url': {'key': 'samlMetadataUrl', 'type': 'str'},
'service_principal_names': {'key': 'servicePrincipalNames', 'type': '[str]'},
'tags': {'key': 'tags', 'type': '[str]'},
}

def __init__(self, **kwargs):
super(ServicePrincipalUpdateParameters, self).__init__(**kwargs)
self.additional_properties = kwargs.get('additional_properties', None)
self.account_enabled = kwargs.get('account_enabled', None)
self.app_id = kwargs.get('app_id', None)
self.app_role_assignment_required = kwargs.get('app_role_assignment_required', None)
self.display_name = kwargs.get('display_name', None)
self.error_url = kwargs.get('error_url', None)
self.homepage = kwargs.get('homepage', None)
self.key_credentials = kwargs.get('key_credentials', None)
self.password_credentials = kwargs.get('password_credentials', None)
self.publisher_name = kwargs.get('publisher_name', None)
self.reply_urls = kwargs.get('reply_urls', None)
self.saml_metadata_url = kwargs.get('saml_metadata_url', None)
self.service_principal_names = kwargs.get('service_principal_names', None)
self.tags = kwargs.get('tags', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ServicePrincipalUpdateParameters(Model):
"""Request parameters for creating a new service principal.

:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, object]
:param account_enabled: Whether the account is enabled
:type account_enabled: bool
:param app_id: application Id
:type app_id: str
:param app_role_assignment_required: Specifies whether an
AppRoleAssignment to a user or group is required before Azure AD will
issue a user or access token to the application.
:type app_role_assignment_required: bool
:param display_name: The display name for the service principal.
:type display_name: str
:param error_url:
:type error_url: str
:param homepage: The URL to the homepage of the associated application.
:type homepage: str
:param key_credentials: A collection of KeyCredential objects.
:type key_credentials: list[~azure.graphrbac.models.KeyCredential]
:param password_credentials: A collection of PasswordCredential objects
:type password_credentials:
list[~azure.graphrbac.models.PasswordCredential]
:param publisher_name: The display name of the tenant in which the
associated application is specified.
:type publisher_name: str
:param reply_urls: A collection of reply URLs for the service principal.
:type reply_urls: list[str]
:param saml_metadata_url:
:type saml_metadata_url: str
:param service_principal_names: A collection of service principal names.
:type service_principal_names: list[str]
:param tags:
:type tags: list[str]
"""

_attribute_map = {
'additional_properties': {'key': '', 'type': '{object}'},
'account_enabled': {'key': 'accountEnabled', 'type': 'bool'},
'app_id': {'key': 'appId', 'type': 'str'},
'app_role_assignment_required': {'key': 'appRoleAssignmentRequired', 'type': 'bool'},
'display_name': {'key': 'displayName', 'type': 'str'},
'error_url': {'key': 'errorUrl', 'type': 'str'},
'homepage': {'key': 'homepage', 'type': 'str'},
'key_credentials': {'key': 'keyCredentials', 'type': '[KeyCredential]'},
'password_credentials': {'key': 'passwordCredentials', 'type': '[PasswordCredential]'},
'publisher_name': {'key': 'publisherName', 'type': 'str'},
'reply_urls': {'key': 'replyUrls', 'type': '[str]'},
'saml_metadata_url': {'key': 'samlMetadataUrl', 'type': 'str'},
'service_principal_names': {'key': 'servicePrincipalNames', 'type': '[str]'},
'tags': {'key': 'tags', 'type': '[str]'},
}

def __init__(self, *, additional_properties=None, account_enabled: bool=None, app_id: str=None, app_role_assignment_required: bool=None, display_name: str=None, error_url: str=None, homepage: str=None, key_credentials=None, password_credentials=None, publisher_name: str=None, reply_urls=None, saml_metadata_url: str=None, service_principal_names=None, tags=None, **kwargs) -> None:
super(ServicePrincipalUpdateParameters, self).__init__(**kwargs)
self.additional_properties = additional_properties
self.account_enabled = account_enabled
self.app_id = app_id
self.app_role_assignment_required = app_role_assignment_required
self.display_name = display_name
self.error_url = error_url
self.homepage = homepage
self.key_credentials = key_credentials
self.password_credentials = password_credentials
self.publisher_name = publisher_name
self.reply_urls = reply_urls
self.saml_metadata_url = saml_metadata_url
self.service_principal_names = service_principal_names
self.tags = tags
Loading