diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/_meta.json b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/_meta.json index f00cf54715ea..c57289545359 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/_meta.json +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/_meta.json @@ -1,11 +1,11 @@ { - "commit": "e58e0182fe8a91a069a95043b0812b53be3d916e", + "commit": "0a1556cc3a716f0668c1f53fc65ff0d0a1972285", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.9.2", "use": [ - "@autorest/python@6.4.3", + "@autorest/python@6.4.8", "@autorest/modelerfour@4.24.3" ], - "autorest_command": "autorest specification/newrelic/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.3 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", + "autorest_command": "autorest specification/newrelic/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.4.8 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", "readme": "specification/newrelic/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_configuration.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_configuration.py index bd348270e930..7bf1f35848bb 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_configuration.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_configuration.py @@ -6,7 +6,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration @@ -15,11 +14,6 @@ from ._version import VERSION -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports - if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials import TokenCredential @@ -35,14 +29,14 @@ class NewRelicObservabilityMgmtClientConfiguration(Configuration): # pylint: di :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2022-07-01". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: super(NewRelicObservabilityMgmtClientConfiguration, self).__init__(**kwargs) - api_version: Literal["2022-07-01-preview"] = kwargs.pop("api_version", "2022-07-01-preview") + api_version: str = kwargs.pop("api_version", "2022-07-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_new_relic_observability_mgmt_client.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_new_relic_observability_mgmt_client.py index 9dc749fe432b..a31ec9ba9dfe 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_new_relic_observability_mgmt_client.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_new_relic_observability_mgmt_client.py @@ -50,8 +50,8 @@ class NewRelicObservabilityMgmtClient: # pylint: disable=client-accepts-api-ver :type subscription_id: str :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str - :keyword api_version: Api Version. Default value is "2022-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2022-07-01". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_serialization.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_serialization.py index f17c068e833e..842ae727fbbc 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_serialization.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/_serialization.py @@ -629,7 +629,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs): if xml_desc.get("attr", False): if xml_ns: ET.register_namespace(xml_prefix, xml_ns) - xml_name = "{}{}".format(xml_ns, xml_name) + xml_name = "{{{}}}{}".format(xml_ns, xml_name) serialized.set(xml_name, new_attr) # type: ignore continue if xml_desc.get("text", False): @@ -1271,7 +1271,7 @@ def _extract_name_from_internal_type(internal_type): xml_name = internal_type_xml_map.get("name", internal_type.__name__) xml_ns = internal_type_xml_map.get("ns", None) if xml_ns: - xml_name = "{}{}".format(xml_ns, xml_name) + xml_name = "{{{}}}{}".format(xml_ns, xml_name) return xml_name @@ -1295,7 +1295,7 @@ def xml_key_extractor(attr, attr_desc, data): # Integrate namespace if necessary xml_ns = xml_desc.get("ns", internal_type_xml_map.get("ns", None)) if xml_ns: - xml_name = "{}{}".format(xml_ns, xml_name) + xml_name = "{{{}}}{}".format(xml_ns, xml_name) # If it's an attribute, that's simple if xml_desc.get("attr", False): diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/_configuration.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/_configuration.py index cce7d55d8b73..19e79c160571 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/_configuration.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/_configuration.py @@ -6,7 +6,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration @@ -15,11 +14,6 @@ from .._version import VERSION -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports - if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential @@ -35,14 +29,14 @@ class NewRelicObservabilityMgmtClientConfiguration(Configuration): # pylint: di :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2022-07-01". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: super(NewRelicObservabilityMgmtClientConfiguration, self).__init__(**kwargs) - api_version: Literal["2022-07-01-preview"] = kwargs.pop("api_version", "2022-07-01-preview") + api_version: str = kwargs.pop("api_version", "2022-07-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/_new_relic_observability_mgmt_client.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/_new_relic_observability_mgmt_client.py index a5bbddda0c80..6c0060317930 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/_new_relic_observability_mgmt_client.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/_new_relic_observability_mgmt_client.py @@ -50,8 +50,8 @@ class NewRelicObservabilityMgmtClient: # pylint: disable=client-accepts-api-ver :type subscription_id: str :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str - :keyword api_version: Api Version. Default value is "2022-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2022-07-01". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_accounts_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_accounts_operations.py index b11ac51a1e82..4a57f41f0275 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_accounts_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_accounts_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from ..._vendor import _convert_request from ...operations._accounts_operations import build_list_request -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -74,9 +69,7 @@ def list(self, user_email: str, location: str, **kwargs: Any) -> AsyncIterable[" _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.AccountsListResponse] = kwargs.pop("cls", None) error_map = { diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_monitors_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_monitors_operations.py index 6ad996146643..e2fa6b7a225d 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_monitors_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_monitors_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -47,10 +46,6 @@ build_vm_host_payload_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -88,9 +83,7 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.NewRelic _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.NewRelicMonitorResourceListResult] = kwargs.pop("cls", None) error_map = { @@ -178,9 +171,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.NewRelicMonitorResourceListResult] = kwargs.pop("cls", None) error_map = { @@ -277,9 +268,7 @@ async def get(self, resource_group_name: str, monitor_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.NewRelicMonitorResource] = kwargs.pop("cls", None) request = build_get_request( @@ -335,9 +324,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NewRelicMonitorResource] = kwargs.pop("cls", None) @@ -506,9 +493,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NewRelicMonitorResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -649,9 +634,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NewRelicMonitorResource] = kwargs.pop("cls", None) @@ -715,9 +698,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -784,9 +765,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -919,9 +898,7 @@ async def get_metric_rules( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.MetricRules] = kwargs.pop("cls", None) @@ -1064,9 +1041,7 @@ async def get_metric_status( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.MetricsStatusResponse] = kwargs.pop("cls", None) @@ -1204,9 +1179,7 @@ def list_app_services( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AppServicesListResponse] = kwargs.pop("cls", None) @@ -1291,7 +1264,7 @@ async def get_next(next_link=None): } @overload - async def switch_billing( # pylint: disable=inconsistent-return-statements + async def switch_billing( self, resource_group_name: str, monitor_name: str, @@ -1299,7 +1272,7 @@ async def switch_billing( # pylint: disable=inconsistent-return-statements *, content_type: str = "application/json", **kwargs: Any - ) -> None: + ) -> Optional[_models.NewRelicMonitorResource]: """Switches the billing for NewRelic monitor resource. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -1313,13 +1286,13 @@ async def switch_billing( # pylint: disable=inconsistent-return-statements Default value is "application/json". :paramtype content_type: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) - :rtype: None + :return: NewRelicMonitorResource or None or the result of cls(response) + :rtype: ~azure.mgmt.newrelicobservability.models.NewRelicMonitorResource or None :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def switch_billing( # pylint: disable=inconsistent-return-statements + async def switch_billing( self, resource_group_name: str, monitor_name: str, @@ -1327,7 +1300,7 @@ async def switch_billing( # pylint: disable=inconsistent-return-statements *, content_type: str = "application/json", **kwargs: Any - ) -> None: + ) -> Optional[_models.NewRelicMonitorResource]: """Switches the billing for NewRelic monitor resource. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -1341,19 +1314,19 @@ async def switch_billing( # pylint: disable=inconsistent-return-statements Default value is "application/json". :paramtype content_type: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) - :rtype: None + :return: NewRelicMonitorResource or None or the result of cls(response) + :rtype: ~azure.mgmt.newrelicobservability.models.NewRelicMonitorResource or None :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def switch_billing( # pylint: disable=inconsistent-return-statements + async def switch_billing( self, resource_group_name: str, monitor_name: str, request: Union[_models.SwitchBillingRequest, IO], **kwargs: Any - ) -> None: + ) -> Optional[_models.NewRelicMonitorResource]: """Switches the billing for NewRelic monitor resource. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -1368,8 +1341,8 @@ async def switch_billing( # pylint: disable=inconsistent-return-statements Default value is None. :paramtype content_type: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) - :rtype: None + :return: NewRelicMonitorResource or None or the result of cls(response) + :rtype: ~azure.mgmt.newrelicobservability.models.NewRelicMonitorResource or None :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { @@ -1383,11 +1356,9 @@ async def switch_billing( # pylint: disable=inconsistent-return-statements _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) + cls: ClsType[Optional[_models.NewRelicMonitorResource]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None @@ -1419,13 +1390,23 @@ async def switch_billing( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response - if response.status_code not in [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.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + deserialized = None + response_headers = {} + if response.status_code == 200: + deserialized = self._deserialize("NewRelicMonitorResource", pipeline_response) + + if response.status_code == 202: + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, deserialized, response_headers) + + return deserialized switch_billing.metadata = { "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/switchBilling" @@ -1515,9 +1496,7 @@ def list_hosts( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VMHostsListResponse] = kwargs.pop("cls", None) @@ -1621,9 +1600,7 @@ def list_monitored_resources( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.MonitoredResourceListResponse] = kwargs.pop("cls", None) error_map = { @@ -1724,9 +1701,7 @@ async def vm_host_payload( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.VMExtensionPayload] = kwargs.pop("cls", None) request = build_vm_host_payload_request( diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_operations.py index b15696077a40..5fa1bd42b25b 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from ..._vendor import _convert_request from ...operations._operations import build_list_request -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -70,9 +65,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) error_map = { diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_organizations_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_organizations_operations.py index 923bb973adb5..e09f48c9ceb5 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_organizations_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_organizations_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from ..._vendor import _convert_request from ...operations._organizations_operations import build_list_request -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -75,9 +70,7 @@ def list(self, user_email: str, location: str, **kwargs: Any) -> AsyncIterable[" _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.OrganizationsListResponse] = kwargs.pop("cls", None) error_map = { diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_plans_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_plans_operations.py index 6131720372fe..5ae4d19d1bff 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_plans_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_plans_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from ..._vendor import _convert_request from ...operations._plans_operations import build_list_request -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -76,9 +71,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PlanDataListResponse] = kwargs.pop("cls", None) error_map = { diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_tag_rules_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_tag_rules_operations.py index 2540270a8a95..0a484f0ef05c 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_tag_rules_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/aio/operations/_tag_rules_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -39,10 +38,6 @@ build_update_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -86,9 +81,7 @@ def list_by_new_relic_monitor_resource( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TagRuleListResult] = kwargs.pop("cls", None) error_map = { @@ -190,9 +183,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TagRule] = kwargs.pop("cls", None) request = build_get_request( @@ -250,9 +241,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TagRule] = kwargs.pop("cls", None) @@ -427,9 +416,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TagRule] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -492,9 +479,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -561,9 +546,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -709,9 +692,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TagRule] = kwargs.pop("cls", None) diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_accounts_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_accounts_operations.py index fab7bea1773c..fc795cf188a4 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_accounts_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_accounts_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, Callable, Dict, Iterable, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -45,9 +40,7 @@ def build_list_request(subscription_id: str, *, user_email: str, location: str, _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -104,9 +97,7 @@ def list(self, user_email: str, location: str, **kwargs: Any) -> Iterable["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.AccountsListResponse] = kwargs.pop("cls", None) error_map = { diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_monitors_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_monitors_operations.py index 087eab9f9e09..246ab5b7fb49 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_monitors_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_monitors_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -32,10 +31,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -47,9 +42,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -73,9 +66,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -105,9 +96,7 @@ def build_get_request(resource_group_name: str, monitor_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -140,9 +129,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -178,9 +165,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -216,9 +201,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -252,9 +235,7 @@ def build_get_metric_rules_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -290,9 +271,7 @@ def build_get_metric_status_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -328,9 +307,7 @@ def build_list_app_services_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -366,9 +343,7 @@ def build_switch_billing_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -404,9 +379,7 @@ def build_list_hosts_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -442,9 +415,7 @@ def build_list_monitored_resources_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -477,9 +448,7 @@ def build_vm_host_payload_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -539,9 +508,7 @@ def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.NewRelicMonit _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.NewRelicMonitorResourceListResult] = kwargs.pop("cls", None) error_map = { @@ -629,9 +596,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.NewRelicMonitorResourceListResult] = kwargs.pop("cls", None) error_map = { @@ -728,9 +693,7 @@ def get(self, resource_group_name: str, monitor_name: str, **kwargs: Any) -> _mo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.NewRelicMonitorResource] = kwargs.pop("cls", None) request = build_get_request( @@ -786,9 +749,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NewRelicMonitorResource] = kwargs.pop("cls", None) @@ -957,9 +918,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NewRelicMonitorResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -1099,9 +1058,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NewRelicMonitorResource] = kwargs.pop("cls", None) @@ -1165,9 +1122,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -1234,9 +1189,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1368,9 +1321,7 @@ def get_metric_rules( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.MetricRules] = kwargs.pop("cls", None) @@ -1513,9 +1464,7 @@ def get_metric_status( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.MetricsStatusResponse] = kwargs.pop("cls", None) @@ -1650,9 +1599,7 @@ def list_app_services( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AppServicesListResponse] = kwargs.pop("cls", None) @@ -1737,7 +1684,7 @@ def get_next(next_link=None): } @overload - def switch_billing( # pylint: disable=inconsistent-return-statements + def switch_billing( self, resource_group_name: str, monitor_name: str, @@ -1745,7 +1692,7 @@ def switch_billing( # pylint: disable=inconsistent-return-statements *, content_type: str = "application/json", **kwargs: Any - ) -> None: + ) -> Optional[_models.NewRelicMonitorResource]: """Switches the billing for NewRelic monitor resource. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -1759,13 +1706,13 @@ def switch_billing( # pylint: disable=inconsistent-return-statements Default value is "application/json". :paramtype content_type: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) - :rtype: None + :return: NewRelicMonitorResource or None or the result of cls(response) + :rtype: ~azure.mgmt.newrelicobservability.models.NewRelicMonitorResource or None :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def switch_billing( # pylint: disable=inconsistent-return-statements + def switch_billing( self, resource_group_name: str, monitor_name: str, @@ -1773,7 +1720,7 @@ def switch_billing( # pylint: disable=inconsistent-return-statements *, content_type: str = "application/json", **kwargs: Any - ) -> None: + ) -> Optional[_models.NewRelicMonitorResource]: """Switches the billing for NewRelic monitor resource. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -1787,19 +1734,19 @@ def switch_billing( # pylint: disable=inconsistent-return-statements Default value is "application/json". :paramtype content_type: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) - :rtype: None + :return: NewRelicMonitorResource or None or the result of cls(response) + :rtype: ~azure.mgmt.newrelicobservability.models.NewRelicMonitorResource or None :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def switch_billing( # pylint: disable=inconsistent-return-statements + def switch_billing( self, resource_group_name: str, monitor_name: str, request: Union[_models.SwitchBillingRequest, IO], **kwargs: Any - ) -> None: + ) -> Optional[_models.NewRelicMonitorResource]: """Switches the billing for NewRelic monitor resource. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -1814,8 +1761,8 @@ def switch_billing( # pylint: disable=inconsistent-return-statements Default value is None. :paramtype content_type: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) - :rtype: None + :return: NewRelicMonitorResource or None or the result of cls(response) + :rtype: ~azure.mgmt.newrelicobservability.models.NewRelicMonitorResource or None :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { @@ -1829,11 +1776,9 @@ def switch_billing( # pylint: disable=inconsistent-return-statements _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) + cls: ClsType[Optional[_models.NewRelicMonitorResource]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None @@ -1865,13 +1810,23 @@ def switch_billing( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response - if response.status_code not in [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.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + deserialized = None + response_headers = {} + if response.status_code == 200: + deserialized = self._deserialize("NewRelicMonitorResource", pipeline_response) + + if response.status_code == 202: + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, deserialized, response_headers) + + return deserialized switch_billing.metadata = { "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/switchBilling" @@ -1958,9 +1913,7 @@ def list_hosts( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VMHostsListResponse] = kwargs.pop("cls", None) @@ -2064,9 +2017,7 @@ def list_monitored_resources( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.MonitoredResourceListResponse] = kwargs.pop("cls", None) error_map = { @@ -2165,9 +2116,7 @@ def vm_host_payload(self, resource_group_name: str, monitor_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.VMExtensionPayload] = kwargs.pop("cls", None) request = build_vm_host_payload_request( diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_operations.py index 28f3479f9693..5be674b83d6f 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, Callable, Dict, Iterable, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from .._serialization import Serializer from .._vendor import _convert_request -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -45,9 +40,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -93,9 +86,7 @@ def list(self, **kwargs: Any) -> Iterable["_models.Operation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) error_map = { diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_organizations_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_organizations_operations.py index c5df42b2e38d..248b55202c5b 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_organizations_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_organizations_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, Callable, Dict, Iterable, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -45,9 +40,7 @@ def build_list_request(subscription_id: str, *, user_email: str, location: str, _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -106,9 +99,7 @@ def list(self, user_email: str, location: str, **kwargs: Any) -> Iterable["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.OrganizationsListResponse] = kwargs.pop("cls", None) error_map = { diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_plans_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_plans_operations.py index 7ad24ad9ffda..0158e5de2eb8 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_plans_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_plans_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, Callable, Dict, Iterable, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -47,9 +42,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -110,9 +103,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PlanDataListResponse] = kwargs.pop("cls", None) error_map = { diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_tag_rules_operations.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_tag_rules_operations.py index 4a00135ccc26..692e059d3e42 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_tag_rules_operations.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/azure/mgmt/newrelicobservability/operations/_tag_rules_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -32,10 +31,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -43,15 +38,13 @@ _SERIALIZER.client_side_validation = False -def build_list_by_new_relic_monitor_resource_request( +def build_list_by_new_relic_monitor_resource_request( # pylint: disable=name-too-long resource_group_name: str, monitor_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -84,9 +77,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -120,9 +111,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -159,9 +148,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -195,9 +182,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", "2022-07-01-preview") - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -266,9 +251,7 @@ def list_by_new_relic_monitor_resource( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TagRuleListResult] = kwargs.pop("cls", None) error_map = { @@ -368,9 +351,7 @@ def get(self, resource_group_name: str, monitor_name: str, rule_set_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TagRule] = kwargs.pop("cls", None) request = build_get_request( @@ -428,9 +409,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TagRule] = kwargs.pop("cls", None) @@ -602,9 +581,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TagRule] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -666,9 +643,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -735,9 +710,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -882,9 +855,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-07-01-preview"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TagRule] = kwargs.pop("cls", None) diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/accounts_list_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/accounts_list_maximum_set_gen.py index 13e24ac6b099..9d3364add0dd 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/accounts_list_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/accounts_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Accounts_List_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Accounts_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/accounts_list_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/accounts_list_minimum_set_gen.py index 069b573618e5..13d658e94bab 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/accounts_list_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/accounts_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Accounts_List_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Accounts_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_create_or_update_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_create_or_update_maximum_set_gen.py index a5c9f2fbc36c..091f0e0b62f8 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_create_or_update_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_create_or_update_maximum_set_gen.py @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_delete_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_delete_maximum_set_gen.py index e1212a397a0b..691bbfe2b9e4 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_delete_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_maximum_set_gen.py index 4648caa34803..e1e38572431c 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_Get_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_rules_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_rules_maximum_set_gen.py index 40486ea638ac..073851c6aef4 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_rules_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_rules_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_GetMetricRules_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_GetMetricRules_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_rules_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_rules_minimum_set_gen.py index 9fe89307c4b5..f47515160c33 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_rules_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_rules_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_GetMetricRules_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_GetMetricRules_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_status_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_status_maximum_set_gen.py index 6ea1e8732436..061129fb25cc 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_status_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_status_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_GetMetricStatus_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_GetMetricStatus_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_status_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_status_minimum_set_gen.py index 616a51e5dfe3..3b8bf03d678a 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_status_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_get_metric_status_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_GetMetricStatus_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_GetMetricStatus_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_app_services_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_app_services_maximum_set_gen.py index 3e2c3e06d2c9..925096c75ea5 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_app_services_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_app_services_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_ListAppServices_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_ListAppServices_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_app_services_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_app_services_minimum_set_gen.py index fc6fceeb389e..978609cf74e5 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_app_services_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_app_services_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_ListAppServices_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_ListAppServices_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_by_resource_group_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_by_resource_group_maximum_set_gen.py index 32275e0f7513..15d00f631bf3 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_by_resource_group_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_by_resource_group_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_by_subscription_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_by_subscription_maximum_set_gen.py index 7c40f1535030..52b5308dbe9a 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_by_subscription_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_by_subscription_maximum_set_gen.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_ListBySubscription_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_ListBySubscription_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_hosts_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_hosts_maximum_set_gen.py index dd80d04d7dd2..d947ff41f821 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_hosts_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_hosts_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_ListHosts_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_ListHosts_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_hosts_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_hosts_minimum_set_gen.py index afea5b787a6e..083c223624fd 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_hosts_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_hosts_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_ListHosts_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_ListHosts_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_monitored_resources_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_monitored_resources_maximum_set_gen.py index edada41d3369..2725d12aedc6 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_monitored_resources_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_monitored_resources_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_ListMonitoredResources_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_ListMonitoredResources_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_monitored_resources_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_monitored_resources_minimum_set_gen.py index 27755a0fbbbb..3490a99a7d44 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_monitored_resources_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_list_monitored_resources_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_ListMonitoredResources_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_ListMonitoredResources_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_switch_billing_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_switch_billing_maximum_set_gen.py index 0e8958c03841..52f78926dca8 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_switch_billing_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_switch_billing_maximum_set_gen.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_SwitchBilling_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_SwitchBilling_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_switch_billing_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_switch_billing_minimum_set_gen.py index bb6c9241ae9b..688a7a49b3f9 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_switch_billing_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_switch_billing_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_SwitchBilling_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_SwitchBilling_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_update_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_update_maximum_set_gen.py index 9b647793e881..d04c807f6654 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_update_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_update_maximum_set_gen.py @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_vm_host_payload_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_vm_host_payload_maximum_set_gen.py index 2fda649973d7..dab117c8e407 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_vm_host_payload_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_vm_host_payload_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_VmHostPayload_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_VmHostPayload_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_vm_host_payload_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_vm_host_payload_minimum_set_gen.py index 35727c182556..63d06684db29 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_vm_host_payload_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/monitors_vm_host_payload_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Monitors_VmHostPayload_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Monitors_VmHostPayload_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/operations_list_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/operations_list_maximum_set_gen.py index f96d9ad93c7c..f17d59e68cfe 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/operations_list_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/operations_list_maximum_set_gen.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Operations_List_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Operations_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/operations_list_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/operations_list_minimum_set_gen.py index 0fa87fc52a09..55dc464a21c4 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/operations_list_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/operations_list_minimum_set_gen.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Operations_List_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Operations_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/organizations_list_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/organizations_list_maximum_set_gen.py index 8941a55a0a47..051d33b9b8bc 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/organizations_list_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/organizations_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Organizations_List_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Organizations_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/organizations_list_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/organizations_list_minimum_set_gen.py index 762616625f60..dc9e62ea1011 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/organizations_list_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/organizations_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Organizations_List_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Organizations_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/plans_list_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/plans_list_maximum_set_gen.py index 5cd919f03c4a..dd0347515471 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/plans_list_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/plans_list_maximum_set_gen.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Plans_List_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Plans_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/plans_list_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/plans_list_minimum_set_gen.py index 9fbdb0121943..9e870b7f213a 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/plans_list_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/plans_list_minimum_set_gen.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/Plans_List_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/Plans_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_create_or_update_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_create_or_update_maximum_set_gen.py index d9896bc46808..20d4bdd31ce1 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_create_or_update_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_create_or_update_maximum_set_gen.py @@ -64,6 +64,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/TagRules_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/TagRules_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_create_or_update_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_create_or_update_minimum_set_gen.py index 75efaf68e398..cc411c599c17 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_create_or_update_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_create_or_update_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/TagRules_CreateOrUpdate_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/TagRules_CreateOrUpdate_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_delete_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_delete_maximum_set_gen.py index 39e6f9ba4f96..0981ca3cd4cf 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_delete_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/TagRules_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/TagRules_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_delete_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_delete_minimum_set_gen.py index f5f3088eaf3f..2de84f327a7c 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_delete_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_delete_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/TagRules_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/TagRules_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_get_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_get_maximum_set_gen.py index 1208ec3ee7d3..8737ed1a4cca 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_get_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_get_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/TagRules_Get_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/TagRules_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_get_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_get_minimum_set_gen.py index 7b3639a8a4df..70a3fe668bf9 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_get_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_get_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/TagRules_Get_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/TagRules_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_list_by_new_relic_monitor_resource_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_list_by_new_relic_monitor_resource_maximum_set_gen.py index 133c70fbed26..48d28de902ea 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_list_by_new_relic_monitor_resource_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_list_by_new_relic_monitor_resource_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/TagRules_ListByNewRelicMonitorResource_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/TagRules_ListByNewRelicMonitorResource_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_list_by_new_relic_monitor_resource_minimum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_list_by_new_relic_monitor_resource_minimum_set_gen.py index 58a770c7cc6f..d0ce65f75ca6 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_list_by_new_relic_monitor_resource_minimum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_list_by_new_relic_monitor_resource_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/TagRules_ListByNewRelicMonitorResource_MinimumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/TagRules_ListByNewRelicMonitorResource_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_update_maximum_set_gen.py b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_update_maximum_set_gen.py index 67188b20d3fc..380bfb4512ad 100644 --- a/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_update_maximum_set_gen.py +++ b/sdk/newrelicobservability/azure-mgmt-newrelicobservability/generated_samples/tag_rules_update_maximum_set_gen.py @@ -63,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/preview/2022-07-01-preview/examples/TagRules_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/newrelic/resource-manager/NewRelic.Observability/stable/2022-07-01/examples/TagRules_Update_MaximumSet_Gen.json if __name__ == "__main__": main()