diff --git a/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/application_insights_management_client.py b/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/application_insights_management_client.py index 200d916f2e80..f093d5df3465 100644 --- a/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/application_insights_management_client.py +++ b/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/application_insights_management_client.py @@ -41,21 +41,16 @@ class ApplicationInsightsManagementClientConfiguration(AzureConfiguration): object` :param subscription_id: The Azure subscription ID. :type subscription_id: str - :param purge_id: In a purge status request, this is the Id of the - operation the status of which is returned. - :type purge_id: str :param str base_url: Service URL """ def __init__( - self, credentials, subscription_id, purge_id, base_url=None): + self, credentials, subscription_id, base_url=None): if credentials is None: raise ValueError("Parameter 'credentials' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") - if purge_id is None: - raise ValueError("Parameter 'purge_id' must not be None.") if not base_url: base_url = 'https://management.azure.com' @@ -66,7 +61,6 @@ def __init__( self.credentials = credentials self.subscription_id = subscription_id - self.purge_id = purge_id class ApplicationInsightsManagementClient(object): @@ -111,16 +105,13 @@ class ApplicationInsightsManagementClient(object): object` :param subscription_id: The Azure subscription ID. :type subscription_id: str - :param purge_id: In a purge status request, this is the Id of the - operation the status of which is returned. - :type purge_id: str :param str base_url: Service URL """ def __init__( - self, credentials, subscription_id, purge_id, base_url=None): + self, credentials, subscription_id, base_url=None): - self.config = ApplicationInsightsManagementClientConfiguration(credentials, subscription_id, purge_id, base_url) + self.config = ApplicationInsightsManagementClientConfiguration(credentials, subscription_id, base_url) self._client = ServiceClient(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} diff --git a/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/operations/components_operations.py b/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/operations/components_operations.py index a42f8cdce579..a8645ec2d1f3 100644 --- a/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/operations/components_operations.py +++ b/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/operations/components_operations.py @@ -514,7 +514,7 @@ def purge( purge.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge'} def get_purge_status( - self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, resource_name, purge_id, custom_headers=None, raw=False, **operation_config): """Gets the status of a previously submitted purge using the id returned from the original purge request. @@ -523,6 +523,9 @@ def get_purge_status( :param resource_name: The name of the Application Insights component resource. :type resource_name: str + :param purge_id: In a purge status request, this is the Id of the + operation the status of which is returned. + :type purge_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 @@ -540,7 +543,7 @@ def get_purge_status( 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), - 'purgeId': self._serialize.url("self.config.purge_id", self.config.purge_id, 'str') + 'purgeId': self._serialize.url("purge_id", purge_id, 'str') } url = self._client.format_url(url, **path_format_arguments)