diff --git a/azure-graphrbac/azure/graphrbac/models/__init__.py b/azure-graphrbac/azure/graphrbac/models/__init__.py index f0d758a105c6..caea550daabe 100644 --- a/azure-graphrbac/azure/graphrbac/models/__init__.py +++ b/azure-graphrbac/azure/graphrbac/models/__init__.py @@ -10,6 +10,7 @@ # -------------------------------------------------------------------------- from .graph_error import GraphError, GraphErrorException +from .directory_object import DirectoryObject from .key_credential import KeyCredential from .password_credential import PasswordCredential from .resource_access import ResourceAccess @@ -17,6 +18,7 @@ from .application_create_parameters import ApplicationCreateParameters from .application_update_parameters import ApplicationUpdateParameters from .application import Application +from .application_add_owner_parameters import ApplicationAddOwnerParameters from .key_credentials_update_parameters import KeyCredentialsUpdateParameters from .password_credentials_update_parameters import PasswordCredentialsUpdateParameters from .aad_object import AADObject @@ -39,6 +41,7 @@ from .domain import Domain 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 @@ -52,6 +55,7 @@ __all__ = [ 'GraphError', 'GraphErrorException', + 'DirectoryObject', 'KeyCredential', 'PasswordCredential', 'ResourceAccess', @@ -59,6 +63,7 @@ 'ApplicationCreateParameters', 'ApplicationUpdateParameters', 'Application', + 'ApplicationAddOwnerParameters', 'KeyCredentialsUpdateParameters', 'PasswordCredentialsUpdateParameters', 'AADObject', @@ -81,6 +86,7 @@ 'Domain', 'AADObjectPaged', 'ApplicationPaged', + 'DirectoryObjectPaged', 'KeyCredentialPaged', 'PasswordCredentialPaged', 'ADGroupPaged', diff --git a/azure-graphrbac/azure/graphrbac/models/ad_group.py b/azure-graphrbac/azure/graphrbac/models/ad_group.py index 965d66498a48..5087e9198364 100644 --- a/azure-graphrbac/azure/graphrbac/models/ad_group.py +++ b/azure-graphrbac/azure/graphrbac/models/ad_group.py @@ -9,15 +9,21 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from .directory_object import DirectoryObject -class ADGroup(Model): +class ADGroup(DirectoryObject): """Active Directory group information. - :param object_id: The object ID. - :type object_id: str - :param object_type: The object type. + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar object_id: The object ID. + :vartype object_id: str + :ivar deletion_timestamp: The time at which the directory object was + deleted. + :vartype deletion_timestamp: datetime + :param object_type: Constant filled by server. :type object_type: str :param display_name: The display name of the group. :type display_name: str @@ -27,17 +33,24 @@ class ADGroup(Model): :type mail: str """ + _validation = { + 'object_id': {'readonly': True}, + 'deletion_timestamp': {'readonly': True}, + 'object_type': {'required': True}, + } + _attribute_map = { 'object_id': {'key': 'objectId', 'type': 'str'}, + 'deletion_timestamp': {'key': 'deletionTimestamp', 'type': 'iso-8601'}, 'object_type': {'key': 'objectType', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'security_enabled': {'key': 'securityEnabled', 'type': 'bool'}, 'mail': {'key': 'mail', 'type': 'str'}, } - def __init__(self, object_id=None, object_type=None, display_name=None, security_enabled=None, mail=None): - self.object_id = object_id - self.object_type = object_type + def __init__(self, display_name=None, security_enabled=None, mail=None): + super(ADGroup, self).__init__() self.display_name = display_name self.security_enabled = security_enabled self.mail = mail + self.object_type = 'Group' diff --git a/azure-graphrbac/azure/graphrbac/models/application.py b/azure-graphrbac/azure/graphrbac/models/application.py index 0289aeee02f5..02440a9e466e 100644 --- a/azure-graphrbac/azure/graphrbac/models/application.py +++ b/azure-graphrbac/azure/graphrbac/models/application.py @@ -9,15 +9,21 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from .directory_object import DirectoryObject -class Application(Model): +class Application(DirectoryObject): """Active Directory application information. - :param object_id: The object ID. - :type object_id: str - :param object_type: The object type. + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar object_id: The object ID. + :vartype object_id: str + :ivar deletion_timestamp: The time at which the directory object was + deleted. + :vartype deletion_timestamp: datetime + :param object_type: Constant filled by server. :type object_type: str :param app_id: The application ID. :type app_id: str @@ -39,8 +45,15 @@ class Application(Model): :type oauth2_allow_implicit_flow: bool """ + _validation = { + 'object_id': {'readonly': True}, + 'deletion_timestamp': {'readonly': True}, + 'object_type': {'required': True}, + } + _attribute_map = { 'object_id': {'key': 'objectId', 'type': 'str'}, + 'deletion_timestamp': {'key': 'deletionTimestamp', 'type': 'iso-8601'}, 'object_type': {'key': 'objectType', 'type': 'str'}, 'app_id': {'key': 'appId', 'type': 'str'}, 'app_permissions': {'key': 'appPermissions', 'type': '[str]'}, @@ -52,9 +65,8 @@ class Application(Model): 'oauth2_allow_implicit_flow': {'key': 'oauth2AllowImplicitFlow', 'type': 'bool'}, } - 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, homepage=None, oauth2_allow_implicit_flow=None): - self.object_id = object_id - self.object_type = object_type + def __init__(self, app_id=None, app_permissions=None, available_to_other_tenants=None, display_name=None, identifier_uris=None, reply_urls=None, homepage=None, oauth2_allow_implicit_flow=None): + super(Application, self).__init__() self.app_id = app_id self.app_permissions = app_permissions self.available_to_other_tenants = available_to_other_tenants @@ -63,3 +75,4 @@ def __init__(self, object_id=None, object_type=None, app_id=None, app_permission self.reply_urls = reply_urls self.homepage = homepage self.oauth2_allow_implicit_flow = oauth2_allow_implicit_flow + self.object_type = 'Application' diff --git a/azure-graphrbac/azure/graphrbac/models/application_add_owner_parameters.py b/azure-graphrbac/azure/graphrbac/models/application_add_owner_parameters.py new file mode 100644 index 000000000000..e6bb9703b635 --- /dev/null +++ b/azure-graphrbac/azure/graphrbac/models/application_add_owner_parameters.py @@ -0,0 +1,35 @@ +# 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 ApplicationAddOwnerParameters(Model): + """Request parameters for adding a owner to an application. + + :param url: 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 = { + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, url): + self.url = url diff --git a/azure-graphrbac/azure/graphrbac/models/directory_object.py b/azure-graphrbac/azure/graphrbac/models/directory_object.py new file mode 100644 index 000000000000..627b8f2acb9d --- /dev/null +++ b/azure-graphrbac/azure/graphrbac/models/directory_object.py @@ -0,0 +1,52 @@ +# 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 DirectoryObject(Model): + """Represents an Azure Active Directory object. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Application, ADGroup, ServicePrincipal, User + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar object_id: The object ID. + :vartype object_id: str + :ivar deletion_timestamp: The time at which the directory object was + deleted. + :vartype deletion_timestamp: datetime + :param object_type: Constant filled by server. + :type object_type: str + """ + + _validation = { + 'object_id': {'readonly': True}, + 'deletion_timestamp': {'readonly': True}, + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'deletion_timestamp': {'key': 'deletionTimestamp', 'type': 'iso-8601'}, + 'object_type': {'key': 'objectType', 'type': 'str'}, + } + + _subtype_map = { + 'object_type': {'Application': 'Application', 'Group': 'ADGroup', 'ServicePrincipal': 'ServicePrincipal', 'User': 'User'} + } + + def __init__(self): + self.object_id = None + self.deletion_timestamp = None + self.object_type = None diff --git a/azure-graphrbac/azure/graphrbac/models/directory_object_paged.py b/azure-graphrbac/azure/graphrbac/models/directory_object_paged.py new file mode 100644 index 000000000000..9afb9de28259 --- /dev/null +++ b/azure-graphrbac/azure/graphrbac/models/directory_object_paged.py @@ -0,0 +1,27 @@ +# 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.paging import Paged + + +class DirectoryObjectPaged(Paged): + """ + A paging container for iterating over a list of :class:`DirectoryObject ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DirectoryObject]'} + } + + def __init__(self, *args, **kwargs): + + super(DirectoryObjectPaged, self).__init__(*args, **kwargs) diff --git a/azure-graphrbac/azure/graphrbac/models/service_principal.py b/azure-graphrbac/azure/graphrbac/models/service_principal.py index 4ff1830e5ebd..7a4521ce18b3 100644 --- a/azure-graphrbac/azure/graphrbac/models/service_principal.py +++ b/azure-graphrbac/azure/graphrbac/models/service_principal.py @@ -9,15 +9,21 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from .directory_object import DirectoryObject -class ServicePrincipal(Model): +class ServicePrincipal(DirectoryObject): """Active Directory service principal information. - :param object_id: The object ID. - :type object_id: str - :param object_type: The object type. + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar object_id: The object ID. + :vartype object_id: str + :ivar deletion_timestamp: The time at which the directory object was + deleted. + :vartype deletion_timestamp: datetime + :param object_type: Constant filled by server. :type object_type: str :param display_name: The display name of the service principal. :type display_name: str @@ -27,17 +33,24 @@ class ServicePrincipal(Model): :type service_principal_names: list[str] """ + _validation = { + 'object_id': {'readonly': True}, + 'deletion_timestamp': {'readonly': True}, + 'object_type': {'required': True}, + } + _attribute_map = { 'object_id': {'key': 'objectId', 'type': 'str'}, + 'deletion_timestamp': {'key': 'deletionTimestamp', 'type': 'iso-8601'}, 'object_type': {'key': 'objectType', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'app_id': {'key': 'appId', 'type': 'str'}, '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): - self.object_id = object_id - self.object_type = object_type + def __init__(self, display_name=None, app_id=None, service_principal_names=None): + super(ServicePrincipal, self).__init__() self.display_name = display_name self.app_id = app_id self.service_principal_names = service_principal_names + self.object_type = 'ServicePrincipal' diff --git a/azure-graphrbac/azure/graphrbac/models/user.py b/azure-graphrbac/azure/graphrbac/models/user.py index 83650f2a3570..0fa032078e66 100644 --- a/azure-graphrbac/azure/graphrbac/models/user.py +++ b/azure-graphrbac/azure/graphrbac/models/user.py @@ -9,12 +9,22 @@ # regenerated. # -------------------------------------------------------------------------- -from .user_base import UserBase +from .directory_object import DirectoryObject -class User(UserBase): +class User(DirectoryObject): """Active Directory user information. + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar object_id: The object ID. + :vartype object_id: str + :ivar deletion_timestamp: The time at which the directory object was + deleted. + :vartype deletion_timestamp: datetime + :param object_type: Constant filled by server. + :type object_type: str :param immutable_id: This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user @@ -43,15 +53,20 @@ class User(UserBase): :type mail_nickname: str :param mail: The primary email address of the user. :type mail: str - :param object_id: The object ID. - :type object_id: str - :param object_type: The object type. - :type object_type: str :param sign_in_names: The sign-in names of the user. :type sign_in_names: list[~azure.graphrbac.models.SignInName] """ + _validation = { + 'object_id': {'readonly': True}, + 'deletion_timestamp': {'readonly': True}, + 'object_type': {'required': True}, + } + _attribute_map = { + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'deletion_timestamp': {'key': 'deletionTimestamp', 'type': 'iso-8601'}, + 'object_type': {'key': 'objectType', 'type': 'str'}, 'immutable_id': {'key': 'immutableId', 'type': 'str'}, 'usage_location': {'key': 'usageLocation', 'type': 'str'}, 'given_name': {'key': 'givenName', 'type': 'str'}, @@ -62,18 +77,20 @@ class User(UserBase): 'user_principal_name': {'key': 'userPrincipalName', 'type': 'str'}, 'mail_nickname': {'key': 'mailNickname', 'type': 'str'}, 'mail': {'key': 'mail', 'type': 'str'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, 'sign_in_names': {'key': 'signInNames', 'type': '[SignInName]'}, } - def __init__(self, immutable_id=None, usage_location=None, given_name=None, surname=None, user_type=None, account_enabled=None, display_name=None, user_principal_name=None, mail_nickname=None, mail=None, object_id=None, object_type=None, sign_in_names=None): - super(User, self).__init__(immutable_id=immutable_id, usage_location=usage_location, given_name=given_name, surname=surname, user_type=user_type) + def __init__(self, immutable_id=None, usage_location=None, given_name=None, surname=None, user_type=None, account_enabled=None, display_name=None, user_principal_name=None, mail_nickname=None, mail=None, sign_in_names=None): + super(User, self).__init__() + self.immutable_id = immutable_id + self.usage_location = usage_location + self.given_name = given_name + self.surname = surname + self.user_type = user_type self.account_enabled = account_enabled self.display_name = display_name self.user_principal_name = user_principal_name self.mail_nickname = mail_nickname self.mail = mail - self.object_id = object_id - self.object_type = object_type self.sign_in_names = sign_in_names + self.object_type = 'User' diff --git a/azure-graphrbac/azure/graphrbac/operations/applications_operations.py b/azure-graphrbac/azure/graphrbac/operations/applications_operations.py index 5aa4cc31047c..5ba28d2dc97a 100644 --- a/azure-graphrbac/azure/graphrbac/operations/applications_operations.py +++ b/azure-graphrbac/azure/graphrbac/operations/applications_operations.py @@ -328,6 +328,138 @@ def patch( client_raw_response = ClientRawResponse(None, response) return client_raw_response + def list_owners( + self, application_object_id, custom_headers=None, raw=False, **operation_config): + """Directory objects that are owners of the application. + + The owners are a set of non-admin users who are allowed to modify this + object. + + :param application_object_id: The object ID of the application for + which to get owners. + :type application_object_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of DirectoryObject + :rtype: + ~azure.graphrbac.models.DirectoryObjectPaged[~azure.graphrbac.models.DirectoryObject] + :raises: + :class:`GraphErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/{tenantID}/applications/{applicationObjectId}/owners' + path_format_arguments = { + 'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str'), + 'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.GraphErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.DirectoryObjectPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.DirectoryObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def add_owner( + self, application_object_id, url, custom_headers=None, raw=False, **operation_config): + """Add an owner to an application. + + :param application_object_id: The object ID of the application to + which to add the owner. + :type application_object_id: str + :param url: 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 + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`GraphErrorException` + """ + parameters = models.ApplicationAddOwnerParameters(url=url) + + # Construct URL + url = '/{tenantID}/applications/{applicationObjectId}/$links/owners' + path_format_arguments = { + 'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str'), + 'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ApplicationAddOwnerParameters') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [204]: + raise models.GraphErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + def list_key_credentials( self, application_object_id, custom_headers=None, raw=False, **operation_config): """Get the keyCredentials associated with an application. diff --git a/azure-graphrbac/azure/graphrbac/operations/service_principals_operations.py b/azure-graphrbac/azure/graphrbac/operations/service_principals_operations.py index 93cfe990084d..6ee4a5ab4662 100644 --- a/azure-graphrbac/azure/graphrbac/operations/service_principals_operations.py +++ b/azure-graphrbac/azure/graphrbac/operations/service_principals_operations.py @@ -274,6 +274,76 @@ def get( return deserialized + def list_owners( + self, object_id, custom_headers=None, raw=False, **operation_config): + """Directory objects that are owners of this service principal. + + The owners are a set of non-admin users who are allowed to modify this + object. + + :param object_id: The object ID of the service principal for which to + get owners. + :type object_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of DirectoryObject + :rtype: + ~azure.graphrbac.models.DirectoryObjectPaged[~azure.graphrbac.models.DirectoryObject] + :raises: + :class:`GraphErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/{tenantID}/servicePrincipals/{objectId}/owners' + path_format_arguments = { + 'objectId': self._serialize.url("object_id", object_id, 'str'), + 'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.GraphErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.DirectoryObjectPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.DirectoryObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + def list_key_credentials( self, object_id, custom_headers=None, raw=False, **operation_config): """Get the keyCredentials associated with the specified service principal. diff --git a/azure-graphrbac/build.json b/azure-graphrbac/build.json index d5356f60b700..c63116cab7c0 100644 --- a/azure-graphrbac/build.json +++ b/azure-graphrbac/build.json @@ -42,36 +42,89 @@ "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", "_shasum": "33813111fc9bfa488bd600fbba48bc53cc9182c7", "_shrinkwrap": null, "bin": null, "_id": "@microsoft.azure/autorest-core@2.0.4168", - "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", "_requested": { "type": "directory", - "where": "/git-restapi", - "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" - }, - "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", - "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + "where": "D:\\VSProjects\\swagger-to-sdk", + "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core", + "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core", + "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + }, + "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core", + "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core" }, "extensionManager": { - "installationPath": "/root/.autorest", - "dotnetPath": "/root/.dotnet" + "installationPath": "C:\\Users\\lmazuel\\.autorest", + "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" }, - "installationPath": "/root/.autorest" + "installationPath": "C:\\Users\\lmazuel\\.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.go", + "version": "2.0.24", + "dependencies": { + "dotnet-2.0.0": "^1.1.0" + }, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/autorest.testserver": "^1.9.0", + "autorest": "^2.0.0", + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.1.1", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.go@2.0.24/node_modules/@microsoft.azure/autorest.go", + "_shasum": "409a4a9a21708a7aea58fadb0b064ea487a90fea", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.go@2.0.24", + "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.go@2.0.24/node_modules/@microsoft.azure/autorest.go", + "_requested": { + "type": "directory", + "where": "D:\\VSProjects\\swagger-to-sdk", + "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.go@2.0.24\\node_modules\\@microsoft.azure\\autorest.go", + "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.go@2.0.24\\node_modules\\@microsoft.azure\\autorest.go", + "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.go@2.0.24/node_modules/@microsoft.azure/autorest.go", + "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.go@2.0.24/node_modules/@microsoft.azure/autorest.go" + }, + "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.go@2.0.24\\node_modules\\@microsoft.azure\\autorest.go", + "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.go@2.0.24\\node_modules\\@microsoft.azure\\autorest.go" + }, + "extensionManager": { + "installationPath": "C:\\Users\\lmazuel\\.autorest", + "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" + }, + "installationPath": "C:\\Users\\lmazuel\\.autorest" }, { "resolvedInfo": null, "packageMetadata": { "name": "@microsoft.azure/autorest.modeler", - "version": "2.0.21", + "version": "2.0.18", "dependencies": { - "dotnet-2.0.0": "^1.3.2" + "dotnet-2.0.0": "^1.1.0" }, "optionalDependencies": {}, "devDependencies": { @@ -93,28 +146,28 @@ "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90", + "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "b8e853f83b99b2a37ad534cb8463da5de4b11418", "_shrinkwrap": null, "bin": null, - "_id": "@microsoft.azure/autorest.modeler@2.0.21", - "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_id": "@microsoft.azure/autorest.modeler@2.0.18", + "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler", "_requested": { "type": "directory", - "where": "/git-restapi", - "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" - }, - "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + "where": "D:\\VSProjects\\swagger-to-sdk", + "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.0.18\\node_modules\\@microsoft.azure\\autorest.modeler", + "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.0.18\\node_modules\\@microsoft.azure\\autorest.modeler", + "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.0.18\\node_modules\\@microsoft.azure\\autorest.modeler", + "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.0.18\\node_modules\\@microsoft.azure\\autorest.modeler" }, "extensionManager": { - "installationPath": "/root/.autorest", - "dotnetPath": "/root/.dotnet" + "installationPath": "C:\\Users\\lmazuel\\.autorest", + "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" }, - "installationPath": "/root/.autorest" + "installationPath": "C:\\Users\\lmazuel\\.autorest" }, { "resolvedInfo": null, @@ -144,28 +197,81 @@ "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", "_shasum": "ca425289fa38a210d279729048a4a91673f09c67", "_shrinkwrap": null, "bin": null, "_id": "@microsoft.azure/autorest.modeler@2.1.22", - "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "D:\\VSProjects\\swagger-to-sdk", + "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler", + "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler", + "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler", + "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler" + }, + "extensionManager": { + "installationPath": "C:\\Users\\lmazuel\\.autorest", + "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" + }, + "installationPath": "C:\\Users\\lmazuel\\.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.python", + "version": "2.0.13", + "dependencies": { + "dotnet-2.0.0": "^1.1.0" + }, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/autorest.testserver": "^1.9.0", + "autorest": "^2.0.0", + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.1.1", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python", + "_shasum": "ddbbf3e3f1f90ae4132b687cfa8450425ab4ffcd", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.python@2.0.13", + "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python", "_requested": { "type": "directory", - "where": "/git-restapi", - "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" - }, - "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", - "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + "where": "D:\\VSProjects\\swagger-to-sdk", + "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.13\\node_modules\\@microsoft.azure\\autorest.python", + "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.13\\node_modules\\@microsoft.azure\\autorest.python", + "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python", + "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python" + }, + "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.13\\node_modules\\@microsoft.azure\\autorest.python", + "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.13\\node_modules\\@microsoft.azure\\autorest.python" }, "extensionManager": { - "installationPath": "/root/.autorest", - "dotnetPath": "/root/.dotnet" + "installationPath": "C:\\Users\\lmazuel\\.autorest", + "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" }, - "installationPath": "/root/.autorest" + "installationPath": "C:\\Users\\lmazuel\\.autorest" }, { "resolvedInfo": null, @@ -197,29 +303,37 @@ "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", + "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", "_shasum": "e069166c16fd903c8e1fdf9395b433f3043cb6e3", "_shrinkwrap": null, "bin": null, "_id": "@microsoft.azure/autorest.python@2.0.19", - "_from": "file:/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", + "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", "_requested": { "type": "directory", - "where": "/git-restapi", - "raw": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python" - }, - "_spec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", - "_where": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python" + "where": "D:\\VSProjects\\swagger-to-sdk", + "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python", + "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python", + "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", + "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python" + }, + "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python", + "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python" }, "extensionManager": { - "installationPath": "/root/.autorest", - "dotnetPath": "/root/.dotnet" + "installationPath": "C:\\Users\\lmazuel\\.autorest", + "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" }, - "installationPath": "/root/.autorest" + "installationPath": "C:\\Users\\lmazuel\\.autorest" } ], - "autorest_bootstrap": {} + "autorest_bootstrap": { + "dependencies": { + "autorest": { + "version": "2.0.4166", + "from": "autorest@latest", + "resolved": "https://registry.npmjs.org/autorest/-/autorest-2.0.4166.tgz" + } + } + } } \ No newline at end of file diff --git a/azure-graphrbac/tests/recordings/test_graphrbac.test_apps_and_sp.yaml b/azure-graphrbac/tests/recordings/test_graphrbac.test_apps_and_sp.yaml index 15c97296498d..b03e9fdca8d5 100644 --- a/azure-graphrbac/tests/recordings/test_graphrbac.test_apps_and_sp.yaml +++ b/azure-graphrbac/tests/recordings/test_graphrbac.test_apps_and_sp.yaml @@ -9,14 +9,14 @@ interactions: Content-Length: ['108'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST uri: https://graph.windows.net/myaddomain.onmicrosoft.com/applications?api-version=1.6 response: - body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element","odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"818996ef-2981-4892-9ecb-e432ddbc1b46","deletionTimestamp":null,"acceptMappedClaims":null,"addIns":[],"appId":"ffdd4f3d-dfc7-49bf-a264-50c1cc76b1b9","appRoles":[],"availableToOtherTenants":false,"displayName":"pytest_app","errorUrl":null,"groupMembershipClaims":null,"homepage":null,"identifierUris":["http://pytest_app.org"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element","odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"7119bbe4-0d8a-437f-acfb-e0f27553e640","deletionTimestamp":null,"acceptMappedClaims":null,"addIns":[],"appId":"8fad9dcf-014f-4ac6-83d3-0d80ab88eb59","appRoles":[],"availableToOtherTenants":false,"displayName":"pytest_app","errorUrl":null,"groupMembershipClaims":null,"homepage":null,"identifierUris":["http://pytest_app.org"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow the application to access pytest_app on behalf of the signed-in user.","adminConsentDisplayName":"Access - pytest_app","id":"897f8bc8-dc83-4206-956f-3d8948c2e1ec","isEnabled":true,"type":"User","userConsentDescription":"Allow + pytest_app","id":"9a6f9f64-37fb-4030-b87c-ddfdaae41765","isEnabled":true,"type":"User","userConsentDescription":"Allow the application to access pytest_app on your behalf.","userConsentDisplayName":"Access pytest_app","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"optionalClaims":null,"passwordCredentials":[],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null,"tokenEncryptionKeyId":null}'} headers: @@ -25,14 +25,14 @@ interactions: content-length: ['1338'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Wed, 01 Nov 2017 18:49:42 GMT'] - duration: ['3916046'] + date: ['Fri, 03 Nov 2017 17:39:09 GMT'] + duration: ['2784727'] expires: ['-1'] - location: ['https://graph.windows.net/myaddomain.onmicrosoft.com/directoryObjects/818996ef-2981-4892-9ecb-e432ddbc1b46/Microsoft.DirectoryServices.Application'] - ocp-aad-diagnostics-server-name: [3/hPBrNk3bWDiI3Le668U3KnfkdAVCOsHPHBA7wvvMs=] - ocp-aad-session-key: [zu6hhY_SqJqsgOBUkeLvv_NjWaWhuq4MLkykFGBKl2NEnuFVBcDRC2Ir1974aVhhEF0x3t_6wPzfk_T9fDszZOHIo9HH-L6r2f6uXiY_NGJFGuq2PmS4W7UJjD3Rl4oc9csiVpFwCzNfi9k9jT4uYk4K69tyjK7Fk7p8d5d_6oWzA_eEi45K2bMvOC2pQ2csU6JqCuMTVAKfEiKtIcBgRQ.ZbeKlkQ3p1jtEMtIPGxBkFHSsIQWQCCpwNr4Fc-O-IM] + location: ['https://graph.windows.net/myaddomain.onmicrosoft.com/directoryObjects/7119bbe4-0d8a-437f-acfb-e0f27553e640/Microsoft.DirectoryServices.Application'] + ocp-aad-diagnostics-server-name: [jiQYHpwXA/8aWIVzHitgpzL1Z4R3iT5ZL0iACZUtt88=] + ocp-aad-session-key: [VXZFf47ikRJzQYDhk9bRvtJhYgFd45LHfH5lV7iq1cYJnWVtP9FPyQ6sYRaw1xdfszAQYqDIc3pjrR4VbIsVC9FR_Uu1iradf-Uz6JXIbujgDrVZYCExwhizUHu1l9aTMS12AvNTjJ-ZnyXNXXGt3t76amp9uB5EwlWI-UIHW45CsH5Nc80z6i51JxJX5K-oHXrVZ-tbPqi6iRjUBaSAhg.2PSKTAek8uVTj3RL-khtnfQoNZQS-kELfFiTX7P_FcY] pragma: [no-cache] - request-id: [e9c6365a-4e18-449e-b6dc-652b0b1f2605] + request-id: [b79bfb61-d438-47ee-9f24-553fac5625c9] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] @@ -41,7 +41,113 @@ interactions: x-powered-by: [ASP.NET, ASP.NET] status: {code: 201, message: Created} - request: - body: '{"appId": "ffdd4f3d-dfc7-49bf-a264-50c1cc76b1b9", "accountEnabled": false}' + body: 'b''{"accountEnabled": false, "userPrincipalName": "testowner@myaddomain.onmicrosoft.com", + "objectType": "UserCreateParameters", "displayName": "testowner", "mailNickname": + "testowner", "passwordProfile": {"forceChangePasswordNextLogin": true, "password": + "MyStr0ngP4ssword"}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['274'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: POST + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/users?api-version=1.6 + response: + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"63dd7757-7d4e-4916-89e9-46c96aec9ba7","deletionTimestamp":null,"accountEnabled":false,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"country":null,"creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"testowner","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"mail":null,"mailNickname":"testowner","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":[],"passwordPolicies":null,"passwordProfile":{"password":null,"forceChangePasswordNextLogin":true,"enforceChangePasswordPolicy":false},"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2017-11-03T17:39:10.4866766Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"usageLocation":null,"userIdentities":[],"userPrincipalName":"testowner@myaddomain.onmicrosoft.com","userType":"Member"}'} + headers: + access-control-allow-origin: ['*'] + cache-control: [no-cache] + content-length: ['1367'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Fri, 03 Nov 2017 17:39:10 GMT'] + duration: ['9463698'] + expires: ['-1'] + location: ['https://graph.windows.net/myaddomain.onmicrosoft.com/directoryObjects/63dd7757-7d4e-4916-89e9-46c96aec9ba7/Microsoft.DirectoryServices.User'] + ocp-aad-diagnostics-server-name: [gzTHd9xPT6UpzqL1VdRsA3bqkd3Ju1OXrLwpKneHrpg=] + ocp-aad-session-key: [zAJh5U3i87J-fs8QGnQGSUvNt2lTqyU590SI6OhDuyXYeLw3OEGrGOsCdi4OVYADP7KWn-mbzSIEU7f9TI7JFdQ0G9XK8RjELtfspc1xsbMfGjW6PQJMiRmcJ33Rs56LMTDC1AAJBYy3gZvp-KUL60oqFkYQxkvkxfXA74J1MM9aD5JIw4JCTWSs-6hTLY5Jcw6-ib_hrCcmw1OT3RoG9Q.QrU-ASaWMNk-ZP5l33gFWh4WUjxvDVAChm8AQB8DEmc] + pragma: [no-cache] + request-id: [abaadcf6-c435-4e60-93b5-4c375f17d532] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] + x-ms-dirapi-data-contract-version: ['1.6'] + x-powered-by: [ASP.NET, ASP.NET] + status: {code: 201, message: Created} +- request: + body: 'b''{"url": "https://graph.windows.net/myaddomain.onmicrosoft.com/directoryObjects/63dd7757-7d4e-4916-89e9-46c96aec9ba7"}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['119'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: POST + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/applications/7119bbe4-0d8a-437f-acfb-e0f27553e640/$links/owners?api-version=1.6 + response: + body: {string: ''} + headers: + access-control-allow-origin: ['*'] + cache-control: [no-cache] + dataserviceversion: [1.0;] + date: ['Fri, 03 Nov 2017 17:39:11 GMT'] + duration: ['2899297'] + expires: ['-1'] + ocp-aad-diagnostics-server-name: [5BBtH58glal76DPl+ASyPHMwG0liNn9ZIk9MbtD/h8c=] + ocp-aad-session-key: [ninTgXL3NksShYBBLQZ2-0tMRNyF4UydmoHA5d9DLkx3dsFGA2iae_4e9honJS96J8TtWREmZKYKXsog4EsxSEPPkyduO1dsQI7zYDfGJ6VUhNQEVl0N3JJSnB56fodu6alZjgaGDQV0rYC6-2vmqrewIZsfbxf5E7tEIRb7Gzls7lBY9R-bzm-BmsZtaA7Ej54h2tCRVBGMMTkc_E4P0w.tFqJ-p1IJ5r8_KyLvUZZfngfxTALVf2K7U-8AWhGRwo] + pragma: [no-cache] + request-id: [9b109fef-5e20-489c-9a36-98a8cff548d4] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] + x-ms-dirapi-data-contract-version: ['1.6'] + x-powered-by: [ASP.NET, ASP.NET] + status: {code: 204, message: No Content} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/applications/7119bbe4-0d8a-437f-acfb-e0f27553e640/owners?api-version=1.6 + response: + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"63dd7757-7d4e-4916-89e9-46c96aec9ba7","deletionTimestamp":null,"accountEnabled":false,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"country":null,"creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"testowner","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"mail":null,"mailNickname":"testowner","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":[],"passwordPolicies":null,"passwordProfile":{"password":null,"forceChangePasswordNextLogin":true,"enforceChangePasswordPolicy":false},"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2017-11-03T17:39:10Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"usageLocation":null,"userIdentities":[],"userPrincipalName":"testowner@myaddomain.onmicrosoft.com","userType":"Member"}]}'} + headers: + access-control-allow-origin: ['*'] + cache-control: [no-cache] + content-length: ['1329'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Fri, 03 Nov 2017 17:39:11 GMT'] + duration: ['912128'] + expires: ['-1'] + ocp-aad-diagnostics-server-name: [ZvKWcqoSx4tK8aDiFI7C5E7IjSS35e7InPgjy4hCD48=] + ocp-aad-session-key: [4zB7hEB9OdwbOnSq_jCNjEZsVKzdoWDhjxok5x_6cgYryF6reSv6SoNMX8OBqtBO5W2xG3aT1NqpqmPXUGmwXM1rL_WckZFoysULpz6fBDPHJz0cMBoNw41nCldFc5RYnvJiu3TMHWAVD35MIrFqCaoCFmIzb53sLWIr1mLtIIrg9qtw-EUvhPxIfe1fA1ImbC9tdS49Y6jBUKtW1WFNZw.QYpNaMVVEgSyJfE4c_35nlgq6L2Wk7jX9ez5O5QIdZQ] + pragma: [no-cache] + request-id: [96f54c52-80a6-42a1-b4de-7c6d4baba980] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] + x-ms-dirapi-data-contract-version: ['1.6'] + x-powered-by: [ASP.NET, ASP.NET] + status: {code: 200, message: OK} +- request: + body: '{"accountEnabled": false, "appId": "8fad9dcf-014f-4ac6-83d3-0d80ab88eb59"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -49,30 +155,30 @@ interactions: Content-Length: ['74'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST uri: https://graph.windows.net/myaddomain.onmicrosoft.com/servicePrincipals?api-version=1.6 response: - body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element","odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"aca8a668-d606-4a77-82a9-cc7d8b0ccb19","deletionTimestamp":null,"accountEnabled":false,"addIns":[],"alternativeNames":[],"appDisplayName":"pytest_app","appId":"ffdd4f3d-dfc7-49bf-a264-50c1cc76b1b9","appOwnerTenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"pytest_app","errorUrl":null,"homepage":null,"keyCredentials":[],"logoutUrl":null,"oauth2Permissions":[{"adminConsentDescription":"Allow + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element","odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"5ef858aa-6651-43dc-80b9-b382811c17c2","deletionTimestamp":null,"accountEnabled":false,"addIns":[],"alternativeNames":[],"appDisplayName":"pytest_app","appId":"8fad9dcf-014f-4ac6-83d3-0d80ab88eb59","appOwnerTenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"pytest_app","errorUrl":null,"homepage":null,"keyCredentials":[],"logoutUrl":null,"oauth2Permissions":[{"adminConsentDescription":"Allow the application to access pytest_app on behalf of the signed-in user.","adminConsentDisplayName":"Access - pytest_app","id":"897f8bc8-dc83-4206-956f-3d8948c2e1ec","isEnabled":true,"type":"User","userConsentDescription":"Allow + pytest_app","id":"9a6f9f64-37fb-4030-b87c-ddfdaae41765","isEnabled":true,"type":"User","userConsentDescription":"Allow the application to access pytest_app on your behalf.","userConsentDisplayName":"Access - pytest_app","value":"user_impersonation"}],"passwordCredentials":[],"preferredTokenSigningKeyThumbprint":null,"publisherName":"AzureSDKTeam","replyUrls":[],"samlMetadataUrl":null,"servicePrincipalNames":["ffdd4f3d-dfc7-49bf-a264-50c1cc76b1b9","http://pytest_app.org"],"servicePrincipalType":"Application","tags":[],"tokenEncryptionKeyId":null}'} + pytest_app","value":"user_impersonation"}],"passwordCredentials":[],"preferredTokenSigningKeyThumbprint":null,"publisherName":"AzureSDKTeam","replyUrls":[],"samlMetadataUrl":null,"servicePrincipalNames":["8fad9dcf-014f-4ac6-83d3-0d80ab88eb59","http://pytest_app.org"],"servicePrincipalType":"Application","tags":[],"tokenEncryptionKeyId":null}'} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] content-length: ['1368'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Wed, 01 Nov 2017 18:49:42 GMT'] - duration: ['4995199'] + date: ['Fri, 03 Nov 2017 17:39:12 GMT'] + duration: ['7318270'] expires: ['-1'] - location: ['https://graph.windows.net/myaddomain.onmicrosoft.com/directoryObjects/aca8a668-d606-4a77-82a9-cc7d8b0ccb19/Microsoft.DirectoryServices.ServicePrincipal'] - ocp-aad-diagnostics-server-name: [DtvcVPtqaaHXo1s0keQF5e5ePpB7wWGVxIlKdtjGXok=] - ocp-aad-session-key: [QQjaLyn-bO7i0FIC2gHdgeQjy2IYix-nDV0hoFMVwt_jpeS44WUxKDg3ALLm-yeS959KANVmvEIT70I8PlSBVhhHSm2r0vS_b8vwAfsluqFOqlxEWGy4HnwNfhkpSqT-IvzzcfPdqI8l04Dw9a0doiRop3AyZTkiJMNEF7gtpQyhLYMV2M-abHEvycE6kRwtm4W2j3vmSXVje5JXiy4PZw.RWiZLe_hBwDn9d_Sns_m8kwnnQp75_x8P76HE7q5ix0] + location: ['https://graph.windows.net/myaddomain.onmicrosoft.com/directoryObjects/5ef858aa-6651-43dc-80b9-b382811c17c2/Microsoft.DirectoryServices.ServicePrincipal'] + ocp-aad-diagnostics-server-name: [O3zUwAi8QzcuoWXYo3P9BPa+vEau9l2qX1zs2MJrpKg=] + ocp-aad-session-key: [GMZIZx9-RNsM_uTZLZkwvuV4DdCBMzUO1stUDAkmbAZE9-sUdp-ciDbdbLsXe8lTsqLELddcZ-3W51L5iJHX4pSiMFhQ9XVX2ca09qUkwh6fRAyxKXakYQrXB3wGiA-YtruZxiwZAxb6owzoEKQuRmyBWfsfPIbiKf-YYK--mbv7iUR0gt5HCImzJzVDMReaCVZoTbqojynu-_4WLGodjg.YuFwXlXq9lJnrv8erNiI8Q9zZvs0pQfq02Zvp4gVLJU] pragma: [no-cache] - request-id: [cec9cc55-5de0-4ae4-afbe-a6cf386e56f5] + request-id: [c4ab9776-d9d3-4842-97ef-460563a0a73e] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] @@ -80,6 +186,73 @@ interactions: x-ms-dirapi-data-contract-version: ['1.6'] x-powered-by: [ASP.NET, ASP.NET] status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/servicePrincipals/5ef858aa-6651-43dc-80b9-b382811c17c2/owners?api-version=1.6 + response: + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects","value":[]}'} + headers: + access-control-allow-origin: ['*'] + cache-control: [no-cache] + content-length: ['113'] + content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] + dataserviceversion: [3.0;] + date: ['Fri, 03 Nov 2017 17:39:13 GMT'] + duration: ['603544'] + expires: ['-1'] + ocp-aad-diagnostics-server-name: [2DD9Uu67ybR8Pd6jBxWLoYGX++26Si/Rh4KiODEAByo=] + ocp-aad-session-key: [ih8M7hZIcJM4DYln_BvcIGoWW8YSM_acQ2U36ohZG0dGZtLDtQM0n73pVHLig8lB5eFGGnB9kFTBXv8NsWBJDsrDWkqPqSKN8gsjO8u6d5Jda_hxRx676UfSPytgfpRSE8IFkyTUj5LTPVzjKbEu7ZqmVjjZAeV98RCROjuk-tc4iEFkf4Mkv-O9BxdXinMnaUuOg4un768hOIgKevSGqQ.sFT563RiNeGV9nD5UDnvZ-JiOcdAQoUks_aJFSVKWVg] + pragma: [no-cache] + request-id: [690aab3e-4163-4820-9a68-f411cf703dc6] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] + x-ms-dirapi-data-contract-version: ['1.6'] + x-powered-by: [ASP.NET, ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/users/63dd7757-7d4e-4916-89e9-46c96aec9ba7?api-version=1.6 + response: + body: {string: ''} + headers: + access-control-allow-origin: ['*'] + cache-control: [no-cache] + dataserviceversion: [1.0;] + date: ['Fri, 03 Nov 2017 17:39:14 GMT'] + duration: ['11223380'] + expires: ['-1'] + ocp-aad-diagnostics-server-name: [ErkDJKlVQsY3enwAIcldlnUKAhrncYrX6ndjfYa0CVQ=] + ocp-aad-session-key: [oESYaoVV9C5gNEW1BKjO6Dbrg3M8M2Gvc3y3G-21MtIjbSTa8uFuViiMFtc9Cg39g2nt05jt-hZwLN7xR0BQoHxNipDC2eClRgkR6yXu2-vGhD50OSm6YifsxDVigalykxpUW3lb-d1uagcIyh35wAws0-YOyShb3IUUIpmy8JHoFatq32aoPrEpEAKYBQBcfDDudUaZH3e3xg2YazhocQ.OSShnkJhMtZRFhmQ5A9JL10R0ZLrsNfA7R2nsVCtDNU] + pragma: [no-cache] + request-id: [961eb2b9-b607-43c7-a3d4-b29adcade936] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] + x-ms-dirapi-data-contract-version: ['1.6'] + x-powered-by: [ASP.NET, ASP.NET] + status: {code: 204, message: No Content} - request: body: null headers: @@ -89,23 +262,23 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://graph.windows.net/myaddomain.onmicrosoft.com/servicePrincipals/aca8a668-d606-4a77-82a9-cc7d8b0ccb19?api-version=1.6 + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/servicePrincipals/5ef858aa-6651-43dc-80b9-b382811c17c2?api-version=1.6 response: body: {string: ''} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] dataserviceversion: [1.0;] - date: ['Wed, 01 Nov 2017 18:49:43 GMT'] - duration: ['2106480'] + date: ['Fri, 03 Nov 2017 17:39:15 GMT'] + duration: ['2797031'] expires: ['-1'] - ocp-aad-diagnostics-server-name: [iaSFgYC+tqsHdxf0PYhhSBaccCVQl9a2v/hX0IE9E2Q=] - ocp-aad-session-key: [s4KnnHJsogjLpXZ3B8GMuqxRNlXIfHV0hrxbHdtTM2SDBDZ0V2e2nGzGthYxNGm5xg9bdoltS7kG0380CRAA7aQ2nDq4ajnFuPIKJITgfwTZTap_7SyO1z6qDFDbtiVuOrWP4m6F6-CUJZI6kZm9zofXsu--ehwk_70JmEuWutwSZUuQOh0bD0GfuJV-4IvwCQWGdBjW6fJ-8cokMnJabg.Yc7XejZQEZNrKFeTYN5TUqUnolW3cj2egRvBwPSUXHs] + ocp-aad-diagnostics-server-name: [FOJvei39+0RRAEZx+MJDWbFlWIOKl/laHJPN6//+pmE=] + ocp-aad-session-key: [7vOnlbscOJ4zWv9orPqAcY-cWIkdKAJh-7KgETEtfYOyP3-4IkV5UlkCpAleSRwntb02paMW47WNmQ_qF1pheQaV83RAxPK3xUJBYDmJsdza8FHiNy8RxixY8mFxkaW6QrLk82AXAq7vdyk0NQciyuuJlqfuCtzyeMLpExJvlbEB2aF3LZjoS_BWRtDu0-SAWfxEfTfloZXiAbZa0twsUg.FueOxTutRKpcoJy6QUjx8-d7OAca7SKKiMHqS6BbuiE] pragma: [no-cache] - request-id: [6df191cc-614c-4510-8316-cb893b77ef47] + request-id: [58d5ed87-a738-456e-bdce-7320bf046592] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] @@ -122,23 +295,23 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://graph.windows.net/myaddomain.onmicrosoft.com/applications/818996ef-2981-4892-9ecb-e432ddbc1b46?api-version=1.6 + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/applications/7119bbe4-0d8a-437f-acfb-e0f27553e640?api-version=1.6 response: body: {string: ''} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] dataserviceversion: [1.0;] - date: ['Wed, 01 Nov 2017 18:49:45 GMT'] - duration: ['3277158'] + date: ['Fri, 03 Nov 2017 17:39:16 GMT'] + duration: ['3705073'] expires: ['-1'] - ocp-aad-diagnostics-server-name: [QGCgt2mDd3mfXDpToCnqIe494hLti6FGGIdhptlwLco=] - ocp-aad-session-key: [oB4Dfjf7t4kcfWpGZXk5EaYfkVbOKPsHhp2PXbcIlJegi1EPXh_p8KcuIvu1eCyOoD5O-vmw9Ztzx5Els2zvqhbuTPoDFUux9IUFONVOJW4J7qfDppuvliediFFGSFMimHaejDtSr1dguVybzP3lmPehq-9m6d99IgWgDaD-MJj_xrX6yEM0F3CROTtBvQ1Ktj0GTS88AIHWYvYTxA9fJg.00JA2ZOY3OW2Z5xJnRHDrmgYGl2gOBViafNTzrN3IEI] + ocp-aad-diagnostics-server-name: [MCIqkXh8dsIa04Dr+EtELDu26kRqrT5smoGvnFozY3U=] + ocp-aad-session-key: [Lmf5-zPYWu2k9ahXnw419cn8jxg4upFMjaK-2ibE7J-7qU_B3wQ0dkaXhaActgWaf5b1ur_GLG3s3JGnXRayZp6J69CAy9a9tuh0TuteBnDt3nauLudR87Gr-hhg_wQJh2ivgowzxEroBU-9WZy926l8-nnNknGzUmJxN_mgAtwI3oed4jhI3TVCaL0fZNdzJrhyHaqNnczU6oNL2jvtKQ.H5emCzj8ZQcB5IXtIhIKKOxKJfXsmvQiApFKIwW74lw] pragma: [no-cache] - request-id: [fde4d6ec-ffd5-49bd-9c5a-5cba74f9a25d] + request-id: [43c1cb65-9299-426f-bb07-fa53cc57edb2] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] diff --git a/azure-graphrbac/tests/recordings/test_graphrbac.test_graphrbac_users.yaml b/azure-graphrbac/tests/recordings/test_graphrbac.test_graphrbac_users.yaml index 23c71cb0b8ee..58882899cfa8 100644 --- a/azure-graphrbac/tests/recordings/test_graphrbac.test_graphrbac_users.yaml +++ b/azure-graphrbac/tests/recordings/test_graphrbac.test_graphrbac_users.yaml @@ -1,36 +1,37 @@ interactions: - request: - body: 'b''{"userPrincipalName": "testbuddy#TEST@myaddomain.onmicrosoft.com", "passwordProfile": - {"password": "MyStr0ngP4ssword", "forceChangePasswordNextLogin": true}, "mailNickname": - "testbuddy", "accountEnabled": false, "displayName": "Test Buddy"}''' + body: 'b''{"accountEnabled": false, "userPrincipalName": "testbuddy#TEST@myaddomain.onmicrosoft.com", + "objectType": "UserCreateParameters", "displayName": "Test Buddy", "mailNickname": + "testbuddy", "passwordProfile": {"forceChangePasswordNextLogin": true, "password": + "MyStr0ngP4ssword"}}''' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['242'] + Content-Length: ['280'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST uri: https://graph.windows.net/myaddomain.onmicrosoft.com/users?api-version=1.6 response: - body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"9008fa17-a7b1-41e3-84c8-e09dc2c6451e","deletionTimestamp":null,"accountEnabled":false,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"country":null,"creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"Test - Buddy","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"mail":null,"mailNickname":"testbuddy","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":[],"passwordPolicies":null,"passwordProfile":{"password":null,"forceChangePasswordNextLogin":true,"enforceChangePasswordPolicy":false},"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2017-11-01T18:27:27.7389918Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"usageLocation":null,"userIdentities":[],"userPrincipalName":"testbuddy#TEST@myaddomain.onmicrosoft.com","userType":"Member"}'} + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"7f7eb28f-f395-4c1e-aced-66d0a669fa30","deletionTimestamp":null,"accountEnabled":false,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"country":null,"creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"Test + Buddy","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"mail":null,"mailNickname":"testbuddy","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":[],"passwordPolicies":null,"passwordProfile":{"password":null,"forceChangePasswordNextLogin":true,"enforceChangePasswordPolicy":false},"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2017-11-03T17:39:18.2718956Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"usageLocation":null,"userIdentities":[],"userPrincipalName":"testbuddy#TEST@myaddomain.onmicrosoft.com","userType":"Member"}'} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] content-length: ['1373'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Wed, 01 Nov 2017 18:27:26 GMT'] - duration: ['12191451'] + date: ['Fri, 03 Nov 2017 17:39:18 GMT'] + duration: ['10996743'] expires: ['-1'] - location: ['https://graph.windows.net/myaddomain.onmicrosoft.com/directoryObjects/9008fa17-a7b1-41e3-84c8-e09dc2c6451e/Microsoft.DirectoryServices.User'] - ocp-aad-diagnostics-server-name: [ErkDJKlVQsY3enwAIcldlnUKAhrncYrX6ndjfYa0CVQ=] - ocp-aad-session-key: [Yox5V0iBJm-FejD7XZtsK7B1WNH7wM1Gkp1I1mH3rvdKA0KpBYoHA3E9V87YGCBC2O9p6VavVRSfiAXi1i-1ygArsrr0kZFxGjz2ie3UL7DyKa-9J-vmQznKO8Zd7SbFPXl8MNmdTp1BH8q6qVKCjbQrdMwvHrMMLTdtSpBvbwMrBEQKSIcYn_ti60U2kGOBuMmOZjw5LAjf3qI_DwRtTA.iBlrH4Da1E3N0zWDeZMPqhXkRxDXkmJWMYT0B09RxiQ] + location: ['https://graph.windows.net/myaddomain.onmicrosoft.com/directoryObjects/7f7eb28f-f395-4c1e-aced-66d0a669fa30/Microsoft.DirectoryServices.User'] + ocp-aad-diagnostics-server-name: [EtcWSCm0yJGd3kCZLzFsjeCyL72QJUnSrwuPNHYUd1g=] + ocp-aad-session-key: [bT9pjKZUR5JcxxVF19VmvK9mBXnGRcUEve_O6NamldIib4TEXZF-lofpeC_zugKP8rFJUPEt9JAJR5uoyF_3LWkSuedGvs2vXb-rEktpyNS3HQ77YEpF6qwfBlt2jo87q91op4cIpTPJh7Vy93mjOZa-ay1qyayW1YAFT3OA4icDjMpSeB4OX9hfAiiUC_YhgmE55Cdt5GmVJPU5bG1g5w.UeA3r67Ob5uxHcDLCaolnAofzfVY67X7lX-MrtBfl4M] pragma: [no-cache] - request-id: [1d36b161-5299-4069-8fe7-9b72bed0ed6b] + request-id: [63c5d723-33d7-4a11-9086-458472e9a0d1] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] @@ -46,26 +47,26 @@ interactions: Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://graph.windows.net/myaddomain.onmicrosoft.com/users/9008fa17-a7b1-41e3-84c8-e09dc2c6451e?api-version=1.6 + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/users/7f7eb28f-f395-4c1e-aced-66d0a669fa30?api-version=1.6 response: - body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"9008fa17-a7b1-41e3-84c8-e09dc2c6451e","deletionTimestamp":null,"accountEnabled":false,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"country":null,"creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"Test - Buddy","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"mail":null,"mailNickname":"testbuddy","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":[],"passwordPolicies":null,"passwordProfile":{"password":null,"forceChangePasswordNextLogin":true,"enforceChangePasswordPolicy":false},"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2017-11-01T18:27:27Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"usageLocation":null,"userIdentities":[],"userPrincipalName":"testbuddy#TEST@myaddomain.onmicrosoft.com","userType":"Member"}'} + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"7f7eb28f-f395-4c1e-aced-66d0a669fa30","deletionTimestamp":null,"accountEnabled":false,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"country":null,"creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"Test + Buddy","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"mail":null,"mailNickname":"testbuddy","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":[],"passwordPolicies":null,"passwordProfile":{"password":null,"forceChangePasswordNextLogin":true,"enforceChangePasswordPolicy":false},"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2017-11-03T17:39:18Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"usageLocation":null,"userIdentities":[],"userPrincipalName":"testbuddy#TEST@myaddomain.onmicrosoft.com","userType":"Member"}'} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] content-length: ['1365'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Wed, 01 Nov 2017 18:27:28 GMT'] - duration: ['735367'] + date: ['Fri, 03 Nov 2017 17:39:18 GMT'] + duration: ['684488'] expires: ['-1'] - ocp-aad-diagnostics-server-name: [1zUcSmQ9yL9uo4nCeJtYPKgXP91dgaA3ctXbiNs0HGs=] - ocp-aad-session-key: [75LaM7zBo9MVXAP1Ew1knBYxOf4-BJ5sENdpY7YDxMQG3BRQlpmHNWzprzDP86RPJCWGLpt5J6TEu5oxdy4GcjzlGQCrvIQBi6B4WSuC86YBCpu8E1bJDELwY4gTMyxP9V1tEiWDHji3Sda6ZbT4SDqtOk5kBZSWVFtC-kSWrTz1ih7ro4bQ3CUNAgZWyEcFZJuZV5TYCx-9NKw05PrGmQ.D7vgZBMHuftFQLnQ5Gj_v_H7ABnhCNqqLkqVfuK0bzg] + ocp-aad-diagnostics-server-name: [SU5fdDwsCqc7z2lm5DqXdq4BDcpBb/7KVd8B1LQCIVs=] + ocp-aad-session-key: [WFHT7d65efuvL9yMVJqSUDC6-Nuu3dGhVnUIa5oomreU9ZVfXZpcXw8GeJwkGIqnOHWa9IBTX-ZYov-fMgaQvO_g3HsgtycluH7qxz_PpfEGchGeJ7a_8into3WSV4UGki6YH8MMqzQsV1BiFlakVWGfvV6jjOlCSNfqq8kWhjWVUGwU8gRW1oWwDxUJx6oeEHQMAtpMCa7GXD1Unq-seQ.t5Tq5GlV4EUj4DbKAqGKDbcevgW0Vg-FzjfHyIWF-wk] pragma: [no-cache] - request-id: [127e67a2-1924-4ad4-b29a-835f212a5e8d] + request-id: [d55f733b-46d3-48c0-8fc6-2be6d7ed3a03] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] @@ -81,26 +82,26 @@ interactions: Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET uri: https://graph.windows.net/myaddomain.onmicrosoft.com/users/testbuddy%23TEST%40myaddomain.onmicrosoft.com?api-version=1.6 response: - body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"9008fa17-a7b1-41e3-84c8-e09dc2c6451e","deletionTimestamp":null,"accountEnabled":false,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"country":null,"creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"Test - Buddy","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"mail":null,"mailNickname":"testbuddy","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":[],"passwordPolicies":null,"passwordProfile":{"password":null,"forceChangePasswordNextLogin":true,"enforceChangePasswordPolicy":false},"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2017-11-01T18:27:27Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"usageLocation":null,"userIdentities":[],"userPrincipalName":"testbuddy#TEST@myaddomain.onmicrosoft.com","userType":"Member"}'} + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"7f7eb28f-f395-4c1e-aced-66d0a669fa30","deletionTimestamp":null,"accountEnabled":false,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"country":null,"creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"Test + Buddy","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"mail":null,"mailNickname":"testbuddy","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":[],"passwordPolicies":null,"passwordProfile":{"password":null,"forceChangePasswordNextLogin":true,"enforceChangePasswordPolicy":false},"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2017-11-03T17:39:18Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"usageLocation":null,"userIdentities":[],"userPrincipalName":"testbuddy#TEST@myaddomain.onmicrosoft.com","userType":"Member"}'} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] content-length: ['1365'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Wed, 01 Nov 2017 18:27:27 GMT'] - duration: ['1151852'] + date: ['Fri, 03 Nov 2017 17:39:19 GMT'] + duration: ['732875'] expires: ['-1'] - ocp-aad-diagnostics-server-name: [Wvx7TZ/eEDk0k41ajYvQwgwehU+KM5tQhOMjjNrsD6E=] - ocp-aad-session-key: [1J-UpWF2lQtyTXGz1YPEvPZExIlJRbMn6YiEFCdmAJc-NgjXtBmEUgAhTWV2CcG72tskYLQlTt3xh6lGGEX5gHeIAnaWO3Y_WoJkMb2-mFlKhxBuBVKvAGjsVkKdPe-We5MrDmfPKqbBu8ka9Dn9Asp7dlkqaHMqEF5aiReHnefq16cA-KlDru-WjWW1qv0uOk5xsQBbLZk7FTdr-nf2AQ.fsGHbAVrLyglCK9TilJJt5wNX9TJ3RNsZdfKSVPBTgA] + ocp-aad-diagnostics-server-name: [kpTVY9vhytH2Y1JxyUkph+h7pjb7c5rbFUPU3WdgiQ0=] + ocp-aad-session-key: [M5IGs6KwEFYFVhoRoCwGzUghfK5abipJETUrDItqrBO2al9xjfcittikLeOHIcKXPnR9TMsqUVPwMbThOS2PF2gmHgcBRFOU0pYVh6j9K8K90aMfiom3HmsGjuip9SeKNikyK0LbcD0KczCjI4HhZuyx-RPxKlvEOHe1abYdIZ5xu7Alno737uPcmWJQH-kHSj_BdJA8FBBPxbnshcuYnQ.q_JB4xk5DQSFyEmAMMbVAFlKse-y6qJSkOE-P2H63QA] pragma: [no-cache] - request-id: [3f9209cd-460e-4b75-9384-9e7b1485ed9d] + request-id: [0bd6a5ad-0e0b-4dfd-b1cd-f7951a7475eb] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] @@ -116,26 +117,26 @@ interactions: Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://graph.windows.net/myaddomain.onmicrosoft.com/users?api-version=1.6&$filter=displayName%20eq%20%27Test%20Buddy%27 + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/users?$filter=displayName%20eq%20%27Test%20Buddy%27&api-version=1.6 response: - body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.User","value":[{"odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"9008fa17-a7b1-41e3-84c8-e09dc2c6451e","deletionTimestamp":null,"accountEnabled":false,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"country":null,"creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"Test - Buddy","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"mail":null,"mailNickname":"testbuddy","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":[],"passwordPolicies":null,"passwordProfile":{"password":null,"forceChangePasswordNextLogin":true,"enforceChangePasswordPolicy":false},"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2017-11-01T18:27:27Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"usageLocation":null,"userIdentities":[],"userPrincipalName":"testbuddy#TEST@myaddomain.onmicrosoft.com","userType":"Member"}]}'} + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.User","value":[{"odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"7f7eb28f-f395-4c1e-aced-66d0a669fa30","deletionTimestamp":null,"accountEnabled":false,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"country":null,"creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"Test + Buddy","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"mail":null,"mailNickname":"testbuddy","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":[],"passwordPolicies":null,"passwordProfile":{"password":null,"forceChangePasswordNextLogin":true,"enforceChangePasswordPolicy":false},"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2017-11-03T17:39:18Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"usageLocation":null,"userIdentities":[],"userPrincipalName":"testbuddy#TEST@myaddomain.onmicrosoft.com","userType":"Member"}]}'} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] content-length: ['1368'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Wed, 01 Nov 2017 18:27:29 GMT'] - duration: ['559467'] + date: ['Fri, 03 Nov 2017 17:39:20 GMT'] + duration: ['668921'] expires: ['-1'] - ocp-aad-diagnostics-server-name: [DBkxAUtc39ZvuCNWglbQ4rJ9IJ8Cx3hNqz0KjpmFlzw=] - ocp-aad-session-key: [h7HBf5L6rC5tQA0pzXzHzwCn_64D-bjDYze1pKwPxFtEnkaBDabxJ8Xj5JR-PqwOedGzkS5RclUBHjbNWYZdYEy8mixbtbNrDp238hqNN5Q2tKjHJEgrlutwDDdlbfMJ8z-69ylQnfDVRDKu4N0W-m4j7f3csypcxE6tC1CYNpLzpi1alNDgMma11Ed6I2w5lmbYQiNksaScSVhy4aI7Iw.498Fwg9PDL4LQsW3xc4P4gKoMZX-OTd3gN1d6R3GpY4] + ocp-aad-diagnostics-server-name: [LY/yJbtWyuhbIWwwzINxuwIEezUchbj+/ceSqG17f24=] + ocp-aad-session-key: [qU4domFJzAO5WY6Jb63o5jYiIBW6RXd0eG9jYpAQg99PLqzmj0lxPuP2U8megGmpVq6EGLyOzVI-foONpw3U_7E8duA78HyIoznZdcOaJBQCBzn358YeSnpv16CF-z0Htpa2jCYlYDvdwWogC_O5CDuNQaUMXQmRDHQq6Bu5C7r8yTicOh76_1cPs4QPQPD2SNKWOLiRr6LakF1gj7hrLQ.-eUebGD7X57v3zCK6DsMestKBTWL3x8y-62BlUQmF68] pragma: [no-cache] - request-id: [2ddaa6a1-b63d-44b2-a030-e260c96f5d62] + request-id: [ffcddc10-59ea-4902-acb2-bbb860ad0144] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] @@ -152,23 +153,23 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://graph.windows.net/myaddomain.onmicrosoft.com/users/9008fa17-a7b1-41e3-84c8-e09dc2c6451e?api-version=1.6 + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/users/7f7eb28f-f395-4c1e-aced-66d0a669fa30?api-version=1.6 response: body: {string: ''} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] dataserviceversion: [1.0;] - date: ['Wed, 01 Nov 2017 18:27:31 GMT'] - duration: ['12128313'] + date: ['Fri, 03 Nov 2017 17:39:20 GMT'] + duration: ['7588196'] expires: ['-1'] - ocp-aad-diagnostics-server-name: [/QkbbxZfyhW9slqPlub3XcBNO9jE7EivLDzFDO23uzo=] - ocp-aad-session-key: [gRQ9KCZD8WKpMDeT70dun0jOEO1HrQ0EVJozukxU340I5lHoiR5f_53K53Q-So_wo-mU_7calaBKVohVR23Gy50GdimgqdA2y-_4IWRDdtflzRjtB6NLe7d7v-oWHvGKaMeI9Q106oBPQVQv43HVkQGNzgLjIvrFPhAL1pzBfWmpWT7GPX8eDoed7YV99sEpB4yAdytFMFYPEE-7x29_MA.wUR2qceqXVF2NtDpPYOWwcqX063tbRrbWbkhqROCPD4] + ocp-aad-diagnostics-server-name: [4nmBIka+RsLYPWKmnmXko5iClI11NQ4Pd4ryRuwNLI4=] + ocp-aad-session-key: [Rl5g9_W0awPUO1R4TOw5_cdJzjWt5x1RTs6PmLLad8GqFTgj8yGCy-7aS5j3EldiRprHhcdoHzQcecYlH2jiZc8cWRH96i2ILrebH8Mb-vJ6aYCssxVqetECd16SeMe6PdLhzpQkhcuS2pffmHccfPSWgS1IYiqQPg-elkXd5Z0S3qA1_kzUgcAiUZsuFVIxe7tnGanCCL7-M2ahxcRFFw.66lbk6bRZ61ZJIsCf-ahiGEkwr-oNhSVj0OTDiZL0fQ] pragma: [no-cache] - request-id: [d3dca2a6-d037-4798-902b-e8ddf6aeeff7] + request-id: [86232cfc-7580-4a74-b9c6-ef27f66b90d8] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] diff --git a/azure-graphrbac/tests/recordings/test_graphrbac.test_groups.yaml b/azure-graphrbac/tests/recordings/test_graphrbac.test_groups.yaml index 192689fa902e..d30627217161 100644 --- a/azure-graphrbac/tests/recordings/test_graphrbac.test_groups.yaml +++ b/azure-graphrbac/tests/recordings/test_graphrbac.test_groups.yaml @@ -1,7 +1,7 @@ interactions: - request: - body: '{"displayName": "pytestgroup_display", "securityEnabled": true, "mailNickname": - "pytestgroup_nickname", "mailEnabled": false}' + body: '{"mailNickname": "pytestgroup_nickname", "securityEnabled": true, "mailEnabled": + false, "displayName": "pytestgroup_display"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -9,26 +9,26 @@ interactions: Content-Length: ['125'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST uri: https://graph.windows.net/myaddomain.onmicrosoft.com/groups?api-version=1.6 response: - body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.Group/@Element","odata.type":"Microsoft.DirectoryServices.Group","objectType":"Group","objectId":"5430d9e1-e14c-4e4a-a057-1792ba6e9207","deletionTimestamp":null,"description":null,"dirSyncEnabled":null,"displayName":"pytestgroup_display","lastDirSyncTime":null,"mail":null,"mailNickname":"pytestgroup_nickname","mailEnabled":false,"onPremisesDomainName":null,"onPremisesNetBiosName":null,"onPremisesSamAccountName":null,"onPremisesSecurityIdentifier":null,"provisioningErrors":[],"proxyAddresses":[],"securityEnabled":true}'} + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.Group/@Element","odata.type":"Microsoft.DirectoryServices.Group","objectType":"Group","objectId":"ac238234-55f1-4edc-92dc-6357d6899b9a","deletionTimestamp":null,"description":null,"dirSyncEnabled":null,"displayName":"pytestgroup_display","lastDirSyncTime":null,"mail":null,"mailNickname":"pytestgroup_nickname","mailEnabled":false,"onPremisesDomainName":null,"onPremisesNetBiosName":null,"onPremisesSamAccountName":null,"onPremisesSecurityIdentifier":null,"provisioningErrors":[],"proxyAddresses":[],"securityEnabled":true}'} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] content-length: ['652'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Wed, 01 Nov 2017 18:37:03 GMT'] - duration: ['2576971'] + date: ['Fri, 03 Nov 2017 17:39:22 GMT'] + duration: ['2930724'] expires: ['-1'] - location: ['https://graph.windows.net/myaddomain.onmicrosoft.com/directoryObjects/5430d9e1-e14c-4e4a-a057-1792ba6e9207/Microsoft.DirectoryServices.Group'] - ocp-aad-diagnostics-server-name: [6jK4XfmKxcTjGA4F0kismAWyAzj8N/JPhQDwsSuw5/U=] - ocp-aad-session-key: [4D4NHBr4Y9OXCdv41KJcYTI0K5VORZgYa-kTzv2gWVfoere4RDFXcvWSALxCWhj5G4eJSs256JseoD-gQY8hipYdu4XaCrGhNrizDWnvJxmBQnJBW2-VQc0PfpB-KZbFMfEtHnExUr0TopKhmguxIqAiF8gagITA8Ap08DeKEIMoCckeAJcwU_BtUFqZawGGbg77GaszsjwnyUFCWL-c3w.owxmZ8cXxCeWe3YaPZMhASCYeRXIaDn0WFQOTzcikQo] + location: ['https://graph.windows.net/myaddomain.onmicrosoft.com/directoryObjects/ac238234-55f1-4edc-92dc-6357d6899b9a/Microsoft.DirectoryServices.Group'] + ocp-aad-diagnostics-server-name: [X7JJrDJZ6J5u3UjAG6S964BeoRqIrZ+Y1/baVMmjI9U=] + ocp-aad-session-key: [4jpT7xE0_4PH1VDu9tnWa1hr131cwe59_9QB6K-L-gav4OxZCshixlUx89hqRsXCCJ_j2tRO5OemmU4bLrhq7NUX2wbnjgHdfiTc5HAlvhpr2TQw2fbB7j3jdu1zRzzdpZOYALjRBweJe_0RIurt5faWVZ9DO7ySC4Om6lkq2hN3w1vV34YbLWdG8ihuL7qj98gIXmHb8_TSTywFoClvLg.Jkiu-6HuC5ufWWFB6e5aJbXGaYRm4EHXF661PwT1g3s] pragma: [no-cache] - request-id: [5d683001-d32b-424d-be50-946644623cc6] + request-id: [3ae9a77a-e6c9-4714-8235-bdead8d070a2] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] @@ -44,25 +44,25 @@ interactions: Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://graph.windows.net/myaddomain.onmicrosoft.com/groups/5430d9e1-e14c-4e4a-a057-1792ba6e9207?api-version=1.6 + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/groups/ac238234-55f1-4edc-92dc-6357d6899b9a?api-version=1.6 response: - body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.Group/@Element","odata.type":"Microsoft.DirectoryServices.Group","objectType":"Group","objectId":"5430d9e1-e14c-4e4a-a057-1792ba6e9207","deletionTimestamp":null,"description":null,"dirSyncEnabled":null,"displayName":"pytestgroup_display","lastDirSyncTime":null,"mail":null,"mailNickname":"pytestgroup_nickname","mailEnabled":false,"onPremisesDomainName":null,"onPremisesNetBiosName":null,"onPremisesSamAccountName":null,"onPremisesSecurityIdentifier":null,"provisioningErrors":[],"proxyAddresses":[],"securityEnabled":true}'} + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.Group/@Element","odata.type":"Microsoft.DirectoryServices.Group","objectType":"Group","objectId":"ac238234-55f1-4edc-92dc-6357d6899b9a","deletionTimestamp":null,"description":null,"dirSyncEnabled":null,"displayName":"pytestgroup_display","lastDirSyncTime":null,"mail":null,"mailNickname":"pytestgroup_nickname","mailEnabled":false,"onPremisesDomainName":null,"onPremisesNetBiosName":null,"onPremisesSamAccountName":null,"onPremisesSecurityIdentifier":null,"provisioningErrors":[],"proxyAddresses":[],"securityEnabled":true}'} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] content-length: ['652'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Wed, 01 Nov 2017 18:37:04 GMT'] - duration: ['567175'] + date: ['Fri, 03 Nov 2017 17:39:22 GMT'] + duration: ['512783'] expires: ['-1'] - ocp-aad-diagnostics-server-name: [1zUcSmQ9yL9uo4nCeJtYPKgXP91dgaA3ctXbiNs0HGs=] - ocp-aad-session-key: [O4YpoiF42PiavLMAcXsXQLCzkUw9Tbf1qphjPqj7ecSkAbKO9u9WN0GDWj5jrcpVEDA3EV8l0BCO9F45S9-ZFD2R6J4DyTOfNgiHHiL9yF-FTTtbDLpgu3b6F4MGxWbHJHnVDvwgRuEuA1XmUIaCiH2cG7bM9m8A4d3kLivNQVpbiBDfepKX8sKfIw2IcJ__O-bx-X3hzfxlII7cFoevAw.0W8QLsR-0oJ2RwaNUomPLVE4kIXm4roMknf80k_P1dU] + ocp-aad-diagnostics-server-name: [gkzsLeMnNX5MBrbEJaZ8vPZibER/4Ly6FEdhXhYlNVM=] + ocp-aad-session-key: [_pkOU8vFV1pTjZrQX-YB_iq56nYF-WcO6VutwVqq2NRsTgI0UAZh7rYTcZoQsDn04rD90KhCzztyJIpBviE8dGiKbSf-IhnqjXX6JK8_Ci61K4ltTL_xqR2TTnYeypLxlTfIklt5J2buB6-f9QTYNpzethV4xrHGZLRvCP42l7IGLfVkOuQMF_JSIx7prw_L2UMg0gaUi51TFfwaDjbbpQ.kWdQOn9jz4N0vH_ZERUPT-BmBaCXG0a_DxWw1kbXl74] pragma: [no-cache] - request-id: [f230f6b0-d5b4-49f8-a5a1-cb00bff4687e] + request-id: [243bf68a-6c55-4e7f-acde-b4e414533de2] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] @@ -78,25 +78,25 @@ interactions: Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET uri: https://graph.windows.net/myaddomain.onmicrosoft.com/groups?$filter=displayName%20eq%20%27pytestgroup_display%27&api-version=1.6 response: - body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.Group","value":[{"odata.type":"Microsoft.DirectoryServices.Group","objectType":"Group","objectId":"5430d9e1-e14c-4e4a-a057-1792ba6e9207","deletionTimestamp":null,"description":null,"dirSyncEnabled":null,"displayName":"pytestgroup_display","lastDirSyncTime":null,"mail":null,"mailNickname":"pytestgroup_nickname","mailEnabled":false,"onPremisesDomainName":null,"onPremisesNetBiosName":null,"onPremisesSamAccountName":null,"onPremisesSecurityIdentifier":null,"provisioningErrors":[],"proxyAddresses":[],"securityEnabled":true}]}'} + body: {string: '{"odata.metadata":"https://graph.windows.net/myaddomain.onmicrosoft.com/$metadata#directoryObjects/Microsoft.DirectoryServices.Group","value":[{"odata.type":"Microsoft.DirectoryServices.Group","objectType":"Group","objectId":"ac238234-55f1-4edc-92dc-6357d6899b9a","deletionTimestamp":null,"description":null,"dirSyncEnabled":null,"displayName":"pytestgroup_display","lastDirSyncTime":null,"mail":null,"mailNickname":"pytestgroup_nickname","mailEnabled":false,"onPremisesDomainName":null,"onPremisesNetBiosName":null,"onPremisesSamAccountName":null,"onPremisesSecurityIdentifier":null,"provisioningErrors":[],"proxyAddresses":[],"securityEnabled":true}]}'} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] content-length: ['655'] content-type: [application/json; odata=minimalmetadata; streaming=true; charset=utf-8] dataserviceversion: [3.0;] - date: ['Wed, 01 Nov 2017 18:37:03 GMT'] - duration: ['986629'] + date: ['Fri, 03 Nov 2017 17:39:23 GMT'] + duration: ['965033'] expires: ['-1'] - ocp-aad-diagnostics-server-name: [h+esbaLTSiS9YLokkl24LFY9a9LP+eEjl6OwhEIXn+4=] - ocp-aad-session-key: [P-WtSvOSpLAnwWT40i9QpHgaHGttHSBzEJUyJeA0LkXrj0Qexe8PKYTu8bIen6Do1isvFtA0Kn4GLMHEx8cXjFJ7cstBj34KiHjJ2ShV21zkttjtE1etf9e0HdUO8ScosWQHDoIuLWZx1PDS0bpcXL4Bc7tis0HIBoZaCWGYEynztf9JL7awQJ4yBYRMZo1b13IGVcrahLUMStdOROdhcw.YwyO_1gubKVjYcggFt-KAx-6iCge_8k-F9JCh-3Cxb8] + ocp-aad-diagnostics-server-name: [EtcWSCm0yJGd3kCZLzFsjeCyL72QJUnSrwuPNHYUd1g=] + ocp-aad-session-key: [qqglIDJtexGeZhqk77tq80sRFhUaMTPx4kE17vBlziRDAUZEGY3IZWEQTHMoKCQlgpz96PA8V7pvBgMXMTN0wvU070UTzxrtyMwSNZ90avECkOCMlgBiqFB70E44iJkidbTG5rc8aPG0NJGE94ti1lX2zUgEBnLVg81uWOrz-TTOGd-O6y65FOkJGlxgBz5uLRB0D4-4AVMv4ftWuxiYCg.3_irHSQGG9i8CpD1Vgyd6Lj6oNLqsW4e947hqVtdhRA] pragma: [no-cache] - request-id: [382e5b69-cb21-4883-9fb5-3110aa0aa8ed] + request-id: [c8ab92e3-9801-49f7-b397-89414ac55425] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] @@ -113,23 +113,23 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 graphrbacmanagementclient/0.32.0 Azure-SDK-For-Python] + msrest_azure/0.4.11 graphrbacmanagementclient/0.33.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://graph.windows.net/myaddomain.onmicrosoft.com/groups/5430d9e1-e14c-4e4a-a057-1792ba6e9207?api-version=1.6 + uri: https://graph.windows.net/myaddomain.onmicrosoft.com/groups/ac238234-55f1-4edc-92dc-6357d6899b9a?api-version=1.6 response: body: {string: ''} headers: access-control-allow-origin: ['*'] cache-control: [no-cache] dataserviceversion: [1.0;] - date: ['Wed, 01 Nov 2017 18:37:05 GMT'] - duration: ['3629414'] + date: ['Fri, 03 Nov 2017 17:39:24 GMT'] + duration: ['11116010'] expires: ['-1'] - ocp-aad-diagnostics-server-name: [j4TfrIcuXv6cz1XEFyVQir6Ee64fZtWPXl/gd62UzeM=] - ocp-aad-session-key: [pEzGLTrFButwFXLd9WqpRppTY-fYRrunDKF4M1jDrijVVdq39DbA8gvKGFHoQj8JmLcSlirjEm2_mkct1s-gh6nPXVRQkwVUKTJ-Dl6LYvQmjf7w6cAdBZdPSdrR-eSbRjvmTQCbGSA29cLNCsjfmbd_taGBVEMzpqzVB-LX1AmukMM72bzDvLRG0bcvbdTc0PwAI9PojrWeAkeRZkni4w.mID-7zWiaS2oOCMsnmdbturLh0Gry5el5TrCsq-EuT0] + ocp-aad-diagnostics-server-name: [UnB1dyVfhwVY3Vs+F9n0MgBThZibCNHiF4I7uellQRo=] + ocp-aad-session-key: [eHp399y8c0f2Wy0Ang0qQ3G-ZoOAozgTDCROVJpra84I2GnawqAgYj7SAEI5OZbtPS8oHMYegEyIO67Qvfdg9wQ16c2xtgkSmAR7QhehTLrLY39YQ9_WqJgqYxAqeeXFkN5_Dm9Kgmxw4WhsXhOWv3KAkq9Cmb8ImpNFeLgv4xYd1JxaND6UBTD6eILvOkS7Dn46Z0XsQwTcT5WNwwZgNQ.i4i1WEHiFwXO9YqcxNk1x1BvW91YHgT0k_mKVFfPW4M] pragma: [no-cache] - request-id: [073e31d0-dfc4-4943-b324-9fd7cb8fd4fa] + request-id: [b53f0aa6-3f0d-4240-a974-fa0070f27c43] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] x-aspnet-version: [4.0.30319] diff --git a/azure-graphrbac/tests/test_graphrbac.py b/azure-graphrbac/tests/test_graphrbac.py index c7262d1f5084..2e9d545f930b 100644 --- a/azure-graphrbac/tests/test_graphrbac.py +++ b/azure-graphrbac/tests/test_graphrbac.py @@ -7,7 +7,7 @@ #-------------------------------------------------------------------------- import unittest -import azure.graphrbac +import azure.graphrbac.models from devtools_testutils import AzureMgmtTestCase @@ -75,12 +75,41 @@ def test_apps_and_sp(self): 'identifier_uris': ['http://pytest_app.org'] }) + user = self.graphrbac_client.users.create( + azure.graphrbac.models.UserCreateParameters( + user_principal_name="testowner@{}".format(self.settings.AD_DOMAIN), + account_enabled=False, + display_name='testowner', + mail_nickname='testowner', + password_profile=azure.graphrbac.models.PasswordProfile( + password='MyStr0ngP4ssword', + force_change_password_next_login=True + ) + ) + ) + + self.graphrbac_client.applications.add_owner( + app.object_id, + "https://graph.windows.net/{}/directoryObjects/{}".format( + self.settings.AD_DOMAIN, + user.object_id + ) + ) + + app_owners = list(self.graphrbac_client.applications.list_owners(app.object_id)) + self.assertEqual(app_owners[0].object_id, user.object_id) + self.assertIsInstance(app_owners[0], azure.graphrbac.models.User) + sp = self.graphrbac_client.service_principals.create({ 'app_id': app.app_id, # Do NOT use app.object_id 'account_enabled': False }) + sp_owners = list(self.graphrbac_client.service_principals.list_owners(sp.object_id)) + + self.graphrbac_client.users.delete(user.object_id) + self.graphrbac_client.service_principals.delete(sp.object_id) self.graphrbac_client.applications.delete(app.object_id)