diff --git a/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md b/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md index 386ccaf509b6..1a0d3344992a 100644 --- a/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md +++ b/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md @@ -1,5 +1,26 @@ # Release History +## 11.0.0 (2021-03-29) + +**Features** + + - Model ManagedRuleSetDefinition has a new parameter system_data + - Model Resource has a new parameter system_data + +**Breaking changes** + + - Operation SecurityPoliciesOperations.begin_patch has a new signature + - Operation RuleSetsOperations.begin_create has a new signature + - Model RouteUpdatePropertiesParameters no longer has parameter optimization_type + - Model CustomerCertificateParameters no longer has parameter thumbprint + - Model CustomerCertificateParameters no longer has parameter subject + - Model CustomerCertificateParameters no longer has parameter expiration_date + - Model RouteProperties no longer has parameter optimization_type + - Model Route no longer has parameter optimization_type + - Model RouteUpdateParameters no longer has parameter optimization_type + - Operation LogAnalyticsOperations.get_log_analytics_metrics has a new signature + - Model ManagedCertificateParameters has a new signature + ## 10.0.0 (2021-01-19) **Features** diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_metadata.json b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_metadata.json new file mode 100644 index 000000000000..383e91c8a295 --- /dev/null +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_metadata.json @@ -0,0 +1,118 @@ +{ + "chosen_version": "2020-09-01", + "total_api_version_list": ["2020-09-01"], + "client": { + "name": "CdnManagementClient", + "filename": "_cdn_management_client", + "description": "Cdn Management Client.", + "base_url": "\u0027https://management.azure.com\u0027", + "custom_base_url": null, + "azure_arm": true, + "has_lro_operations": true, + "client_side_validation": false + }, + "global_parameters": { + "sync": { + "credential": { + "signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "Azure Subscription ID.", + "docstring_type": "str", + "required": true + } + }, + "async": { + "credential": { + "signature": "credential, # type: \"AsyncTokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "Azure Subscription ID.", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, subscription_id" + }, + "config": { + "credential": true, + "credential_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null + }, + "operation_groups": { + "profiles": "ProfilesOperations", + "endpoints": "EndpointsOperations", + "origins": "OriginsOperations", + "origin_groups": "OriginGroupsOperations", + "custom_domains": "CustomDomainsOperations", + "resource_usage": "ResourceUsageOperations", + "operations": "Operations", + "edge_nodes": "EdgeNodesOperations", + "afd_profiles": "AFDProfilesOperations", + "afd_custom_domains": "AFDCustomDomainsOperations", + "afd_endpoints": "AFDEndpointsOperations", + "afd_origin_groups": "AFDOriginGroupsOperations", + "afd_origins": "AFDOriginsOperations", + "routes": "RoutesOperations", + "rule_sets": "RuleSetsOperations", + "rules": "RulesOperations", + "security_policies": "SecurityPoliciesOperations", + "secrets": "SecretsOperations", + "validate": "ValidateOperations", + "log_analytics": "LogAnalyticsOperations", + "policies": "PoliciesOperations", + "managed_rule_sets": "ManagedRuleSetsOperations" + }, + "operation_mixins": { + "check_name_availability" : { + "sync": { + "signature": "def check_name_availability(\n self,\n check_name_availability_input, # type: \"_models.CheckNameAvailabilityInput\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Check the availability of a resource name. This is needed for resources where name is globally\nunique, such as a CDN endpoint.\n\n:param check_name_availability_input: Input to check.\n:type check_name_availability_input: ~azure.mgmt.cdn.models.CheckNameAvailabilityInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CheckNameAvailabilityOutput, or the result of cls(response)\n:rtype: ~azure.mgmt.cdn.models.CheckNameAvailabilityOutput\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def check_name_availability(\n self,\n check_name_availability_input: \"_models.CheckNameAvailabilityInput\",\n **kwargs\n) -\u003e \"_models.CheckNameAvailabilityOutput\":\n", + "doc": "\"\"\"Check the availability of a resource name. This is needed for resources where name is globally\nunique, such as a CDN endpoint.\n\n:param check_name_availability_input: Input to check.\n:type check_name_availability_input: ~azure.mgmt.cdn.models.CheckNameAvailabilityInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CheckNameAvailabilityOutput, or the result of cls(response)\n:rtype: ~azure.mgmt.cdn.models.CheckNameAvailabilityOutput\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "check_name_availability_input" + }, + "check_name_availability_with_subscription" : { + "sync": { + "signature": "def check_name_availability_with_subscription(\n self,\n check_name_availability_input, # type: \"_models.CheckNameAvailabilityInput\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Check the availability of a resource name. This is needed for resources where name is globally\nunique, such as a CDN endpoint.\n\n:param check_name_availability_input: Input to check.\n:type check_name_availability_input: ~azure.mgmt.cdn.models.CheckNameAvailabilityInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CheckNameAvailabilityOutput, or the result of cls(response)\n:rtype: ~azure.mgmt.cdn.models.CheckNameAvailabilityOutput\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def check_name_availability_with_subscription(\n self,\n check_name_availability_input: \"_models.CheckNameAvailabilityInput\",\n **kwargs\n) -\u003e \"_models.CheckNameAvailabilityOutput\":\n", + "doc": "\"\"\"Check the availability of a resource name. This is needed for resources where name is globally\nunique, such as a CDN endpoint.\n\n:param check_name_availability_input: Input to check.\n:type check_name_availability_input: ~azure.mgmt.cdn.models.CheckNameAvailabilityInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CheckNameAvailabilityOutput, or the result of cls(response)\n:rtype: ~azure.mgmt.cdn.models.CheckNameAvailabilityOutput\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "check_name_availability_input" + }, + "validate_probe" : { + "sync": { + "signature": "def validate_probe(\n self,\n validate_probe_input, # type: \"_models.ValidateProbeInput\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Check if the probe path is a valid path and the file can be accessed. Probe path is the path to\na file hosted on the origin server to help accelerate the delivery of dynamic content via the\nCDN endpoint. This path is relative to the origin path specified in the endpoint configuration.\n\n:param validate_probe_input: Input to check.\n:type validate_probe_input: ~azure.mgmt.cdn.models.ValidateProbeInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: ValidateProbeOutput, or the result of cls(response)\n:rtype: ~azure.mgmt.cdn.models.ValidateProbeOutput\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def validate_probe(\n self,\n validate_probe_input: \"_models.ValidateProbeInput\",\n **kwargs\n) -\u003e \"_models.ValidateProbeOutput\":\n", + "doc": "\"\"\"Check if the probe path is a valid path and the file can be accessed. Probe path is the path to\na file hosted on the origin server to help accelerate the delivery of dynamic content via the\nCDN endpoint. This path is relative to the origin path specified in the endpoint configuration.\n\n:param validate_probe_input: Input to check.\n:type validate_probe_input: ~azure.mgmt.cdn.models.ValidateProbeInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: ValidateProbeOutput, or the result of cls(response)\n:rtype: ~azure.mgmt.cdn.models.ValidateProbeOutput\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "validate_probe_input" + } + }, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Optional\", \"TypeVar\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Optional\", \"TypeVar\"]}}}" +} \ No newline at end of file diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_version.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_version.py index 9f8bb24bdd99..ae876c37f272 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_version.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "10.0.0" +VERSION = "11.0.0" diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_custom_domains_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_custom_domains_operations.py index 391dbbc9f4e6..7003721bb73b 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_custom_domains_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_custom_domains_operations.py @@ -225,7 +225,7 @@ async def _create_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -236,6 +236,9 @@ async def _create_initial( if response.status_code == 201: deserialized = self._deserialize('AFDDomain', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('AFDDomain', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -491,7 +494,7 @@ async def _delete_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_endpoints_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_endpoints_operations.py index 8db3165829c0..bb9f129209a1 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_endpoints_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_endpoints_operations.py @@ -225,7 +225,7 @@ async def _create_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -236,6 +236,9 @@ async def _create_initial( if response.status_code == 201: deserialized = self._deserialize('AFDEndpoint', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('AFDEndpoint', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -495,7 +498,7 @@ async def _delete_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_origin_groups_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_origin_groups_operations.py index ce983d33d32c..feef02f7a4bd 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_origin_groups_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_origin_groups_operations.py @@ -224,7 +224,7 @@ async def _create_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -235,6 +235,9 @@ async def _create_initial( if response.status_code == 201: deserialized = self._deserialize('AFDOriginGroup', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('AFDOriginGroup', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -490,7 +493,7 @@ async def _delete_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_origins_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_origins_operations.py index b8bc243c5ed5..03e3cf733365 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_origins_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_afd_origins_operations.py @@ -234,7 +234,7 @@ async def _create_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -245,6 +245,9 @@ async def _create_initial( if response.status_code == 201: deserialized = self._deserialize('AFDOrigin', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('AFDOrigin', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -514,7 +517,7 @@ async def _delete_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_log_analytics_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_log_analytics_operations.py index 96d531608213..c6d2f59635c3 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_log_analytics_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_log_analytics_operations.py @@ -45,15 +45,15 @@ async def get_log_analytics_metrics( self, resource_group_name: str, profile_name: str, - metrics: List[Union[str, "_models.Get4ItemsItem"]], + metrics: List[Union[str, "_models.LogMetric"]], date_time_begin: datetime.datetime, date_time_end: datetime.datetime, - granularity: Union[str, "_models.Enum31"], - group_by: Optional[List[Union[str, "_models.Get8ItemsItem"]]] = None, + granularity: Union[str, "_models.LogMetricsGranularity"], + custom_domains: List[str], + protocols: List[str], + group_by: Optional[List[Union[str, "_models.LogMetricsGroupBy"]]] = None, continents: Optional[List[str]] = None, country_or_regions: Optional[List[str]] = None, - custom_domains: Optional[List[str]] = None, - protocols: Optional[List[str]] = None, **kwargs ) -> "_models.MetricsResponse": """Get log report for AFD profile. @@ -63,23 +63,23 @@ async def get_log_analytics_metrics( :param profile_name: Name of the CDN profile which is unique within the resource group. :type profile_name: str :param metrics: - :type metrics: list[str or ~azure.mgmt.cdn.models.Get4ItemsItem] + :type metrics: list[str or ~azure.mgmt.cdn.models.LogMetric] :param date_time_begin: :type date_time_begin: ~datetime.datetime :param date_time_end: :type date_time_end: ~datetime.datetime :param granularity: - :type granularity: str or ~azure.mgmt.cdn.models.Enum31 + :type granularity: str or ~azure.mgmt.cdn.models.LogMetricsGranularity + :param custom_domains: + :type custom_domains: list[str] + :param protocols: + :type protocols: list[str] :param group_by: - :type group_by: list[str or ~azure.mgmt.cdn.models.Get8ItemsItem] + :type group_by: list[str or ~azure.mgmt.cdn.models.LogMetricsGroupBy] :param continents: :type continents: list[str] :param country_or_regions: :type country_or_regions: list[str] - :param custom_domains: - :type custom_domains: list[str] - :param protocols: - :type protocols: list[str] :keyword callable cls: A custom type or function that will be passed the direct response :return: MetricsResponse, or the result of cls(response) :rtype: ~azure.mgmt.cdn.models.MetricsResponse @@ -105,20 +105,18 @@ async def get_log_analytics_metrics( # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - query_parameters['metrics'] = self._serialize.query("metrics", metrics, '[str]', div=',') + query_parameters['metrics'] = [self._serialize.query("metrics", q, 'str') if q is not None else '' for q in metrics] query_parameters['dateTimeBegin'] = self._serialize.query("date_time_begin", date_time_begin, 'iso-8601') query_parameters['dateTimeEnd'] = self._serialize.query("date_time_end", date_time_end, 'iso-8601') query_parameters['granularity'] = self._serialize.query("granularity", granularity, 'str') if group_by is not None: - query_parameters['groupBy'] = self._serialize.query("group_by", group_by, '[str]', div=',') + query_parameters['groupBy'] = [self._serialize.query("group_by", q, 'str') if q is not None else '' for q in group_by] if continents is not None: - query_parameters['continents'] = self._serialize.query("continents", continents, '[str]', div=',') + query_parameters['continents'] = [self._serialize.query("continents", q, 'str') if q is not None else '' for q in continents] if country_or_regions is not None: - query_parameters['countryOrRegions'] = self._serialize.query("country_or_regions", country_or_regions, '[str]', div=',') - if custom_domains is not None: - query_parameters['customDomains'] = self._serialize.query("custom_domains", custom_domains, '[str]', div=',') - if protocols is not None: - query_parameters['protocols'] = self._serialize.query("protocols", protocols, '[str]', div=',') + query_parameters['countryOrRegions'] = [self._serialize.query("country_or_regions", q, 'str') if q is not None else '' for q in country_or_regions] + query_parameters['customDomains'] = [self._serialize.query("custom_domains", q, 'str') if q is not None else '' for q in custom_domains] + query_parameters['protocols'] = [self._serialize.query("protocols", q, 'str') if q is not None else '' for q in protocols] # Construct headers header_parameters = {} # type: Dict[str, Any] @@ -145,9 +143,9 @@ async def get_log_analytics_rankings( self, resource_group_name: str, profile_name: str, - rankings: List[Union[str, "_models.Enum35"]], - metrics: List[Union[str, "_models.Get5ItemsItem"]], - max_ranking: float, + rankings: List[Union[str, "_models.LogRanking"]], + metrics: List[Union[str, "_models.LogRankingMetric"]], + max_ranking: int, date_time_begin: datetime.datetime, date_time_end: datetime.datetime, custom_domains: Optional[List[str]] = None, @@ -160,11 +158,11 @@ async def get_log_analytics_rankings( :param profile_name: Name of the CDN profile which is unique within the resource group. :type profile_name: str :param rankings: - :type rankings: list[str or ~azure.mgmt.cdn.models.Enum35] + :type rankings: list[str or ~azure.mgmt.cdn.models.LogRanking] :param metrics: - :type metrics: list[str or ~azure.mgmt.cdn.models.Get5ItemsItem] + :type metrics: list[str or ~azure.mgmt.cdn.models.LogRankingMetric] :param max_ranking: - :type max_ranking: float + :type max_ranking: int :param date_time_begin: :type date_time_begin: ~datetime.datetime :param date_time_end: @@ -196,13 +194,13 @@ async def get_log_analytics_rankings( # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - query_parameters['rankings'] = self._serialize.query("rankings", rankings, '[str]', div=',') - query_parameters['metrics'] = self._serialize.query("metrics", metrics, '[str]', div=',') - query_parameters['maxRanking'] = self._serialize.query("max_ranking", max_ranking, 'float') + query_parameters['rankings'] = [self._serialize.query("rankings", q, 'str') if q is not None else '' for q in rankings] + query_parameters['metrics'] = [self._serialize.query("metrics", q, 'str') if q is not None else '' for q in metrics] + query_parameters['maxRanking'] = self._serialize.query("max_ranking", max_ranking, 'int') query_parameters['dateTimeBegin'] = self._serialize.query("date_time_begin", date_time_begin, 'iso-8601') query_parameters['dateTimeEnd'] = self._serialize.query("date_time_end", date_time_end, 'iso-8601') if custom_domains is not None: - query_parameters['customDomains'] = self._serialize.query("custom_domains", custom_domains, '[str]', div=',') + query_parameters['customDomains'] = [self._serialize.query("custom_domains", q, 'str') if q is not None else '' for q in custom_domains] # Construct headers header_parameters = {} # type: Dict[str, Any] @@ -347,13 +345,13 @@ async def get_waf_log_analytics_metrics( self, resource_group_name: str, profile_name: str, - metrics: List[str], + metrics: List[Union[str, "_models.WafMetric"]], date_time_begin: datetime.datetime, date_time_end: datetime.datetime, - granularity: Union[str, "_models.Enum37"], - actions: Optional[List[Union[str, "_models.Enum38"]]] = None, - group_by: Optional[List[Union[str, "_models.Enum39"]]] = None, - rule_types: Optional[List[Union[str, "_models.Enum40"]]] = None, + granularity: Union[str, "_models.WafGranularity"], + actions: Optional[List[Union[str, "_models.WafAction"]]] = None, + group_by: Optional[List[Union[str, "_models.WafRankingGroupBy"]]] = None, + rule_types: Optional[List[Union[str, "_models.WafRuleType"]]] = None, **kwargs ) -> "_models.WafMetricsResponse": """Get Waf related log analytics report for AFD profile. @@ -363,19 +361,19 @@ async def get_waf_log_analytics_metrics( :param profile_name: Name of the CDN profile which is unique within the resource group. :type profile_name: str :param metrics: - :type metrics: list[str] + :type metrics: list[str or ~azure.mgmt.cdn.models.WafMetric] :param date_time_begin: :type date_time_begin: ~datetime.datetime :param date_time_end: :type date_time_end: ~datetime.datetime :param granularity: - :type granularity: str or ~azure.mgmt.cdn.models.Enum37 + :type granularity: str or ~azure.mgmt.cdn.models.WafGranularity :param actions: - :type actions: list[str or ~azure.mgmt.cdn.models.Enum38] + :type actions: list[str or ~azure.mgmt.cdn.models.WafAction] :param group_by: - :type group_by: list[str or ~azure.mgmt.cdn.models.Enum39] + :type group_by: list[str or ~azure.mgmt.cdn.models.WafRankingGroupBy] :param rule_types: - :type rule_types: list[str or ~azure.mgmt.cdn.models.Enum40] + :type rule_types: list[str or ~azure.mgmt.cdn.models.WafRuleType] :keyword callable cls: A custom type or function that will be passed the direct response :return: WafMetricsResponse, or the result of cls(response) :rtype: ~azure.mgmt.cdn.models.WafMetricsResponse @@ -401,16 +399,16 @@ async def get_waf_log_analytics_metrics( # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - query_parameters['metrics'] = self._serialize.query("metrics", metrics, '[str]', div=',') + query_parameters['metrics'] = [self._serialize.query("metrics", q, 'str') if q is not None else '' for q in metrics] query_parameters['dateTimeBegin'] = self._serialize.query("date_time_begin", date_time_begin, 'iso-8601') query_parameters['dateTimeEnd'] = self._serialize.query("date_time_end", date_time_end, 'iso-8601') query_parameters['granularity'] = self._serialize.query("granularity", granularity, 'str') if actions is not None: - query_parameters['actions'] = self._serialize.query("actions", actions, '[str]', div=',') + query_parameters['actions'] = [self._serialize.query("actions", q, 'str') if q is not None else '' for q in actions] if group_by is not None: - query_parameters['groupBy'] = self._serialize.query("group_by", group_by, '[str]', div=',') + query_parameters['groupBy'] = [self._serialize.query("group_by", q, 'str') if q is not None else '' for q in group_by] if rule_types is not None: - query_parameters['ruleTypes'] = self._serialize.query("rule_types", rule_types, '[str]', div=',') + query_parameters['ruleTypes'] = [self._serialize.query("rule_types", q, 'str') if q is not None else '' for q in rule_types] # Construct headers header_parameters = {} # type: Dict[str, Any] @@ -437,13 +435,13 @@ async def get_waf_log_analytics_rankings( self, resource_group_name: str, profile_name: str, - metrics: List[str], + metrics: List[Union[str, "_models.WafMetric"]], date_time_begin: datetime.datetime, date_time_end: datetime.datetime, - max_ranking: float, - rankings: List[Union[str, "_models.Enum42"]], - actions: Optional[List[Union[str, "_models.Enum43"]]] = None, - rule_types: Optional[List[Union[str, "_models.Enum44"]]] = None, + max_ranking: int, + rankings: List[Union[str, "_models.WafRankingType"]], + actions: Optional[List[Union[str, "_models.WafAction"]]] = None, + rule_types: Optional[List[Union[str, "_models.WafRuleType"]]] = None, **kwargs ) -> "_models.WafRankingsResponse": """Get WAF log analytics charts for AFD profile. @@ -453,19 +451,19 @@ async def get_waf_log_analytics_rankings( :param profile_name: Name of the CDN profile which is unique within the resource group. :type profile_name: str :param metrics: - :type metrics: list[str] + :type metrics: list[str or ~azure.mgmt.cdn.models.WafMetric] :param date_time_begin: :type date_time_begin: ~datetime.datetime :param date_time_end: :type date_time_end: ~datetime.datetime :param max_ranking: - :type max_ranking: float + :type max_ranking: int :param rankings: - :type rankings: list[str or ~azure.mgmt.cdn.models.Enum42] + :type rankings: list[str or ~azure.mgmt.cdn.models.WafRankingType] :param actions: - :type actions: list[str or ~azure.mgmt.cdn.models.Enum43] + :type actions: list[str or ~azure.mgmt.cdn.models.WafAction] :param rule_types: - :type rule_types: list[str or ~azure.mgmt.cdn.models.Enum44] + :type rule_types: list[str or ~azure.mgmt.cdn.models.WafRuleType] :keyword callable cls: A custom type or function that will be passed the direct response :return: WafRankingsResponse, or the result of cls(response) :rtype: ~azure.mgmt.cdn.models.WafRankingsResponse @@ -491,15 +489,15 @@ async def get_waf_log_analytics_rankings( # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - query_parameters['metrics'] = self._serialize.query("metrics", metrics, '[str]', div=',') + query_parameters['metrics'] = [self._serialize.query("metrics", q, 'str') if q is not None else '' for q in metrics] query_parameters['dateTimeBegin'] = self._serialize.query("date_time_begin", date_time_begin, 'iso-8601') query_parameters['dateTimeEnd'] = self._serialize.query("date_time_end", date_time_end, 'iso-8601') - query_parameters['maxRanking'] = self._serialize.query("max_ranking", max_ranking, 'float') - query_parameters['rankings'] = self._serialize.query("rankings", rankings, '[str]', div=',') + query_parameters['maxRanking'] = self._serialize.query("max_ranking", max_ranking, 'int') + query_parameters['rankings'] = [self._serialize.query("rankings", q, 'str') if q is not None else '' for q in rankings] if actions is not None: - query_parameters['actions'] = self._serialize.query("actions", actions, '[str]', div=',') + query_parameters['actions'] = [self._serialize.query("actions", q, 'str') if q is not None else '' for q in actions] if rule_types is not None: - query_parameters['ruleTypes'] = self._serialize.query("rule_types", rule_types, '[str]', div=',') + query_parameters['ruleTypes'] = [self._serialize.query("rule_types", q, 'str') if q is not None else '' for q in rule_types] # Construct headers header_parameters = {} # type: Dict[str, Any] diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_routes_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_routes_operations.py index 6b664b4b88ce..9a6f742b53d3 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_routes_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_routes_operations.py @@ -235,7 +235,7 @@ async def _create_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -246,6 +246,9 @@ async def _create_initial( if response.status_code == 201: deserialized = self._deserialize('Route', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('Route', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -517,7 +520,7 @@ async def _delete_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_rule_sets_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_rule_sets_operations.py index f09eaf880fb6..1ea7a78b877d 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_rule_sets_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_rule_sets_operations.py @@ -187,7 +187,6 @@ async def _create_initial( resource_group_name: str, profile_name: str, rule_set_name: str, - rule_set: "_models.RuleSet", **kwargs ) -> "_models.RuleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.RuleSet"] @@ -196,7 +195,6 @@ async def _create_initial( } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-09-01" - content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL @@ -215,17 +213,13 @@ async def _create_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(rule_set, 'RuleSet') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + request = self._client.put(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -236,6 +230,9 @@ async def _create_initial( if response.status_code == 201: deserialized = self._deserialize('RuleSet', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('RuleSet', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -247,7 +244,6 @@ async def begin_create( resource_group_name: str, profile_name: str, rule_set_name: str, - rule_set: "_models.RuleSet", **kwargs ) -> AsyncLROPoller["_models.RuleSet"]: """Creates a new rule set within the specified profile. @@ -258,8 +254,6 @@ async def begin_create( :type profile_name: str :param rule_set_name: Name of the rule set under the profile which is unique globally. :type rule_set_name: str - :param rule_set: RuleSet properties. - :type rule_set: ~azure.mgmt.cdn.models.RuleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -282,7 +276,6 @@ async def begin_create( resource_group_name=resource_group_name, profile_name=profile_name, rule_set_name=rule_set_name, - rule_set=rule_set, cls=lambda x,y,z: x, **kwargs ) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_rules_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_rules_operations.py index a60be825443d..78e90becd401 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_rules_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_rules_operations.py @@ -234,7 +234,7 @@ async def _create_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -245,6 +245,9 @@ async def _create_initial( if response.status_code == 201: deserialized = self._deserialize('Rule', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('Rule', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -514,7 +517,7 @@ async def _delete_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_secrets_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_secrets_operations.py index 53a4a930c6ae..aeb5d3cfa5de 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_secrets_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_secrets_operations.py @@ -224,7 +224,7 @@ async def _create_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -235,6 +235,9 @@ async def _create_initial( if response.status_code == 201: deserialized = self._deserialize('Secret', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('Secret', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -490,7 +493,7 @@ async def _delete_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_security_policies_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_security_policies_operations.py index 0a8d3076ce35..bad11f55a082 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_security_policies_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_security_policies_operations.py @@ -224,7 +224,7 @@ async def _create_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -235,6 +235,9 @@ async def _create_initial( if response.status_code == 201: deserialized = self._deserialize('SecurityPolicy', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('SecurityPolicy', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -322,7 +325,7 @@ async def _patch_initial( resource_group_name: str, profile_name: str, security_policy_name: str, - security_policy_parameters: "_models.SecurityPolicyWebApplicationFirewallParameters", + security_policy_properties: "_models.SecurityPolicyProperties", **kwargs ) -> "_models.SecurityPolicy": cls = kwargs.pop('cls', None) # type: ClsType["_models.SecurityPolicy"] @@ -354,7 +357,7 @@ async def _patch_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(security_policy_parameters, 'SecurityPolicyWebApplicationFirewallParameters') + body_content = self._serialize.body(security_policy_properties, 'SecurityPolicyProperties') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -382,7 +385,7 @@ async def begin_patch( resource_group_name: str, profile_name: str, security_policy_name: str, - security_policy_parameters: "_models.SecurityPolicyWebApplicationFirewallParameters", + security_policy_properties: "_models.SecurityPolicyProperties", **kwargs ) -> AsyncLROPoller["_models.SecurityPolicy"]: """Updates an existing Secret within a profile. @@ -393,8 +396,8 @@ async def begin_patch( :type profile_name: str :param security_policy_name: Name of the security policy under the profile. :type security_policy_name: str - :param security_policy_parameters: Security policy update properties. - :type security_policy_parameters: ~azure.mgmt.cdn.models.SecurityPolicyWebApplicationFirewallParameters + :param security_policy_properties: Security policy update properties. + :type security_policy_properties: ~azure.mgmt.cdn.models.SecurityPolicyProperties :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -417,7 +420,7 @@ async def begin_patch( resource_group_name=resource_group_name, profile_name=profile_name, security_policy_name=security_policy_name, - security_policy_parameters=security_policy_parameters, + security_policy_properties=security_policy_properties, cls=lambda x,y,z: x, **kwargs ) @@ -490,7 +493,7 @@ async def _delete_initial( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/__init__.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/__init__.py index 39d2f308db6a..ad3c0ac6c758 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/__init__.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/__init__.py @@ -439,6 +439,7 @@ AfdCertificateType, AfdMinimumTlsVersion, AfdProvisioningState, + AfdQueryStringCachingBehavior, Algorithm, CacheBehavior, CacheType, @@ -456,21 +457,9 @@ DomainValidationState, EnabledState, EndpointResourceState, - Enum31, - Enum35, - Enum37, - Enum38, - Enum39, - Enum40, - Enum42, - Enum43, - Enum44, - Enum47, + Enum46, ForwardingProtocol, GeoFilterActions, - Get4ItemsItem, - Get5ItemsItem, - Get8ItemsItem, HeaderAction, HealthProbeRequestType, HttpVersionOperator, @@ -479,6 +468,11 @@ IsDeviceMatchConditionParametersMatchValuesItem, IsDeviceOperator, LinkToDefaultDomain, + LogMetric, + LogMetricsGranularity, + LogMetricsGroupBy, + LogRanking, + LogRankingMetric, ManagedRuleEnabledState, MatchProcessingBehavior, MatchVariable, @@ -524,7 +518,13 @@ UrlPathOperator, UsageUnit, ValidateSecretType, + WafAction, + WafGranularity, + WafMetric, WafMetricsResponseGranularity, + WafRankingGroupBy, + WafRankingType, + WafRuleType, ) __all__ = [ @@ -745,6 +745,7 @@ 'AfdCertificateType', 'AfdMinimumTlsVersion', 'AfdProvisioningState', + 'AfdQueryStringCachingBehavior', 'Algorithm', 'CacheBehavior', 'CacheType', @@ -762,21 +763,9 @@ 'DomainValidationState', 'EnabledState', 'EndpointResourceState', - 'Enum31', - 'Enum35', - 'Enum37', - 'Enum38', - 'Enum39', - 'Enum40', - 'Enum42', - 'Enum43', - 'Enum44', - 'Enum47', + 'Enum46', 'ForwardingProtocol', 'GeoFilterActions', - 'Get4ItemsItem', - 'Get5ItemsItem', - 'Get8ItemsItem', 'HeaderAction', 'HealthProbeRequestType', 'HttpVersionOperator', @@ -785,6 +774,11 @@ 'IsDeviceMatchConditionParametersMatchValuesItem', 'IsDeviceOperator', 'LinkToDefaultDomain', + 'LogMetric', + 'LogMetricsGranularity', + 'LogMetricsGroupBy', + 'LogRanking', + 'LogRankingMetric', 'ManagedRuleEnabledState', 'MatchProcessingBehavior', 'MatchVariable', @@ -830,5 +824,11 @@ 'UrlPathOperator', 'UsageUnit', 'ValidateSecretType', + 'WafAction', + 'WafGranularity', + 'WafMetric', 'WafMetricsResponseGranularity', + 'WafRankingGroupBy', + 'WafRankingType', + 'WafRuleType', ] diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_cdn_management_client_enums.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_cdn_management_client_enums.py index b2b6e5d987b5..eda9072cd6d8 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_cdn_management_client_enums.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_cdn_management_client_enums.py @@ -66,6 +66,16 @@ class AfdProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): DELETING = "Deleting" CREATING = "Creating" +class AfdQueryStringCachingBehavior(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Defines how CDN caches requests that include query strings. You can ignore any query strings + when caching, bypass caching to prevent requests that contain query strings from being cached, + or cache every request with a unique URL. + """ + + IGNORE_QUERY_STRING = "IgnoreQueryString" + USE_QUERY_STRING = "UseQueryString" + NOT_SET = "NotSet" + class Algorithm(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Algorithm to use for URL signing """ @@ -221,69 +231,7 @@ class EndpointResourceState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)) STOPPED = "Stopped" STOPPING = "Stopping" -class Enum31(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - PT5_M = "PT5M" - PT1_H = "PT1H" - P1_D = "P1D" - -class Enum35(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - URL = "url" - REFERRER = "referrer" - BROWSER = "browser" - USER_AGENT = "userAgent" - COUNTRY_OR_REGION = "countryOrRegion" - -class Enum37(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - PT5_M = "PT5M" - PT1_H = "PT1H" - P1_D = "P1D" - -class Enum38(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - ALLOW = "allow" - BLOCK = "block" - LOG = "log" - REDIRECT = "redirect" - -class Enum39(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - HTTP_STATUS_CODE = "httpStatusCode" - CUSTOM_DOMAIN = "customDomain" - -class Enum40(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - MANAGED = "managed" - CUSTOM = "custom" - BOT = "bot" - -class Enum42(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - ACTION = "action" - RULE_GROUP = "ruleGroup" - RULE_ID = "ruleId" - USER_AGENT = "userAgent" - CLIENT_IP = "clientIp" - URL = "url" - COUNTRY = "country" - RULE_TYPE = "ruleType" - -class Enum43(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - ALLOW = "allow" - BLOCK = "block" - LOG = "log" - REDIRECT = "redirect" - -class Enum44(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - MANAGED = "managed" - CUSTOM = "custom" - BOT = "bot" - -class Enum47(with_metaclass(_CaseInsensitiveEnumMeta, int, Enum)): +class Enum46(with_metaclass(_CaseInsensitiveEnumMeta, int, Enum)): """If the action type is block, this field defines the default customer overridable http response status code. """ @@ -309,31 +257,6 @@ class GeoFilterActions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): BLOCK = "Block" ALLOW = "Allow" -class Get4ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - CLIENT_REQUEST_COUNT = "clientRequestCount" - CLIENT_REQUEST_TRAFFIC = "clientRequestTraffic" - CLIENT_REQUEST_BANDWIDTH = "clientRequestBandwidth" - ORIGIN_REQUEST_TRAFFIC = "originRequestTraffic" - ORIGIN_REQUEST_BANDWIDTH = "originRequestBandwidth" - TOTAL_LATENCY = "totalLatency" - -class Get5ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - CLIENT_REQUEST_COUNT = "clientRequestCount" - CLIENT_REQUEST_TRAFFIC = "clientRequestTraffic" - CLIENT_REQUEST_BANDWIDTH = "clientRequestBandwidth" - ORIGIN_REQUEST_TRAFFIC = "originRequestTraffic" - ORIGIN_REQUEST_BANDWIDTH = "originRequestBandwidth" - -class Get8ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - HTTP_STATUS_CODE = "httpStatusCode" - PROTOCOL = "protocol" - CACHE_STATUS = "cacheStatus" - COUNTRY = "country" - CUSTOM_DOMAIN = "customDomain" - class HeaderAction(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Action to perform """ @@ -391,6 +314,46 @@ class LinkToDefaultDomain(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): ENABLED = "Enabled" DISABLED = "Disabled" +class LogMetric(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + CLIENT_REQUEST_COUNT = "clientRequestCount" + CLIENT_REQUEST_TRAFFIC = "clientRequestTraffic" + CLIENT_REQUEST_BANDWIDTH = "clientRequestBandwidth" + ORIGIN_REQUEST_TRAFFIC = "originRequestTraffic" + ORIGIN_REQUEST_BANDWIDTH = "originRequestBandwidth" + TOTAL_LATENCY = "totalLatency" + +class LogMetricsGranularity(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + PT5_M = "PT5M" + PT1_H = "PT1H" + P1_D = "P1D" + +class LogMetricsGroupBy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + HTTP_STATUS_CODE = "httpStatusCode" + PROTOCOL = "protocol" + CACHE_STATUS = "cacheStatus" + COUNTRY = "country" + CUSTOM_DOMAIN = "customDomain" + +class LogRanking(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + URL = "url" + REFERRER = "referrer" + BROWSER = "browser" + USER_AGENT = "userAgent" + COUNTRY_OR_REGION = "countryOrRegion" + +class LogRankingMetric(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + CLIENT_REQUEST_COUNT = "clientRequestCount" + CLIENT_REQUEST_TRAFFIC = "clientRequestTraffic" + HIT_COUNT = "hitCount" + MISS_COUNT = "missCount" + USER_ERROR_COUNT = "userErrorCount" + ERROR_COUNT = "errorCount" + class ManagedRuleEnabledState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. @@ -845,8 +808,47 @@ class ValidateSecretType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): MANAGED_CERTIFICATE = "ManagedCertificate" CUSTOMER_CERTIFICATE = "CustomerCertificate" +class WafAction(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + ALLOW = "allow" + BLOCK = "block" + LOG = "log" + REDIRECT = "redirect" + +class WafGranularity(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + PT5_M = "PT5M" + PT1_H = "PT1H" + P1_D = "P1D" + +class WafMetric(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + CLIENT_REQUEST_COUNT = "clientRequestCount" + class WafMetricsResponseGranularity(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): PT5_M = "PT5M" PT1_H = "PT1H" P1_D = "P1D" + +class WafRankingGroupBy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + HTTP_STATUS_CODE = "httpStatusCode" + CUSTOM_DOMAIN = "customDomain" + +class WafRankingType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + ACTION = "action" + RULE_GROUP = "ruleGroup" + RULE_ID = "ruleId" + USER_AGENT = "userAgent" + CLIENT_IP = "clientIp" + URL = "url" + COUNTRY = "country" + RULE_TYPE = "ruleType" + +class WafRuleType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + MANAGED = "managed" + CUSTOM = "custom" + BOT = "bot" diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models.py index 51fdc195b0f4..521964635f1d 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models.py @@ -15,41 +15,6 @@ class Resource(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. :vartype id: str :ivar name: Resource name. @@ -78,11 +43,14 @@ def __init__( self, **kwargs ): - super(ProxyResource, self).__init__(**kwargs) + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None self.system_data = None -class AFDDomain(ProxyResource): +class AFDDomain(Resource): """Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com. Variables are only populated by the server, and will be ignored when sending a request. @@ -381,29 +349,29 @@ class TrackedResource(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar system_data: Read only system data. - :vartype system_data: ~azure.mgmt.cdn.models.SystemData """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, 'system_data': {'readonly': True}, + 'location': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } def __init__( @@ -413,7 +381,6 @@ def __init__( super(TrackedResource, self).__init__(**kwargs) self.location = kwargs['location'] self.tags = kwargs.get('tags', None) - self.system_data = None class AFDEndpoint(TrackedResource): @@ -429,12 +396,12 @@ class AFDEndpoint(TrackedResource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar system_data: Read only system data. - :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param origin_response_timeout_seconds: Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. :type origin_response_timeout_seconds: int @@ -456,8 +423,8 @@ class AFDEndpoint(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, 'system_data': {'readonly': True}, + 'location': {'required': True}, 'origin_response_timeout_seconds': {'minimum': 16}, 'provisioning_state': {'readonly': True}, 'deployment_status': {'readonly': True}, @@ -468,9 +435,9 @@ class AFDEndpoint(TrackedResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'origin_response_timeout_seconds': {'key': 'properties.originResponseTimeoutSeconds', 'type': 'int'}, 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -650,7 +617,7 @@ def __init__( self.error = kwargs.get('error', None) -class AFDOrigin(ProxyResource): +class AFDOrigin(Resource): """CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. Variables are only populated by the server, and will be ignored when sending a request. @@ -748,7 +715,7 @@ def __init__( self.deployment_status = None -class AFDOriginGroup(ProxyResource): +class AFDOriginGroup(Resource): """AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN. Variables are only populated by the server, and will be ignored when sending a request. @@ -1519,12 +1486,12 @@ class CdnWebApplicationFirewallPolicy(TrackedResource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar system_data: Read only system data. - :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param etag: Gets a unique read-only string that changes whenever the resource is updated. :type etag: str :param sku: Required. The pricing tier (defines a CDN provider, feature list and rate) of the @@ -1553,8 +1520,8 @@ class CdnWebApplicationFirewallPolicy(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, 'system_data': {'readonly': True}, + 'location': {'required': True}, 'sku': {'required': True}, 'endpoint_links': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -1565,9 +1532,9 @@ class CdnWebApplicationFirewallPolicy(TrackedResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'etag': {'key': 'etag', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'policy_settings': {'key': 'properties.policySettings', 'type': 'PolicySettings'}, @@ -1980,7 +1947,7 @@ def __init__( self.transforms = kwargs.get('transforms', None) -class CustomDomain(ProxyResource): +class CustomDomain(Resource): """Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com. Variables are only populated by the server, and will be ignored when sending a request. @@ -2186,17 +2153,11 @@ def __init__( self.type = None # type: Optional[str] -class CustomerCertificateParameters(SecretParameters, Certificate): +class CustomerCertificateParameters(SecretParameters): """Customer Certificate used for https. All required parameters must be populated in order to send to Azure. - :param subject: Subject name in the certificate. - :type subject: str - :param expiration_date: Certificate expiration date. - :type expiration_date: str - :param thumbprint: Certificate thumbprint. - :type thumbprint: str :param type: Required. The type of the Secret to create.Constant filled by server. Possible values include: "UrlSigningKey", "CustomerCertificate", "ManagedCertificate". :type type: str or ~azure.mgmt.cdn.models.SecretType @@ -2218,9 +2179,6 @@ class CustomerCertificateParameters(SecretParameters, Certificate): } _attribute_map = { - 'subject': {'key': 'subject', 'type': 'str'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'str'}, - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'secret_source': {'key': 'secretSource', 'type': 'ResourceReference'}, 'secret_version': {'key': 'secretVersion', 'type': 'str'}, @@ -2234,15 +2192,6 @@ def __init__( **kwargs ): super(CustomerCertificateParameters, self).__init__(**kwargs) - self.subject = kwargs.get('subject', None) - self.expiration_date = kwargs.get('expiration_date', None) - self.thumbprint = kwargs.get('thumbprint', None) - self.type = 'CustomerCertificate' # type: str - self.secret_source = kwargs['secret_source'] - self.secret_version = kwargs.get('secret_version', None) - self.certificate_authority = kwargs.get('certificate_authority', None) - self.use_latest_version = kwargs.get('use_latest_version', None) - self.subject_alternative_names = kwargs.get('subject_alternative_names', None) self.type = 'CustomerCertificate' # type: str self.secret_source = kwargs['secret_source'] self.secret_version = kwargs.get('secret_version', None) @@ -3181,7 +3130,7 @@ def __init__( self.expiration_date = None -class EdgeNode(ProxyResource): +class EdgeNode(Resource): """Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users. Variables are only populated by the server, and will be ignored when sending a request. @@ -3263,12 +3212,12 @@ class Endpoint(TrackedResource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar system_data: Read only system data. - :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param origin_path: A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. :type origin_path: str @@ -3339,8 +3288,8 @@ class Endpoint(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, 'system_data': {'readonly': True}, + 'location': {'required': True}, 'host_name': {'readonly': True}, 'resource_state': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -3350,9 +3299,9 @@ class Endpoint(TrackedResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'origin_path': {'key': 'properties.originPath', 'type': 'str'}, 'content_types_to_compress': {'key': 'properties.contentTypesToCompress', 'type': '[str]'}, 'origin_host_header': {'key': 'properties.originHostHeader', 'type': 'str'}, @@ -4281,17 +4230,11 @@ def __init__( super(ManagedCertificate, self).__init__(**kwargs) -class ManagedCertificateParameters(SecretParameters, Certificate): +class ManagedCertificateParameters(SecretParameters): """Managed Certificate used for https. All required parameters must be populated in order to send to Azure. - :param subject: Subject name in the certificate. - :type subject: str - :param expiration_date: Certificate expiration date. - :type expiration_date: str - :param thumbprint: Certificate thumbprint. - :type thumbprint: str :param type: Required. The type of the Secret to create.Constant filled by server. Possible values include: "UrlSigningKey", "CustomerCertificate", "ManagedCertificate". :type type: str or ~azure.mgmt.cdn.models.SecretType @@ -4302,9 +4245,6 @@ class ManagedCertificateParameters(SecretParameters, Certificate): } _attribute_map = { - 'subject': {'key': 'subject', 'type': 'str'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'str'}, - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } @@ -4313,10 +4253,6 @@ def __init__( **kwargs ): super(ManagedCertificateParameters, self).__init__(**kwargs) - self.subject = kwargs.get('subject', None) - self.expiration_date = kwargs.get('expiration_date', None) - self.thumbprint = kwargs.get('thumbprint', None) - self.type = 'ManagedCertificate' # type: str self.type = 'ManagedCertificate' # type: str @@ -4502,6 +4438,8 @@ class ManagedRuleSetDefinition(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param sku: The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. :type sku: ~azure.mgmt.cdn.models.Sku @@ -4519,6 +4457,7 @@ class ManagedRuleSetDefinition(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'rule_set_type': {'readonly': True}, 'rule_set_version': {'readonly': True}, @@ -4529,6 +4468,7 @@ class ManagedRuleSetDefinition(Resource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'rule_set_type': {'key': 'properties.ruleSetType', 'type': 'str'}, @@ -4828,7 +4768,7 @@ def __init__( self.next_link = kwargs.get('next_link', None) -class Origin(ProxyResource): +class Origin(Resource): """CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. Variables are only populated by the server, and will be ignored when sending a request. @@ -4940,7 +4880,7 @@ def __init__( self.private_endpoint_status = None -class OriginGroup(ProxyResource): +class OriginGroup(Resource): """Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN. Variables are only populated by the server, and will be ignored when sending a request. @@ -5521,7 +5461,7 @@ class PolicySettings(msrest.serialization.Model): :param default_custom_block_response_status_code: If the action type is block, this field defines the default customer overridable http response status code. Possible values include: 200, 403, 405, 406, 429. - :type default_custom_block_response_status_code: str or ~azure.mgmt.cdn.models.Enum47 + :type default_custom_block_response_status_code: str or ~azure.mgmt.cdn.models.Enum46 :param default_custom_block_response_body: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. :type default_custom_block_response_body: str @@ -5616,12 +5556,12 @@ class Profile(TrackedResource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar system_data: Read only system data. - :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param sku: Required. The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile. :type sku: ~azure.mgmt.cdn.models.Sku @@ -5638,8 +5578,8 @@ class Profile(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, 'system_data': {'readonly': True}, + 'location': {'required': True}, 'sku': {'required': True}, 'resource_state': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -5650,9 +5590,9 @@ class Profile(TrackedResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -5718,6 +5658,42 @@ def __init__( self.tags = kwargs.get('tags', None) +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + } + + def __init__( + self, + **kwargs + ): + super(ProxyResource, self).__init__(**kwargs) + + class PurgeParameters(msrest.serialization.Model): """Parameters required for content purge. @@ -6488,7 +6464,7 @@ def __init__( self.http_error_ranges = kwargs.get('http_error_ranges', None) -class Route(ProxyResource): +class Route(Resource): """Friendly Routes name mapping to the any Routes or secret related information. Variables are only populated by the server, and will be ignored when sending a request. @@ -6516,17 +6492,12 @@ class Route(ProxyResource): :type patterns_to_match: list[str] :param compression_settings: compression settings. :type compression_settings: object - :param query_string_caching_behavior: Defines how AzureFrontDoor caches requests that include - query strings. You can ignore any query strings when caching, bypass caching to prevent - requests that contain query strings from being cached, or cache every request with a unique - URL. Possible values include: "IgnoreQueryString", "BypassCaching", "UseQueryString", "NotSet". - :type query_string_caching_behavior: str or ~azure.mgmt.cdn.models.QueryStringCachingBehavior - :param optimization_type: Specifies what scenario the customer wants this AzureFrontDoor - endpoint to optimize for, e.g. Download, Media services. With this information, AzureFrontDoor - can apply scenario driven optimization. Possible values include: "GeneralWebDelivery", - "GeneralMediaStreaming", "VideoOnDemandMediaStreaming", "LargeFileDownload", - "DynamicSiteAcceleration". - :type optimization_type: str or ~azure.mgmt.cdn.models.OptimizationType + :param query_string_caching_behavior: Defines how CDN caches requests that include query + strings. You can ignore any query strings when caching, bypass caching to prevent requests that + contain query strings from being cached, or cache every request with a unique URL. Possible + values include: "IgnoreQueryString", "UseQueryString", "NotSet". + :type query_string_caching_behavior: str or + ~azure.mgmt.cdn.models.AfdQueryStringCachingBehavior :param forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". :type forwarding_protocol: str or ~azure.mgmt.cdn.models.ForwardingProtocol @@ -6570,7 +6541,6 @@ class Route(ProxyResource): 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, 'compression_settings': {'key': 'properties.compressionSettings', 'type': 'object'}, 'query_string_caching_behavior': {'key': 'properties.queryStringCachingBehavior', 'type': 'str'}, - 'optimization_type': {'key': 'properties.optimizationType', 'type': 'str'}, 'forwarding_protocol': {'key': 'properties.forwardingProtocol', 'type': 'str'}, 'link_to_default_domain': {'key': 'properties.linkToDefaultDomain', 'type': 'str'}, 'https_redirect': {'key': 'properties.httpsRedirect', 'type': 'str'}, @@ -6592,7 +6562,6 @@ def __init__( self.patterns_to_match = kwargs.get('patterns_to_match', None) self.compression_settings = kwargs.get('compression_settings', None) self.query_string_caching_behavior = kwargs.get('query_string_caching_behavior', None) - self.optimization_type = kwargs.get('optimization_type', None) self.forwarding_protocol = kwargs.get('forwarding_protocol', None) self.link_to_default_domain = kwargs.get('link_to_default_domain', None) self.https_redirect = kwargs.get('https_redirect', None) @@ -6648,17 +6617,12 @@ class RouteUpdatePropertiesParameters(msrest.serialization.Model): :type patterns_to_match: list[str] :param compression_settings: compression settings. :type compression_settings: object - :param query_string_caching_behavior: Defines how AzureFrontDoor caches requests that include - query strings. You can ignore any query strings when caching, bypass caching to prevent - requests that contain query strings from being cached, or cache every request with a unique - URL. Possible values include: "IgnoreQueryString", "BypassCaching", "UseQueryString", "NotSet". - :type query_string_caching_behavior: str or ~azure.mgmt.cdn.models.QueryStringCachingBehavior - :param optimization_type: Specifies what scenario the customer wants this AzureFrontDoor - endpoint to optimize for, e.g. Download, Media services. With this information, AzureFrontDoor - can apply scenario driven optimization. Possible values include: "GeneralWebDelivery", - "GeneralMediaStreaming", "VideoOnDemandMediaStreaming", "LargeFileDownload", - "DynamicSiteAcceleration". - :type optimization_type: str or ~azure.mgmt.cdn.models.OptimizationType + :param query_string_caching_behavior: Defines how CDN caches requests that include query + strings. You can ignore any query strings when caching, bypass caching to prevent requests that + contain query strings from being cached, or cache every request with a unique URL. Possible + values include: "IgnoreQueryString", "UseQueryString", "NotSet". + :type query_string_caching_behavior: str or + ~azure.mgmt.cdn.models.AfdQueryStringCachingBehavior :param forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". :type forwarding_protocol: str or ~azure.mgmt.cdn.models.ForwardingProtocol @@ -6683,7 +6647,6 @@ class RouteUpdatePropertiesParameters(msrest.serialization.Model): 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, 'compression_settings': {'key': 'compressionSettings', 'type': 'object'}, 'query_string_caching_behavior': {'key': 'queryStringCachingBehavior', 'type': 'str'}, - 'optimization_type': {'key': 'optimizationType', 'type': 'str'}, 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, 'link_to_default_domain': {'key': 'linkToDefaultDomain', 'type': 'str'}, 'https_redirect': {'key': 'httpsRedirect', 'type': 'str'}, @@ -6703,7 +6666,6 @@ def __init__( self.patterns_to_match = kwargs.get('patterns_to_match', None) self.compression_settings = kwargs.get('compression_settings', None) self.query_string_caching_behavior = kwargs.get('query_string_caching_behavior', None) - self.optimization_type = kwargs.get('optimization_type', None) self.forwarding_protocol = kwargs.get('forwarding_protocol', None) self.link_to_default_domain = kwargs.get('link_to_default_domain', None) self.https_redirect = kwargs.get('https_redirect', None) @@ -6730,17 +6692,12 @@ class RouteProperties(AFDStateProperties, RouteUpdatePropertiesParameters): :type patterns_to_match: list[str] :param compression_settings: compression settings. :type compression_settings: object - :param query_string_caching_behavior: Defines how AzureFrontDoor caches requests that include - query strings. You can ignore any query strings when caching, bypass caching to prevent - requests that contain query strings from being cached, or cache every request with a unique - URL. Possible values include: "IgnoreQueryString", "BypassCaching", "UseQueryString", "NotSet". - :type query_string_caching_behavior: str or ~azure.mgmt.cdn.models.QueryStringCachingBehavior - :param optimization_type: Specifies what scenario the customer wants this AzureFrontDoor - endpoint to optimize for, e.g. Download, Media services. With this information, AzureFrontDoor - can apply scenario driven optimization. Possible values include: "GeneralWebDelivery", - "GeneralMediaStreaming", "VideoOnDemandMediaStreaming", "LargeFileDownload", - "DynamicSiteAcceleration". - :type optimization_type: str or ~azure.mgmt.cdn.models.OptimizationType + :param query_string_caching_behavior: Defines how CDN caches requests that include query + strings. You can ignore any query strings when caching, bypass caching to prevent requests that + contain query strings from being cached, or cache every request with a unique URL. Possible + values include: "IgnoreQueryString", "UseQueryString", "NotSet". + :type query_string_caching_behavior: str or + ~azure.mgmt.cdn.models.AfdQueryStringCachingBehavior :param forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". :type forwarding_protocol: str or ~azure.mgmt.cdn.models.ForwardingProtocol @@ -6776,7 +6733,6 @@ class RouteProperties(AFDStateProperties, RouteUpdatePropertiesParameters): 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, 'compression_settings': {'key': 'compressionSettings', 'type': 'object'}, 'query_string_caching_behavior': {'key': 'queryStringCachingBehavior', 'type': 'str'}, - 'optimization_type': {'key': 'optimizationType', 'type': 'str'}, 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, 'link_to_default_domain': {'key': 'linkToDefaultDomain', 'type': 'str'}, 'https_redirect': {'key': 'httpsRedirect', 'type': 'str'}, @@ -6798,7 +6754,6 @@ def __init__( self.patterns_to_match = kwargs.get('patterns_to_match', None) self.compression_settings = kwargs.get('compression_settings', None) self.query_string_caching_behavior = kwargs.get('query_string_caching_behavior', None) - self.optimization_type = kwargs.get('optimization_type', None) self.forwarding_protocol = kwargs.get('forwarding_protocol', None) self.link_to_default_domain = kwargs.get('link_to_default_domain', None) self.https_redirect = kwargs.get('https_redirect', None) @@ -6825,17 +6780,12 @@ class RouteUpdateParameters(msrest.serialization.Model): :type patterns_to_match: list[str] :param compression_settings: compression settings. :type compression_settings: object - :param query_string_caching_behavior: Defines how AzureFrontDoor caches requests that include - query strings. You can ignore any query strings when caching, bypass caching to prevent - requests that contain query strings from being cached, or cache every request with a unique - URL. Possible values include: "IgnoreQueryString", "BypassCaching", "UseQueryString", "NotSet". - :type query_string_caching_behavior: str or ~azure.mgmt.cdn.models.QueryStringCachingBehavior - :param optimization_type: Specifies what scenario the customer wants this AzureFrontDoor - endpoint to optimize for, e.g. Download, Media services. With this information, AzureFrontDoor - can apply scenario driven optimization. Possible values include: "GeneralWebDelivery", - "GeneralMediaStreaming", "VideoOnDemandMediaStreaming", "LargeFileDownload", - "DynamicSiteAcceleration". - :type optimization_type: str or ~azure.mgmt.cdn.models.OptimizationType + :param query_string_caching_behavior: Defines how CDN caches requests that include query + strings. You can ignore any query strings when caching, bypass caching to prevent requests that + contain query strings from being cached, or cache every request with a unique URL. Possible + values include: "IgnoreQueryString", "UseQueryString", "NotSet". + :type query_string_caching_behavior: str or + ~azure.mgmt.cdn.models.AfdQueryStringCachingBehavior :param forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". :type forwarding_protocol: str or ~azure.mgmt.cdn.models.ForwardingProtocol @@ -6860,7 +6810,6 @@ class RouteUpdateParameters(msrest.serialization.Model): 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, 'compression_settings': {'key': 'properties.compressionSettings', 'type': 'object'}, 'query_string_caching_behavior': {'key': 'properties.queryStringCachingBehavior', 'type': 'str'}, - 'optimization_type': {'key': 'properties.optimizationType', 'type': 'str'}, 'forwarding_protocol': {'key': 'properties.forwardingProtocol', 'type': 'str'}, 'link_to_default_domain': {'key': 'properties.linkToDefaultDomain', 'type': 'str'}, 'https_redirect': {'key': 'properties.httpsRedirect', 'type': 'str'}, @@ -6880,14 +6829,13 @@ def __init__( self.patterns_to_match = kwargs.get('patterns_to_match', None) self.compression_settings = kwargs.get('compression_settings', None) self.query_string_caching_behavior = kwargs.get('query_string_caching_behavior', None) - self.optimization_type = kwargs.get('optimization_type', None) self.forwarding_protocol = kwargs.get('forwarding_protocol', None) self.link_to_default_domain = kwargs.get('link_to_default_domain', None) self.https_redirect = kwargs.get('https_redirect', None) self.enabled_state = kwargs.get('enabled_state', None) -class Rule(ProxyResource): +class Rule(Resource): """Friendly Rules name mapping to the any Rules or secret related information. Variables are only populated by the server, and will be ignored when sending a request. @@ -7077,7 +7025,7 @@ def __init__( self.deployment_status = None -class RuleSet(ProxyResource): +class RuleSet(Resource): """Friendly RuleSet name mapping to the any RuleSet or secret related information. Variables are only populated by the server, and will be ignored when sending a request. @@ -7221,7 +7169,7 @@ def __init__( self.match_processing_behavior = kwargs.get('match_processing_behavior', None) -class Secret(ProxyResource): +class Secret(Resource): """Friendly Secret name mapping to the any Secret or secret related information. Variables are only populated by the server, and will be ignored when sending a request. @@ -7336,7 +7284,7 @@ def __init__( self.parameters = kwargs.get('parameters', None) -class SecurityPolicy(ProxyResource): +class SecurityPolicy(Resource): """SecurityPolicy association for AzureFrontDoor profile. Variables are only populated by the server, and will be ignored when sending a request. @@ -7356,7 +7304,7 @@ class SecurityPolicy(ProxyResource): "Failed". :vartype deployment_status: str or ~azure.mgmt.cdn.models.DeploymentStatus :param parameters: object which contains security policy parameters. - :type parameters: ~azure.mgmt.cdn.models.SecurityPolicyWebApplicationFirewallParameters + :type parameters: ~azure.mgmt.cdn.models.SecurityPolicyParameters """ _validation = { @@ -7375,7 +7323,7 @@ class SecurityPolicy(ProxyResource): 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'deployment_status': {'key': 'properties.deploymentStatus', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'SecurityPolicyWebApplicationFirewallParameters'}, + 'parameters': {'key': 'properties.parameters', 'type': 'SecurityPolicyParameters'}, } def __init__( @@ -7462,7 +7410,7 @@ class SecurityPolicyProperties(AFDStateProperties): "Failed". :vartype deployment_status: str or ~azure.mgmt.cdn.models.DeploymentStatus :param parameters: object which contains security policy parameters. - :type parameters: ~azure.mgmt.cdn.models.SecurityPolicyWebApplicationFirewallParameters + :type parameters: ~azure.mgmt.cdn.models.SecurityPolicyParameters """ _validation = { @@ -7473,7 +7421,7 @@ class SecurityPolicyProperties(AFDStateProperties): _attribute_map = { 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'deployment_status': {'key': 'deploymentStatus', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'SecurityPolicyWebApplicationFirewallParameters'}, + 'parameters': {'key': 'parameters', 'type': 'SecurityPolicyParameters'}, } def __init__( diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models_py3.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models_py3.py index d82b8ee6889f..f320c383c29a 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models_py3.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models_py3.py @@ -20,41 +20,6 @@ class Resource(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. :vartype id: str :ivar name: Resource name. @@ -83,11 +48,14 @@ def __init__( self, **kwargs ): - super(ProxyResource, self).__init__(**kwargs) + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None self.system_data = None -class AFDDomain(ProxyResource): +class AFDDomain(Resource): """Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com. Variables are only populated by the server, and will be ignored when sending a request. @@ -406,29 +374,29 @@ class TrackedResource(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar system_data: Read only system data. - :vartype system_data: ~azure.mgmt.cdn.models.SystemData """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, 'system_data': {'readonly': True}, + 'location': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } def __init__( @@ -441,7 +409,6 @@ def __init__( super(TrackedResource, self).__init__(**kwargs) self.location = location self.tags = tags - self.system_data = None class AFDEndpoint(TrackedResource): @@ -457,12 +424,12 @@ class AFDEndpoint(TrackedResource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar system_data: Read only system data. - :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param origin_response_timeout_seconds: Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. :type origin_response_timeout_seconds: int @@ -484,8 +451,8 @@ class AFDEndpoint(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, 'system_data': {'readonly': True}, + 'location': {'required': True}, 'origin_response_timeout_seconds': {'minimum': 16}, 'provisioning_state': {'readonly': True}, 'deployment_status': {'readonly': True}, @@ -496,9 +463,9 @@ class AFDEndpoint(TrackedResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'origin_response_timeout_seconds': {'key': 'properties.originResponseTimeoutSeconds', 'type': 'int'}, 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -697,7 +664,7 @@ def __init__( self.error = error -class AFDOrigin(ProxyResource): +class AFDOrigin(Resource): """CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. Variables are only populated by the server, and will be ignored when sending a request. @@ -805,7 +772,7 @@ def __init__( self.deployment_status = None -class AFDOriginGroup(ProxyResource): +class AFDOriginGroup(Resource): """AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN. Variables are only populated by the server, and will be ignored when sending a request. @@ -1655,12 +1622,12 @@ class CdnWebApplicationFirewallPolicy(TrackedResource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar system_data: Read only system data. - :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param etag: Gets a unique read-only string that changes whenever the resource is updated. :type etag: str :param sku: Required. The pricing tier (defines a CDN provider, feature list and rate) of the @@ -1689,8 +1656,8 @@ class CdnWebApplicationFirewallPolicy(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, 'system_data': {'readonly': True}, + 'location': {'required': True}, 'sku': {'required': True}, 'endpoint_links': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -1701,9 +1668,9 @@ class CdnWebApplicationFirewallPolicy(TrackedResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'etag': {'key': 'etag', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'policy_settings': {'key': 'properties.policySettings', 'type': 'PolicySettings'}, @@ -2165,7 +2132,7 @@ def __init__( self.transforms = transforms -class CustomDomain(ProxyResource): +class CustomDomain(Resource): """Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com. Variables are only populated by the server, and will be ignored when sending a request. @@ -2387,17 +2354,11 @@ def __init__( self.type = None # type: Optional[str] -class CustomerCertificateParameters(SecretParameters, Certificate): +class CustomerCertificateParameters(SecretParameters): """Customer Certificate used for https. All required parameters must be populated in order to send to Azure. - :param subject: Subject name in the certificate. - :type subject: str - :param expiration_date: Certificate expiration date. - :type expiration_date: str - :param thumbprint: Certificate thumbprint. - :type thumbprint: str :param type: Required. The type of the Secret to create.Constant filled by server. Possible values include: "UrlSigningKey", "CustomerCertificate", "ManagedCertificate". :type type: str or ~azure.mgmt.cdn.models.SecretType @@ -2419,9 +2380,6 @@ class CustomerCertificateParameters(SecretParameters, Certificate): } _attribute_map = { - 'subject': {'key': 'subject', 'type': 'str'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'str'}, - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'secret_source': {'key': 'secretSource', 'type': 'ResourceReference'}, 'secret_version': {'key': 'secretVersion', 'type': 'str'}, @@ -2434,25 +2392,13 @@ def __init__( self, *, secret_source: "ResourceReference", - subject: Optional[str] = None, - expiration_date: Optional[str] = None, - thumbprint: Optional[str] = None, secret_version: Optional[str] = None, certificate_authority: Optional[str] = None, use_latest_version: Optional[bool] = None, subject_alternative_names: Optional[List[str]] = None, **kwargs ): - super(CustomerCertificateParameters, self).__init__(subject=subject, expiration_date=expiration_date, thumbprint=thumbprint, **kwargs) - self.subject = subject - self.expiration_date = expiration_date - self.thumbprint = thumbprint - self.type = 'CustomerCertificate' # type: str - self.secret_source = secret_source - self.secret_version = secret_version - self.certificate_authority = certificate_authority - self.use_latest_version = use_latest_version - self.subject_alternative_names = subject_alternative_names + super(CustomerCertificateParameters, self).__init__(**kwargs) self.type = 'CustomerCertificate' # type: str self.secret_source = secret_source self.secret_version = secret_version @@ -3459,7 +3405,7 @@ def __init__( self.expiration_date = None -class EdgeNode(ProxyResource): +class EdgeNode(Resource): """Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users. Variables are only populated by the server, and will be ignored when sending a request. @@ -3545,12 +3491,12 @@ class Endpoint(TrackedResource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar system_data: Read only system data. - :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param origin_path: A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. :type origin_path: str @@ -3621,8 +3567,8 @@ class Endpoint(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, 'system_data': {'readonly': True}, + 'location': {'required': True}, 'host_name': {'readonly': True}, 'resource_state': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -3632,9 +3578,9 @@ class Endpoint(TrackedResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'origin_path': {'key': 'properties.originPath', 'type': 'str'}, 'content_types_to_compress': {'key': 'properties.contentTypesToCompress', 'type': '[str]'}, 'origin_host_header': {'key': 'properties.originHostHeader', 'type': 'str'}, @@ -4690,17 +4636,11 @@ def __init__( super(ManagedCertificate, self).__init__(subject=subject, expiration_date=expiration_date, thumbprint=thumbprint, **kwargs) -class ManagedCertificateParameters(SecretParameters, Certificate): +class ManagedCertificateParameters(SecretParameters): """Managed Certificate used for https. All required parameters must be populated in order to send to Azure. - :param subject: Subject name in the certificate. - :type subject: str - :param expiration_date: Certificate expiration date. - :type expiration_date: str - :param thumbprint: Certificate thumbprint. - :type thumbprint: str :param type: Required. The type of the Secret to create.Constant filled by server. Possible values include: "UrlSigningKey", "CustomerCertificate", "ManagedCertificate". :type type: str or ~azure.mgmt.cdn.models.SecretType @@ -4711,25 +4651,14 @@ class ManagedCertificateParameters(SecretParameters, Certificate): } _attribute_map = { - 'subject': {'key': 'subject', 'type': 'str'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'str'}, - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } def __init__( self, - *, - subject: Optional[str] = None, - expiration_date: Optional[str] = None, - thumbprint: Optional[str] = None, **kwargs ): - super(ManagedCertificateParameters, self).__init__(subject=subject, expiration_date=expiration_date, thumbprint=thumbprint, **kwargs) - self.subject = subject - self.expiration_date = expiration_date - self.thumbprint = thumbprint - self.type = 'ManagedCertificate' # type: str + super(ManagedCertificateParameters, self).__init__(**kwargs) self.type = 'ManagedCertificate' # type: str @@ -4927,6 +4856,8 @@ class ManagedRuleSetDefinition(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param sku: The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. :type sku: ~azure.mgmt.cdn.models.Sku @@ -4944,6 +4875,7 @@ class ManagedRuleSetDefinition(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'rule_set_type': {'readonly': True}, 'rule_set_version': {'readonly': True}, @@ -4954,6 +4886,7 @@ class ManagedRuleSetDefinition(Resource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'rule_set_type': {'key': 'properties.ruleSetType', 'type': 'str'}, @@ -5283,7 +5216,7 @@ def __init__( self.next_link = next_link -class Origin(ProxyResource): +class Origin(Resource): """CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. Variables are only populated by the server, and will be ignored when sending a request. @@ -5407,7 +5340,7 @@ def __init__( self.private_endpoint_status = None -class OriginGroup(ProxyResource): +class OriginGroup(Resource): """Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN. Variables are only populated by the server, and will be ignored when sending a request. @@ -6052,7 +5985,7 @@ class PolicySettings(msrest.serialization.Model): :param default_custom_block_response_status_code: If the action type is block, this field defines the default customer overridable http response status code. Possible values include: 200, 403, 405, 406, 429. - :type default_custom_block_response_status_code: str or ~azure.mgmt.cdn.models.Enum47 + :type default_custom_block_response_status_code: str or ~azure.mgmt.cdn.models.Enum46 :param default_custom_block_response_body: If the action type is block, customer can override the response body. The body must be specified in base64 encoding. :type default_custom_block_response_body: str @@ -6076,7 +6009,7 @@ def __init__( enabled_state: Optional[Union[str, "PolicyEnabledState"]] = None, mode: Optional[Union[str, "PolicyMode"]] = None, default_redirect_url: Optional[str] = None, - default_custom_block_response_status_code: Optional[Union[int, "Enum47"]] = None, + default_custom_block_response_status_code: Optional[Union[int, "Enum46"]] = None, default_custom_block_response_body: Optional[str] = None, **kwargs ): @@ -6159,12 +6092,12 @@ class Profile(TrackedResource): :vartype name: str :ivar type: Resource type. :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param location: Required. Resource location. :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar system_data: Read only system data. - :vartype system_data: ~azure.mgmt.cdn.models.SystemData :param sku: Required. The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile. :type sku: ~azure.mgmt.cdn.models.Sku @@ -6181,8 +6114,8 @@ class Profile(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, 'system_data': {'readonly': True}, + 'location': {'required': True}, 'sku': {'required': True}, 'resource_state': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -6193,9 +6126,9 @@ class Profile(TrackedResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -6269,6 +6202,42 @@ def __init__( self.tags = tags +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar system_data: Read only system data. + :vartype system_data: ~azure.mgmt.cdn.models.SystemData + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + } + + def __init__( + self, + **kwargs + ): + super(ProxyResource, self).__init__(**kwargs) + + class PurgeParameters(msrest.serialization.Model): """Parameters required for content purge. @@ -7124,7 +7093,7 @@ def __init__( self.http_error_ranges = http_error_ranges -class Route(ProxyResource): +class Route(Resource): """Friendly Routes name mapping to the any Routes or secret related information. Variables are only populated by the server, and will be ignored when sending a request. @@ -7152,17 +7121,12 @@ class Route(ProxyResource): :type patterns_to_match: list[str] :param compression_settings: compression settings. :type compression_settings: object - :param query_string_caching_behavior: Defines how AzureFrontDoor caches requests that include - query strings. You can ignore any query strings when caching, bypass caching to prevent - requests that contain query strings from being cached, or cache every request with a unique - URL. Possible values include: "IgnoreQueryString", "BypassCaching", "UseQueryString", "NotSet". - :type query_string_caching_behavior: str or ~azure.mgmt.cdn.models.QueryStringCachingBehavior - :param optimization_type: Specifies what scenario the customer wants this AzureFrontDoor - endpoint to optimize for, e.g. Download, Media services. With this information, AzureFrontDoor - can apply scenario driven optimization. Possible values include: "GeneralWebDelivery", - "GeneralMediaStreaming", "VideoOnDemandMediaStreaming", "LargeFileDownload", - "DynamicSiteAcceleration". - :type optimization_type: str or ~azure.mgmt.cdn.models.OptimizationType + :param query_string_caching_behavior: Defines how CDN caches requests that include query + strings. You can ignore any query strings when caching, bypass caching to prevent requests that + contain query strings from being cached, or cache every request with a unique URL. Possible + values include: "IgnoreQueryString", "UseQueryString", "NotSet". + :type query_string_caching_behavior: str or + ~azure.mgmt.cdn.models.AfdQueryStringCachingBehavior :param forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". :type forwarding_protocol: str or ~azure.mgmt.cdn.models.ForwardingProtocol @@ -7206,7 +7170,6 @@ class Route(ProxyResource): 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, 'compression_settings': {'key': 'properties.compressionSettings', 'type': 'object'}, 'query_string_caching_behavior': {'key': 'properties.queryStringCachingBehavior', 'type': 'str'}, - 'optimization_type': {'key': 'properties.optimizationType', 'type': 'str'}, 'forwarding_protocol': {'key': 'properties.forwardingProtocol', 'type': 'str'}, 'link_to_default_domain': {'key': 'properties.linkToDefaultDomain', 'type': 'str'}, 'https_redirect': {'key': 'properties.httpsRedirect', 'type': 'str'}, @@ -7225,8 +7188,7 @@ def __init__( supported_protocols: Optional[List[Union[str, "AFDEndpointProtocols"]]] = None, patterns_to_match: Optional[List[str]] = None, compression_settings: Optional[object] = None, - query_string_caching_behavior: Optional[Union[str, "QueryStringCachingBehavior"]] = None, - optimization_type: Optional[Union[str, "OptimizationType"]] = None, + query_string_caching_behavior: Optional[Union[str, "AfdQueryStringCachingBehavior"]] = None, forwarding_protocol: Optional[Union[str, "ForwardingProtocol"]] = None, link_to_default_domain: Optional[Union[str, "LinkToDefaultDomain"]] = None, https_redirect: Optional[Union[str, "HttpsRedirect"]] = None, @@ -7242,7 +7204,6 @@ def __init__( self.patterns_to_match = patterns_to_match self.compression_settings = compression_settings self.query_string_caching_behavior = query_string_caching_behavior - self.optimization_type = optimization_type self.forwarding_protocol = forwarding_protocol self.link_to_default_domain = link_to_default_domain self.https_redirect = https_redirect @@ -7300,17 +7261,12 @@ class RouteUpdatePropertiesParameters(msrest.serialization.Model): :type patterns_to_match: list[str] :param compression_settings: compression settings. :type compression_settings: object - :param query_string_caching_behavior: Defines how AzureFrontDoor caches requests that include - query strings. You can ignore any query strings when caching, bypass caching to prevent - requests that contain query strings from being cached, or cache every request with a unique - URL. Possible values include: "IgnoreQueryString", "BypassCaching", "UseQueryString", "NotSet". - :type query_string_caching_behavior: str or ~azure.mgmt.cdn.models.QueryStringCachingBehavior - :param optimization_type: Specifies what scenario the customer wants this AzureFrontDoor - endpoint to optimize for, e.g. Download, Media services. With this information, AzureFrontDoor - can apply scenario driven optimization. Possible values include: "GeneralWebDelivery", - "GeneralMediaStreaming", "VideoOnDemandMediaStreaming", "LargeFileDownload", - "DynamicSiteAcceleration". - :type optimization_type: str or ~azure.mgmt.cdn.models.OptimizationType + :param query_string_caching_behavior: Defines how CDN caches requests that include query + strings. You can ignore any query strings when caching, bypass caching to prevent requests that + contain query strings from being cached, or cache every request with a unique URL. Possible + values include: "IgnoreQueryString", "UseQueryString", "NotSet". + :type query_string_caching_behavior: str or + ~azure.mgmt.cdn.models.AfdQueryStringCachingBehavior :param forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". :type forwarding_protocol: str or ~azure.mgmt.cdn.models.ForwardingProtocol @@ -7335,7 +7291,6 @@ class RouteUpdatePropertiesParameters(msrest.serialization.Model): 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, 'compression_settings': {'key': 'compressionSettings', 'type': 'object'}, 'query_string_caching_behavior': {'key': 'queryStringCachingBehavior', 'type': 'str'}, - 'optimization_type': {'key': 'optimizationType', 'type': 'str'}, 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, 'link_to_default_domain': {'key': 'linkToDefaultDomain', 'type': 'str'}, 'https_redirect': {'key': 'httpsRedirect', 'type': 'str'}, @@ -7352,8 +7307,7 @@ def __init__( supported_protocols: Optional[List[Union[str, "AFDEndpointProtocols"]]] = None, patterns_to_match: Optional[List[str]] = None, compression_settings: Optional[object] = None, - query_string_caching_behavior: Optional[Union[str, "QueryStringCachingBehavior"]] = None, - optimization_type: Optional[Union[str, "OptimizationType"]] = None, + query_string_caching_behavior: Optional[Union[str, "AfdQueryStringCachingBehavior"]] = None, forwarding_protocol: Optional[Union[str, "ForwardingProtocol"]] = None, link_to_default_domain: Optional[Union[str, "LinkToDefaultDomain"]] = None, https_redirect: Optional[Union[str, "HttpsRedirect"]] = None, @@ -7369,7 +7323,6 @@ def __init__( self.patterns_to_match = patterns_to_match self.compression_settings = compression_settings self.query_string_caching_behavior = query_string_caching_behavior - self.optimization_type = optimization_type self.forwarding_protocol = forwarding_protocol self.link_to_default_domain = link_to_default_domain self.https_redirect = https_redirect @@ -7396,17 +7349,12 @@ class RouteProperties(AFDStateProperties, RouteUpdatePropertiesParameters): :type patterns_to_match: list[str] :param compression_settings: compression settings. :type compression_settings: object - :param query_string_caching_behavior: Defines how AzureFrontDoor caches requests that include - query strings. You can ignore any query strings when caching, bypass caching to prevent - requests that contain query strings from being cached, or cache every request with a unique - URL. Possible values include: "IgnoreQueryString", "BypassCaching", "UseQueryString", "NotSet". - :type query_string_caching_behavior: str or ~azure.mgmt.cdn.models.QueryStringCachingBehavior - :param optimization_type: Specifies what scenario the customer wants this AzureFrontDoor - endpoint to optimize for, e.g. Download, Media services. With this information, AzureFrontDoor - can apply scenario driven optimization. Possible values include: "GeneralWebDelivery", - "GeneralMediaStreaming", "VideoOnDemandMediaStreaming", "LargeFileDownload", - "DynamicSiteAcceleration". - :type optimization_type: str or ~azure.mgmt.cdn.models.OptimizationType + :param query_string_caching_behavior: Defines how CDN caches requests that include query + strings. You can ignore any query strings when caching, bypass caching to prevent requests that + contain query strings from being cached, or cache every request with a unique URL. Possible + values include: "IgnoreQueryString", "UseQueryString", "NotSet". + :type query_string_caching_behavior: str or + ~azure.mgmt.cdn.models.AfdQueryStringCachingBehavior :param forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". :type forwarding_protocol: str or ~azure.mgmt.cdn.models.ForwardingProtocol @@ -7442,7 +7390,6 @@ class RouteProperties(AFDStateProperties, RouteUpdatePropertiesParameters): 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, 'compression_settings': {'key': 'compressionSettings', 'type': 'object'}, 'query_string_caching_behavior': {'key': 'queryStringCachingBehavior', 'type': 'str'}, - 'optimization_type': {'key': 'optimizationType', 'type': 'str'}, 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, 'link_to_default_domain': {'key': 'linkToDefaultDomain', 'type': 'str'}, 'https_redirect': {'key': 'httpsRedirect', 'type': 'str'}, @@ -7461,15 +7408,14 @@ def __init__( supported_protocols: Optional[List[Union[str, "AFDEndpointProtocols"]]] = None, patterns_to_match: Optional[List[str]] = None, compression_settings: Optional[object] = None, - query_string_caching_behavior: Optional[Union[str, "QueryStringCachingBehavior"]] = None, - optimization_type: Optional[Union[str, "OptimizationType"]] = None, + query_string_caching_behavior: Optional[Union[str, "AfdQueryStringCachingBehavior"]] = None, forwarding_protocol: Optional[Union[str, "ForwardingProtocol"]] = None, link_to_default_domain: Optional[Union[str, "LinkToDefaultDomain"]] = None, https_redirect: Optional[Union[str, "HttpsRedirect"]] = None, enabled_state: Optional[Union[str, "EnabledState"]] = None, **kwargs ): - super(RouteProperties, self).__init__(custom_domains=custom_domains, origin_group=origin_group, origin_path=origin_path, rule_sets=rule_sets, supported_protocols=supported_protocols, patterns_to_match=patterns_to_match, compression_settings=compression_settings, query_string_caching_behavior=query_string_caching_behavior, optimization_type=optimization_type, forwarding_protocol=forwarding_protocol, link_to_default_domain=link_to_default_domain, https_redirect=https_redirect, enabled_state=enabled_state, **kwargs) + super(RouteProperties, self).__init__(custom_domains=custom_domains, origin_group=origin_group, origin_path=origin_path, rule_sets=rule_sets, supported_protocols=supported_protocols, patterns_to_match=patterns_to_match, compression_settings=compression_settings, query_string_caching_behavior=query_string_caching_behavior, forwarding_protocol=forwarding_protocol, link_to_default_domain=link_to_default_domain, https_redirect=https_redirect, enabled_state=enabled_state, **kwargs) self.custom_domains = custom_domains self.origin_group = origin_group self.origin_path = origin_path @@ -7478,7 +7424,6 @@ def __init__( self.patterns_to_match = patterns_to_match self.compression_settings = compression_settings self.query_string_caching_behavior = query_string_caching_behavior - self.optimization_type = optimization_type self.forwarding_protocol = forwarding_protocol self.link_to_default_domain = link_to_default_domain self.https_redirect = https_redirect @@ -7505,17 +7450,12 @@ class RouteUpdateParameters(msrest.serialization.Model): :type patterns_to_match: list[str] :param compression_settings: compression settings. :type compression_settings: object - :param query_string_caching_behavior: Defines how AzureFrontDoor caches requests that include - query strings. You can ignore any query strings when caching, bypass caching to prevent - requests that contain query strings from being cached, or cache every request with a unique - URL. Possible values include: "IgnoreQueryString", "BypassCaching", "UseQueryString", "NotSet". - :type query_string_caching_behavior: str or ~azure.mgmt.cdn.models.QueryStringCachingBehavior - :param optimization_type: Specifies what scenario the customer wants this AzureFrontDoor - endpoint to optimize for, e.g. Download, Media services. With this information, AzureFrontDoor - can apply scenario driven optimization. Possible values include: "GeneralWebDelivery", - "GeneralMediaStreaming", "VideoOnDemandMediaStreaming", "LargeFileDownload", - "DynamicSiteAcceleration". - :type optimization_type: str or ~azure.mgmt.cdn.models.OptimizationType + :param query_string_caching_behavior: Defines how CDN caches requests that include query + strings. You can ignore any query strings when caching, bypass caching to prevent requests that + contain query strings from being cached, or cache every request with a unique URL. Possible + values include: "IgnoreQueryString", "UseQueryString", "NotSet". + :type query_string_caching_behavior: str or + ~azure.mgmt.cdn.models.AfdQueryStringCachingBehavior :param forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". :type forwarding_protocol: str or ~azure.mgmt.cdn.models.ForwardingProtocol @@ -7540,7 +7480,6 @@ class RouteUpdateParameters(msrest.serialization.Model): 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, 'compression_settings': {'key': 'properties.compressionSettings', 'type': 'object'}, 'query_string_caching_behavior': {'key': 'properties.queryStringCachingBehavior', 'type': 'str'}, - 'optimization_type': {'key': 'properties.optimizationType', 'type': 'str'}, 'forwarding_protocol': {'key': 'properties.forwardingProtocol', 'type': 'str'}, 'link_to_default_domain': {'key': 'properties.linkToDefaultDomain', 'type': 'str'}, 'https_redirect': {'key': 'properties.httpsRedirect', 'type': 'str'}, @@ -7557,8 +7496,7 @@ def __init__( supported_protocols: Optional[List[Union[str, "AFDEndpointProtocols"]]] = None, patterns_to_match: Optional[List[str]] = None, compression_settings: Optional[object] = None, - query_string_caching_behavior: Optional[Union[str, "QueryStringCachingBehavior"]] = None, - optimization_type: Optional[Union[str, "OptimizationType"]] = None, + query_string_caching_behavior: Optional[Union[str, "AfdQueryStringCachingBehavior"]] = None, forwarding_protocol: Optional[Union[str, "ForwardingProtocol"]] = None, link_to_default_domain: Optional[Union[str, "LinkToDefaultDomain"]] = None, https_redirect: Optional[Union[str, "HttpsRedirect"]] = None, @@ -7574,14 +7512,13 @@ def __init__( self.patterns_to_match = patterns_to_match self.compression_settings = compression_settings self.query_string_caching_behavior = query_string_caching_behavior - self.optimization_type = optimization_type self.forwarding_protocol = forwarding_protocol self.link_to_default_domain = link_to_default_domain self.https_redirect = https_redirect self.enabled_state = enabled_state -class Rule(ProxyResource): +class Rule(Resource): """Friendly Rules name mapping to the any Rules or secret related information. Variables are only populated by the server, and will be ignored when sending a request. @@ -7788,7 +7725,7 @@ def __init__( self.deployment_status = None -class RuleSet(ProxyResource): +class RuleSet(Resource): """Friendly RuleSet name mapping to the any RuleSet or secret related information. Variables are only populated by the server, and will be ignored when sending a request. @@ -7939,7 +7876,7 @@ def __init__( self.match_processing_behavior = match_processing_behavior -class Secret(ProxyResource): +class Secret(Resource): """Friendly Secret name mapping to the any Secret or secret related information. Variables are only populated by the server, and will be ignored when sending a request. @@ -8060,7 +7997,7 @@ def __init__( self.parameters = parameters -class SecurityPolicy(ProxyResource): +class SecurityPolicy(Resource): """SecurityPolicy association for AzureFrontDoor profile. Variables are only populated by the server, and will be ignored when sending a request. @@ -8080,7 +8017,7 @@ class SecurityPolicy(ProxyResource): "Failed". :vartype deployment_status: str or ~azure.mgmt.cdn.models.DeploymentStatus :param parameters: object which contains security policy parameters. - :type parameters: ~azure.mgmt.cdn.models.SecurityPolicyWebApplicationFirewallParameters + :type parameters: ~azure.mgmt.cdn.models.SecurityPolicyParameters """ _validation = { @@ -8099,13 +8036,13 @@ class SecurityPolicy(ProxyResource): 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'deployment_status': {'key': 'properties.deploymentStatus', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'SecurityPolicyWebApplicationFirewallParameters'}, + 'parameters': {'key': 'properties.parameters', 'type': 'SecurityPolicyParameters'}, } def __init__( self, *, - parameters: Optional["SecurityPolicyWebApplicationFirewallParameters"] = None, + parameters: Optional["SecurityPolicyParameters"] = None, **kwargs ): super(SecurityPolicy, self).__init__(**kwargs) @@ -8190,7 +8127,7 @@ class SecurityPolicyProperties(AFDStateProperties): "Failed". :vartype deployment_status: str or ~azure.mgmt.cdn.models.DeploymentStatus :param parameters: object which contains security policy parameters. - :type parameters: ~azure.mgmt.cdn.models.SecurityPolicyWebApplicationFirewallParameters + :type parameters: ~azure.mgmt.cdn.models.SecurityPolicyParameters """ _validation = { @@ -8201,13 +8138,13 @@ class SecurityPolicyProperties(AFDStateProperties): _attribute_map = { 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'deployment_status': {'key': 'deploymentStatus', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'SecurityPolicyWebApplicationFirewallParameters'}, + 'parameters': {'key': 'parameters', 'type': 'SecurityPolicyParameters'}, } def __init__( self, *, - parameters: Optional["SecurityPolicyWebApplicationFirewallParameters"] = None, + parameters: Optional["SecurityPolicyParameters"] = None, **kwargs ): super(SecurityPolicyProperties, self).__init__(**kwargs) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_custom_domains_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_custom_domains_operations.py index d37977ba8183..795d446aa117 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_custom_domains_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_custom_domains_operations.py @@ -232,7 +232,7 @@ def _create_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -243,6 +243,9 @@ def _create_initial( if response.status_code == 201: deserialized = self._deserialize('AFDDomain', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('AFDDomain', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -502,7 +505,7 @@ def _delete_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_endpoints_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_endpoints_operations.py index c12d175c7993..97b649eafa9a 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_endpoints_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_endpoints_operations.py @@ -232,7 +232,7 @@ def _create_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -243,6 +243,9 @@ def _create_initial( if response.status_code == 201: deserialized = self._deserialize('AFDEndpoint', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('AFDEndpoint', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -506,7 +509,7 @@ def _delete_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_origin_groups_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_origin_groups_operations.py index 6cc791a4606e..25f1140808b9 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_origin_groups_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_origin_groups_operations.py @@ -231,7 +231,7 @@ def _create_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -242,6 +242,9 @@ def _create_initial( if response.status_code == 201: deserialized = self._deserialize('AFDOriginGroup', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('AFDOriginGroup', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -501,7 +504,7 @@ def _delete_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_origins_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_origins_operations.py index 5ad32886f7d6..98adad806df8 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_origins_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_afd_origins_operations.py @@ -241,7 +241,7 @@ def _create_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -252,6 +252,9 @@ def _create_initial( if response.status_code == 201: deserialized = self._deserialize('AFDOrigin', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('AFDOrigin', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -525,7 +528,7 @@ def _delete_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_log_analytics_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_log_analytics_operations.py index ed22c74aa788..08d4eb3921b1 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_log_analytics_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_log_analytics_operations.py @@ -49,15 +49,15 @@ def get_log_analytics_metrics( self, resource_group_name, # type: str profile_name, # type: str - metrics, # type: List[Union[str, "_models.Get4ItemsItem"]] + metrics, # type: List[Union[str, "_models.LogMetric"]] date_time_begin, # type: datetime.datetime date_time_end, # type: datetime.datetime - granularity, # type: Union[str, "_models.Enum31"] - group_by=None, # type: Optional[List[Union[str, "_models.Get8ItemsItem"]]] + granularity, # type: Union[str, "_models.LogMetricsGranularity"] + custom_domains, # type: List[str] + protocols, # type: List[str] + group_by=None, # type: Optional[List[Union[str, "_models.LogMetricsGroupBy"]]] continents=None, # type: Optional[List[str]] country_or_regions=None, # type: Optional[List[str]] - custom_domains=None, # type: Optional[List[str]] - protocols=None, # type: Optional[List[str]] **kwargs # type: Any ): # type: (...) -> "_models.MetricsResponse" @@ -68,23 +68,23 @@ def get_log_analytics_metrics( :param profile_name: Name of the CDN profile which is unique within the resource group. :type profile_name: str :param metrics: - :type metrics: list[str or ~azure.mgmt.cdn.models.Get4ItemsItem] + :type metrics: list[str or ~azure.mgmt.cdn.models.LogMetric] :param date_time_begin: :type date_time_begin: ~datetime.datetime :param date_time_end: :type date_time_end: ~datetime.datetime :param granularity: - :type granularity: str or ~azure.mgmt.cdn.models.Enum31 + :type granularity: str or ~azure.mgmt.cdn.models.LogMetricsGranularity + :param custom_domains: + :type custom_domains: list[str] + :param protocols: + :type protocols: list[str] :param group_by: - :type group_by: list[str or ~azure.mgmt.cdn.models.Get8ItemsItem] + :type group_by: list[str or ~azure.mgmt.cdn.models.LogMetricsGroupBy] :param continents: :type continents: list[str] :param country_or_regions: :type country_or_regions: list[str] - :param custom_domains: - :type custom_domains: list[str] - :param protocols: - :type protocols: list[str] :keyword callable cls: A custom type or function that will be passed the direct response :return: MetricsResponse, or the result of cls(response) :rtype: ~azure.mgmt.cdn.models.MetricsResponse @@ -110,20 +110,18 @@ def get_log_analytics_metrics( # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - query_parameters['metrics'] = self._serialize.query("metrics", metrics, '[str]', div=',') + query_parameters['metrics'] = [self._serialize.query("metrics", q, 'str') if q is not None else '' for q in metrics] query_parameters['dateTimeBegin'] = self._serialize.query("date_time_begin", date_time_begin, 'iso-8601') query_parameters['dateTimeEnd'] = self._serialize.query("date_time_end", date_time_end, 'iso-8601') query_parameters['granularity'] = self._serialize.query("granularity", granularity, 'str') if group_by is not None: - query_parameters['groupBy'] = self._serialize.query("group_by", group_by, '[str]', div=',') + query_parameters['groupBy'] = [self._serialize.query("group_by", q, 'str') if q is not None else '' for q in group_by] if continents is not None: - query_parameters['continents'] = self._serialize.query("continents", continents, '[str]', div=',') + query_parameters['continents'] = [self._serialize.query("continents", q, 'str') if q is not None else '' for q in continents] if country_or_regions is not None: - query_parameters['countryOrRegions'] = self._serialize.query("country_or_regions", country_or_regions, '[str]', div=',') - if custom_domains is not None: - query_parameters['customDomains'] = self._serialize.query("custom_domains", custom_domains, '[str]', div=',') - if protocols is not None: - query_parameters['protocols'] = self._serialize.query("protocols", protocols, '[str]', div=',') + query_parameters['countryOrRegions'] = [self._serialize.query("country_or_regions", q, 'str') if q is not None else '' for q in country_or_regions] + query_parameters['customDomains'] = [self._serialize.query("custom_domains", q, 'str') if q is not None else '' for q in custom_domains] + query_parameters['protocols'] = [self._serialize.query("protocols", q, 'str') if q is not None else '' for q in protocols] # Construct headers header_parameters = {} # type: Dict[str, Any] @@ -150,9 +148,9 @@ def get_log_analytics_rankings( self, resource_group_name, # type: str profile_name, # type: str - rankings, # type: List[Union[str, "_models.Enum35"]] - metrics, # type: List[Union[str, "_models.Get5ItemsItem"]] - max_ranking, # type: float + rankings, # type: List[Union[str, "_models.LogRanking"]] + metrics, # type: List[Union[str, "_models.LogRankingMetric"]] + max_ranking, # type: int date_time_begin, # type: datetime.datetime date_time_end, # type: datetime.datetime custom_domains=None, # type: Optional[List[str]] @@ -166,11 +164,11 @@ def get_log_analytics_rankings( :param profile_name: Name of the CDN profile which is unique within the resource group. :type profile_name: str :param rankings: - :type rankings: list[str or ~azure.mgmt.cdn.models.Enum35] + :type rankings: list[str or ~azure.mgmt.cdn.models.LogRanking] :param metrics: - :type metrics: list[str or ~azure.mgmt.cdn.models.Get5ItemsItem] + :type metrics: list[str or ~azure.mgmt.cdn.models.LogRankingMetric] :param max_ranking: - :type max_ranking: float + :type max_ranking: int :param date_time_begin: :type date_time_begin: ~datetime.datetime :param date_time_end: @@ -202,13 +200,13 @@ def get_log_analytics_rankings( # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - query_parameters['rankings'] = self._serialize.query("rankings", rankings, '[str]', div=',') - query_parameters['metrics'] = self._serialize.query("metrics", metrics, '[str]', div=',') - query_parameters['maxRanking'] = self._serialize.query("max_ranking", max_ranking, 'float') + query_parameters['rankings'] = [self._serialize.query("rankings", q, 'str') if q is not None else '' for q in rankings] + query_parameters['metrics'] = [self._serialize.query("metrics", q, 'str') if q is not None else '' for q in metrics] + query_parameters['maxRanking'] = self._serialize.query("max_ranking", max_ranking, 'int') query_parameters['dateTimeBegin'] = self._serialize.query("date_time_begin", date_time_begin, 'iso-8601') query_parameters['dateTimeEnd'] = self._serialize.query("date_time_end", date_time_end, 'iso-8601') if custom_domains is not None: - query_parameters['customDomains'] = self._serialize.query("custom_domains", custom_domains, '[str]', div=',') + query_parameters['customDomains'] = [self._serialize.query("custom_domains", q, 'str') if q is not None else '' for q in custom_domains] # Construct headers header_parameters = {} # type: Dict[str, Any] @@ -355,13 +353,13 @@ def get_waf_log_analytics_metrics( self, resource_group_name, # type: str profile_name, # type: str - metrics, # type: List[str] + metrics, # type: List[Union[str, "_models.WafMetric"]] date_time_begin, # type: datetime.datetime date_time_end, # type: datetime.datetime - granularity, # type: Union[str, "_models.Enum37"] - actions=None, # type: Optional[List[Union[str, "_models.Enum38"]]] - group_by=None, # type: Optional[List[Union[str, "_models.Enum39"]]] - rule_types=None, # type: Optional[List[Union[str, "_models.Enum40"]]] + granularity, # type: Union[str, "_models.WafGranularity"] + actions=None, # type: Optional[List[Union[str, "_models.WafAction"]]] + group_by=None, # type: Optional[List[Union[str, "_models.WafRankingGroupBy"]]] + rule_types=None, # type: Optional[List[Union[str, "_models.WafRuleType"]]] **kwargs # type: Any ): # type: (...) -> "_models.WafMetricsResponse" @@ -372,19 +370,19 @@ def get_waf_log_analytics_metrics( :param profile_name: Name of the CDN profile which is unique within the resource group. :type profile_name: str :param metrics: - :type metrics: list[str] + :type metrics: list[str or ~azure.mgmt.cdn.models.WafMetric] :param date_time_begin: :type date_time_begin: ~datetime.datetime :param date_time_end: :type date_time_end: ~datetime.datetime :param granularity: - :type granularity: str or ~azure.mgmt.cdn.models.Enum37 + :type granularity: str or ~azure.mgmt.cdn.models.WafGranularity :param actions: - :type actions: list[str or ~azure.mgmt.cdn.models.Enum38] + :type actions: list[str or ~azure.mgmt.cdn.models.WafAction] :param group_by: - :type group_by: list[str or ~azure.mgmt.cdn.models.Enum39] + :type group_by: list[str or ~azure.mgmt.cdn.models.WafRankingGroupBy] :param rule_types: - :type rule_types: list[str or ~azure.mgmt.cdn.models.Enum40] + :type rule_types: list[str or ~azure.mgmt.cdn.models.WafRuleType] :keyword callable cls: A custom type or function that will be passed the direct response :return: WafMetricsResponse, or the result of cls(response) :rtype: ~azure.mgmt.cdn.models.WafMetricsResponse @@ -410,16 +408,16 @@ def get_waf_log_analytics_metrics( # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - query_parameters['metrics'] = self._serialize.query("metrics", metrics, '[str]', div=',') + query_parameters['metrics'] = [self._serialize.query("metrics", q, 'str') if q is not None else '' for q in metrics] query_parameters['dateTimeBegin'] = self._serialize.query("date_time_begin", date_time_begin, 'iso-8601') query_parameters['dateTimeEnd'] = self._serialize.query("date_time_end", date_time_end, 'iso-8601') query_parameters['granularity'] = self._serialize.query("granularity", granularity, 'str') if actions is not None: - query_parameters['actions'] = self._serialize.query("actions", actions, '[str]', div=',') + query_parameters['actions'] = [self._serialize.query("actions", q, 'str') if q is not None else '' for q in actions] if group_by is not None: - query_parameters['groupBy'] = self._serialize.query("group_by", group_by, '[str]', div=',') + query_parameters['groupBy'] = [self._serialize.query("group_by", q, 'str') if q is not None else '' for q in group_by] if rule_types is not None: - query_parameters['ruleTypes'] = self._serialize.query("rule_types", rule_types, '[str]', div=',') + query_parameters['ruleTypes'] = [self._serialize.query("rule_types", q, 'str') if q is not None else '' for q in rule_types] # Construct headers header_parameters = {} # type: Dict[str, Any] @@ -446,13 +444,13 @@ def get_waf_log_analytics_rankings( self, resource_group_name, # type: str profile_name, # type: str - metrics, # type: List[str] + metrics, # type: List[Union[str, "_models.WafMetric"]] date_time_begin, # type: datetime.datetime date_time_end, # type: datetime.datetime - max_ranking, # type: float - rankings, # type: List[Union[str, "_models.Enum42"]] - actions=None, # type: Optional[List[Union[str, "_models.Enum43"]]] - rule_types=None, # type: Optional[List[Union[str, "_models.Enum44"]]] + max_ranking, # type: int + rankings, # type: List[Union[str, "_models.WafRankingType"]] + actions=None, # type: Optional[List[Union[str, "_models.WafAction"]]] + rule_types=None, # type: Optional[List[Union[str, "_models.WafRuleType"]]] **kwargs # type: Any ): # type: (...) -> "_models.WafRankingsResponse" @@ -463,19 +461,19 @@ def get_waf_log_analytics_rankings( :param profile_name: Name of the CDN profile which is unique within the resource group. :type profile_name: str :param metrics: - :type metrics: list[str] + :type metrics: list[str or ~azure.mgmt.cdn.models.WafMetric] :param date_time_begin: :type date_time_begin: ~datetime.datetime :param date_time_end: :type date_time_end: ~datetime.datetime :param max_ranking: - :type max_ranking: float + :type max_ranking: int :param rankings: - :type rankings: list[str or ~azure.mgmt.cdn.models.Enum42] + :type rankings: list[str or ~azure.mgmt.cdn.models.WafRankingType] :param actions: - :type actions: list[str or ~azure.mgmt.cdn.models.Enum43] + :type actions: list[str or ~azure.mgmt.cdn.models.WafAction] :param rule_types: - :type rule_types: list[str or ~azure.mgmt.cdn.models.Enum44] + :type rule_types: list[str or ~azure.mgmt.cdn.models.WafRuleType] :keyword callable cls: A custom type or function that will be passed the direct response :return: WafRankingsResponse, or the result of cls(response) :rtype: ~azure.mgmt.cdn.models.WafRankingsResponse @@ -501,15 +499,15 @@ def get_waf_log_analytics_rankings( # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - query_parameters['metrics'] = self._serialize.query("metrics", metrics, '[str]', div=',') + query_parameters['metrics'] = [self._serialize.query("metrics", q, 'str') if q is not None else '' for q in metrics] query_parameters['dateTimeBegin'] = self._serialize.query("date_time_begin", date_time_begin, 'iso-8601') query_parameters['dateTimeEnd'] = self._serialize.query("date_time_end", date_time_end, 'iso-8601') - query_parameters['maxRanking'] = self._serialize.query("max_ranking", max_ranking, 'float') - query_parameters['rankings'] = self._serialize.query("rankings", rankings, '[str]', div=',') + query_parameters['maxRanking'] = self._serialize.query("max_ranking", max_ranking, 'int') + query_parameters['rankings'] = [self._serialize.query("rankings", q, 'str') if q is not None else '' for q in rankings] if actions is not None: - query_parameters['actions'] = self._serialize.query("actions", actions, '[str]', div=',') + query_parameters['actions'] = [self._serialize.query("actions", q, 'str') if q is not None else '' for q in actions] if rule_types is not None: - query_parameters['ruleTypes'] = self._serialize.query("rule_types", rule_types, '[str]', div=',') + query_parameters['ruleTypes'] = [self._serialize.query("rule_types", q, 'str') if q is not None else '' for q in rule_types] # Construct headers header_parameters = {} # type: Dict[str, Any] diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_routes_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_routes_operations.py index a031ab86f1a4..f06d3cf5f460 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_routes_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_routes_operations.py @@ -242,7 +242,7 @@ def _create_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -253,6 +253,9 @@ def _create_initial( if response.status_code == 201: deserialized = self._deserialize('Route', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('Route', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -528,7 +531,7 @@ def _delete_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_rule_sets_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_rule_sets_operations.py index cebfd981671f..f21499f59e1c 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_rule_sets_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_rule_sets_operations.py @@ -193,7 +193,6 @@ def _create_initial( resource_group_name, # type: str profile_name, # type: str rule_set_name, # type: str - rule_set, # type: "_models.RuleSet" **kwargs # type: Any ): # type: (...) -> "_models.RuleSet" @@ -203,7 +202,6 @@ def _create_initial( } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-09-01" - content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL @@ -222,17 +220,13 @@ def _create_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(rule_set, 'RuleSet') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + request = self._client.put(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -243,6 +237,9 @@ def _create_initial( if response.status_code == 201: deserialized = self._deserialize('RuleSet', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('RuleSet', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -254,7 +251,6 @@ def begin_create( resource_group_name, # type: str profile_name, # type: str rule_set_name, # type: str - rule_set, # type: "_models.RuleSet" **kwargs # type: Any ): # type: (...) -> LROPoller["_models.RuleSet"] @@ -266,8 +262,6 @@ def begin_create( :type profile_name: str :param rule_set_name: Name of the rule set under the profile which is unique globally. :type rule_set_name: str - :param rule_set: RuleSet properties. - :type rule_set: ~azure.mgmt.cdn.models.RuleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -290,7 +284,6 @@ def begin_create( resource_group_name=resource_group_name, profile_name=profile_name, rule_set_name=rule_set_name, - rule_set=rule_set, cls=lambda x,y,z: x, **kwargs ) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_rules_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_rules_operations.py index dcbffdc2b4c1..3f91bf505a2d 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_rules_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_rules_operations.py @@ -241,7 +241,7 @@ def _create_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -252,6 +252,9 @@ def _create_initial( if response.status_code == 201: deserialized = self._deserialize('Rule', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('Rule', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -525,7 +528,7 @@ def _delete_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_secrets_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_secrets_operations.py index f4b8081306c9..f3a52b4ee1cd 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_secrets_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_secrets_operations.py @@ -231,7 +231,7 @@ def _create_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -242,6 +242,9 @@ def _create_initial( if response.status_code == 201: deserialized = self._deserialize('Secret', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('Secret', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -501,7 +504,7 @@ def _delete_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_security_policies_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_security_policies_operations.py index aa6921b5c6fa..8e3b4d27bca1 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_security_policies_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_security_policies_operations.py @@ -231,7 +231,7 @@ def _create_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -242,6 +242,9 @@ def _create_initial( if response.status_code == 201: deserialized = self._deserialize('SecurityPolicy', pipeline_response) + if response.status_code == 202: + deserialized = self._deserialize('SecurityPolicy', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -330,7 +333,7 @@ def _patch_initial( resource_group_name, # type: str profile_name, # type: str security_policy_name, # type: str - security_policy_parameters, # type: "_models.SecurityPolicyWebApplicationFirewallParameters" + security_policy_properties, # type: "_models.SecurityPolicyProperties" **kwargs # type: Any ): # type: (...) -> "_models.SecurityPolicy" @@ -363,7 +366,7 @@ def _patch_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(security_policy_parameters, 'SecurityPolicyWebApplicationFirewallParameters') + body_content = self._serialize.body(security_policy_properties, 'SecurityPolicyProperties') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -391,7 +394,7 @@ def begin_patch( resource_group_name, # type: str profile_name, # type: str security_policy_name, # type: str - security_policy_parameters, # type: "_models.SecurityPolicyWebApplicationFirewallParameters" + security_policy_properties, # type: "_models.SecurityPolicyProperties" **kwargs # type: Any ): # type: (...) -> LROPoller["_models.SecurityPolicy"] @@ -403,8 +406,8 @@ def begin_patch( :type profile_name: str :param security_policy_name: Name of the security policy under the profile. :type security_policy_name: str - :param security_policy_parameters: Security policy update properties. - :type security_policy_parameters: ~azure.mgmt.cdn.models.SecurityPolicyWebApplicationFirewallParameters + :param security_policy_properties: Security policy update properties. + :type security_policy_properties: ~azure.mgmt.cdn.models.SecurityPolicyProperties :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -427,7 +430,7 @@ def begin_patch( resource_group_name=resource_group_name, profile_name=profile_name, security_policy_name=security_policy_name, - security_policy_parameters=security_policy_parameters, + security_policy_properties=security_policy_properties, cls=lambda x,y,z: x, **kwargs ) @@ -501,7 +504,7 @@ def _delete_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(_models.AfdErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/cdn/azure-mgmt-cdn/tests/recordings/test_cli_mgmt_cdn.test_cdn.yaml b/sdk/cdn/azure-mgmt-cdn/tests/recordings/test_cli_mgmt_cdn.test_cdn.yaml index e94adf8b04c5..0d61360d47d8 100644 --- a/sdk/cdn/azure-mgmt-cdn/tests/recordings/test_cli_mgmt_cdn.test_cdn.yaml +++ b/sdk/cdn/azure-mgmt-cdn/tests/recordings/test_cli_mgmt_cdn.test_cdn.yaml @@ -13,7 +13,8 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename?api-version=2020-09-01 response: @@ -21,15 +22,15 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename","type":"Microsoft.Cdn/profiles","name":"profilename","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e2c8a893-4277-4296-ad75-a4ece217a8b9?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/97413758-6d17-488d-987a-1025bb6ad86d?api-version=2020-09-01 cache-control: - no-cache content-length: - - '358' + - '363' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:13:16 GMT + - Mon, 29 Mar 2021 05:19:36 GMT expires: - '-1' pragma: @@ -55,9 +56,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e2c8a893-4277-4296-ad75-a4ece217a8b9?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/97413758-6d17-488d-987a-1025bb6ad86d?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -69,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:13:26 GMT + - Mon, 29 Mar 2021 05:19:47 GMT expires: - '-1' pragma: @@ -97,219 +99,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e2c8a893-4277-4296-ad75-a4ece217a8b9?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:13:57 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e2c8a893-4277-4296-ad75-a4ece217a8b9?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:14:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e2c8a893-4277-4296-ad75-a4ece217a8b9?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:14:58 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e2c8a893-4277-4296-ad75-a4ece217a8b9?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:15:28 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e2c8a893-4277-4296-ad75-a4ece217a8b9?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:15:59 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e2c8a893-4277-4296-ad75-a4ece217a8b9?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/97413758-6d17-488d-987a-1025bb6ad86d?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -321,7 +114,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:16:30 GMT + - Mon, 29 Mar 2021 05:20:17 GMT expires: - '-1' pragma: @@ -349,7 +142,8 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename?api-version=2020-09-01 response: @@ -359,11 +153,11 @@ interactions: cache-control: - no-cache content-length: - - '357' + - '362' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:16:31 GMT + - Mon, 29 Mar 2021 05:20:17 GMT expires: - '-1' pragma: @@ -401,7 +195,8 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x?api-version=2020-09-01 response: @@ -409,15 +204,15 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":null,"httpsPort":null,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":null,"webApplicationFirewallPolicyLink":null,"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/f86afc75-fa03-4090-838a-97f98a89de9a?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/5aa90e7c-1653-40f3-9209-9b10ddc7c41f?api-version=2020-09-01 cache-control: - no-cache content-length: - - '1165' + - '1170' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:16:47 GMT + - Mon, 29 Mar 2021 05:20:22 GMT expires: - '-1' pragma: @@ -443,9 +238,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/f86afc75-fa03-4090-838a-97f98a89de9a?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/5aa90e7c-1653-40f3-9209-9b10ddc7c41f?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -457,7 +253,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:16:57 GMT + - Mon, 29 Mar 2021 05:20:32 GMT expires: - '-1' pragma: @@ -485,9 +281,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/f86afc75-fa03-4090-838a-97f98a89de9a?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/5aa90e7c-1653-40f3-9209-9b10ddc7c41f?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -499,7 +296,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:17:27 GMT + - Mon, 29 Mar 2021 05:21:02 GMT expires: - '-1' pragma: @@ -527,7 +324,8 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x?api-version=2020-09-01 response: @@ -537,11 +335,11 @@ interactions: cache-control: - no-cache content-length: - - '1163' + - '1168' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:17:28 GMT + - Mon, 29 Mar 2021 05:21:02 GMT expires: - '-1' pragma: @@ -571,7 +369,8 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/origins/origin1?api-version=2020-09-01 response: @@ -581,11 +380,11 @@ interactions: cache-control: - no-cache content-length: - - '608' + - '613' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:17:29 GMT + - Mon, 29 Mar 2021 05:21:02 GMT expires: - '-1' pragma: @@ -613,7 +412,8 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x?api-version=2020-09-01 response: @@ -623,11 +423,11 @@ interactions: cache-control: - no-cache content-length: - - '1163' + - '1168' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:17:30 GMT + - Mon, 29 Mar 2021 05:21:02 GMT expires: - '-1' pragma: @@ -657,7 +457,8 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename?api-version=2020-09-01 response: @@ -667,11 +468,11 @@ interactions: cache-control: - no-cache content-length: - - '357' + - '362' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:17:30 GMT + - Mon, 29 Mar 2021 05:21:03 GMT expires: - '-1' pragma: @@ -705,7 +506,8 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/origins/origin1?api-version=2020-09-01 response: @@ -713,19 +515,19 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/origins/origin1","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"resourceState":"Active","originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null,"provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/719b058f-4577-4e53-88cc-9bdb1b210ab6?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/973457cd-5ed4-44ee-8ea3-efd8c7848d31?api-version=2020-09-01 cache-control: - no-cache content-length: - - '604' + - '609' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:17:33 GMT + - Mon, 29 Mar 2021 05:21:04 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/719b058f-4577-4e53-88cc-9bdb1b210ab6/profileresults/profilename/endpointresults/endpoint9527x/originresults/origin1?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/973457cd-5ed4-44ee-8ea3-efd8c7848d31/profileresults/profilename/endpointresults/endpoint9527x/originresults/origin1?api-version=2020-09-01 pragma: - no-cache server: @@ -735,7 +537,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -749,51 +551,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/719b058f-4577-4e53-88cc-9bdb1b210ab6?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:17:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/719b058f-4577-4e53-88cc-9bdb1b210ab6?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/973457cd-5ed4-44ee-8ea3-efd8c7848d31?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -801,276 +562,11 @@ interactions: cache-control: - no-cache content-length: - - '61' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:18:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/origins/origin1?api-version=2020-09-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/origins/origin1","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"resourceState":"Active","originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null,"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '604' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:18:15 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"hostName": "www.someDomain.com"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '34' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/validateCustomDomain?api-version=2020-09-01 - response: - body: - string: '{"customDomainValidated":false,"reason":"IncorrectMapping","message":"We - couldn''t find a DNS record for custom domain that points to endpoint. To - map a domain to this endpoint, create a CNAME record with your DNS provider - for custom domain that points to endpoint."}' - headers: - cache-control: - - no-cache - content-length: - - '266' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:18:16 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: '{"contentPaths": ["/folder1"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '30' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/purge?api-version=2020-09-01 - response: - body: - string: '' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7ef531fb-7029-4c6e-80a5-55ea49334cea?api-version=2020-09-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 19 Jan 2021 09:18:19 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7ef531fb-7029-4c6e-80a5-55ea49334cea/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '499' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7ef531fb-7029-4c6e-80a5-55ea49334cea?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:18:31 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7ef531fb-7029-4c6e-80a5-55ea49334cea?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:19:01 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7ef531fb-7029-4c6e-80a5-55ea49334cea?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' + - '61' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:19:31 GMT + - Mon, 29 Mar 2021 05:21:15 GMT expires: - '-1' pragma: @@ -1098,21 +594,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7ef531fb-7029-4c6e-80a5-55ea49334cea?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/origins/origin1?api-version=2020-09-01 response: body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/origins/origin1","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"resourceState":"Active","originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null,"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '62' + - '609' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:20:01 GMT + - Mon, 29 Mar 2021 05:21:15 GMT expires: - '-1' pragma: @@ -1131,30 +628,38 @@ interactions: code: 200 message: OK - request: - body: null + body: '{"hostName": "www.someDomain.com"}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: - keep-alive + Content-Length: + - '34' + Content-Type: + - application/json User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7ef531fb-7029-4c6e-80a5-55ea49334cea?api-version=2020-09-01 + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/validateCustomDomain?api-version=2020-09-01 response: body: - string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + string: '{"customDomainValidated":false,"reason":"IncorrectMapping","message":"We + couldn''t find a DNS record for custom domain that points to endpoint. To + map a domain to this endpoint, create a CNAME record with your DNS provider + for custom domain that points to endpoint."}' headers: cache-control: - no-cache content-length: - - '61' + - '266' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:20:32 GMT + - Mon, 29 Mar 2021 05:21:16 GMT expires: - '-1' pragma: @@ -1169,97 +674,101 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' status: code: 200 message: OK - request: - body: null + body: '{"contentPaths": ["/folder1"]}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: - keep-alive + Content-Length: + - '30' + Content-Type: + - application/json User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7ef531fb-7029-4c6e-80a5-55ea49334cea/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/purge?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7ef531fb-7029-4c6e-80a5-55ea49334cea/profileresults/profilename/endpointresults/endpoint9527x","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + string: '' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7fef6e09-e2ef-4afc-aaf8-e1ecdbc685f7?api-version=2020-09-01 cache-control: - no-cache content-length: - - '1254' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Tue, 19 Jan 2021 09:20:33 GMT + - Mon, 29 Mar 2021 05:21:17 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7fef6e09-e2ef-4afc-aaf8-e1ecdbc685f7/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 pragma: - no-cache server: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '499' status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate Connection: - keep-alive - Content-Length: - - '0' User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/stop?api-version=2020-09-01 + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7fef6e09-e2ef-4afc-aaf8-e1ecdbc685f7?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Stopping","provisioningState":"Succeeded"}}' + string: '{"status":"InProgress","error":{"code":"None","message":null}}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/a031b57a-b7e7-4583-8a22-5de6e5997cce?api-version=2020-09-01 cache-control: - no-cache content-length: - - '1160' + - '62' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:20:37 GMT + - Mon, 29 Mar 2021 05:21:27 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/a031b57a-b7e7-4583-8a22-5de6e5997cce/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 pragma: - no-cache server: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: @@ -1270,9 +779,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/a031b57a-b7e7-4583-8a22-5de6e5997cce?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7fef6e09-e2ef-4afc-aaf8-e1ecdbc685f7?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1284,7 +794,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:20:47 GMT + - Mon, 29 Mar 2021 05:21:56 GMT expires: - '-1' pragma: @@ -1312,9 +822,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/a031b57a-b7e7-4583-8a22-5de6e5997cce?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7fef6e09-e2ef-4afc-aaf8-e1ecdbc685f7?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1326,7 +837,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:21:17 GMT + - Mon, 29 Mar 2021 05:22:26 GMT expires: - '-1' pragma: @@ -1354,21 +865,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/a031b57a-b7e7-4583-8a22-5de6e5997cce/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7fef6e09-e2ef-4afc-aaf8-e1ecdbc685f7/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/a031b57a-b7e7-4583-8a22-5de6e5997cce/profileresults/profilename/endpointresults/endpoint9527x","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Stopped","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7fef6e09-e2ef-4afc-aaf8-e1ecdbc685f7/profileresults/profilename/endpointresults/endpoint9527x","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1254' + - '1259' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:21:18 GMT + - Mon, 29 Mar 2021 05:22:26 GMT expires: - '-1' pragma: @@ -1398,27 +910,28 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/start?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/stop?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Starting","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Stopping","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/5e8fa28d-bf6a-4436-884c-823bd8e37eb2?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/f5674a83-8617-4eec-844c-bf4e4ecb77b7?api-version=2020-09-01 cache-control: - no-cache content-length: - - '1160' + - '1165' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:21:21 GMT + - Mon, 29 Mar 2021 05:22:28 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/5e8fa28d-bf6a-4436-884c-823bd8e37eb2/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/f5674a83-8617-4eec-844c-bf4e4ecb77b7/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 pragma: - no-cache server: @@ -1442,9 +955,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/5e8fa28d-bf6a-4436-884c-823bd8e37eb2?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/f5674a83-8617-4eec-844c-bf4e4ecb77b7?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1456,7 +970,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:21:32 GMT + - Mon, 29 Mar 2021 05:22:38 GMT expires: - '-1' pragma: @@ -1484,9 +998,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/5e8fa28d-bf6a-4436-884c-823bd8e37eb2?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/f5674a83-8617-4eec-844c-bf4e4ecb77b7?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1498,7 +1013,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:22:02 GMT + - Mon, 29 Mar 2021 05:23:09 GMT expires: - '-1' pragma: @@ -1526,21 +1041,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/5e8fa28d-bf6a-4436-884c-823bd8e37eb2/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/f5674a83-8617-4eec-844c-bf4e4ecb77b7/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/5e8fa28d-bf6a-4436-884c-823bd8e37eb2/profileresults/profilename/endpointresults/endpoint9527x","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/f5674a83-8617-4eec-844c-bf4e4ecb77b7/profileresults/profilename/endpointresults/endpoint9527x","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Stopped","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1254' + - '1259' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:22:03 GMT + - Mon, 29 Mar 2021 05:23:09 GMT expires: - '-1' pragma: @@ -1559,7 +1075,7 @@ interactions: code: 200 message: OK - request: - body: '{"contentPaths": ["/folder1"]}' + body: null headers: Accept: - application/json @@ -1568,29 +1084,30 @@ interactions: Connection: - keep-alive Content-Length: - - '30' - Content-Type: - - application/json + - '0' User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/load?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/start?api-version=2020-09-01 response: body: - string: '' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Starting","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/323ac3f0-ed71-4dde-97cf-e0869668b406?api-version=2020-09-01 cache-control: - no-cache content-length: - - '0' + - '1165' + content-type: + - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:22:06 GMT + - Mon, 29 Mar 2021 05:23:10 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/323ac3f0-ed71-4dde-97cf-e0869668b406/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 pragma: - no-cache server: @@ -1600,7 +1117,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '499' + - '49' status: code: 202 message: Accepted @@ -1614,51 +1131,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:22:17 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/323ac3f0-ed71-4dde-97cf-e0869668b406?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1670,7 +1146,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:22:47 GMT + - Mon, 29 Mar 2021 05:23:20 GMT expires: - '-1' pragma: @@ -1698,21 +1174,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/323ac3f0-ed71-4dde-97cf-e0869668b406?api-version=2020-09-01 response: body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '62' + - '61' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:23:17 GMT + - Mon, 29 Mar 2021 05:23:50 GMT expires: - '-1' pragma: @@ -1740,21 +1217,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/323ac3f0-ed71-4dde-97cf-e0869668b406/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 response: body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/323ac3f0-ed71-4dde-97cf-e0869668b406/profileresults/profilename/endpointresults/endpoint9527x","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '62' + - '1259' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:23:48 GMT + - Mon, 29 Mar 2021 05:23:50 GMT expires: - '-1' pragma: @@ -1773,47 +1251,52 @@ interactions: code: 200 message: OK - request: - body: null + body: '{"contentPaths": ["/folder1"]}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: - keep-alive + Content-Length: + - '30' + Content-Type: + - application/json User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/load?api-version=2020-09-01 response: body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' + string: '' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 cache-control: - no-cache content-length: - - '62' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Tue, 19 Jan 2021 09:24:19 GMT + - Mon, 29 Mar 2021 05:23:52 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 pragma: - no-cache server: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '499' status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: @@ -1824,9 +1307,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1838,7 +1322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:24:49 GMT + - Mon, 29 Mar 2021 05:24:02 GMT expires: - '-1' pragma: @@ -1866,9 +1350,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1880,7 +1365,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:25:20 GMT + - Mon, 29 Mar 2021 05:24:32 GMT expires: - '-1' pragma: @@ -1908,9 +1393,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1922,7 +1408,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:25:50 GMT + - Mon, 29 Mar 2021 05:25:02 GMT expires: - '-1' pragma: @@ -1950,9 +1436,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1964,7 +1451,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:26:20 GMT + - Mon, 29 Mar 2021 05:25:33 GMT expires: - '-1' pragma: @@ -1992,9 +1479,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -2006,7 +1494,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:26:52 GMT + - Mon, 29 Mar 2021 05:26:03 GMT expires: - '-1' pragma: @@ -2034,9 +1522,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -2048,7 +1537,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:27:22 GMT + - Mon, 29 Mar 2021 05:26:32 GMT expires: - '-1' pragma: @@ -2076,9 +1565,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -2090,7 +1580,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:27:52 GMT + - Mon, 29 Mar 2021 05:27:02 GMT expires: - '-1' pragma: @@ -2118,9 +1608,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -2132,7 +1623,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:28:23 GMT + - Mon, 29 Mar 2021 05:27:33 GMT expires: - '-1' pragma: @@ -2160,9 +1651,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -2174,7 +1666,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:28:53 GMT + - Mon, 29 Mar 2021 05:28:03 GMT expires: - '-1' pragma: @@ -2202,9 +1694,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -2216,7 +1709,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:29:24 GMT + - Mon, 29 Mar 2021 05:28:33 GMT expires: - '-1' pragma: @@ -2244,9 +1737,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -2258,7 +1752,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:29:54 GMT + - Mon, 29 Mar 2021 05:29:03 GMT expires: - '-1' pragma: @@ -2286,9 +1780,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -2300,7 +1795,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:30:25 GMT + - Mon, 29 Mar 2021 05:29:33 GMT expires: - '-1' pragma: @@ -2328,9 +1823,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -2342,7 +1838,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:30:55 GMT + - Mon, 29 Mar 2021 05:30:04 GMT expires: - '-1' pragma: @@ -2370,21 +1866,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/8d4328e1-ebca-4b30-acc7-9fc94c0846e3/profileresults/profilename/endpointresults/endpoint9527x","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b529b672-6815-437a-9c83-4144c807dfa2/profileresults/profilename/endpointresults/endpoint9527x","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint9527x","location":"WestUs","tags":{"kay1":"value1"},"properties":{"hostName":"endpoint9527x.azureedge.net","originHostHeader":"www.bing.com","originPath":"/image","contentTypesToCompress":["text/html","application/octet-stream"],"isCompressionEnabled":true,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"BypassCaching","optimizationType":null,"probePath":null,"origins":[{"name":"origin1","properties":{"hostName":"host1.hello.com","httpPort":42,"httpsPort":43,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1254' + - '1259' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:30:56 GMT + - Mon, 29 Mar 2021 05:30:04 GMT expires: - '-1' pragma: @@ -2414,7 +1911,8 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/getSupportedOptimizationTypes?api-version=2020-09-01 response: @@ -2428,7 +1926,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:30:57 GMT + - Mon, 29 Mar 2021 05:30:04 GMT expires: - '-1' pragma: @@ -2444,7 +1942,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 200 message: OK @@ -2462,7 +1960,8 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x?api-version=2020-09-01 response: @@ -2472,11 +1971,11 @@ interactions: cache-control: - no-cache content-length: - - '1174' + - '1179' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:31:05 GMT + - Mon, 29 Mar 2021 05:30:07 GMT expires: - '-1' pragma: @@ -2508,21 +2007,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/generateSsoUri?api-version=2020-09-01 response: body: - string: '{"ssoUriValue":"https://cdn.windowsazure.com/account/loginexternal/?token=HHH62oZ2NImhVjehJbhWewufxl%2fXiOso7COYzafMX%2bs%3d×tamp=2021-01-19T09:31:06.9462439Z&cdnAccountId=1073D0&userCustomId=SSO-f4fef8bd-1bba-4dbc-ab03-001753a41877&restEndpointId=0"}' + string: '{"ssoUriValue":"https://cdn.windowsazure.com/account/loginexternal/?token=DP3fSyo5JRkEdBMr16um31jXbQ3pdKpfCh3ErYat7Y4%3d×tamp=2021-03-29T05:30:07.6947284Z&cdnAccountId=10CFE2&userCustomId=SSO-9a676b3b-54b3-475d-a99e-c89993f217cc&restEndpointId=0"}' headers: cache-control: - no-cache content-length: - - '256' + - '252' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:31:06 GMT + - Mon, 29 Mar 2021 05:30:07 GMT expires: - '-1' pragma: @@ -2538,7 +2038,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1197' status: code: 200 message: OK @@ -2556,7 +2056,8 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename?api-version=2020-09-01 response: @@ -2564,19 +2065,19 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename","type":"Microsoft.Cdn/profiles","name":"profilename","location":"WestUs","kind":"cdn","tags":{"additional_properties":"Tag1"},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7508941d-62c7-4b10-aa2b-ee3d0d7c3718?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b8138014-c55a-4ade-a9ca-dc34cfd1eae1?api-version=2020-09-01 cache-control: - no-cache content-length: - - '387' + - '392' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:31:08 GMT + - Mon, 29 Mar 2021 05:30:08 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7508941d-62c7-4b10-aa2b-ee3d0d7c3718/profileresults/profilename?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b8138014-c55a-4ade-a9ca-dc34cfd1eae1/profileresults/profilename?api-version=2020-09-01 pragma: - no-cache server: @@ -2600,9 +2101,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/7508941d-62c7-4b10-aa2b-ee3d0d7c3718?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/b8138014-c55a-4ade-a9ca-dc34cfd1eae1?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -2614,7 +2116,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:31:19 GMT + - Mon, 29 Mar 2021 05:30:18 GMT expires: - '-1' pragma: @@ -2642,7 +2144,8 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename?api-version=2020-09-01 response: @@ -2652,11 +2155,11 @@ interactions: cache-control: - no-cache content-length: - - '387' + - '392' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:31:19 GMT + - Mon, 29 Mar 2021 05:30:18 GMT expires: - '-1' pragma: @@ -2690,7 +2193,8 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/checkNameAvailability?api-version=2020-09-01 response: @@ -2704,7 +2208,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:31:21 GMT + - Mon, 29 Mar 2021 05:30:19 GMT expires: - '-1' pragma: @@ -2720,7 +2224,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1196' status: code: 200 message: OK @@ -2738,7 +2242,8 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/validateProbe?api-version=2020-09-01 response: @@ -2752,7 +2257,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:31:21 GMT + - Mon, 29 Mar 2021 05:30:19 GMT expires: - '-1' pragma: @@ -2768,7 +2273,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1195' status: code: 200 message: OK @@ -2786,7 +2291,8 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/providers/Microsoft.Cdn/checkNameAvailability?api-version=2020-09-01 response: @@ -2800,7 +2306,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:31:22 GMT + - Mon, 29 Mar 2021 05:30:20 GMT expires: - '-1' pragma: @@ -2832,7 +2338,8 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x/customDomains/someDomain?api-version=2020-09-01 response: @@ -2842,7 +2349,7 @@ interactions: cache-control: - no-cache date: - - Tue, 19 Jan 2021 09:31:24 GMT + - Mon, 29 Mar 2021 05:30:21 GMT expires: - '-1' pragma: @@ -2854,7 +2361,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14997' + - '14999' status: code: 204 message: No Content @@ -2870,7 +2377,8 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename/endpoints/endpoint9527x?api-version=2020-09-01 response: @@ -2878,17 +2386,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e4554fb3-b027-4f3b-9ae0-ee71958abaad?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/0f6c6e9b-08dc-49cd-81b1-ce8d32c89280?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 19 Jan 2021 09:31:27 GMT + - Mon, 29 Mar 2021 05:30:22 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e4554fb3-b027-4f3b-9ae0-ee71958abaad/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/0f6c6e9b-08dc-49cd-81b1-ce8d32c89280/profileresults/profilename/endpointresults/endpoint9527x?api-version=2020-09-01 pragma: - no-cache server: @@ -2898,7 +2406,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14996' + - '14998' status: code: 202 message: Accepted @@ -2912,51 +2420,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e4554fb3-b027-4f3b-9ae0-ee71958abaad?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:31:37 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e4554fb3-b027-4f3b-9ae0-ee71958abaad?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/0f6c6e9b-08dc-49cd-81b1-ce8d32c89280?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -2968,7 +2435,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:32:09 GMT + - Mon, 29 Mar 2021 05:30:32 GMT expires: - '-1' pragma: @@ -2996,9 +2463,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/e4554fb3-b027-4f3b-9ae0-ee71958abaad?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/0f6c6e9b-08dc-49cd-81b1-ce8d32c89280?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -3010,7 +2478,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:32:39 GMT + - Mon, 29 Mar 2021 05:31:02 GMT expires: - '-1' pragma: @@ -3040,7 +2508,8 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/profiles/profilename?api-version=2020-09-01 response: @@ -3048,17 +2517,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/3fe4f8f1-364e-4dcb-b956-c0921cf3aba0?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/4f21be4e-88bf-4df0-9290-8fa1cd65dc0a?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 19 Jan 2021 09:32:41 GMT + - Mon, 29 Mar 2021 05:31:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/3fe4f8f1-364e-4dcb-b956-c0921cf3aba0/profileresults/profilename?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/4f21be4e-88bf-4df0-9290-8fa1cd65dc0a/profileresults/profilename?api-version=2020-09-01 pragma: - no-cache server: @@ -3068,7 +2537,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14995' + - '14997' status: code: 202 message: Accepted @@ -3082,51 +2551,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/3fe4f8f1-364e-4dcb-b956-c0921cf3aba0?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jan 2021 09:32:51 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-cdn/10.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cdn/11.0.0 Python/3.8.8 (Linux-5.4.0-1041-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/3fe4f8f1-364e-4dcb-b956-c0921cf3aba0?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_mgmt_cdn_test_cdn8f6e0a82/providers/Microsoft.Cdn/operationresults/4f21be4e-88bf-4df0-9290-8fa1cd65dc0a?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -3138,7 +2566,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jan 2021 09:33:22 GMT + - Mon, 29 Mar 2021 05:31:14 GMT expires: - '-1' pragma: