diff --git a/azure-mgmt-media/azure/mgmt/media/media_services_management_client.py b/azure-mgmt-media/azure/mgmt/media/media_services_management_client.py index ea06f4a0efd6..76b0e7889ce6 100644 --- a/azure-mgmt-media/azure/mgmt/media/media_services_management_client.py +++ b/azure-mgmt-media/azure/mgmt/media/media_services_management_client.py @@ -13,6 +13,7 @@ from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION +from .operations.operations import Operations from .operations.media_service_operations import MediaServiceOperations from . import models @@ -58,6 +59,8 @@ class MediaServicesManagementClient(object): :ivar config: Configuration for client. :vartype config: MediaServicesManagementClientConfiguration + :ivar operations: Operations operations + :vartype operations: azure.mgmt.media.operations.Operations :ivar media_service: MediaService operations :vartype media_service: azure.mgmt.media.operations.MediaServiceOperations @@ -81,5 +84,7 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) + self.operations = Operations( + self._client, self.config, self._serialize, self._deserialize) self.media_service = MediaServiceOperations( self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-media/azure/mgmt/media/models/__init__.py b/azure-mgmt-media/azure/mgmt/media/models/__init__.py index d62cdf1f3ca6..916fc0e2c964 100644 --- a/azure-mgmt-media/azure/mgmt/media/models/__init__.py +++ b/azure-mgmt-media/azure/mgmt/media/models/__init__.py @@ -20,6 +20,9 @@ from .resource import Resource from .service_keys import ServiceKeys from .sync_storage_keys_input import SyncStorageKeysInput +from .operation_display import OperationDisplay +from .operation import Operation +from .operation_list_result import OperationListResult from .media_service_paged import MediaServicePaged from .media_services_management_client_enums import ( ResourceType, @@ -39,6 +42,9 @@ 'Resource', 'ServiceKeys', 'SyncStorageKeysInput', + 'OperationDisplay', + 'Operation', + 'OperationListResult', 'MediaServicePaged', 'ResourceType', 'EntityNameUnavailabilityReason', diff --git a/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_input.py b/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_input.py index 608a6a99c3b4..30c466cbf70d 100644 --- a/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_input.py +++ b/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_input.py @@ -26,7 +26,7 @@ class CheckNameAvailabilityInput(Model): """ _validation = { - 'name': {'required': True, 'max_length': 24, 'min_length': 3, 'pattern': '^[a-z0-9]'}, + 'name': {'required': True, 'max_length': 24, 'min_length': 3, 'pattern': r'^[a-z0-9]{3,24}$'}, 'type': {'required': True, 'constant': True}, } diff --git a/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_output.py b/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_output.py index 8c9ffea55f51..e66059a97a0a 100644 --- a/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_output.py +++ b/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_output.py @@ -27,9 +27,9 @@ class CheckNameAvailabilityOutput(Model): """ _attribute_map = { - 'name_available': {'key': 'NameAvailable', 'type': 'bool'}, - 'reason': {'key': 'Reason', 'type': 'EntityNameUnavailabilityReason'}, - 'message': {'key': 'Message', 'type': 'str'}, + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'EntityNameUnavailabilityReason'}, + 'message': {'key': 'message', 'type': 'str'}, } def __init__(self, name_available=None, reason=None, message=None): diff --git a/azure-mgmt-media/azure/mgmt/media/models/media_service_paged.py b/azure-mgmt-media/azure/mgmt/media/models/media_service_paged.py index 24025cfcfcbb..a579089d3c96 100644 --- a/azure-mgmt-media/azure/mgmt/media/models/media_service_paged.py +++ b/azure-mgmt-media/azure/mgmt/media/models/media_service_paged.py @@ -14,7 +14,7 @@ class MediaServicePaged(Paged): """ - A paging container for iterating over a list of MediaService object + A paging container for iterating over a list of :class:`MediaService ` object """ _attribute_map = { diff --git a/azure-mgmt-media/azure/mgmt/media/models/operation.py b/azure-mgmt-media/azure/mgmt/media/models/operation.py new file mode 100644 index 000000000000..26a2c1f69a53 --- /dev/null +++ b/azure-mgmt-media/azure/mgmt/media/models/operation.py @@ -0,0 +1,39 @@ +# 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 Operation(Model): + """A Media Services REST API operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Operation name: {provider}/{resource}/{operation} + :vartype name: str + :param display: The object that represents the operation. + :type display: :class:`OperationDisplay + ` + """ + + _validation = { + 'name': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, display=None): + self.name = None + self.display = display diff --git a/azure-mgmt-media/azure/mgmt/media/models/operation_display.py b/azure-mgmt-media/azure/mgmt/media/models/operation_display.py new file mode 100644 index 000000000000..72024256415f --- /dev/null +++ b/azure-mgmt-media/azure/mgmt/media/models/operation_display.py @@ -0,0 +1,45 @@ +# 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 OperationDisplay(Model): + """The object that represents the operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provider: Service provider: Microsoft.Media + :vartype provider: str + :ivar resource: Resource on which the operation is performed: Invoice, + etc. + :vartype resource: str + :ivar operation: Operation type: Read, write, delete, etc. + :vartype operation: str + """ + + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + } + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + } + + def __init__(self): + self.provider = None + self.resource = None + self.operation = None diff --git a/azure-mgmt-media/azure/mgmt/media/models/operation_list_result.py b/azure-mgmt-media/azure/mgmt/media/models/operation_list_result.py new file mode 100644 index 000000000000..35e3530df1f0 --- /dev/null +++ b/azure-mgmt-media/azure/mgmt/media/models/operation_list_result.py @@ -0,0 +1,42 @@ +# 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 OperationListResult(Model): + """Result of the request to list Media Services operations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: List of Media Services operations supported by the + Microsoft.Media resource provider. + :vartype value: list of :class:`Operation + ` + :ivar next_link: URL to get the next set of operation list results if + there are any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self): + self.value = None + self.next_link = None diff --git a/azure-mgmt-media/azure/mgmt/media/operations/__init__.py b/azure-mgmt-media/azure/mgmt/media/operations/__init__.py index ba92793e3071..df62d84fe8fc 100644 --- a/azure-mgmt-media/azure/mgmt/media/operations/__init__.py +++ b/azure-mgmt-media/azure/mgmt/media/operations/__init__.py @@ -9,8 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +from .operations import Operations from .media_service_operations import MediaServiceOperations __all__ = [ + 'Operations', 'MediaServiceOperations', ] diff --git a/azure-mgmt-media/azure/mgmt/media/operations/media_service_operations.py b/azure-mgmt-media/azure/mgmt/media/operations/media_service_operations.py index 532da85d9190..b53f8d0e25ad 100644 --- a/azure-mgmt-media/azure/mgmt/media/operations/media_service_operations.py +++ b/azure-mgmt-media/azure/mgmt/media/operations/media_service_operations.py @@ -9,8 +9,8 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.pipeline import ClientRawResponse import uuid +from msrest.pipeline import ClientRawResponse from .. import models @@ -22,7 +22,7 @@ class MediaServiceOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An objec model deserializer. - :ivar api_version: Version of the API to be used with the client request. Current version is 2015-10-01. Constant value: "2015-10-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2015-10-01. Constant value: "2015-10-01". """ def __init__(self, client, config, serializer, deserializer): @@ -46,14 +46,17 @@ def check_name_availability( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`CheckNameAvailabilityOutput + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`CheckNameAvailabilityOutput - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`ApiErrorException` """ - check_name_availability_input = models.CheckNameAvailabilityInput(name=name) + parameters = models.CheckNameAvailabilityInput(name=name) # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Media/CheckNameAvailability' @@ -77,7 +80,7 @@ def check_name_availability( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(check_name_availability_input, 'CheckNameAvailabilityInput') + body_content = self._serialize.body(parameters, 'CheckNameAvailabilityInput') # Construct and send request request = self._client.post(url, query_parameters) @@ -110,6 +113,8 @@ def list_by_resource_group( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`MediaService + ` :rtype: :class:`MediaServicePaged ` :raises: @@ -178,9 +183,11 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`MediaService ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`MediaService ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`ApiErrorException` """ @@ -189,7 +196,7 @@ def get( path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern='^[a-z0-9]') + 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern=r'^[a-z0-9]{3,24}$') } url = self._client.format_url(url, **path_format_arguments) @@ -226,7 +233,7 @@ def get( return deserialized def create( - self, resource_group_name, media_service_name, media_service, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, media_service_name, parameters, custom_headers=None, raw=False, **operation_config): """Creates a Media Service. :param resource_group_name: Name of the resource group within the @@ -234,17 +241,19 @@ def create( :type resource_group_name: str :param media_service_name: Name of the Media Service. :type media_service_name: str - :param media_service: Media Service properties needed for creation. - :type media_service: :class:`MediaService + :param parameters: Media Service properties needed for creation. + :type parameters: :class:`MediaService ` :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: :class:`MediaService ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`MediaService ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`ApiErrorException` """ @@ -253,7 +262,7 @@ def create( path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern='^[a-z0-9]') + 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern=r'^[a-z0-9]{3,24}$') } url = self._client.format_url(url, **path_format_arguments) @@ -272,7 +281,7 @@ def create( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(media_service, 'MediaService') + body_content = self._serialize.body(parameters, 'MediaService') # Construct and send request request = self._client.put(url, query_parameters) @@ -307,9 +316,11 @@ def delete( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true + :return: None or + :class:`ClientRawResponse` if + raw=true + :rtype: None or + :class:`ClientRawResponse` :raises: :class:`ApiErrorException` """ @@ -318,7 +329,7 @@ def delete( path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern='^[a-z0-9]') + 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern=r'^[a-z0-9]{3,24}$') } url = self._client.format_url(url, **path_format_arguments) @@ -348,7 +359,7 @@ def delete( return client_raw_response def update( - self, resource_group_name, media_service_name, media_service, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, media_service_name, parameters, custom_headers=None, raw=False, **operation_config): """Updates a Media Service. :param resource_group_name: Name of the resource group within the @@ -356,17 +367,19 @@ def update( :type resource_group_name: str :param media_service_name: Name of the Media Service. :type media_service_name: str - :param media_service: Media Service properties needed for update. - :type media_service: :class:`MediaService + :param parameters: Media Service properties needed for update. + :type parameters: :class:`MediaService ` :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: :class:`MediaService ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`MediaService ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`ApiErrorException` """ @@ -375,7 +388,7 @@ def update( path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern='^[a-z0-9]') + 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern=r'^[a-z0-9]{3,24}$') } url = self._client.format_url(url, **path_format_arguments) @@ -394,7 +407,7 @@ def update( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(media_service, 'MediaService') + body_content = self._serialize.body(parameters, 'MediaService') # Construct and send request request = self._client.patch(url, query_parameters) @@ -434,21 +447,24 @@ def regenerate_key( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RegenerateKeyOutput + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RegenerateKeyOutput - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`ApiErrorException` """ - regenerate_key_input = models.RegenerateKeyInput(key_type=key_type) + parameters = models.RegenerateKeyInput(key_type=key_type) # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}/regenerateKey' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern='^[a-z0-9]') + 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern=r'^[a-z0-9]{3,24}$') } url = self._client.format_url(url, **path_format_arguments) @@ -467,7 +483,7 @@ def regenerate_key( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(regenerate_key_input, 'RegenerateKeyInput') + body_content = self._serialize.body(parameters, 'RegenerateKeyInput') # Construct and send request request = self._client.post(url, query_parameters) @@ -502,9 +518,11 @@ def list_keys( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :rtype: :class:`ServiceKeys ` - :rtype: :class:`ClientRawResponse` - if raw=true + :return: :class:`ServiceKeys ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ServiceKeys ` or + :class:`ClientRawResponse` :raises: :class:`ApiErrorException` """ @@ -513,7 +531,7 @@ def list_keys( path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern='^[a-z0-9]') + 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern=r'^[a-z0-9]{3,24}$') } url = self._client.format_url(url, **path_format_arguments) @@ -566,20 +584,22 @@ def sync_storage_keys( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true + :return: None or + :class:`ClientRawResponse` if + raw=true + :rtype: None or + :class:`ClientRawResponse` :raises: :class:`ApiErrorException` """ - sync_storage_keys_input = models.SyncStorageKeysInput(id=id) + parameters = models.SyncStorageKeysInput(id=id) # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}/syncStorageKeys' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern='^[a-z0-9]') + 'mediaServiceName': self._serialize.url("media_service_name", media_service_name, 'str', max_length=24, min_length=3, pattern=r'^[a-z0-9]{3,24}$') } url = self._client.format_url(url, **path_format_arguments) @@ -598,7 +618,7 @@ def sync_storage_keys( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(sync_storage_keys_input, 'SyncStorageKeysInput') + body_content = self._serialize.body(parameters, 'SyncStorageKeysInput') # Construct and send request request = self._client.post(url, query_parameters) diff --git a/azure-mgmt-media/azure/mgmt/media/operations/operations.py b/azure-mgmt-media/azure/mgmt/media/operations/operations.py new file mode 100644 index 000000000000..4103715cdf91 --- /dev/null +++ b/azure-mgmt-media/azure/mgmt/media/operations/operations.py @@ -0,0 +1,91 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class Operations(object): + """Operations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Version of the API to be used with the client request. The current version is 2015-10-01. Constant value: "2015-10-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2015-10-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all of the available Media Services REST API operations. + + :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: :class:`OperationListResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`OperationListResult + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/providers/Microsoft.Media/operations' + + # 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 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]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('OperationListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-media/build.json b/azure-mgmt-media/build.json index 791d3af784c2..857492bd2060 100644 --- a/azure-mgmt-media/build.json +++ b/azure-mgmt-media/build.json @@ -1 +1 @@ -{"autorest": "1.1.0", "date": "2017-06-27T21:10:14Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-09-12T17:24:25Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-media/tests/recordings/test_mgmt_media.test_media.yaml b/azure-mgmt-media/tests/recordings/test_mgmt_media.test_media.yaml index 1eafef65cc50..4d656d181f09 100644 --- a/azure-mgmt-media/tests/recordings/test_mgmt_media.test_media.yaml +++ b/azure-mgmt-media/tests/recordings/test_mgmt_media.test_media.yaml @@ -7,70 +7,63 @@ interactions: Connection: [keep-alive] Content-Length: ['52'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.14393-SP0) requests/2.11.1 msrest/0.4.4 - msrest_azure/0.4.3 mediaservicesmanagementclient/0.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 + msrest_azure/0.4.11 mediaservicesmanagementclient/0.1.2 Azure-SDK-For-Python] accept-language: [en-US] - x-ms-client-request-id: [72d3219c-a2d1-11e6-a267-ecb1d756380e] method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/CheckNameAvailability?api-version=2015-10-01 response: - body: {string: '{"NameAvailable":true,"Reason":null,"Message":null}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Fri, 04 Nov 2016 20:58:34 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - X-AspNet-Version: [4.0.30319] - X-Powered-By: [ASP.NET] - content-length: ['51'] - x-ms-client-request-id: [72d3219c-a2d1-11e6-a267-ecb1d756380e] - x-ms-correlation-request-id: [6d8806bd-441c-4908-9eb9-a06c0eedf22c] + body: {string: "{\r\n \"nameAvailable\":true,\"reason\":null,\"message\":null\r\ + \n}"} + headers: + cache-control: [no-cache] + content-length: ['57'] + content-type: [application/json; odata.metadata=minimal] + date: ['Fri, 15 Sep 2017 00:10:06 GMT'] + expires: ['-1'] + odata-version: ['4.0'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [c6edced2-454e-47c9-8c2d-5f5dd035ca9a] - x-ms-routing-request-id: ['NORTHCENTRALUS:20161104T205834Z:6d8806bd-441c-4908-9eb9-a06c0eedf22c'] + x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: - body: '{"properties": {"storageAccounts": [{"isPrimary": true, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Storage/storageAccounts/msmediapttest"}]}, - "location": "westus"}' + body: 'b''{"location": "westus", "properties": {"storageAccounts": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Storage/storageAccounts/msmediapttest8fdd0a81", + "isPrimary": true}]}}''' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['249'] + Content-Length: ['257'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.14393-SP0) requests/2.11.1 msrest/0.4.4 - msrest_azure/0.4.3 mediaservicesmanagementclient/0.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 + msrest_azure/0.4.11 mediaservicesmanagementclient/0.1.2 Azure-SDK-For-Python] accept-language: [en-US] - x-ms-client-request-id: [73602e36-a2d1-11e6-85a6-ecb1d756380e] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81?api-version=2015-10-01 response: - body: {string: "{\r\n \"name\":\"pymedia8fdd0a81\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81\",\"type\":\"Microsoft.Media/mediaservices\",\"tags\":null,\"location\":\"West - US\",\"properties\":{\r\n \"apiEndpoints\":[\r\n {\r\n \"endpoint\":\"https://wamsbayclus001rest-hs.cloudapp.net/api/\",\"majorVersion\":\"2\"\r\n - \ }\r\n ],\"storageAccounts\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Storage/storageAccounts/msmediapttest\",\"isPrimary\":true\r\n - \ }\r\n ]\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Length: ['663'] - Content-Type: [application/json; odata.metadata=minimal] - Date: ['Fri, 04 Nov 2016 20:58:41 GMT'] - Expires: ['-1'] - OData-Version: ['4.0'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-AspNet-Version: [4.0.30319] - X-Powered-By: [ASP.NET] - x-ms-client-request-id: [73602e36-a2d1-11e6-85a6-ecb1d756380e] - x-ms-correlation-request-id: [6c88aa33-8c9d-4a27-9a09-333101556c7f] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - x-ms-request-id: [e3a3bf19-84c8-4865-84f2-bcbeb8304fd2] - x-ms-routing-request-id: ['NORTHCENTRALUS:20161104T205841Z:6c88aa33-8c9d-4a27-9a09-333101556c7f'] + body: {string: "{\r\n \"name\":\"pymedia8fdd0a81\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81\"\ + ,\"type\":\"Microsoft.Media/mediaservices\",\"tags\":null,\"location\":\"\ + West US\",\"properties\":{\r\n \"apiEndpoints\":[\r\n {\r\n \ + \ \"endpoint\":\"https://pymedia8fdd0a81.restv2.westus.media.azure.net/api/\"\ + ,\"majorVersion\":\"2\"\r\n }\r\n ],\"storageAccounts\":[\r\n \ + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Storage/storageAccounts/msmediapttest8fdd0a81\"\ + ,\"isPrimary\":true\r\n }\r\n ]\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['682'] + content-type: [application/json; odata.metadata=minimal] + date: ['Fri, 15 Sep 2017 00:10:23 GMT'] + expires: ['-1'] + odata-version: ['4.0'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] status: {code: 201, message: Created} - request: body: null @@ -79,36 +72,32 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.14393-SP0) requests/2.11.1 msrest/0.4.4 - msrest_azure/0.4.3 mediaservicesmanagementclient/0.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 + msrest_azure/0.4.11 mediaservicesmanagementclient/0.1.2 Azure-SDK-For-Python] accept-language: [en-US] - x-ms-client-request-id: [7740a706-a2d1-11e6-975f-ecb1d756380e] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81?api-version=2015-10-01 response: - body: {string: "{\r\n \"name\":\"pymedia8fdd0a81\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81\",\"type\":\"Microsoft.Media/mediaservices\",\"tags\":null,\"location\":\"West - US\",\"properties\":{\r\n \"apiEndpoints\":[\r\n {\r\n \"endpoint\":\"https://wamsbayclus001rest-hs.cloudapp.net/api/\",\"majorVersion\":\"2\"\r\n - \ }\r\n ],\"storageAccounts\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Storage/storageAccounts/msmediapttest\",\"isPrimary\":true\r\n - \ }\r\n ]\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; odata.metadata=minimal] - Date: ['Fri, 04 Nov 2016 20:58:41 GMT'] - Expires: ['-1'] - OData-Version: ['4.0'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - X-AspNet-Version: [4.0.30319] - X-Powered-By: [ASP.NET] - content-length: ['663'] - x-ms-client-request-id: [7740a706-a2d1-11e6-975f-ecb1d756380e] - x-ms-correlation-request-id: [26b1b974-98b6-45ec-95c2-72c33c400eb0] - x-ms-ratelimit-remaining-subscription-reads: ['14984'] - x-ms-request-id: [4a5a6e66-4169-4cc1-a675-641ed5820a0d] - x-ms-routing-request-id: ['NORTHCENTRALUS:20161104T205842Z:26b1b974-98b6-45ec-95c2-72c33c400eb0'] + body: {string: "{\r\n \"name\":\"pymedia8fdd0a81\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81\"\ + ,\"type\":\"Microsoft.Media/mediaservices\",\"tags\":null,\"location\":\"\ + West US\",\"properties\":{\r\n \"apiEndpoints\":[\r\n {\r\n \ + \ \"endpoint\":\"https://pymedia8fdd0a81.restv2.westus.media.azure.net/api/\"\ + ,\"majorVersion\":\"2\"\r\n }\r\n ],\"storageAccounts\":[\r\n \ + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Storage/storageAccounts/msmediapttest8fdd0a81\"\ + ,\"isPrimary\":true\r\n }\r\n ]\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['682'] + content-type: [application/json; odata.metadata=minimal] + date: ['Fri, 15 Sep 2017 00:10:24 GMT'] + expires: ['-1'] + odata-version: ['4.0'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null @@ -117,36 +106,34 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.14393-SP0) requests/2.11.1 msrest/0.4.4 - msrest_azure/0.4.3 mediaservicesmanagementclient/0.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 + msrest_azure/0.4.11 mediaservicesmanagementclient/0.1.2 Azure-SDK-For-Python] accept-language: [en-US] - x-ms-client-request-id: [77f1a06c-a2d1-11e6-9c33-ecb1d756380e] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices?api-version=2015-10-01 response: - body: {string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"pymedia8fdd0a81\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81\",\"type\":\"Microsoft.Media/mediaservices\",\"tags\":null,\"location\":\"West - US\",\"properties\":{\r\n \"apiEndpoints\":[\r\n {\r\n \"endpoint\":\"https://wamsbayclus001rest-hs.cloudapp.net/api/\",\"majorVersion\":\"2\"\r\n - \ }\r\n ],\"storageAccounts\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Storage/storageAccounts/msmediapttest\",\"isPrimary\":true\r\n - \ }\r\n ]\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; odata.metadata=minimal] - Date: ['Fri, 04 Nov 2016 20:58:43 GMT'] - Expires: ['-1'] - OData-Version: ['4.0'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - X-AspNet-Version: [4.0.30319] - X-Powered-By: [ASP.NET] - content-length: ['739'] - x-ms-client-request-id: [77f1a06c-a2d1-11e6-9c33-ecb1d756380e] - x-ms-correlation-request-id: [8af0f4f8-c412-4f86-9d6a-cece8865d89f] - x-ms-ratelimit-remaining-subscription-reads: ['14988'] - x-ms-request-id: [b5afef77-ae7d-40fe-b1ea-b06e817a63c2] - x-ms-routing-request-id: ['NORTHCENTRALUS:20161104T205843Z:8af0f4f8-c412-4f86-9d6a-cece8865d89f'] + body: {string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"pymedia8fdd0a81\"\ + ,\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81\"\ + ,\"type\":\"Microsoft.Media/mediaservices\",\"tags\":null,\"location\":\"\ + West US\",\"properties\":{\r\n \"apiEndpoints\":[\r\n {\r\n\ + \ \"endpoint\":\"https://pymedia8fdd0a81.restv2.westus.media.azure.net/api/\"\ + ,\"majorVersion\":\"2\"\r\n }\r\n ],\"storageAccounts\":[\r\ + \n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Storage/storageAccounts/msmediapttest8fdd0a81\"\ + ,\"isPrimary\":true\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\ + \n}"} + headers: + cache-control: [no-cache] + content-length: ['758'] + content-type: [application/json; odata.metadata=minimal] + date: ['Fri, 15 Sep 2017 00:10:25 GMT'] + expires: ['-1'] + odata-version: ['4.0'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null @@ -156,33 +143,31 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.14393-SP0) requests/2.11.1 msrest/0.4.4 - msrest_azure/0.4.3 mediaservicesmanagementclient/0.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 + msrest_azure/0.4.11 mediaservicesmanagementclient/0.1.2 Azure-SDK-For-Python] accept-language: [en-US] - x-ms-client-request-id: [7879fcf4-a2d1-11e6-9d32-ecb1d756380e] method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81/listKeys?api-version=2015-10-01 response: - body: {string: "{\r\n \"primaryAuthEndpoint\":\"https://wamsprodglobal001acs.accesscontrol.windows.net/\",\"secondaryAuthEndpoint\":\"https://wamsprodglobal002acs.accesscontrol.windows.net/\",\"primaryKey\":\"eUu/DVT52NA2Sukw/xwf6jzDKDY+UssjRborZBn1lH0=\",\"secondaryKey\":\"OgnBIhLooXnJZlZBYSZ1fBwTi5nbMKRkQAw6CKxYyD8=\",\"scope\":\"urn:windowsazuremediaservices\"\r\n}"} + body: {string: "{\r\n \"primaryAuthEndpoint\":\"https://wamsprodglobal001acs.accesscontrol.windows.net/\"\ + ,\"secondaryAuthEndpoint\":\"https://wamsprodglobal002acs.accesscontrol.windows.net/\"\ + ,\"primaryKey\":\"t8A3FxGAKAeOP6nzTNlZtQSEp4BmyKZsoRZy0KFvpwg=\",\"secondaryKey\"\ + :\"h6sWSR+vokZpcrht0buZ2GhxX+zdberG4thbSjAGh0Q=\",\"scope\":\"urn:windowsazuremediaservices\"\ + \r\n}"} headers: - Cache-Control: [no-cache] - Content-Type: [application/json; odata.metadata=minimal] - Date: ['Fri, 04 Nov 2016 20:58:44 GMT'] - Expires: ['-1'] - OData-Version: ['4.0'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - X-AspNet-Version: [4.0.30319] - X-Powered-By: [ASP.NET] + cache-control: [no-cache] content-length: ['331'] - x-ms-client-request-id: [7879fcf4-a2d1-11e6-9d32-ecb1d756380e] - x-ms-correlation-request-id: [b7b8b52c-8c0a-445b-8c44-7e4c3de92ebb] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - x-ms-request-id: [478e1911-38b9-4cbe-8955-7cf0278233fd] - x-ms-routing-request-id: ['NORTHCENTRALUS:20161104T205844Z:b7b8b52c-8c0a-445b-8c44-7e4c3de92ebb'] + content-type: [application/json; odata.metadata=minimal] + date: ['Fri, 15 Sep 2017 00:10:27 GMT'] + expires: ['-1'] + odata-version: ['4.0'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: '{"keyType": "Primary"}' @@ -192,65 +177,54 @@ interactions: Connection: [keep-alive] Content-Length: ['22'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.14393-SP0) requests/2.11.1 msrest/0.4.4 - msrest_azure/0.4.3 mediaservicesmanagementclient/0.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 + msrest_azure/0.4.11 mediaservicesmanagementclient/0.1.2 Azure-SDK-For-Python] accept-language: [en-US] - x-ms-client-request-id: [794e2070-a2d1-11e6-8908-ecb1d756380e] method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81/regenerateKey?api-version=2015-10-01 response: - body: {string: "{\r\n \"key\":\"Ldp8wyUnARv50+ITBpTKmMrLgd032l12tUKUxImE2CE=\"\r\n}"} + body: {string: "{\r\n \"key\":\"VEqxecdkM6nlKLwDwppwpuXAN+QOmlKbSjaP1fCLq0E=\"\ + \r\n}"} headers: - Cache-Control: [no-cache] - Content-Type: [application/json; odata.metadata=minimal] - Date: ['Fri, 04 Nov 2016 20:58:45 GMT'] - Expires: ['-1'] - OData-Version: ['4.0'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - X-AspNet-Version: [4.0.30319] - X-Powered-By: [ASP.NET] + cache-control: [no-cache] content-length: ['60'] - x-ms-client-request-id: [794e2070-a2d1-11e6-8908-ecb1d756380e] - x-ms-correlation-request-id: [444f62fc-01af-4a92-b946-8b603ef5763b] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - x-ms-request-id: [62251c29-4569-4b56-af2a-0c98a044adb7] - x-ms-routing-request-id: ['NORTHCENTRALUS:20161104T205845Z:444f62fc-01af-4a92-b946-8b603ef5763b'] + content-type: [application/json; odata.metadata=minimal] + date: ['Fri, 15 Sep 2017 00:10:27 GMT'] + expires: ['-1'] + odata-version: ['4.0'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: - body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Storage/storageAccounts/msmediapttest"}' + body: 'b''{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Storage/storageAccounts/msmediapttest8fdd0a81"}''' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['169'] + Content-Length: ['177'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.14393-SP0) requests/2.11.1 msrest/0.4.4 - msrest_azure/0.4.3 mediaservicesmanagementclient/0.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 + msrest_azure/0.4.11 mediaservicesmanagementclient/0.1.2 Azure-SDK-For-Python] accept-language: [en-US] - x-ms-client-request-id: [7a0655b0-a2d1-11e6-be2d-ecb1d756380e] method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81/syncStorageKeys?api-version=2015-10-01 response: body: {string: ''} headers: - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Fri, 04 Nov 2016 20:58:47 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-AspNet-Version: [4.0.30319] - X-Powered-By: [ASP.NET] - x-ms-client-request-id: [7a0655b0-a2d1-11e6-be2d-ecb1d756380e] - x-ms-correlation-request-id: [43403709-c2dd-45fc-9851-be165f1f8aaf] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - x-ms-request-id: [16a1c85a-e98e-474d-ba05-d036e7adf32c] - x-ms-routing-request-id: ['NORTHCENTRALUS:20161104T205847Z:43403709-c2dd-45fc-9851-be165f1f8aaf'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 00:10:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: body: null @@ -260,28 +234,22 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.14393-SP0) requests/2.11.1 msrest/0.4.4 - msrest_azure/0.4.3 mediaservicesmanagementclient/0.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 + msrest_azure/0.4.11 mediaservicesmanagementclient/0.1.2 Azure-SDK-For-Python] accept-language: [en-US] - x-ms-client-request-id: [7ad955f4-a2d1-11e6-ac93-ecb1d756380e] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_media_test_media8fdd0a81/providers/Microsoft.Media/mediaservices/pymedia8fdd0a81?api-version=2015-10-01 response: body: {string: ''} headers: - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Fri, 04 Nov 2016 20:58:50 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-AspNet-Version: [4.0.30319] - X-Powered-By: [ASP.NET] - x-ms-client-request-id: [7ad955f4-a2d1-11e6-ac93-ecb1d756380e] - x-ms-correlation-request-id: [d71be27b-61f0-4bfe-8605-a62c2be63803] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 00:10:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [a5629cb3-014f-4bdb-ad09-90a8b51a79eb] - x-ms-routing-request-id: ['NORTHCENTRALUS:20161104T205850Z:d71be27b-61f0-4bfe-8605-a62c2be63803'] + x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1