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
Next Next commit
Generated from 38da2338b7f2a290829acc0a0cd49cf1edc4cc0b
Backward compat for ApplicationAddOwnerParameter
  • Loading branch information
AutorestCI committed Aug 31, 2018
commit c0f1564ef90a0302d429d19323b2ea7914dd72c9
18 changes: 14 additions & 4 deletions azure-graphrbac/azure/graphrbac/graph_rbac_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.objects_operations import ObjectsOperations
from .operations.signed_in_user_operations import SignedInUserOperations
from .operations.applications_operations import ApplicationsOperations
from .operations.deleted_applications_operations import DeletedApplicationsOperations
from .operations.groups_operations import GroupsOperations
from .operations.service_principals_operations import ServicePrincipalsOperations
from .operations.users_operations import UsersOperations
from .operations.objects_operations import ObjectsOperations
from .operations.domains_operations import DomainsOperations
from .operations.oauth2_operations import OAuth2Operations
from . import models
Expand Down Expand Up @@ -61,16 +63,20 @@ class GraphRbacManagementClient(SDKClient):
:ivar config: Configuration for client.
:vartype config: GraphRbacManagementClientConfiguration

:ivar objects: Objects operations
:vartype objects: azure.graphrbac.operations.ObjectsOperations
:ivar signed_in_user: SignedInUser operations
:vartype signed_in_user: azure.graphrbac.operations.SignedInUserOperations
:ivar applications: Applications operations
:vartype applications: azure.graphrbac.operations.ApplicationsOperations
:ivar deleted_applications: DeletedApplications operations
:vartype deleted_applications: azure.graphrbac.operations.DeletedApplicationsOperations
:ivar groups: Groups operations
:vartype groups: azure.graphrbac.operations.GroupsOperations
:ivar service_principals: ServicePrincipals operations
:vartype service_principals: azure.graphrbac.operations.ServicePrincipalsOperations
:ivar users: Users operations
:vartype users: azure.graphrbac.operations.UsersOperations
:ivar objects: Objects operations
:vartype objects: azure.graphrbac.operations.ObjectsOperations
:ivar domains: Domains operations
:vartype domains: azure.graphrbac.operations.DomainsOperations
:ivar oauth2: OAuth2 operations
Expand All @@ -95,16 +101,20 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.objects = ObjectsOperations(
self.signed_in_user = SignedInUserOperations(
self._client, self.config, self._serialize, self._deserialize)
self.applications = ApplicationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.deleted_applications = DeletedApplicationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.groups = GroupsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.service_principals = ServicePrincipalsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.users = UsersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.objects = ObjectsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.domains = DomainsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.oauth2 = OAuth2Operations(
Expand Down
16 changes: 14 additions & 2 deletions azure-graphrbac/azure/graphrbac/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
from .required_resource_access_py3 import RequiredResourceAccess
from .application_create_parameters_py3 import ApplicationCreateParameters
from .application_update_parameters_py3 import ApplicationUpdateParameters
from .app_role_py3 import AppRole
from .application_py3 import Application
from .application_list_result_py3 import ApplicationListResult
from .add_owner_parameters_py3 import AddOwnerParameters
from .application_add_owner_parameters_py3 import ApplicationAddOwnerParameters
from .directory_object_list_result_py3 import DirectoryObjectListResult
from .key_credentials_update_parameters_py3 import KeyCredentialsUpdateParameters
from .password_credentials_update_parameters_py3 import PasswordCredentialsUpdateParameters
from .aad_object_py3 import AADObject
Expand Down Expand Up @@ -50,8 +54,12 @@
from .required_resource_access import RequiredResourceAccess
from .application_create_parameters import ApplicationCreateParameters
from .application_update_parameters import ApplicationUpdateParameters
from .app_role import AppRole
from .application import Application
from .application_list_result import ApplicationListResult
from .add_owner_parameters import AddOwnerParameters
from .application_add_owner_parameters import ApplicationAddOwnerParameters
from .directory_object_list_result import DirectoryObjectListResult
from .key_credentials_update_parameters import KeyCredentialsUpdateParameters
from .password_credentials_update_parameters import PasswordCredentialsUpdateParameters
from .aad_object import AADObject
Expand All @@ -73,12 +81,12 @@
from .get_objects_parameters import GetObjectsParameters
from .domain import Domain
from .permissions import Permissions
from .aad_object_paged import AADObjectPaged
from .application_paged import ApplicationPaged
from .directory_object_paged import DirectoryObjectPaged
from .key_credential_paged import KeyCredentialPaged
from .password_credential_paged import PasswordCredentialPaged
from .ad_group_paged import ADGroupPaged
from .aad_object_paged import AADObjectPaged
from .str_paged import StrPaged
from .service_principal_paged import ServicePrincipalPaged
from .user_paged import UserPaged
Expand All @@ -96,8 +104,12 @@
'RequiredResourceAccess',
'ApplicationCreateParameters',
'ApplicationUpdateParameters',
'AppRole',
'Application',
'ApplicationListResult',
'AddOwnerParameters',
'ApplicationAddOwnerParameters',
'DirectoryObjectListResult',
'KeyCredentialsUpdateParameters',
'PasswordCredentialsUpdateParameters',
'AADObject',
Expand All @@ -119,12 +131,12 @@
'GetObjectsParameters',
'Domain',
'Permissions',
'AADObjectPaged',
'ApplicationPaged',
'DirectoryObjectPaged',
'KeyCredentialPaged',
'PasswordCredentialPaged',
'ADGroupPaged',
'AADObjectPaged',
'StrPaged',
'ServicePrincipalPaged',
'UserPaged',
Expand Down
10 changes: 10 additions & 0 deletions azure-graphrbac/azure/graphrbac/models/ad_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ class ADGroup(DirectoryObject):
:type object_type: str
:param display_name: The display name of the group.
:type display_name: str
:param mail_enabled: Whether the group is mail-enabled. Must be false.
This is because only pure security groups can be created using the Graph
API.
:type mail_enabled: bool
:param mail_nickname: The mail alias for the group.
:type mail_nickname: str
:param security_enabled: Whether the group is security-enable.
:type security_enabled: bool
:param mail: The primary email address of the group.
Expand All @@ -50,13 +56,17 @@ class ADGroup(DirectoryObject):
'deletion_timestamp': {'key': 'deletionTimestamp', 'type': 'iso-8601'},
'object_type': {'key': 'objectType', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'mail_enabled': {'key': 'mailEnabled', 'type': 'bool'},
'mail_nickname': {'key': 'mailNickname', 'type': 'str'},
'security_enabled': {'key': 'securityEnabled', 'type': 'bool'},
'mail': {'key': 'mail', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ADGroup, self).__init__(**kwargs)
self.display_name = kwargs.get('display_name', None)
self.mail_enabled = kwargs.get('mail_enabled', None)
self.mail_nickname = kwargs.get('mail_nickname', None)
self.security_enabled = kwargs.get('security_enabled', None)
self.mail = kwargs.get('mail', None)
self.object_type = 'Group'
12 changes: 11 additions & 1 deletion azure-graphrbac/azure/graphrbac/models/ad_group_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ class ADGroup(DirectoryObject):
:type object_type: str
:param display_name: The display name of the group.
:type display_name: str
:param mail_enabled: Whether the group is mail-enabled. Must be false.
This is because only pure security groups can be created using the Graph
API.
:type mail_enabled: bool
:param mail_nickname: The mail alias for the group.
:type mail_nickname: str
:param security_enabled: Whether the group is security-enable.
:type security_enabled: bool
:param mail: The primary email address of the group.
Expand All @@ -50,13 +56,17 @@ class ADGroup(DirectoryObject):
'deletion_timestamp': {'key': 'deletionTimestamp', 'type': 'iso-8601'},
'object_type': {'key': 'objectType', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'mail_enabled': {'key': 'mailEnabled', 'type': 'bool'},
'mail_nickname': {'key': 'mailNickname', 'type': 'str'},
'security_enabled': {'key': 'securityEnabled', 'type': 'bool'},
'mail': {'key': 'mail', 'type': 'str'},
}

def __init__(self, *, additional_properties=None, display_name: str=None, security_enabled: bool=None, mail: str=None, **kwargs) -> None:
def __init__(self, *, additional_properties=None, display_name: str=None, mail_enabled: bool=None, mail_nickname: str=None, security_enabled: bool=None, mail: str=None, **kwargs) -> None:
super(ADGroup, self).__init__(additional_properties=additional_properties, **kwargs)
self.display_name = display_name
self.mail_enabled = mail_enabled
self.mail_nickname = mail_nickname
self.security_enabled = security_enabled
self.mail = mail
self.object_type = 'Group'
43 changes: 43 additions & 0 deletions azure-graphrbac/azure/graphrbac/models/add_owner_parameters.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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 AddOwnerParameters(Model):
"""Request parameters for adding a owner to an application.

All required parameters must be populated in order to send to Azure.

:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, object]
:param url: Required. A owner object URL, such as
"https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd",
where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and
"f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the owner (user,
application, servicePrincipal, group) to be added.
:type url: str
"""

_validation = {
'url': {'required': True},
}

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

def __init__(self, **kwargs):
super(AddOwnerParameters, self).__init__(**kwargs)
self.additional_properties = kwargs.get('additional_properties', None)
self.url = kwargs.get('url', None)
43 changes: 43 additions & 0 deletions azure-graphrbac/azure/graphrbac/models/add_owner_parameters_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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 AddOwnerParameters(Model):
"""Request parameters for adding a owner to an application.

All required parameters must be populated in order to send to Azure.

:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, object]
:param url: Required. A owner object URL, such as
"https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd",
where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and
"f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the owner (user,
application, servicePrincipal, group) to be added.
:type url: str
"""

_validation = {
'url': {'required': True},
}

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

def __init__(self, *, url: str, additional_properties=None, **kwargs) -> None:
super(AddOwnerParameters, self).__init__(**kwargs)
self.additional_properties = additional_properties
self.url = url
57 changes: 57 additions & 0 deletions azure-graphrbac/azure/graphrbac/models/app_role.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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 AppRole(Model):
"""AppRole.

:param id: Unique role identifier inside the appRoles collection.
:type id: str
:param allowed_member_types: Specifies whether this app role definition
can be assigned to users and groups by setting to 'User', or to other
applications (that are accessing this application in daemon service
scenarios) by setting to 'Application', or to both.
:type allowed_member_types: list[str]
:param description: Permission help text that appears in the admin app
assignment and consent experiences.
:type description: str
:param display_name: Display name for the permission that appears in the
admin consent and app assignment experiences.
:type display_name: str
:param is_enabled: When creating or updating a role definition, this must
be set to true (which is the default). To delete a role, this must first
be set to false. At that point, in a subsequent call, this role may be
removed.
:type is_enabled: bool
:param value: Specifies the value of the roles claim that the application
should expect in the authentication and access tokens.
:type value: str
"""

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'allowed_member_types': {'key': 'allowedMemberTypes', 'type': '[str]'},
'description': {'key': 'description', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'is_enabled': {'key': 'isEnabled', 'type': 'bool'},
'value': {'key': 'value', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AppRole, self).__init__(**kwargs)
self.id = kwargs.get('id', None)
self.allowed_member_types = kwargs.get('allowed_member_types', None)
self.description = kwargs.get('description', None)
self.display_name = kwargs.get('display_name', None)
self.is_enabled = kwargs.get('is_enabled', None)
self.value = kwargs.get('value', None)
57 changes: 57 additions & 0 deletions azure-graphrbac/azure/graphrbac/models/app_role_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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 AppRole(Model):
"""AppRole.

:param id: Unique role identifier inside the appRoles collection.
:type id: str
:param allowed_member_types: Specifies whether this app role definition
can be assigned to users and groups by setting to 'User', or to other
applications (that are accessing this application in daemon service
scenarios) by setting to 'Application', or to both.
:type allowed_member_types: list[str]
:param description: Permission help text that appears in the admin app
assignment and consent experiences.
:type description: str
:param display_name: Display name for the permission that appears in the
admin consent and app assignment experiences.
:type display_name: str
:param is_enabled: When creating or updating a role definition, this must
be set to true (which is the default). To delete a role, this must first
be set to false. At that point, in a subsequent call, this role may be
removed.
:type is_enabled: bool
:param value: Specifies the value of the roles claim that the application
should expect in the authentication and access tokens.
:type value: str
"""

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'allowed_member_types': {'key': 'allowedMemberTypes', 'type': '[str]'},
'description': {'key': 'description', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'is_enabled': {'key': 'isEnabled', 'type': 'bool'},
'value': {'key': 'value', 'type': 'str'},
}

def __init__(self, *, id: str=None, allowed_member_types=None, description: str=None, display_name: str=None, is_enabled: bool=None, value: str=None, **kwargs) -> None:
super(AppRole, self).__init__(**kwargs)
self.id = id
self.allowed_member_types = allowed_member_types
self.description = description
self.display_name = display_name
self.is_enabled = is_enabled
self.value = value
Loading