From 3b743398a530a896a1b6cab86a0d23847ac990fe Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Sun, 17 Mar 2024 22:58:46 -0400 Subject: [PATCH] [AutoRelease] t2-mobilenetwork-2024-02-21-79731(can only be merged by SDK owner) (#34390) * code and test * update-testcase --------- Co-authored-by: azure-sdk Co-authored-by: ChenxiJiang333 --- .../azure-mgmt-mobilenetwork/CHANGELOG.md | 10 + .../azure-mgmt-mobilenetwork/README.md | 4 +- .../azure-mgmt-mobilenetwork/_meta.json | 2 +- .../azure-mgmt-mobilenetwork/assets.json | 6 + .../mgmt/mobilenetwork/_configuration.py | 4 +- .../_mobile_network_management_client.py | 13 +- .../azure/mgmt/mobilenetwork/_version.py | 2 +- .../mgmt/mobilenetwork/aio/_configuration.py | 4 +- .../aio/_mobile_network_management_client.py | 13 +- .../mobilenetwork/aio/operations/__init__.py | 4 + .../_extended_ue_information_operations.py | 119 ++ .../operations/_mobile_networks_operations.py | 24 +- .../_packet_core_control_planes_operations.py | 6 +- .../operations/_ue_information_operations.py | 145 ++ .../mgmt/mobilenetwork/models/__init__.py | 40 + ..._mobile_network_management_client_enums.py | 52 + .../mgmt/mobilenetwork/models/_models_py3.py | 1273 ++++++++++++++++- .../mgmt/mobilenetwork/operations/__init__.py | 4 + .../_attached_data_networks_operations.py | 10 +- .../operations/_data_networks_operations.py | 10 +- .../_diagnostics_packages_operations.py | 8 +- .../_extended_ue_information_operations.py | 162 +++ .../operations/_mobile_networks_operations.py | 36 +- .../mobilenetwork/operations/_operations.py | 2 +- .../operations/_packet_captures_operations.py | 10 +- ..._core_control_plane_versions_operations.py | 8 +- .../_packet_core_control_planes_operations.py | 24 +- .../_packet_core_data_planes_operations.py | 10 +- .../operations/_services_operations.py | 10 +- .../operations/_sim_groups_operations.py | 12 +- .../operations/_sim_policies_operations.py | 10 +- .../operations/_sims_operations.py | 14 +- .../operations/_sites_operations.py | 12 +- .../operations/_slices_operations.py | 10 +- .../operations/_ue_information_operations.py | 187 +++ .../dev_requirements.txt | 1 + .../attached_data_network_create.py | 2 +- .../attached_data_network_delete.py | 2 +- .../attached_data_network_get.py | 2 +- ..._network_list_by_packet_core_data_plane.py | 2 +- .../attached_data_network_update_tags.py | 2 +- .../generated_samples/data_network_create.py | 2 +- .../generated_samples/data_network_delete.py | 2 +- .../generated_samples/data_network_get.py | 2 +- .../data_network_list_by_mobile_network.py | 2 +- .../data_network_update_tags.py | 2 +- .../diagnostics_package_create.py | 2 +- .../diagnostics_package_delete.py | 2 +- .../diagnostics_package_get.py | 2 +- ...ckage_list_by_packet_core_control_plane.py | 2 +- .../extended_ue_info4_gget.py | 42 + .../extended_ue_info5_gget.py | 42 + .../mobile_network_create.py | 24 +- .../mobile_network_delete.py | 2 +- .../generated_samples/mobile_network_get.py | 2 +- .../mobile_network_list_by_resource_group.py | 2 +- .../mobile_network_list_by_subscription.py | 2 +- .../mobile_network_update_tags.py | 2 +- .../generated_samples/operation_list.py | 2 +- .../packet_capture_create.py | 2 +- .../packet_capture_delete.py | 2 +- .../generated_samples/packet_capture_get.py | 2 +- ...pture_list_by_packet_core_control_plane.py | 2 +- .../generated_samples/packet_capture_stop.py | 2 +- ...ntrol_plane_collect_diagnostics_package.py | 2 +- .../packet_core_control_plane_create.py | 2 +- .../packet_core_control_plane_delete.py | 2 +- .../packet_core_control_plane_get.py | 2 +- ...re_control_plane_list_by_resource_group.py | 2 +- ...core_control_plane_list_by_subscription.py | 2 +- .../packet_core_control_plane_patch.py | 2 +- .../packet_core_control_plane_reinstall.py | 2 +- .../packet_core_control_plane_rollback.py | 2 +- .../packet_core_control_plane_version_get.py | 2 +- ...ntrol_plane_version_get_by_subscription.py | 2 +- .../packet_core_control_plane_version_list.py | 2 +- ...trol_plane_version_list_by_subscription.py | 2 +- .../packet_core_data_plane_create.py | 2 +- .../packet_core_data_plane_delete.py | 2 +- .../packet_core_data_plane_get.py | 2 +- ...plane_list_by_packet_core_control_plane.py | 2 +- .../packet_core_data_plane_update_tags.py | 2 +- .../generated_samples/service_create.py | 2 +- .../generated_samples/service_delete.py | 2 +- .../generated_samples/service_get.py | 2 +- .../service_list_by_mobile_network.py | 2 +- .../generated_samples/service_update_tags.py | 2 +- .../generated_samples/sim_bulk_delete.py | 2 +- .../generated_samples/sim_bulk_upload.py | 2 +- .../sim_bulk_upload_encrypted.py | 2 +- .../generated_samples/sim_create.py | 2 +- .../generated_samples/sim_delete.py | 2 +- .../generated_samples/sim_get.py | 2 +- .../generated_samples/sim_group_create.py | 2 +- .../generated_samples/sim_group_delete.py | 2 +- .../generated_samples/sim_group_get.py | 2 +- .../sim_group_list_by_resource_group.py | 2 +- .../sim_group_list_by_subscription.py | 2 +- .../generated_samples/sim_group_patch.py | 2 +- .../sim_list_by_sim_group.py | 2 +- .../generated_samples/sim_policy_create.py | 2 +- .../generated_samples/sim_policy_delete.py | 2 +- .../generated_samples/sim_policy_get.py | 2 +- .../sim_policy_list_by_mobile_network.py | 2 +- .../sim_policy_update_tags.py | 2 +- .../generated_samples/site_create.py | 2 +- .../generated_samples/site_delete.py | 2 +- .../site_delete_packet_core.py | 2 +- .../generated_samples/site_get.py | 2 +- .../site_list_by_mobile_network.py | 2 +- .../generated_samples/site_update_tags.py | 2 +- .../generated_samples/slice_create.py | 2 +- .../generated_samples/slice_delete.py | 2 +- .../generated_samples/slice_get.py | 2 +- .../slice_list_by_mobile_network.py | 2 +- .../generated_samples/slice_update_tags.py | 2 +- .../generated_samples/ue_info_list.py | 42 + .../azure-mgmt-mobilenetwork/setup.py | 5 +- .../tests/conftest.py | 50 + .../tests/test_cli_mgmt_mobilenetwork.py | 26 + sdk/mobilenetwork/ci.yml | 1 + 121 files changed, 2438 insertions(+), 209 deletions(-) create mode 100644 sdk/mobilenetwork/azure-mgmt-mobilenetwork/assets.json create mode 100644 sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_extended_ue_information_operations.py create mode 100644 sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_ue_information_operations.py create mode 100644 sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_extended_ue_information_operations.py create mode 100644 sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_ue_information_operations.py create mode 100644 sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/extended_ue_info4_gget.py create mode 100644 sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/extended_ue_info5_gget.py create mode 100644 sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/ue_info_list.py create mode 100644 sdk/mobilenetwork/azure-mgmt-mobilenetwork/tests/conftest.py create mode 100644 sdk/mobilenetwork/azure-mgmt-mobilenetwork/tests/test_cli_mgmt_mobilenetwork.py diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/CHANGELOG.md b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/CHANGELOG.md index 69e3dea4a8fb..4ea7f2df6938 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/CHANGELOG.md +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 3.2.0 (2024-03-18) + +### Features Added + + - Added operation group ExtendedUeInformationOperations + - Added operation group UeInformationOperations + - Model MobileNetwork has a new parameter identity + - Model MobileNetwork has a new parameter public_land_mobile_networks + - Model PacketCoreControlPlane has a new parameter home_network_private_keys_provisioning + ## 3.1.0 (2023-11-20) ### Features Added diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/README.md b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/README.md index 9869cd5319bf..272fbdeba146 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/README.md +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/README.md @@ -1,7 +1,7 @@ # Microsoft Azure SDK for Python This is the Microsoft Azure Mobilenetwork Management Client Library. -This package has been tested with Python 3.7+. +This package has been tested with Python 3.8+. For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). ## _Disclaimer_ @@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For ### Prerequisites -- Python 3.7+ is required to use this package. +- Python 3.8+ is required to use this package. - [Azure subscription](https://azure.microsoft.com/free/) ### Install the package diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/_meta.json b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/_meta.json index cdbcacc99387..37f400d83c9a 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/_meta.json +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/_meta.json @@ -1,5 +1,5 @@ { - "commit": "fe3f311a4d963b0e9b1c39d6f3859175189f0e90", + "commit": "c7b8df506c79231f08e1d878b1c4917a5abb1113", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.9.7", "use": [ diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/assets.json b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/assets.json new file mode 100644 index 000000000000..70ea9dbcd398 --- /dev/null +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "python", + "TagPrefix": "python/mobilenetwork/azure-mgmt-mobilenetwork", + "Tag": "python/mobilenetwork/azure-mgmt-mobilenetwork_f697b1e70b" +} diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_configuration.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_configuration.py index e7ea6cdd23fb..afdfee030d0d 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_configuration.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_configuration.py @@ -29,14 +29,14 @@ class MobileNetworkManagementClientConfiguration(Configuration): # pylint: disa :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2024-02-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(MobileNetworkManagementClientConfiguration, self).__init__(**kwargs) - api_version: str = kwargs.pop("api_version", "2023-09-01") + api_version: str = kwargs.pop("api_version", "2024-02-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_mobile_network_management_client.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_mobile_network_management_client.py index e4fc1747ef35..af1bc6613e2e 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_mobile_network_management_client.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_mobile_network_management_client.py @@ -19,6 +19,7 @@ AttachedDataNetworksOperations, DataNetworksOperations, DiagnosticsPackagesOperations, + ExtendedUeInformationOperations, MobileNetworksOperations, Operations, PacketCapturesOperations, @@ -31,6 +32,7 @@ SimsOperations, SitesOperations, SlicesOperations, + UeInformationOperations, ) if TYPE_CHECKING: @@ -77,13 +79,18 @@ class MobileNetworkManagementClient: # pylint: disable=client-accepts-api-versi :vartype sites: azure.mgmt.mobilenetwork.operations.SitesOperations :ivar slices: SlicesOperations operations :vartype slices: azure.mgmt.mobilenetwork.operations.SlicesOperations + :ivar extended_ue_information: ExtendedUeInformationOperations operations + :vartype extended_ue_information: + azure.mgmt.mobilenetwork.operations.ExtendedUeInformationOperations + :ivar ue_information: UeInformationOperations operations + :vartype ue_information: azure.mgmt.mobilenetwork.operations.UeInformationOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :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 "2023-09-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2024-02-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 @@ -131,6 +138,10 @@ def __init__( self.sim_policies = SimPoliciesOperations(self._client, self._config, self._serialize, self._deserialize) self.sites = SitesOperations(self._client, self._config, self._serialize, self._deserialize) self.slices = SlicesOperations(self._client, self._config, self._serialize, self._deserialize) + self.extended_ue_information = ExtendedUeInformationOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.ue_information = UeInformationOperations(self._client, self._config, self._serialize, self._deserialize) def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse: """Runs the network request through the client's chained policies. diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_version.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_version.py index 47babc28d5ed..509b38085125 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_version.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "3.1.0" +VERSION = "3.2.0" diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/_configuration.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/_configuration.py index 0af3118ec8d0..6c0793dd77c4 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/_configuration.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/_configuration.py @@ -29,14 +29,14 @@ class MobileNetworkManagementClientConfiguration(Configuration): # pylint: disa :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2024-02-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(MobileNetworkManagementClientConfiguration, self).__init__(**kwargs) - api_version: str = kwargs.pop("api_version", "2023-09-01") + api_version: str = kwargs.pop("api_version", "2024-02-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/_mobile_network_management_client.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/_mobile_network_management_client.py index 6a7eb8358e0d..f2d95d305f97 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/_mobile_network_management_client.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/_mobile_network_management_client.py @@ -19,6 +19,7 @@ AttachedDataNetworksOperations, DataNetworksOperations, DiagnosticsPackagesOperations, + ExtendedUeInformationOperations, MobileNetworksOperations, Operations, PacketCapturesOperations, @@ -31,6 +32,7 @@ SimsOperations, SitesOperations, SlicesOperations, + UeInformationOperations, ) if TYPE_CHECKING: @@ -77,13 +79,18 @@ class MobileNetworkManagementClient: # pylint: disable=client-accepts-api-versi :vartype sites: azure.mgmt.mobilenetwork.aio.operations.SitesOperations :ivar slices: SlicesOperations operations :vartype slices: azure.mgmt.mobilenetwork.aio.operations.SlicesOperations + :ivar extended_ue_information: ExtendedUeInformationOperations operations + :vartype extended_ue_information: + azure.mgmt.mobilenetwork.aio.operations.ExtendedUeInformationOperations + :ivar ue_information: UeInformationOperations operations + :vartype ue_information: azure.mgmt.mobilenetwork.aio.operations.UeInformationOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :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 "2023-09-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2024-02-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 @@ -131,6 +138,10 @@ def __init__( self.sim_policies = SimPoliciesOperations(self._client, self._config, self._serialize, self._deserialize) self.sites = SitesOperations(self._client, self._config, self._serialize, self._deserialize) self.slices = SlicesOperations(self._client, self._config, self._serialize, self._deserialize) + self.extended_ue_information = ExtendedUeInformationOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.ue_information = UeInformationOperations(self._client, self._config, self._serialize, self._deserialize) def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/__init__.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/__init__.py index 2f03dce83d9e..c6893634e771 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/__init__.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/__init__.py @@ -21,6 +21,8 @@ from ._sim_policies_operations import SimPoliciesOperations from ._sites_operations import SitesOperations from ._slices_operations import SlicesOperations +from ._extended_ue_information_operations import ExtendedUeInformationOperations +from ._ue_information_operations import UeInformationOperations from ._patch import __all__ as _patch_all from ._patch import * # pylint: disable=unused-wildcard-import @@ -42,6 +44,8 @@ "SimPoliciesOperations", "SitesOperations", "SlicesOperations", + "ExtendedUeInformationOperations", + "UeInformationOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) _patch_sdk() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_extended_ue_information_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_extended_ue_information_operations.py new file mode 100644 index 000000000000..562e12187303 --- /dev/null +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_extended_ue_information_operations.py @@ -0,0 +1,119 @@ +# pylint: disable=too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, Callable, Dict, Optional, TypeVar + +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models +from ..._vendor import _convert_request +from ...operations._extended_ue_information_operations import build_get_request + +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + + +class ExtendedUeInformationOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.mobilenetwork.aio.MobileNetworkManagementClient`'s + :attr:`extended_ue_information` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, packet_core_control_plane_name: str, ue_id: str, **kwargs: Any + ) -> _models.ExtendedUeInfo: + """Gets extended information about the specified UE from the packet core. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param packet_core_control_plane_name: The name of the packet core control plane. Required. + :type packet_core_control_plane_name: str + :param ue_id: IMSI of a UE. Required. + :type ue_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ExtendedUeInfo or the result of cls(response) + :rtype: ~azure.mgmt.mobilenetwork.models.ExtendedUeInfo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.ExtendedUeInfo] = kwargs.pop("cls", None) + + request = build_get_request( + resource_group_name=resource_group_name, + packet_core_control_plane_name=packet_core_control_plane_name, + ue_id=ue_id, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.get.metadata["url"], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + 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 = self._deserialize("ExtendedUeInfo", pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get.metadata = { + "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/ues/{ueId}/extendedInformation/default" + } diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_mobile_networks_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_mobile_networks_operations.py index f781959fab84..9ebaf77a6310 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_mobile_networks_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_mobile_networks_operations.py @@ -478,20 +478,20 @@ async def update_tags( self, resource_group_name: str, mobile_network_name: str, - parameters: _models.TagsObject, + parameters: _models.IdentityAndTagsObject, *, content_type: str = "application/json", **kwargs: Any ) -> _models.MobileNetwork: - """Updates mobile network tags. + """Updates mobile network tags and managed identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param mobile_network_name: The name of the mobile network. Required. :type mobile_network_name: str - :param parameters: Parameters supplied to update mobile network tags. Required. - :type parameters: ~azure.mgmt.mobilenetwork.models.TagsObject + :param parameters: Parameters supplied to update mobile network tags and/or identity. Required. + :type parameters: ~azure.mgmt.mobilenetwork.models.IdentityAndTagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -511,14 +511,14 @@ async def update_tags( content_type: str = "application/json", **kwargs: Any ) -> _models.MobileNetwork: - """Updates mobile network tags. + """Updates mobile network tags and managed identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param mobile_network_name: The name of the mobile network. Required. :type mobile_network_name: str - :param parameters: Parameters supplied to update mobile network tags. Required. + :param parameters: Parameters supplied to update mobile network tags and/or identity. Required. :type parameters: IO :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -534,19 +534,19 @@ async def update_tags( self, resource_group_name: str, mobile_network_name: str, - parameters: Union[_models.TagsObject, IO], + parameters: Union[_models.IdentityAndTagsObject, IO], **kwargs: Any ) -> _models.MobileNetwork: - """Updates mobile network tags. + """Updates mobile network tags and managed identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param mobile_network_name: The name of the mobile network. Required. :type mobile_network_name: str - :param parameters: Parameters supplied to update mobile network tags. Is either a TagsObject - type or a IO type. Required. - :type parameters: ~azure.mgmt.mobilenetwork.models.TagsObject or IO + :param parameters: Parameters supplied to update mobile network tags and/or identity. Is either + a IdentityAndTagsObject type or a IO type. Required. + :type parameters: ~azure.mgmt.mobilenetwork.models.IdentityAndTagsObject or IO :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. Default value is None. :paramtype content_type: str @@ -576,7 +576,7 @@ async def update_tags( if isinstance(parameters, (IOBase, bytes)): _content = parameters else: - _json = self._serialize.body(parameters, "TagsObject") + _json = self._serialize.body(parameters, "IdentityAndTagsObject") request = build_update_tags_request( resource_group_name=resource_group_name, diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_packet_core_control_planes_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_packet_core_control_planes_operations.py index b8856c2eded4..e88d50057322 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_packet_core_control_planes_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_packet_core_control_planes_operations.py @@ -985,9 +985,9 @@ async def _reinstall_initial( async def begin_reinstall( self, resource_group_name: str, packet_core_control_plane_name: str, **kwargs: Any ) -> AsyncLROPoller[_models.AsyncOperationStatus]: - """Reinstall the specified packet core control plane. This action will remove any transaction - state from the packet core to return it to a known state. This action will cause a service - outage. + """Reinstall the specified packet core control plane. This action will try to restore the packet + core to the installed state that was disrupted by a transient failure. This action will cause a + service outage. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_ue_information_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_ue_information_operations.py new file mode 100644 index 000000000000..a2a6647561c3 --- /dev/null +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_ue_information_operations.py @@ -0,0 +1,145 @@ +# pylint: disable=too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar +import urllib.parse + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models +from ..._vendor import _convert_request +from ...operations._ue_information_operations import build_list_request + +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + + +class UeInformationOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.mobilenetwork.aio.MobileNetworkManagementClient`'s + :attr:`ue_information` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list( + self, resource_group_name: str, packet_core_control_plane_name: str, **kwargs: Any + ) -> AsyncIterable["_models.UeInfo"]: + """List all UEs and their state in a packet core. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param packet_core_control_plane_name: The name of the packet core control plane. Required. + :type packet_core_control_plane_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either UeInfo or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.mobilenetwork.models.UeInfo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.UeInfoList] = kwargs.pop("cls", None) + + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + resource_group_name=resource_group_name, + packet_core_control_plane_name=packet_core_control_plane_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.list.metadata["url"], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("UeInfoList", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + 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) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + list.metadata = { + "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/ues" + } diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/__init__.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/__init__.py index 9088a1e02818..02204c32ec23 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/__init__.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/__init__.py @@ -26,12 +26,17 @@ from ._models_py3 import DiagnosticsPackage from ._models_py3 import DiagnosticsPackageListResult from ._models_py3 import DiagnosticsUploadConfiguration +from ._models_py3 import DnnIpPair from ._models_py3 import EncryptedSimPropertiesFormat from ._models_py3 import EncryptedSimUploadList from ._models_py3 import ErrorAdditionalInfo from ._models_py3 import ErrorDetail from ._models_py3 import ErrorResponse from ._models_py3 import EventHubConfiguration +from ._models_py3 import ExtendedUeInfo +from ._models_py3 import ExtendedUeInfoProperties +from ._models_py3 import HomeNetworkPrivateKeysProvisioning +from ._models_py3 import HomeNetworkPublicKey from ._models_py3 import HttpsServerCertificate from ._models_py3 import IdentityAndTagsObject from ._models_py3 import Installation @@ -66,6 +71,8 @@ from ._models_py3 import PortRange from ._models_py3 import PortReuseHoldTimes from ._models_py3 import ProxyResource +from ._models_py3 import PublicLandMobileNetwork +from ._models_py3 import PublicLandMobileNetworkHomeNetworkPublicKeys from ._models_py3 import QosPolicy from ._models_py3 import Resource from ._models_py3 import Service @@ -101,6 +108,13 @@ from ._models_py3 import SystemData from ._models_py3 import TagsObject from ._models_py3 import TrackedResource +from ._models_py3 import UeInfo +from ._models_py3 import UeInfo4G +from ._models_py3 import UeInfo5G +from ._models_py3 import UeInfoList +from ._models_py3 import UeQOSFlow +from ._models_py3 import UeSessionInfo4G +from ._models_py3 import UeSessionInfo5G from ._models_py3 import UserAssignedIdentity from ._mobile_network_management_client_enums import AuthenticationType @@ -110,23 +124,29 @@ from ._mobile_network_management_client_enums import CreatedByType from ._mobile_network_management_client_enums import DesiredInstallationState from ._mobile_network_management_client_enums import DiagnosticsPackageStatus +from ._mobile_network_management_client_enums import HomeNetworkPrivateKeysProvisioningState from ._mobile_network_management_client_enums import InstallationReason from ._mobile_network_management_client_enums import InstallationState from ._mobile_network_management_client_enums import ManagedServiceIdentityType from ._mobile_network_management_client_enums import NaptEnabled from ._mobile_network_management_client_enums import ObsoleteVersion from ._mobile_network_management_client_enums import PacketCaptureStatus +from ._mobile_network_management_client_enums import PdnType from ._mobile_network_management_client_enums import PduSessionType from ._mobile_network_management_client_enums import PlatformType from ._mobile_network_management_client_enums import PreemptionCapability from ._mobile_network_management_client_enums import PreemptionVulnerability from ._mobile_network_management_client_enums import ProvisioningState +from ._mobile_network_management_client_enums import RatType from ._mobile_network_management_client_enums import RecommendedVersion from ._mobile_network_management_client_enums import ReinstallRequired +from ._mobile_network_management_client_enums import RrcEstablishmentCause from ._mobile_network_management_client_enums import SdfDirection from ._mobile_network_management_client_enums import SimState from ._mobile_network_management_client_enums import SiteProvisioningState from ._mobile_network_management_client_enums import TrafficControlPermission +from ._mobile_network_management_client_enums import UeState +from ._mobile_network_management_client_enums import UeUsageSetting from ._mobile_network_management_client_enums import VersionState from ._patch import __all__ as _patch_all from ._patch import * # pylint: disable=unused-wildcard-import @@ -153,12 +173,17 @@ "DiagnosticsPackage", "DiagnosticsPackageListResult", "DiagnosticsUploadConfiguration", + "DnnIpPair", "EncryptedSimPropertiesFormat", "EncryptedSimUploadList", "ErrorAdditionalInfo", "ErrorDetail", "ErrorResponse", "EventHubConfiguration", + "ExtendedUeInfo", + "ExtendedUeInfoProperties", + "HomeNetworkPrivateKeysProvisioning", + "HomeNetworkPublicKey", "HttpsServerCertificate", "IdentityAndTagsObject", "Installation", @@ -193,6 +218,8 @@ "PortRange", "PortReuseHoldTimes", "ProxyResource", + "PublicLandMobileNetwork", + "PublicLandMobileNetworkHomeNetworkPublicKeys", "QosPolicy", "Resource", "Service", @@ -228,6 +255,13 @@ "SystemData", "TagsObject", "TrackedResource", + "UeInfo", + "UeInfo4G", + "UeInfo5G", + "UeInfoList", + "UeQOSFlow", + "UeSessionInfo4G", + "UeSessionInfo5G", "UserAssignedIdentity", "AuthenticationType", "BillingSku", @@ -236,23 +270,29 @@ "CreatedByType", "DesiredInstallationState", "DiagnosticsPackageStatus", + "HomeNetworkPrivateKeysProvisioningState", "InstallationReason", "InstallationState", "ManagedServiceIdentityType", "NaptEnabled", "ObsoleteVersion", "PacketCaptureStatus", + "PdnType", "PduSessionType", "PlatformType", "PreemptionCapability", "PreemptionVulnerability", "ProvisioningState", + "RatType", "RecommendedVersion", "ReinstallRequired", + "RrcEstablishmentCause", "SdfDirection", "SimState", "SiteProvisioningState", "TrafficControlPermission", + "UeState", + "UeUsageSetting", "VersionState", ] __all__.extend([p for p in _patch_all if p not in __all__]) diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/_mobile_network_management_client_enums.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/_mobile_network_management_client_enums.py index 91f398c2d666..7eaa4f744df0 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/_mobile_network_management_client_enums.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/_mobile_network_management_client_enums.py @@ -85,6 +85,17 @@ class DiagnosticsPackageStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): ERROR = "Error" +class HomeNetworkPrivateKeysProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The provisioning state of the private keys for SUPI concealment.""" + + NOT_PROVISIONED = "NotProvisioned" + """Provisioning of the private keys for SUPI concealment has not been attempted.""" + PROVISIONED = "Provisioned" + """The private keys for SUPI concealment are successfully provisioned.""" + FAILED = "Failed" + """Provisioning of the private keys for SUPI concealment has failed.""" + + class InstallationReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The reason or list of reasons why a packet core has not been installed or requires a reinstall.""" @@ -172,6 +183,12 @@ class PacketCaptureStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): ERROR = "Error" +class PdnType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Packet Data Network Type.""" + + IPV4 = "IPV4" + + class PduSessionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """PDU session type (IPv4/IPv6).""" @@ -220,6 +237,13 @@ class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): DELETED = "Deleted" +class RatType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """RAT Type.""" + + FOUR_G = "4G" + FIVE_G = "5G" + + class RecommendedVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Indicates whether this is the recommended version to use for new packet core control plane deployments. @@ -240,6 +264,17 @@ class ReinstallRequired(str, Enum, metaclass=CaseInsensitiveEnumMeta): """A reinstall of the packet core is not required.""" +class RrcEstablishmentCause(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Radio connection establishment cause.""" + + EMERGENCY = "Emergency" + MOBILE_ORIGINATED_SIGNALING = "MobileOriginatedSignaling" + MOBILE_TERMINATED_SIGNALING = "MobileTerminatedSignaling" + MOBILE_ORIGINATED_DATA = "MobileOriginatedData" + MOBILE_TERMINATED_DATA = "MobileTerminatedData" + SMS = "SMS" + + class SdfDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Service data flow direction.""" @@ -288,6 +323,23 @@ class TrafficControlPermission(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Traffic matching this rule is not allowed to flow.""" +class UeState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """State of the UE.""" + + CONNECTED = "Connected" + IDLE = "Idle" + DETACHED = "Detached" + DEREGISTERED = "Deregistered" + UNKNOWN = "Unknown" + + +class UeUsageSetting(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The UE's usage setting.""" + + VOICE_CENTRIC = "VoiceCentric" + DATA_CENTRIC = "DataCentric" + + class VersionState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The state of this packet core control plane version.""" diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/_models_py3.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/_models_py3.py index 7112f751066e..4d1fca1d0f2a 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/_models_py3.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/models/_models_py3.py @@ -1195,6 +1195,38 @@ def __init__(self, *, storage_account_container_url: str, **kwargs: Any) -> None self.storage_account_container_url = storage_account_container_url +class DnnIpPair(_serialization.Model): + """DNN and UE IP address. + + :ivar dnn: Data network name. + :vartype dnn: str + :ivar ip_v4_addr: IPv4 address. + :vartype ip_v4_addr: str + """ + + _validation = { + "ip_v4_addr": { + "pattern": r"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$" + }, + } + + _attribute_map = { + "dnn": {"key": "dnn", "type": "str"}, + "ip_v4_addr": {"key": "ueIpAddress.ipV4Addr", "type": "str"}, + } + + def __init__(self, *, dnn: Optional[str] = None, ip_v4_addr: Optional[str] = None, **kwargs: Any) -> None: + """ + :keyword dnn: Data network name. + :paramtype dnn: str + :keyword ip_v4_addr: IPv4 address. + :paramtype ip_v4_addr: str + """ + super().__init__(**kwargs) + self.dnn = dnn + self.ip_v4_addr = ip_v4_addr + + class EncryptedSimPropertiesFormat(CommonSimPropertiesFormat): # pylint: disable=too-many-instance-attributes """Encrypted SIM properties. @@ -1514,6 +1546,154 @@ def __init__( self.reporting_interval = reporting_interval +class ExtendedUeInfo(ProxyResource): + """Extended User Equipment (UE) information. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.mobilenetwork.models.SystemData + :ivar properties: Extended UE Information Properties. Required. + :vartype properties: ~azure.mgmt.mobilenetwork.models.ExtendedUeInfoProperties + """ + + _validation = { + "id": {"readonly": True}, + "name": {"readonly": True}, + "type": {"readonly": True}, + "system_data": {"readonly": True}, + "properties": {"required": True}, + } + + _attribute_map = { + "id": {"key": "id", "type": "str"}, + "name": {"key": "name", "type": "str"}, + "type": {"key": "type", "type": "str"}, + "system_data": {"key": "systemData", "type": "SystemData"}, + "properties": {"key": "properties", "type": "ExtendedUeInfoProperties"}, + } + + def __init__(self, *, properties: "_models.ExtendedUeInfoProperties", **kwargs: Any) -> None: + """ + :keyword properties: Extended UE Information Properties. Required. + :paramtype properties: ~azure.mgmt.mobilenetwork.models.ExtendedUeInfoProperties + """ + super().__init__(**kwargs) + self.properties = properties + + +class ExtendedUeInfoProperties(_serialization.Model): + """Extended UE Information Properties. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + UeInfo4G, UeInfo5G + + All required parameters must be populated in order to send to Azure. + + :ivar rat_type: RAT Type. Required. Known values are: "4G" and "5G". + :vartype rat_type: str or ~azure.mgmt.mobilenetwork.models.RatType + :ivar last_read_at: The timestamp of last UE info read from the packet core (UTC). + :vartype last_read_at: ~datetime.datetime + """ + + _validation = { + "rat_type": {"required": True}, + } + + _attribute_map = { + "rat_type": {"key": "ratType", "type": "str"}, + "last_read_at": {"key": "lastReadAt", "type": "iso-8601"}, + } + + _subtype_map = {"rat_type": {"4G": "UeInfo4G", "5G": "UeInfo5G"}} + + def __init__(self, *, last_read_at: Optional[datetime.datetime] = None, **kwargs: Any) -> None: + """ + :keyword last_read_at: The timestamp of last UE info read from the packet core (UTC). + :paramtype last_read_at: ~datetime.datetime + """ + super().__init__(**kwargs) + self.rat_type: Optional[str] = None + self.last_read_at = last_read_at + + +class HomeNetworkPrivateKeysProvisioning(_serialization.Model): + """HomeNetworkPrivateKeysProvisioning. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar state: The provisioning state of the private keys for SUPI concealment. Required. Known + values are: "NotProvisioned", "Provisioned", and "Failed". + :vartype state: str or ~azure.mgmt.mobilenetwork.models.HomeNetworkPrivateKeysProvisioningState + """ + + _validation = { + "state": {"required": True, "readonly": True}, + } + + _attribute_map = { + "state": {"key": "state", "type": "str"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.state = None + + +class HomeNetworkPublicKey(_serialization.Model): + """A key used for SUPI concealment. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The Home Network Public Key Identifier determines which public key was used to + generate the SUCI sent to the AMF. See TS 23.003 Section 2.2B Section 5. Required. + :vartype id: int + :ivar url: The URL of Azure Key Vault secret containing the private key, versioned or + unversioned. For example: + https://contosovault.vault.azure.net/secrets/mySuciPrivateKey/562a4bb76b524a1493a6afe8e536ee78. + :vartype url: str + """ + + _validation = { + "id": {"required": True, "maximum": 255, "minimum": 1}, + } + + _attribute_map = { + "id": {"key": "id", "type": "int"}, + "url": {"key": "url", "type": "str"}, + } + + def __init__( + self, *, id: int, url: Optional[str] = None, **kwargs: Any # pylint: disable=redefined-builtin + ) -> None: + """ + :keyword id: The Home Network Public Key Identifier determines which public key was used to + generate the SUCI sent to the AMF. See TS 23.003 Section 2.2B Section 5. Required. + :paramtype id: int + :keyword url: The URL of Azure Key Vault secret containing the private key, versioned or + unversioned. For example: + https://contosovault.vault.azure.net/secrets/mySuciPrivateKey/562a4bb76b524a1493a6afe8e536ee78. + :paramtype url: str + """ + super().__init__(**kwargs) + self.id = id + self.url = url + + class HttpsServerCertificate(_serialization.Model): """HTTPS server certificate configuration. @@ -1805,7 +1985,7 @@ def __init__( self.user_assigned_identities = user_assigned_identities -class MobileNetwork(TrackedResource): +class MobileNetwork(TrackedResource): # pylint: disable=too-many-instance-attributes """Mobile network resource. Variables are only populated by the server, and will be ignored when sending a request. @@ -1827,14 +2007,21 @@ class MobileNetwork(TrackedResource): :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. :vartype location: str + :ivar identity: The identity used to retrieve any private keys used for SUPI concealment from + Azure key vault. + :vartype identity: ~azure.mgmt.mobilenetwork.models.ManagedServiceIdentity :ivar provisioning_state: The provisioning state of the mobile network resource. Known values are: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", and "Deleted". :vartype provisioning_state: str or ~azure.mgmt.mobilenetwork.models.ProvisioningState :ivar public_land_mobile_network_identifier: The unique public land mobile network identifier - for the network. This is made up of the mobile country code and mobile network code, as defined - in https://www.itu.int/rec/T-REC-E.212. The values 001-01 and 001-001 can be used for testing - and the values 999-99 and 999-999 can be used on internal private networks. Required. + for the network. If both 'publicLandMobileNetworks' and 'publicLandMobileNetworkIdentifier' are + specified, then the 'publicLandMobileNetworks' will take precedence. Required. :vartype public_land_mobile_network_identifier: ~azure.mgmt.mobilenetwork.models.PlmnId + :ivar public_land_mobile_networks: A list of public land mobile networks including their + identifiers. If both 'publicLandMobileNetworks' and 'publicLandMobileNetworkIdentifier' are + specified, then the 'publicLandMobileNetworks' will take precedence. + :vartype public_land_mobile_networks: + list[~azure.mgmt.mobilenetwork.models.PublicLandMobileNetwork] :ivar service_key: The mobile network resource identifier. :vartype service_key: str """ @@ -1847,6 +2034,7 @@ class MobileNetwork(TrackedResource): "location": {"required": True}, "provisioning_state": {"readonly": True}, "public_land_mobile_network_identifier": {"required": True}, + "public_land_mobile_networks": {"min_items": 1, "unique": True}, "service_key": {"readonly": True}, } @@ -1857,11 +2045,16 @@ class MobileNetwork(TrackedResource): "system_data": {"key": "systemData", "type": "SystemData"}, "tags": {"key": "tags", "type": "{str}"}, "location": {"key": "location", "type": "str"}, + "identity": {"key": "identity", "type": "ManagedServiceIdentity"}, "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, "public_land_mobile_network_identifier": { "key": "properties.publicLandMobileNetworkIdentifier", "type": "PlmnId", }, + "public_land_mobile_networks": { + "key": "properties.publicLandMobileNetworks", + "type": "[PublicLandMobileNetwork]", + }, "service_key": {"key": "properties.serviceKey", "type": "str"}, } @@ -1871,6 +2064,8 @@ def __init__( location: str, public_land_mobile_network_identifier: "_models.PlmnId", tags: Optional[Dict[str, str]] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, + public_land_mobile_networks: Optional[List["_models.PublicLandMobileNetwork"]] = None, **kwargs: Any ) -> None: """ @@ -1878,16 +2073,25 @@ def __init__( :paramtype tags: dict[str, str] :keyword location: The geo-location where the resource lives. Required. :paramtype location: str + :keyword identity: The identity used to retrieve any private keys used for SUPI concealment + from Azure key vault. + :paramtype identity: ~azure.mgmt.mobilenetwork.models.ManagedServiceIdentity :keyword public_land_mobile_network_identifier: The unique public land mobile network - identifier for the network. This is made up of the mobile country code and mobile network code, - as defined in https://www.itu.int/rec/T-REC-E.212. The values 001-01 and 001-001 can be used - for testing and the values 999-99 and 999-999 can be used on internal private networks. - Required. + identifier for the network. If both 'publicLandMobileNetworks' and + 'publicLandMobileNetworkIdentifier' are specified, then the 'publicLandMobileNetworks' will + take precedence. Required. :paramtype public_land_mobile_network_identifier: ~azure.mgmt.mobilenetwork.models.PlmnId + :keyword public_land_mobile_networks: A list of public land mobile networks including their + identifiers. If both 'publicLandMobileNetworks' and 'publicLandMobileNetworkIdentifier' are + specified, then the 'publicLandMobileNetworks' will take precedence. + :paramtype public_land_mobile_networks: + list[~azure.mgmt.mobilenetwork.models.PublicLandMobileNetwork] """ super().__init__(tags=tags, location=location, **kwargs) + self.identity = identity self.provisioning_state = None self.public_land_mobile_network_identifier = public_land_mobile_network_identifier + self.public_land_mobile_networks = public_land_mobile_networks self.service_key = None @@ -2373,6 +2577,10 @@ class PacketCoreControlPlane(TrackedResource): # pylint: disable=too-many-insta :ivar interop_settings: Settings to allow interoperability with third party components e.g. RANs and UEs. :vartype interop_settings: JSON + :ivar home_network_private_keys_provisioning: The provisioning state of the secret containing + private keys and keyIds for SUPI concealment. + :vartype home_network_private_keys_provisioning: + ~azure.mgmt.mobilenetwork.models.HomeNetworkPrivateKeysProvisioning """ _validation = { @@ -2391,6 +2599,7 @@ class PacketCoreControlPlane(TrackedResource): # pylint: disable=too-many-insta "sku": {"required": True}, "ue_mtu": {"maximum": 1930, "minimum": 1280}, "local_diagnostics_access": {"required": True}, + "home_network_private_keys_provisioning": {"readonly": True}, } _attribute_map = { @@ -2427,6 +2636,10 @@ class PacketCoreControlPlane(TrackedResource): # pylint: disable=too-many-insta "event_hub": {"key": "properties.eventHub", "type": "EventHubConfiguration"}, "signaling": {"key": "properties.signaling", "type": "SignalingConfiguration"}, "interop_settings": {"key": "properties.interopSettings", "type": "object"}, + "home_network_private_keys_provisioning": { + "key": "properties.homeNetworkPrivateKeysProvisioning", + "type": "HomeNetworkPrivateKeysProvisioning", + }, } def __init__( # pylint: disable=too-many-locals @@ -2519,6 +2732,7 @@ def __init__( # pylint: disable=too-many-locals self.event_hub = event_hub self.signaling = signaling self.interop_settings = interop_settings + self.home_network_private_keys_provisioning = None class PacketCoreControlPlaneCollectDiagnosticsPackage(_serialization.Model): @@ -3279,7 +3493,10 @@ def __init__( class PlmnId(_serialization.Model): - """Public land mobile network (PLMN) ID. + """Public land mobile network (PLMN) ID. This is made up of the mobile country code and mobile + network code, as defined in https://www.itu.int/rec/T-REC-E.212. The values 001-01 and 001-001 + can be used for testing and the values 999-99 and 999-999 can be used on internal private + networks. All required parameters must be populated in order to send to Azure. @@ -3381,6 +3598,96 @@ def __init__(self, *, tcp: int = 120, udp: int = 60, **kwargs: Any) -> None: self.udp = udp +class PublicLandMobileNetwork(PlmnId): + """Configuration relating to a particular PLMN. + + All required parameters must be populated in order to send to Azure. + + :ivar mcc: Mobile country code (MCC). Required. + :vartype mcc: str + :ivar mnc: Mobile network code (MNC). Required. + :vartype mnc: str + :ivar home_network_public_keys: Configuration relating to SUPI concealment. + :vartype home_network_public_keys: + ~azure.mgmt.mobilenetwork.models.PublicLandMobileNetworkHomeNetworkPublicKeys + """ + + _validation = { + "mcc": {"required": True, "pattern": r"^\d{3}$"}, + "mnc": {"required": True, "pattern": r"^\d{2,3}$"}, + } + + _attribute_map = { + "mcc": {"key": "mcc", "type": "str"}, + "mnc": {"key": "mnc", "type": "str"}, + "home_network_public_keys": { + "key": "homeNetworkPublicKeys", + "type": "PublicLandMobileNetworkHomeNetworkPublicKeys", + }, + } + + def __init__( + self, + *, + mcc: str, + mnc: str, + home_network_public_keys: Optional["_models.PublicLandMobileNetworkHomeNetworkPublicKeys"] = None, + **kwargs: Any + ) -> None: + """ + :keyword mcc: Mobile country code (MCC). Required. + :paramtype mcc: str + :keyword mnc: Mobile network code (MNC). Required. + :paramtype mnc: str + :keyword home_network_public_keys: Configuration relating to SUPI concealment. + :paramtype home_network_public_keys: + ~azure.mgmt.mobilenetwork.models.PublicLandMobileNetworkHomeNetworkPublicKeys + """ + super().__init__(mcc=mcc, mnc=mnc, **kwargs) + self.home_network_public_keys = home_network_public_keys + + +class PublicLandMobileNetworkHomeNetworkPublicKeys(_serialization.Model): + """Configuration relating to SUPI concealment. + + :ivar profile_a: This provides a mapping to identify which public key has been used for SUPI + concealment using the Profile A Protection Scheme. + :vartype profile_a: list[~azure.mgmt.mobilenetwork.models.HomeNetworkPublicKey] + :ivar profile_b: This provides a mapping to identify which public key has been used for SUPI + concealment using the Profile B Protection Scheme. + :vartype profile_b: list[~azure.mgmt.mobilenetwork.models.HomeNetworkPublicKey] + """ + + _validation = { + "profile_a": {"unique": True}, + "profile_b": {"unique": True}, + } + + _attribute_map = { + "profile_a": {"key": "profileA", "type": "[HomeNetworkPublicKey]"}, + "profile_b": {"key": "profileB", "type": "[HomeNetworkPublicKey]"}, + } + + def __init__( + self, + *, + profile_a: Optional[List["_models.HomeNetworkPublicKey"]] = None, + profile_b: Optional[List["_models.HomeNetworkPublicKey"]] = None, + **kwargs: Any + ) -> None: + """ + :keyword profile_a: This provides a mapping to identify which public key has been used for SUPI + concealment using the Profile A Protection Scheme. + :paramtype profile_a: list[~azure.mgmt.mobilenetwork.models.HomeNetworkPublicKey] + :keyword profile_b: This provides a mapping to identify which public key has been used for SUPI + concealment using the Profile B Protection Scheme. + :paramtype profile_b: list[~azure.mgmt.mobilenetwork.models.HomeNetworkPublicKey] + """ + super().__init__(**kwargs) + self.profile_a = profile_a + self.profile_b = profile_b + + class Service(TrackedResource): """Service resource. Must be created in the same location as its parent mobile network. @@ -5142,6 +5449,954 @@ def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> N self.tags = tags +class UeInfo(ProxyResource): + """Basic UE Information. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.mobilenetwork.models.SystemData + :ivar rat_type: RAT Type. Required. Known values are: "4G" and "5G". + :vartype rat_type: str or ~azure.mgmt.mobilenetwork.models.RatType + :ivar ue_state: State of the UE. Required. Known values are: "Connected", "Idle", "Detached", + "Deregistered", and "Unknown". + :vartype ue_state: str or ~azure.mgmt.mobilenetwork.models.UeState + :ivar ue_ip_addresses: + :vartype ue_ip_addresses: list[~azure.mgmt.mobilenetwork.models.DnnIpPair] + :ivar last_read_at: The timestamp of last list UEs call to the packet core (UTC). + :vartype last_read_at: ~datetime.datetime + """ + + _validation = { + "id": {"readonly": True}, + "name": {"readonly": True}, + "type": {"readonly": True}, + "system_data": {"readonly": True}, + "rat_type": {"required": True}, + "ue_state": {"required": True}, + "ue_ip_addresses": {"min_items": 1}, + } + + _attribute_map = { + "id": {"key": "id", "type": "str"}, + "name": {"key": "name", "type": "str"}, + "type": {"key": "type", "type": "str"}, + "system_data": {"key": "systemData", "type": "SystemData"}, + "rat_type": {"key": "properties.ratType", "type": "str"}, + "ue_state": {"key": "properties.ueState", "type": "str"}, + "ue_ip_addresses": {"key": "properties.ueIpAddresses", "type": "[DnnIpPair]"}, + "last_read_at": {"key": "properties.lastReadAt", "type": "iso-8601"}, + } + + def __init__( + self, + *, + rat_type: Union[str, "_models.RatType"], + ue_state: Union[str, "_models.UeState"], + ue_ip_addresses: Optional[List["_models.DnnIpPair"]] = None, + last_read_at: Optional[datetime.datetime] = None, + **kwargs: Any + ) -> None: + """ + :keyword rat_type: RAT Type. Required. Known values are: "4G" and "5G". + :paramtype rat_type: str or ~azure.mgmt.mobilenetwork.models.RatType + :keyword ue_state: State of the UE. Required. Known values are: "Connected", "Idle", + "Detached", "Deregistered", and "Unknown". + :paramtype ue_state: str or ~azure.mgmt.mobilenetwork.models.UeState + :keyword ue_ip_addresses: + :paramtype ue_ip_addresses: list[~azure.mgmt.mobilenetwork.models.DnnIpPair] + :keyword last_read_at: The timestamp of last list UEs call to the packet core (UTC). + :paramtype last_read_at: ~datetime.datetime + """ + super().__init__(**kwargs) + self.rat_type = rat_type + self.ue_state = ue_state + self.ue_ip_addresses = ue_ip_addresses + self.last_read_at = last_read_at + + +class UeInfo4G(ExtendedUeInfoProperties): # pylint: disable=too-many-instance-attributes + """UE Information for 4G. + + All required parameters must be populated in order to send to Azure. + + :ivar rat_type: RAT Type. Required. Known values are: "4G" and "5G". + :vartype rat_type: str or ~azure.mgmt.mobilenetwork.models.RatType + :ivar last_read_at: The timestamp of last UE info read from the packet core (UTC). + :vartype last_read_at: ~datetime.datetime + :ivar imsi: International mobile subscriber identifier. Required. + :vartype imsi: str + :ivar imei: International mobile equipment identity. + :vartype imei: str + :ivar imeisv: International mobile equipment identity – software version. + :vartype imeisv: str + :ivar session_info: + :vartype session_info: list[~azure.mgmt.mobilenetwork.models.UeSessionInfo4G] + :ivar per_ue_tnla: Per-UE transport network layer association. + :vartype per_ue_tnla: str + :ivar mme_s1_ap_id: MME S1AP identifier. + :vartype mme_s1_ap_id: int + :ivar enb_s1_ap_id: eNodeB S1AP identifier. + :vartype enb_s1_ap_id: int + :ivar last_visited_tai: Last Visited TAI. + :vartype last_visited_tai: str + :ivar ue_state: State of the UE. Known values are: "Connected", "Idle", "Detached", + "Deregistered", and "Unknown". + :vartype ue_state: str or ~azure.mgmt.mobilenetwork.models.UeState + :ivar rrc_establishment_cause: Radio connection establishment cause. Known values are: + "Emergency", "MobileOriginatedSignaling", "MobileTerminatedSignaling", "MobileOriginatedData", + "MobileTerminatedData", and "SMS". + :vartype rrc_establishment_cause: str or ~azure.mgmt.mobilenetwork.models.RrcEstablishmentCause + :ivar ue_usage_setting: The UE's usage setting. Known values are: "VoiceCentric" and + "DataCentric". + :vartype ue_usage_setting: str or ~azure.mgmt.mobilenetwork.models.UeUsageSetting + :ivar last_activity_time: The timestamp of last activity of UE (UTC). + :vartype last_activity_time: ~datetime.datetime + :ivar nge_nb_id: NG-eNodeB identifier. + :vartype nge_nb_id: str + :ivar e_nb_id: eNodeB identifier. + :vartype e_nb_id: str + :ivar n3_iwf_id: N3 IWF identifier. + :vartype n3_iwf_id: str + :ivar wagf_id: W-AGF identifier. + :vartype wagf_id: str + :ivar tngf_id: TNGF identifier. + :vartype tngf_id: str + :ivar nid: Network identifier. + :vartype nid: str + :ivar bit_length: + :vartype bit_length: int + :ivar g_nb_value: + :vartype g_nb_value: str + :ivar mcc_info_connection_info_global_ran_node_id_plmn_id_mcc: Mobile country code (MCC). + :vartype mcc_info_connection_info_global_ran_node_id_plmn_id_mcc: str + :ivar mnc_info_connection_info_global_ran_node_id_plmn_id_mnc: Mobile network code (MNC). + :vartype mnc_info_connection_info_global_ran_node_id_plmn_id_mnc: str + :ivar location_type: Location Type. + :vartype location_type: str + :ivar tac: Type Allocation Code of UE. + :vartype tac: str + :ivar mcc_info_connection_info_location_info_plmn_mcc: Mobile country code (MCC). + :vartype mcc_info_connection_info_location_info_plmn_mcc: str + :ivar mnc_info_connection_info_location_info_plmn_mnc: Mobile network code (MNC). + :vartype mnc_info_connection_info_location_info_plmn_mnc: str + :ivar m_tmsi: MME Temporary Mobile Subscriber Identity. Required. + :vartype m_tmsi: int + :ivar group_id: MME group identifier. Required. + :vartype group_id: int + :ivar code: MME code. Required. + :vartype code: int + :ivar mcc_info_guti_plmn_mcc: Mobile country code (MCC). Required. + :vartype mcc_info_guti_plmn_mcc: str + :ivar mnc_info_guti_plmn_mnc: Mobile network code (MNC). Required. + :vartype mnc_info_guti_plmn_mnc: str + """ + + _validation = { + "rat_type": {"required": True}, + "imsi": {"required": True, "pattern": r"^[0-9]{5,15}$"}, + "imei": {"pattern": r"^[0-9]{15}$"}, + "imeisv": {"pattern": r"^[0-9]{16}$"}, + "session_info": {"max_items": 11, "min_items": 0}, + "mme_s1_ap_id": {"maximum": 4294967295, "minimum": 0}, + "enb_s1_ap_id": {"maximum": 16777215, "minimum": 0}, + "nge_nb_id": { + "pattern": r"^(MacroNGeNB-[A-Fa-f0-9]{5}|LMacroNGeNB-[A-Fa-f0-9]{6}|SMacroNGeNB-[A-Fa-f0-9]{5})$" + }, + "e_nb_id": { + "pattern": r"^(MacroeNB-[A-Fa-f0-9]{5}|LMacroeNB-[A-Fa-f0-9]{6}|SMacroeNB-[A-Fa-f0-9]{5}|HomeeNB-[A-Fa-f0-9]{7})$" + }, + "n3_iwf_id": {"pattern": r"^[A-Fa-f0-9]+$"}, + "wagf_id": {"pattern": r"^[A-Fa-f0-9]+$"}, + "tngf_id": {"pattern": r"^[A-Fa-f0-9]+$"}, + "nid": {"pattern": r"^[A-Fa-f0-9]{11}$"}, + "bit_length": {"maximum": 32, "minimum": 22}, + "g_nb_value": {"pattern": r"^[A-Fa-f0-9]{6,8}$"}, + "mcc_info_connection_info_global_ran_node_id_plmn_id_mcc": {"pattern": r"^\d{3}$"}, + "mnc_info_connection_info_global_ran_node_id_plmn_id_mnc": {"pattern": r"^\d{2,3}$"}, + "tac": {"pattern": r"(^[A-Fa-f0-9]{4}$)|(^[A-Fa-f0-9]{6}$)"}, + "mcc_info_connection_info_location_info_plmn_mcc": {"pattern": r"^\d{3}$"}, + "mnc_info_connection_info_location_info_plmn_mnc": {"pattern": r"^\d{2,3}$"}, + "m_tmsi": {"required": True, "maximum": 4294967295, "minimum": 0}, + "group_id": {"required": True, "maximum": 65535, "minimum": 0}, + "code": {"required": True, "maximum": 255, "minimum": 0}, + "mcc_info_guti_plmn_mcc": {"required": True, "pattern": r"^\d{3}$"}, + "mnc_info_guti_plmn_mnc": {"required": True, "pattern": r"^\d{2,3}$"}, + } + + _attribute_map = { + "rat_type": {"key": "ratType", "type": "str"}, + "last_read_at": {"key": "lastReadAt", "type": "iso-8601"}, + "imsi": {"key": "info.imsi", "type": "str"}, + "imei": {"key": "info.imei", "type": "str"}, + "imeisv": {"key": "info.imeisv", "type": "str"}, + "session_info": {"key": "info.sessionInfo", "type": "[UeSessionInfo4G]"}, + "per_ue_tnla": {"key": "info.connectionInfo.perUeTnla", "type": "str"}, + "mme_s1_ap_id": {"key": "info.connectionInfo.mmeS1apId", "type": "int"}, + "enb_s1_ap_id": {"key": "info.connectionInfo.enbS1apId", "type": "int"}, + "last_visited_tai": {"key": "info.connectionInfo.lastVisitedTai", "type": "str"}, + "ue_state": {"key": "info.connectionInfo.ueState", "type": "str"}, + "rrc_establishment_cause": {"key": "info.connectionInfo.rrcEstablishmentCause", "type": "str"}, + "ue_usage_setting": {"key": "info.connectionInfo.ueUsageSetting", "type": "str"}, + "last_activity_time": {"key": "info.connectionInfo.lastActivityTime", "type": "iso-8601"}, + "nge_nb_id": {"key": "info.connectionInfo.globalRanNodeId.ngeNbId", "type": "str"}, + "e_nb_id": {"key": "info.connectionInfo.globalRanNodeId.eNbId", "type": "str"}, + "n3_iwf_id": {"key": "info.connectionInfo.globalRanNodeId.n3IwfId", "type": "str"}, + "wagf_id": {"key": "info.connectionInfo.globalRanNodeId.wagfId", "type": "str"}, + "tngf_id": {"key": "info.connectionInfo.globalRanNodeId.tngfId", "type": "str"}, + "nid": {"key": "info.connectionInfo.globalRanNodeId.nid", "type": "str"}, + "bit_length": {"key": "info.connectionInfo.globalRanNodeId.gNbId.bitLength", "type": "int"}, + "g_nb_value": {"key": "info.connectionInfo.globalRanNodeId.gNbId.gNBValue", "type": "str"}, + "mcc_info_connection_info_global_ran_node_id_plmn_id_mcc": { + "key": "info.connectionInfo.globalRanNodeId.plmnId.mcc", + "type": "str", + }, + "mnc_info_connection_info_global_ran_node_id_plmn_id_mnc": { + "key": "info.connectionInfo.globalRanNodeId.plmnId.mnc", + "type": "str", + }, + "location_type": {"key": "info.connectionInfo.locationInfo.locationType", "type": "str"}, + "tac": {"key": "info.connectionInfo.locationInfo.tac", "type": "str"}, + "mcc_info_connection_info_location_info_plmn_mcc": { + "key": "info.connectionInfo.locationInfo.plmn.mcc", + "type": "str", + }, + "mnc_info_connection_info_location_info_plmn_mnc": { + "key": "info.connectionInfo.locationInfo.plmn.mnc", + "type": "str", + }, + "m_tmsi": {"key": "info.guti.mTmsi", "type": "int"}, + "group_id": {"key": "info.guti.mmeId.groupId", "type": "int"}, + "code": {"key": "info.guti.mmeId.code", "type": "int"}, + "mcc_info_guti_plmn_mcc": {"key": "info.guti.plmn.mcc", "type": "str"}, + "mnc_info_guti_plmn_mnc": {"key": "info.guti.plmn.mnc", "type": "str"}, + } + + def __init__( # pylint: disable=too-many-locals + self, + *, + imsi: str, + m_tmsi: int, + group_id: int, + code: int, + mcc_info_guti_plmn_mcc: str, + mnc_info_guti_plmn_mnc: str, + last_read_at: Optional[datetime.datetime] = None, + imei: Optional[str] = None, + imeisv: Optional[str] = None, + session_info: Optional[List["_models.UeSessionInfo4G"]] = None, + per_ue_tnla: Optional[str] = None, + mme_s1_ap_id: Optional[int] = None, + enb_s1_ap_id: Optional[int] = None, + last_visited_tai: Optional[str] = None, + ue_state: Optional[Union[str, "_models.UeState"]] = None, + rrc_establishment_cause: Optional[Union[str, "_models.RrcEstablishmentCause"]] = None, + ue_usage_setting: Optional[Union[str, "_models.UeUsageSetting"]] = None, + last_activity_time: Optional[datetime.datetime] = None, + nge_nb_id: Optional[str] = None, + e_nb_id: Optional[str] = None, + n3_iwf_id: Optional[str] = None, + wagf_id: Optional[str] = None, + tngf_id: Optional[str] = None, + nid: Optional[str] = None, + bit_length: Optional[int] = None, + g_nb_value: Optional[str] = None, + mcc_info_connection_info_global_ran_node_id_plmn_id_mcc: Optional[str] = None, + mnc_info_connection_info_global_ran_node_id_plmn_id_mnc: Optional[str] = None, + location_type: Optional[str] = None, + tac: Optional[str] = None, + mcc_info_connection_info_location_info_plmn_mcc: Optional[str] = None, + mnc_info_connection_info_location_info_plmn_mnc: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword last_read_at: The timestamp of last UE info read from the packet core (UTC). + :paramtype last_read_at: ~datetime.datetime + :keyword imsi: International mobile subscriber identifier. Required. + :paramtype imsi: str + :keyword imei: International mobile equipment identity. + :paramtype imei: str + :keyword imeisv: International mobile equipment identity – software version. + :paramtype imeisv: str + :keyword session_info: + :paramtype session_info: list[~azure.mgmt.mobilenetwork.models.UeSessionInfo4G] + :keyword per_ue_tnla: Per-UE transport network layer association. + :paramtype per_ue_tnla: str + :keyword mme_s1_ap_id: MME S1AP identifier. + :paramtype mme_s1_ap_id: int + :keyword enb_s1_ap_id: eNodeB S1AP identifier. + :paramtype enb_s1_ap_id: int + :keyword last_visited_tai: Last Visited TAI. + :paramtype last_visited_tai: str + :keyword ue_state: State of the UE. Known values are: "Connected", "Idle", "Detached", + "Deregistered", and "Unknown". + :paramtype ue_state: str or ~azure.mgmt.mobilenetwork.models.UeState + :keyword rrc_establishment_cause: Radio connection establishment cause. Known values are: + "Emergency", "MobileOriginatedSignaling", "MobileTerminatedSignaling", "MobileOriginatedData", + "MobileTerminatedData", and "SMS". + :paramtype rrc_establishment_cause: str or + ~azure.mgmt.mobilenetwork.models.RrcEstablishmentCause + :keyword ue_usage_setting: The UE's usage setting. Known values are: "VoiceCentric" and + "DataCentric". + :paramtype ue_usage_setting: str or ~azure.mgmt.mobilenetwork.models.UeUsageSetting + :keyword last_activity_time: The timestamp of last activity of UE (UTC). + :paramtype last_activity_time: ~datetime.datetime + :keyword nge_nb_id: NG-eNodeB identifier. + :paramtype nge_nb_id: str + :keyword e_nb_id: eNodeB identifier. + :paramtype e_nb_id: str + :keyword n3_iwf_id: N3 IWF identifier. + :paramtype n3_iwf_id: str + :keyword wagf_id: W-AGF identifier. + :paramtype wagf_id: str + :keyword tngf_id: TNGF identifier. + :paramtype tngf_id: str + :keyword nid: Network identifier. + :paramtype nid: str + :keyword bit_length: + :paramtype bit_length: int + :keyword g_nb_value: + :paramtype g_nb_value: str + :keyword mcc_info_connection_info_global_ran_node_id_plmn_id_mcc: Mobile country code (MCC). + :paramtype mcc_info_connection_info_global_ran_node_id_plmn_id_mcc: str + :keyword mnc_info_connection_info_global_ran_node_id_plmn_id_mnc: Mobile network code (MNC). + :paramtype mnc_info_connection_info_global_ran_node_id_plmn_id_mnc: str + :keyword location_type: Location Type. + :paramtype location_type: str + :keyword tac: Type Allocation Code of UE. + :paramtype tac: str + :keyword mcc_info_connection_info_location_info_plmn_mcc: Mobile country code (MCC). + :paramtype mcc_info_connection_info_location_info_plmn_mcc: str + :keyword mnc_info_connection_info_location_info_plmn_mnc: Mobile network code (MNC). + :paramtype mnc_info_connection_info_location_info_plmn_mnc: str + :keyword m_tmsi: MME Temporary Mobile Subscriber Identity. Required. + :paramtype m_tmsi: int + :keyword group_id: MME group identifier. Required. + :paramtype group_id: int + :keyword code: MME code. Required. + :paramtype code: int + :keyword mcc_info_guti_plmn_mcc: Mobile country code (MCC). Required. + :paramtype mcc_info_guti_plmn_mcc: str + :keyword mnc_info_guti_plmn_mnc: Mobile network code (MNC). Required. + :paramtype mnc_info_guti_plmn_mnc: str + """ + super().__init__(last_read_at=last_read_at, **kwargs) + self.rat_type: str = "4G" + self.imsi = imsi + self.imei = imei + self.imeisv = imeisv + self.session_info = session_info + self.per_ue_tnla = per_ue_tnla + self.mme_s1_ap_id = mme_s1_ap_id + self.enb_s1_ap_id = enb_s1_ap_id + self.last_visited_tai = last_visited_tai + self.ue_state = ue_state + self.rrc_establishment_cause = rrc_establishment_cause + self.ue_usage_setting = ue_usage_setting + self.last_activity_time = last_activity_time + self.nge_nb_id = nge_nb_id + self.e_nb_id = e_nb_id + self.n3_iwf_id = n3_iwf_id + self.wagf_id = wagf_id + self.tngf_id = tngf_id + self.nid = nid + self.bit_length = bit_length + self.g_nb_value = g_nb_value + self.mcc_info_connection_info_global_ran_node_id_plmn_id_mcc = ( + mcc_info_connection_info_global_ran_node_id_plmn_id_mcc + ) + self.mnc_info_connection_info_global_ran_node_id_plmn_id_mnc = ( + mnc_info_connection_info_global_ran_node_id_plmn_id_mnc + ) + self.location_type = location_type + self.tac = tac + self.mcc_info_connection_info_location_info_plmn_mcc = mcc_info_connection_info_location_info_plmn_mcc + self.mnc_info_connection_info_location_info_plmn_mnc = mnc_info_connection_info_location_info_plmn_mnc + self.m_tmsi = m_tmsi + self.group_id = group_id + self.code = code + self.mcc_info_guti_plmn_mcc = mcc_info_guti_plmn_mcc + self.mnc_info_guti_plmn_mnc = mnc_info_guti_plmn_mnc + + +class UeInfo5G(ExtendedUeInfoProperties): # pylint: disable=too-many-instance-attributes + """UE Information for 5G. + + All required parameters must be populated in order to send to Azure. + + :ivar rat_type: RAT Type. Required. Known values are: "4G" and "5G". + :vartype rat_type: str or ~azure.mgmt.mobilenetwork.models.RatType + :ivar last_read_at: The timestamp of last UE info read from the packet core (UTC). + :vartype last_read_at: ~datetime.datetime + :ivar supi: Subscription Permanent Identifier. Required. + :vartype supi: str + :ivar pei: Permanent Equipment Identifier. + :vartype pei: str + :ivar session_info: + :vartype session_info: list[~azure.mgmt.mobilenetwork.models.UeSessionInfo5G] + :ivar per_ue_tnla: Per-UE transport network layer association. + :vartype per_ue_tnla: str + :ivar amf_ue_ngap_id: The AMF UE NGAP ID. + :vartype amf_ue_ngap_id: int + :ivar ran_ue_ngap_id: The RAN UE NGAP ID. + :vartype ran_ue_ngap_id: int + :ivar last_visited_tai: Last Visited TAI. + :vartype last_visited_tai: str + :ivar allowed_nssai: Allowed Network Slice Selection Assistance Information. + :vartype allowed_nssai: list[~azure.mgmt.mobilenetwork.models.Snssai] + :ivar ue_state: State of the UE. Known values are: "Connected", "Idle", "Detached", + "Deregistered", and "Unknown". + :vartype ue_state: str or ~azure.mgmt.mobilenetwork.models.UeState + :ivar rrc_establishment_cause: Radio connection establishment cause. Known values are: + "Emergency", "MobileOriginatedSignaling", "MobileTerminatedSignaling", "MobileOriginatedData", + "MobileTerminatedData", and "SMS". + :vartype rrc_establishment_cause: str or ~azure.mgmt.mobilenetwork.models.RrcEstablishmentCause + :ivar ue_usage_setting: The UE's usage setting. Known values are: "VoiceCentric" and + "DataCentric". + :vartype ue_usage_setting: str or ~azure.mgmt.mobilenetwork.models.UeUsageSetting + :ivar last_activity_time: The timestamp of last activity of UE (UTC). + :vartype last_activity_time: ~datetime.datetime + :ivar nge_nb_id: NG-eNodeB identifier. + :vartype nge_nb_id: str + :ivar e_nb_id: eNodeB identifier. + :vartype e_nb_id: str + :ivar n3_iwf_id: N3 IWF identifier. + :vartype n3_iwf_id: str + :ivar wagf_id: W-AGF identifier. + :vartype wagf_id: str + :ivar tngf_id: TNGF identifier. + :vartype tngf_id: str + :ivar nid: Network identifier. + :vartype nid: str + :ivar bit_length: + :vartype bit_length: int + :ivar g_nb_value: + :vartype g_nb_value: str + :ivar mcc_info_connection_info_global_ran_node_id_plmn_id_mcc: Mobile country code (MCC). + :vartype mcc_info_connection_info_global_ran_node_id_plmn_id_mcc: str + :ivar mnc_info_connection_info_global_ran_node_id_plmn_id_mnc: Mobile network code (MNC). + :vartype mnc_info_connection_info_global_ran_node_id_plmn_id_mnc: str + :ivar location_type: Location Type. + :vartype location_type: str + :ivar tac: Type Allocation Code of UE. + :vartype tac: str + :ivar mcc_info_connection_info_location_info_plmn_mcc: Mobile country code (MCC). + :vartype mcc_info_connection_info_location_info_plmn_mcc: str + :ivar mnc_info_connection_info_location_info_plmn_mnc: Mobile network code (MNC). + :vartype mnc_info_connection_info_location_info_plmn_mnc: str + :ivar fiveg_tmsi: 5G Temporary Mobile Subscriber Identity. Required. + :vartype fiveg_tmsi: int + :ivar region_id: AMF region identifier. Required. + :vartype region_id: int + :ivar set_id: AMF set identifier. Required. + :vartype set_id: int + :ivar pointer: AMF pointer. Required. + :vartype pointer: int + :ivar mcc_info_fiveg_guti_plmn_mcc: Mobile country code (MCC). Required. + :vartype mcc_info_fiveg_guti_plmn_mcc: str + :ivar mnc_info_fiveg_guti_plmn_mnc: Mobile network code (MNC). Required. + :vartype mnc_info_fiveg_guti_plmn_mnc: str + """ + + _validation = { + "rat_type": {"required": True}, + "supi": {"required": True, "pattern": r"^(imsi-[0-9]{5,15}|nai-.+|.+)$"}, + "pei": {"pattern": r"^(imei-[0-9]{15}|imeisv-[0-9]{16}|.+)$"}, + "session_info": {"max_items": 15, "min_items": 0}, + "amf_ue_ngap_id": {"minimum": 0}, + "ran_ue_ngap_id": {"maximum": 4294967295, "minimum": 0}, + "allowed_nssai": {"max_items": 8, "min_items": 0}, + "nge_nb_id": { + "pattern": r"^(MacroNGeNB-[A-Fa-f0-9]{5}|LMacroNGeNB-[A-Fa-f0-9]{6}|SMacroNGeNB-[A-Fa-f0-9]{5})$" + }, + "e_nb_id": { + "pattern": r"^(MacroeNB-[A-Fa-f0-9]{5}|LMacroeNB-[A-Fa-f0-9]{6}|SMacroeNB-[A-Fa-f0-9]{5}|HomeeNB-[A-Fa-f0-9]{7})$" + }, + "n3_iwf_id": {"pattern": r"^[A-Fa-f0-9]+$"}, + "wagf_id": {"pattern": r"^[A-Fa-f0-9]+$"}, + "tngf_id": {"pattern": r"^[A-Fa-f0-9]+$"}, + "nid": {"pattern": r"^[A-Fa-f0-9]{11}$"}, + "bit_length": {"maximum": 32, "minimum": 22}, + "g_nb_value": {"pattern": r"^[A-Fa-f0-9]{6,8}$"}, + "mcc_info_connection_info_global_ran_node_id_plmn_id_mcc": {"pattern": r"^\d{3}$"}, + "mnc_info_connection_info_global_ran_node_id_plmn_id_mnc": {"pattern": r"^\d{2,3}$"}, + "tac": {"pattern": r"(^[A-Fa-f0-9]{4}$)|(^[A-Fa-f0-9]{6}$)"}, + "mcc_info_connection_info_location_info_plmn_mcc": {"pattern": r"^\d{3}$"}, + "mnc_info_connection_info_location_info_plmn_mnc": {"pattern": r"^\d{2,3}$"}, + "fiveg_tmsi": {"required": True, "maximum": 4294967295, "minimum": 0}, + "region_id": {"required": True, "maximum": 255, "minimum": 0}, + "set_id": {"required": True, "maximum": 1023, "minimum": 0}, + "pointer": {"required": True, "maximum": 63, "minimum": 0}, + "mcc_info_fiveg_guti_plmn_mcc": {"required": True, "pattern": r"^\d{3}$"}, + "mnc_info_fiveg_guti_plmn_mnc": {"required": True, "pattern": r"^\d{2,3}$"}, + } + + _attribute_map = { + "rat_type": {"key": "ratType", "type": "str"}, + "last_read_at": {"key": "lastReadAt", "type": "iso-8601"}, + "supi": {"key": "info.supi", "type": "str"}, + "pei": {"key": "info.pei", "type": "str"}, + "session_info": {"key": "info.sessionInfo", "type": "[UeSessionInfo5G]"}, + "per_ue_tnla": {"key": "info.connectionInfo.perUeTnla", "type": "str"}, + "amf_ue_ngap_id": {"key": "info.connectionInfo.amfUeNgapId", "type": "int"}, + "ran_ue_ngap_id": {"key": "info.connectionInfo.ranUeNgapId", "type": "int"}, + "last_visited_tai": {"key": "info.connectionInfo.lastVisitedTai", "type": "str"}, + "allowed_nssai": {"key": "info.connectionInfo.allowedNssai", "type": "[Snssai]"}, + "ue_state": {"key": "info.connectionInfo.ueState", "type": "str"}, + "rrc_establishment_cause": {"key": "info.connectionInfo.rrcEstablishmentCause", "type": "str"}, + "ue_usage_setting": {"key": "info.connectionInfo.ueUsageSetting", "type": "str"}, + "last_activity_time": {"key": "info.connectionInfo.lastActivityTime", "type": "iso-8601"}, + "nge_nb_id": {"key": "info.connectionInfo.globalRanNodeId.ngeNbId", "type": "str"}, + "e_nb_id": {"key": "info.connectionInfo.globalRanNodeId.eNbId", "type": "str"}, + "n3_iwf_id": {"key": "info.connectionInfo.globalRanNodeId.n3IwfId", "type": "str"}, + "wagf_id": {"key": "info.connectionInfo.globalRanNodeId.wagfId", "type": "str"}, + "tngf_id": {"key": "info.connectionInfo.globalRanNodeId.tngfId", "type": "str"}, + "nid": {"key": "info.connectionInfo.globalRanNodeId.nid", "type": "str"}, + "bit_length": {"key": "info.connectionInfo.globalRanNodeId.gNbId.bitLength", "type": "int"}, + "g_nb_value": {"key": "info.connectionInfo.globalRanNodeId.gNbId.gNBValue", "type": "str"}, + "mcc_info_connection_info_global_ran_node_id_plmn_id_mcc": { + "key": "info.connectionInfo.globalRanNodeId.plmnId.mcc", + "type": "str", + }, + "mnc_info_connection_info_global_ran_node_id_plmn_id_mnc": { + "key": "info.connectionInfo.globalRanNodeId.plmnId.mnc", + "type": "str", + }, + "location_type": {"key": "info.connectionInfo.locationInfo.locationType", "type": "str"}, + "tac": {"key": "info.connectionInfo.locationInfo.tac", "type": "str"}, + "mcc_info_connection_info_location_info_plmn_mcc": { + "key": "info.connectionInfo.locationInfo.plmn.mcc", + "type": "str", + }, + "mnc_info_connection_info_location_info_plmn_mnc": { + "key": "info.connectionInfo.locationInfo.plmn.mnc", + "type": "str", + }, + "fiveg_tmsi": {"key": "info.fivegGuti.fivegTmsi", "type": "int"}, + "region_id": {"key": "info.fivegGuti.amfId.regionId", "type": "int"}, + "set_id": {"key": "info.fivegGuti.amfId.setId", "type": "int"}, + "pointer": {"key": "info.fivegGuti.amfId.pointer", "type": "int"}, + "mcc_info_fiveg_guti_plmn_mcc": {"key": "info.fivegGuti.plmn.mcc", "type": "str"}, + "mnc_info_fiveg_guti_plmn_mnc": {"key": "info.fivegGuti.plmn.mnc", "type": "str"}, + } + + def __init__( # pylint: disable=too-many-locals + self, + *, + supi: str, + fiveg_tmsi: int, + region_id: int, + set_id: int, + pointer: int, + mcc_info_fiveg_guti_plmn_mcc: str, + mnc_info_fiveg_guti_plmn_mnc: str, + last_read_at: Optional[datetime.datetime] = None, + pei: Optional[str] = None, + session_info: Optional[List["_models.UeSessionInfo5G"]] = None, + per_ue_tnla: Optional[str] = None, + amf_ue_ngap_id: Optional[int] = None, + ran_ue_ngap_id: Optional[int] = None, + last_visited_tai: Optional[str] = None, + allowed_nssai: Optional[List["_models.Snssai"]] = None, + ue_state: Optional[Union[str, "_models.UeState"]] = None, + rrc_establishment_cause: Optional[Union[str, "_models.RrcEstablishmentCause"]] = None, + ue_usage_setting: Optional[Union[str, "_models.UeUsageSetting"]] = None, + last_activity_time: Optional[datetime.datetime] = None, + nge_nb_id: Optional[str] = None, + e_nb_id: Optional[str] = None, + n3_iwf_id: Optional[str] = None, + wagf_id: Optional[str] = None, + tngf_id: Optional[str] = None, + nid: Optional[str] = None, + bit_length: Optional[int] = None, + g_nb_value: Optional[str] = None, + mcc_info_connection_info_global_ran_node_id_plmn_id_mcc: Optional[str] = None, + mnc_info_connection_info_global_ran_node_id_plmn_id_mnc: Optional[str] = None, + location_type: Optional[str] = None, + tac: Optional[str] = None, + mcc_info_connection_info_location_info_plmn_mcc: Optional[str] = None, + mnc_info_connection_info_location_info_plmn_mnc: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword last_read_at: The timestamp of last UE info read from the packet core (UTC). + :paramtype last_read_at: ~datetime.datetime + :keyword supi: Subscription Permanent Identifier. Required. + :paramtype supi: str + :keyword pei: Permanent Equipment Identifier. + :paramtype pei: str + :keyword session_info: + :paramtype session_info: list[~azure.mgmt.mobilenetwork.models.UeSessionInfo5G] + :keyword per_ue_tnla: Per-UE transport network layer association. + :paramtype per_ue_tnla: str + :keyword amf_ue_ngap_id: The AMF UE NGAP ID. + :paramtype amf_ue_ngap_id: int + :keyword ran_ue_ngap_id: The RAN UE NGAP ID. + :paramtype ran_ue_ngap_id: int + :keyword last_visited_tai: Last Visited TAI. + :paramtype last_visited_tai: str + :keyword allowed_nssai: Allowed Network Slice Selection Assistance Information. + :paramtype allowed_nssai: list[~azure.mgmt.mobilenetwork.models.Snssai] + :keyword ue_state: State of the UE. Known values are: "Connected", "Idle", "Detached", + "Deregistered", and "Unknown". + :paramtype ue_state: str or ~azure.mgmt.mobilenetwork.models.UeState + :keyword rrc_establishment_cause: Radio connection establishment cause. Known values are: + "Emergency", "MobileOriginatedSignaling", "MobileTerminatedSignaling", "MobileOriginatedData", + "MobileTerminatedData", and "SMS". + :paramtype rrc_establishment_cause: str or + ~azure.mgmt.mobilenetwork.models.RrcEstablishmentCause + :keyword ue_usage_setting: The UE's usage setting. Known values are: "VoiceCentric" and + "DataCentric". + :paramtype ue_usage_setting: str or ~azure.mgmt.mobilenetwork.models.UeUsageSetting + :keyword last_activity_time: The timestamp of last activity of UE (UTC). + :paramtype last_activity_time: ~datetime.datetime + :keyword nge_nb_id: NG-eNodeB identifier. + :paramtype nge_nb_id: str + :keyword e_nb_id: eNodeB identifier. + :paramtype e_nb_id: str + :keyword n3_iwf_id: N3 IWF identifier. + :paramtype n3_iwf_id: str + :keyword wagf_id: W-AGF identifier. + :paramtype wagf_id: str + :keyword tngf_id: TNGF identifier. + :paramtype tngf_id: str + :keyword nid: Network identifier. + :paramtype nid: str + :keyword bit_length: + :paramtype bit_length: int + :keyword g_nb_value: + :paramtype g_nb_value: str + :keyword mcc_info_connection_info_global_ran_node_id_plmn_id_mcc: Mobile country code (MCC). + :paramtype mcc_info_connection_info_global_ran_node_id_plmn_id_mcc: str + :keyword mnc_info_connection_info_global_ran_node_id_plmn_id_mnc: Mobile network code (MNC). + :paramtype mnc_info_connection_info_global_ran_node_id_plmn_id_mnc: str + :keyword location_type: Location Type. + :paramtype location_type: str + :keyword tac: Type Allocation Code of UE. + :paramtype tac: str + :keyword mcc_info_connection_info_location_info_plmn_mcc: Mobile country code (MCC). + :paramtype mcc_info_connection_info_location_info_plmn_mcc: str + :keyword mnc_info_connection_info_location_info_plmn_mnc: Mobile network code (MNC). + :paramtype mnc_info_connection_info_location_info_plmn_mnc: str + :keyword fiveg_tmsi: 5G Temporary Mobile Subscriber Identity. Required. + :paramtype fiveg_tmsi: int + :keyword region_id: AMF region identifier. Required. + :paramtype region_id: int + :keyword set_id: AMF set identifier. Required. + :paramtype set_id: int + :keyword pointer: AMF pointer. Required. + :paramtype pointer: int + :keyword mcc_info_fiveg_guti_plmn_mcc: Mobile country code (MCC). Required. + :paramtype mcc_info_fiveg_guti_plmn_mcc: str + :keyword mnc_info_fiveg_guti_plmn_mnc: Mobile network code (MNC). Required. + :paramtype mnc_info_fiveg_guti_plmn_mnc: str + """ + super().__init__(last_read_at=last_read_at, **kwargs) + self.rat_type: str = "5G" + self.supi = supi + self.pei = pei + self.session_info = session_info + self.per_ue_tnla = per_ue_tnla + self.amf_ue_ngap_id = amf_ue_ngap_id + self.ran_ue_ngap_id = ran_ue_ngap_id + self.last_visited_tai = last_visited_tai + self.allowed_nssai = allowed_nssai + self.ue_state = ue_state + self.rrc_establishment_cause = rrc_establishment_cause + self.ue_usage_setting = ue_usage_setting + self.last_activity_time = last_activity_time + self.nge_nb_id = nge_nb_id + self.e_nb_id = e_nb_id + self.n3_iwf_id = n3_iwf_id + self.wagf_id = wagf_id + self.tngf_id = tngf_id + self.nid = nid + self.bit_length = bit_length + self.g_nb_value = g_nb_value + self.mcc_info_connection_info_global_ran_node_id_plmn_id_mcc = ( + mcc_info_connection_info_global_ran_node_id_plmn_id_mcc + ) + self.mnc_info_connection_info_global_ran_node_id_plmn_id_mnc = ( + mnc_info_connection_info_global_ran_node_id_plmn_id_mnc + ) + self.location_type = location_type + self.tac = tac + self.mcc_info_connection_info_location_info_plmn_mcc = mcc_info_connection_info_location_info_plmn_mcc + self.mnc_info_connection_info_location_info_plmn_mnc = mnc_info_connection_info_location_info_plmn_mnc + self.fiveg_tmsi = fiveg_tmsi + self.region_id = region_id + self.set_id = set_id + self.pointer = pointer + self.mcc_info_fiveg_guti_plmn_mcc = mcc_info_fiveg_guti_plmn_mcc + self.mnc_info_fiveg_guti_plmn_mnc = mnc_info_fiveg_guti_plmn_mnc + + +class UeInfoList(_serialization.Model): + """Response for packet core list UEs API call. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: A list of UEs in a packet core and their basic information. + :vartype value: list[~azure.mgmt.mobilenetwork.models.UeInfo] + :ivar next_link: The URL to get the next set of results. + :vartype next_link: str + """ + + _validation = { + "next_link": {"readonly": True}, + } + + _attribute_map = { + "value": {"key": "value", "type": "[UeInfo]"}, + "next_link": {"key": "nextLink", "type": "str"}, + } + + def __init__(self, *, value: Optional[List["_models.UeInfo"]] = None, **kwargs: Any) -> None: + """ + :keyword value: A list of UEs in a packet core and their basic information. + :paramtype value: list[~azure.mgmt.mobilenetwork.models.UeInfo] + """ + super().__init__(**kwargs) + self.value = value + self.next_link = None + + +class UeQOSFlow(_serialization.Model): + """QoS Flow. + + All required parameters must be populated in order to send to Azure. + + :ivar qfi: Qos Flow Identifier. Required. + :vartype qfi: int + :ivar fiveqi: 5G QoS Identifier. Required. + :vartype fiveqi: int + :ivar uplink_gbr_uplink: Uplink bit rate. + :vartype uplink_gbr_uplink: str + :ivar downlink_gbr_downlink: Downlink bit rate. + :vartype downlink_gbr_downlink: str + :ivar uplink_mbr_uplink: Uplink bit rate. + :vartype uplink_mbr_uplink: str + :ivar downlink_mbr_downlink: Downlink bit rate. + :vartype downlink_mbr_downlink: str + """ + + _validation = { + "qfi": {"required": True, "maximum": 63, "minimum": 0}, + "fiveqi": {"required": True, "maximum": 255, "minimum": 0}, + "uplink_gbr_uplink": {"pattern": r"^\d+(\.\d+)? (bps|Kbps|Mbps|Gbps|Tbps)$"}, + "downlink_gbr_downlink": {"pattern": r"^\d+(\.\d+)? (bps|Kbps|Mbps|Gbps|Tbps)$"}, + "uplink_mbr_uplink": {"pattern": r"^\d+(\.\d+)? (bps|Kbps|Mbps|Gbps|Tbps)$"}, + "downlink_mbr_downlink": {"pattern": r"^\d+(\.\d+)? (bps|Kbps|Mbps|Gbps|Tbps)$"}, + } + + _attribute_map = { + "qfi": {"key": "qfi", "type": "int"}, + "fiveqi": {"key": "fiveqi", "type": "int"}, + "uplink_gbr_uplink": {"key": "gbr.uplink", "type": "str"}, + "downlink_gbr_downlink": {"key": "gbr.downlink", "type": "str"}, + "uplink_mbr_uplink": {"key": "mbr.uplink", "type": "str"}, + "downlink_mbr_downlink": {"key": "mbr.downlink", "type": "str"}, + } + + def __init__( + self, + *, + qfi: int, + fiveqi: int, + uplink_gbr_uplink: Optional[str] = None, + downlink_gbr_downlink: Optional[str] = None, + uplink_mbr_uplink: Optional[str] = None, + downlink_mbr_downlink: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword qfi: Qos Flow Identifier. Required. + :paramtype qfi: int + :keyword fiveqi: 5G QoS Identifier. Required. + :paramtype fiveqi: int + :keyword uplink_gbr_uplink: Uplink bit rate. + :paramtype uplink_gbr_uplink: str + :keyword downlink_gbr_downlink: Downlink bit rate. + :paramtype downlink_gbr_downlink: str + :keyword uplink_mbr_uplink: Uplink bit rate. + :paramtype uplink_mbr_uplink: str + :keyword downlink_mbr_downlink: Downlink bit rate. + :paramtype downlink_mbr_downlink: str + """ + super().__init__(**kwargs) + self.qfi = qfi + self.fiveqi = fiveqi + self.uplink_gbr_uplink = uplink_gbr_uplink + self.downlink_gbr_downlink = downlink_gbr_downlink + self.uplink_mbr_uplink = uplink_mbr_uplink + self.downlink_mbr_downlink = downlink_mbr_downlink + + +class UeSessionInfo4G(_serialization.Model): + """UE Session Info for 4G. + + All required parameters must be populated in order to send to Azure. + + :ivar ebi: EPS bearer identifier. Required. + :vartype ebi: int + :ivar apn: Access point name. Required. + :vartype apn: str + :ivar pdn_type: Packet Data Network Type. Required. "IPV4" + :vartype pdn_type: str or ~azure.mgmt.mobilenetwork.models.PdnType + :ivar ip_v4_addr: IPv4 address. + :vartype ip_v4_addr: str + """ + + _validation = { + "ebi": {"required": True, "maximum": 15, "minimum": 5}, + "apn": {"required": True}, + "pdn_type": {"required": True}, + "ip_v4_addr": { + "pattern": r"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$" + }, + } + + _attribute_map = { + "ebi": {"key": "ebi", "type": "int"}, + "apn": {"key": "apn", "type": "str"}, + "pdn_type": {"key": "pdnType", "type": "str"}, + "ip_v4_addr": {"key": "ueIpAddress.ipV4Addr", "type": "str"}, + } + + def __init__( + self, + *, + ebi: int, + apn: str, + pdn_type: Union[str, "_models.PdnType"], + ip_v4_addr: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword ebi: EPS bearer identifier. Required. + :paramtype ebi: int + :keyword apn: Access point name. Required. + :paramtype apn: str + :keyword pdn_type: Packet Data Network Type. Required. "IPV4" + :paramtype pdn_type: str or ~azure.mgmt.mobilenetwork.models.PdnType + :keyword ip_v4_addr: IPv4 address. + :paramtype ip_v4_addr: str + """ + super().__init__(**kwargs) + self.ebi = ebi + self.apn = apn + self.pdn_type = pdn_type + self.ip_v4_addr = ip_v4_addr + + +class UeSessionInfo5G(_serialization.Model): + """UE Session Info for 5G. + + All required parameters must be populated in order to send to Azure. + + :ivar pdu_session_id: PDU session identifier. Required. + :vartype pdu_session_id: int + :ivar dnn: Data network name. Required. + :vartype dnn: str + :ivar pdn_type: Packet Data Network Type. Required. "IPV4" + :vartype pdn_type: str or ~azure.mgmt.mobilenetwork.models.PdnType + :ivar qos_flow: Required. + :vartype qos_flow: list[~azure.mgmt.mobilenetwork.models.UeQOSFlow] + :ivar uplink: Uplink bit rate. Required. + :vartype uplink: str + :ivar downlink: Downlink bit rate. Required. + :vartype downlink: str + :ivar ip_v4_addr: IPv4 address. + :vartype ip_v4_addr: str + :ivar sst: Slice/service type (SST). Required. + :vartype sst: int + :ivar sd: Slice differentiator (SD). + :vartype sd: str + """ + + _validation = { + "pdu_session_id": {"required": True, "maximum": 255, "minimum": 0}, + "dnn": {"required": True}, + "pdn_type": {"required": True}, + "qos_flow": {"required": True}, + "uplink": {"required": True, "pattern": r"^\d+(\.\d+)? (bps|Kbps|Mbps|Gbps|Tbps)$"}, + "downlink": {"required": True, "pattern": r"^\d+(\.\d+)? (bps|Kbps|Mbps|Gbps|Tbps)$"}, + "ip_v4_addr": { + "pattern": r"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$" + }, + "sst": {"required": True, "maximum": 255, "minimum": 0}, + "sd": {"pattern": r"^[A-Fa-f0-9]{6}$"}, + } + + _attribute_map = { + "pdu_session_id": {"key": "pduSessionId", "type": "int"}, + "dnn": {"key": "dnn", "type": "str"}, + "pdn_type": {"key": "pdnType", "type": "str"}, + "qos_flow": {"key": "qosFlow", "type": "[UeQOSFlow]"}, + "uplink": {"key": "ambr.uplink", "type": "str"}, + "downlink": {"key": "ambr.downlink", "type": "str"}, + "ip_v4_addr": {"key": "ueIpAddress.ipV4Addr", "type": "str"}, + "sst": {"key": "snssai.sst", "type": "int"}, + "sd": {"key": "snssai.sd", "type": "str"}, + } + + def __init__( + self, + *, + pdu_session_id: int, + dnn: str, + pdn_type: Union[str, "_models.PdnType"], + qos_flow: List["_models.UeQOSFlow"], + uplink: str, + downlink: str, + sst: int, + ip_v4_addr: Optional[str] = None, + sd: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword pdu_session_id: PDU session identifier. Required. + :paramtype pdu_session_id: int + :keyword dnn: Data network name. Required. + :paramtype dnn: str + :keyword pdn_type: Packet Data Network Type. Required. "IPV4" + :paramtype pdn_type: str or ~azure.mgmt.mobilenetwork.models.PdnType + :keyword qos_flow: Required. + :paramtype qos_flow: list[~azure.mgmt.mobilenetwork.models.UeQOSFlow] + :keyword uplink: Uplink bit rate. Required. + :paramtype uplink: str + :keyword downlink: Downlink bit rate. Required. + :paramtype downlink: str + :keyword ip_v4_addr: IPv4 address. + :paramtype ip_v4_addr: str + :keyword sst: Slice/service type (SST). Required. + :paramtype sst: int + :keyword sd: Slice differentiator (SD). + :paramtype sd: str + """ + super().__init__(**kwargs) + self.pdu_session_id = pdu_session_id + self.dnn = dnn + self.pdn_type = pdn_type + self.qos_flow = qos_flow + self.uplink = uplink + self.downlink = downlink + self.ip_v4_addr = ip_v4_addr + self.sst = sst + self.sd = sd + + class UserAssignedIdentity(_serialization.Model): """User assigned identity properties. diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/__init__.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/__init__.py index 2f03dce83d9e..c6893634e771 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/__init__.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/__init__.py @@ -21,6 +21,8 @@ from ._sim_policies_operations import SimPoliciesOperations from ._sites_operations import SitesOperations from ._slices_operations import SlicesOperations +from ._extended_ue_information_operations import ExtendedUeInformationOperations +from ._ue_information_operations import UeInformationOperations from ._patch import __all__ as _patch_all from ._patch import * # pylint: disable=unused-wildcard-import @@ -42,6 +44,8 @@ "SimPoliciesOperations", "SitesOperations", "SlicesOperations", + "ExtendedUeInformationOperations", + "UeInformationOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) _patch_sdk() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_attached_data_networks_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_attached_data_networks_operations.py index e73f05837e48..94206d1e3967 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_attached_data_networks_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_attached_data_networks_operations.py @@ -50,7 +50,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -108,7 +108,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -166,7 +166,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -227,7 +227,7 @@ def build_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -287,7 +287,7 @@ def build_list_by_packet_core_data_plane_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_data_networks_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_data_networks_operations.py index 3c7611ffbc91..61506acd5c14 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_data_networks_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_data_networks_operations.py @@ -45,7 +45,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -87,7 +87,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -129,7 +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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -174,7 +174,7 @@ def build_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -219,7 +219,7 @@ def build_list_by_mobile_network_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_diagnostics_packages_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_diagnostics_packages_operations.py index 4858fbdeecfb..00e1e03c19da 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_diagnostics_packages_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_diagnostics_packages_operations.py @@ -48,7 +48,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -98,7 +98,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -148,7 +148,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -194,7 +194,7 @@ def build_list_by_packet_core_control_plane_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_extended_ue_information_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_extended_ue_information_operations.py new file mode 100644 index 000000000000..3b6d7b718580 --- /dev/null +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_extended_ue_information_operations.py @@ -0,0 +1,162 @@ +# pylint: disable=too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, Callable, Dict, Optional, TypeVar + +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models +from .._serialization import Serializer +from .._vendor import _convert_request + +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + + +def build_get_request( + resource_group_name: str, packet_core_control_plane_name: str, ue_id: 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: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/ues/{ueId}/extendedInformation/default", + ) # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 + ), + "packetCoreControlPlaneName": _SERIALIZER.url( + "packet_core_control_plane_name", + packet_core_control_plane_name, + "str", + max_length=64, + pattern=r"^[a-zA-Z0-9][a-zA-Z0-9_-]*$", + ), + "ueId": _SERIALIZER.url("ue_id", ue_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +class ExtendedUeInformationOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.mobilenetwork.MobileNetworkManagementClient`'s + :attr:`extended_ue_information` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, packet_core_control_plane_name: str, ue_id: str, **kwargs: Any + ) -> _models.ExtendedUeInfo: + """Gets extended information about the specified UE from the packet core. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param packet_core_control_plane_name: The name of the packet core control plane. Required. + :type packet_core_control_plane_name: str + :param ue_id: IMSI of a UE. Required. + :type ue_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ExtendedUeInfo or the result of cls(response) + :rtype: ~azure.mgmt.mobilenetwork.models.ExtendedUeInfo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.ExtendedUeInfo] = kwargs.pop("cls", None) + + request = build_get_request( + resource_group_name=resource_group_name, + packet_core_control_plane_name=packet_core_control_plane_name, + ue_id=ue_id, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.get.metadata["url"], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + 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 = self._deserialize("ExtendedUeInfo", pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get.metadata = { + "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/ues/{ueId}/extendedInformation/default" + } diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_mobile_networks_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_mobile_networks_operations.py index 455ee815e6e3..d3adad20abc2 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_mobile_networks_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_mobile_networks_operations.py @@ -45,7 +45,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -80,7 +80,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -115,7 +115,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -153,7 +153,7 @@ def build_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -189,7 +189,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -215,7 +215,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -672,20 +672,20 @@ def update_tags( self, resource_group_name: str, mobile_network_name: str, - parameters: _models.TagsObject, + parameters: _models.IdentityAndTagsObject, *, content_type: str = "application/json", **kwargs: Any ) -> _models.MobileNetwork: - """Updates mobile network tags. + """Updates mobile network tags and managed identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param mobile_network_name: The name of the mobile network. Required. :type mobile_network_name: str - :param parameters: Parameters supplied to update mobile network tags. Required. - :type parameters: ~azure.mgmt.mobilenetwork.models.TagsObject + :param parameters: Parameters supplied to update mobile network tags and/or identity. Required. + :type parameters: ~azure.mgmt.mobilenetwork.models.IdentityAndTagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -705,14 +705,14 @@ def update_tags( content_type: str = "application/json", **kwargs: Any ) -> _models.MobileNetwork: - """Updates mobile network tags. + """Updates mobile network tags and managed identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param mobile_network_name: The name of the mobile network. Required. :type mobile_network_name: str - :param parameters: Parameters supplied to update mobile network tags. Required. + :param parameters: Parameters supplied to update mobile network tags and/or identity. Required. :type parameters: IO :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -728,19 +728,19 @@ def update_tags( self, resource_group_name: str, mobile_network_name: str, - parameters: Union[_models.TagsObject, IO], + parameters: Union[_models.IdentityAndTagsObject, IO], **kwargs: Any ) -> _models.MobileNetwork: - """Updates mobile network tags. + """Updates mobile network tags and managed identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param mobile_network_name: The name of the mobile network. Required. :type mobile_network_name: str - :param parameters: Parameters supplied to update mobile network tags. Is either a TagsObject - type or a IO type. Required. - :type parameters: ~azure.mgmt.mobilenetwork.models.TagsObject or IO + :param parameters: Parameters supplied to update mobile network tags and/or identity. Is either + a IdentityAndTagsObject type or a IO type. Required. + :type parameters: ~azure.mgmt.mobilenetwork.models.IdentityAndTagsObject or IO :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. Default value is None. :paramtype content_type: str @@ -770,7 +770,7 @@ def update_tags( if isinstance(parameters, (IOBase, bytes)): _content = parameters else: - _json = self._serialize.body(parameters, "TagsObject") + _json = self._serialize.body(parameters, "IdentityAndTagsObject") request = build_update_tags_request( resource_group_name=resource_group_name, diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_operations.py index 142915e837fb..ffe11523c864 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_operations.py @@ -40,7 +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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_captures_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_captures_operations.py index a63dfea52e93..a32cd50921f0 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_captures_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_captures_operations.py @@ -49,7 +49,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -98,7 +98,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -144,7 +144,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -190,7 +190,7 @@ def build_stop_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -232,7 +232,7 @@ def build_list_by_packet_core_control_plane_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_control_plane_versions_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_control_plane_versions_operations.py index 5b2bdf9d8143..d629fb1c1e25 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_control_plane_versions_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_control_plane_versions_operations.py @@ -40,7 +40,7 @@ def build_get_request(version_name: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -64,7 +64,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -83,7 +83,7 @@ def build_get_by_subscription_request(version_name: str, subscription_id: str, * _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -111,7 +111,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_control_planes_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_control_planes_operations.py index b5ef7ae4c50a..26bc958bf1f7 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_control_planes_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_control_planes_operations.py @@ -45,7 +45,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -84,7 +84,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -123,7 +123,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -165,7 +165,7 @@ def build_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -205,7 +205,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -231,7 +231,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -263,7 +263,7 @@ def build_rollback_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -302,7 +302,7 @@ def build_reinstall_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -341,7 +341,7 @@ def build_collect_diagnostics_package_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1308,9 +1308,9 @@ def _reinstall_initial( def begin_reinstall( self, resource_group_name: str, packet_core_control_plane_name: str, **kwargs: Any ) -> LROPoller[_models.AsyncOperationStatus]: - """Reinstall the specified packet core control plane. This action will remove any transaction - state from the packet core to return it to a known state. This action will cause a service - outage. + """Reinstall the specified packet core control plane. This action will try to restore the packet + core to the installed state that was disrupted by a transient failure. This action will cause a + service outage. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_data_planes_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_data_planes_operations.py index e91dc49f641a..95639b21e6b7 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_data_planes_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_packet_core_data_planes_operations.py @@ -49,7 +49,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -99,7 +99,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -149,7 +149,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -202,7 +202,7 @@ def build_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -251,7 +251,7 @@ def build_list_by_packet_core_control_plane_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_services_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_services_operations.py index baabb28e20ac..cd021ea0c084 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_services_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_services_operations.py @@ -45,7 +45,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -87,7 +87,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -129,7 +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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -174,7 +174,7 @@ def build_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -219,7 +219,7 @@ def build_list_by_mobile_network_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sim_groups_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sim_groups_operations.py index bd0665214a53..30137a4064fe 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sim_groups_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sim_groups_operations.py @@ -45,7 +45,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -80,7 +80,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -115,7 +115,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -153,7 +153,7 @@ def build_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -189,7 +189,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -213,7 +213,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sim_policies_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sim_policies_operations.py index c0de4ab612be..322d98c3f910 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sim_policies_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sim_policies_operations.py @@ -45,7 +45,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -83,7 +83,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -121,7 +121,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -162,7 +162,7 @@ def build_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -203,7 +203,7 @@ def build_list_by_mobile_network_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sims_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sims_operations.py index e938454a720a..04d7897a55be 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sims_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sims_operations.py @@ -45,7 +45,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -81,7 +81,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -117,7 +117,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -156,7 +156,7 @@ def build_list_by_group_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -191,7 +191,7 @@ def build_bulk_upload_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -229,7 +229,7 @@ def build_bulk_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -267,7 +267,7 @@ def build_bulk_upload_encrypted_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sites_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sites_operations.py index 3c2916214ca4..cbd5f6d50503 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sites_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_sites_operations.py @@ -45,7 +45,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -83,7 +83,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -121,7 +121,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -162,7 +162,7 @@ def build_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -203,7 +203,7 @@ def build_list_by_mobile_network_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -238,7 +238,7 @@ def build_delete_packet_core_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_slices_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_slices_operations.py index 683a201aa73d..e63eb38b97fd 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_slices_operations.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_slices_operations.py @@ -45,7 +45,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -83,7 +83,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -121,7 +121,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: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -162,7 +162,7 @@ def build_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -203,7 +203,7 @@ def build_list_by_mobile_network_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_ue_information_operations.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_ue_information_operations.py new file mode 100644 index 000000000000..d5e09a1af272 --- /dev/null +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_ue_information_operations.py @@ -0,0 +1,187 @@ +# pylint: disable=too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar +import urllib.parse + +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + map_error, +) +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models +from .._serialization import Serializer +from .._vendor import _convert_request + +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + + +def build_list_request( + resource_group_name: str, packet_core_control_plane_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: str = kwargs.pop("api_version", _params.pop("api-version", "2024-02-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/ues", + ) # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 + ), + "packetCoreControlPlaneName": _SERIALIZER.url( + "packet_core_control_plane_name", + packet_core_control_plane_name, + "str", + max_length=64, + pattern=r"^[a-zA-Z0-9][a-zA-Z0-9_-]*$", + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +class UeInformationOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.mobilenetwork.MobileNetworkManagementClient`'s + :attr:`ue_information` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list( + self, resource_group_name: str, packet_core_control_plane_name: str, **kwargs: Any + ) -> Iterable["_models.UeInfo"]: + """List all UEs and their state in a packet core. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param packet_core_control_plane_name: The name of the packet core control plane. Required. + :type packet_core_control_plane_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either UeInfo or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.mobilenetwork.models.UeInfo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) + cls: ClsType[_models.UeInfoList] = kwargs.pop("cls", None) + + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + resource_group_name=resource_group_name, + packet_core_control_plane_name=packet_core_control_plane_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.list.metadata["url"], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize("UeInfoList", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + 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) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + list.metadata = { + "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/ues" + } diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/dev_requirements.txt b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/dev_requirements.txt index c7c93cfae649..13fd500db73c 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/dev_requirements.txt +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/dev_requirements.txt @@ -1,2 +1,3 @@ -e ../../../tools/azure-sdk-tools -e ../../../tools/azure-devtools +-e ../../resources/azure-mgmt-resource \ No newline at end of file diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_create.py index 535b917c2c5e..1ca5acdf4412 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_create.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/AttachedDataNetworkCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/AttachedDataNetworkCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_delete.py index 9670ad35e52e..7587020c6174 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/AttachedDataNetworkDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/AttachedDataNetworkDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_get.py index ed721634c153..2b5ff5bdfa15 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/AttachedDataNetworkGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/AttachedDataNetworkGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_list_by_packet_core_data_plane.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_list_by_packet_core_data_plane.py index 1b434608aa6a..19b2e7e8be9a 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_list_by_packet_core_data_plane.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_list_by_packet_core_data_plane.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/AttachedDataNetworkListByPacketCoreDataPlane.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/AttachedDataNetworkListByPacketCoreDataPlane.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_update_tags.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_update_tags.py index 2ebf44697789..4fb76819ec0f 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_update_tags.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/attached_data_network_update_tags.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/AttachedDataNetworkUpdateTags.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/AttachedDataNetworkUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_create.py index 11f357c6c5c6..555998fb0d44 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/DataNetworkCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/DataNetworkCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_delete.py index dfb7a2bf1a3f..fe20aa8ba605 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/DataNetworkDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/DataNetworkDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_get.py index a6481c6de30a..8b9e01d993a5 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/DataNetworkGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/DataNetworkGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_list_by_mobile_network.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_list_by_mobile_network.py index 62e2080ae4fc..3d743322fad6 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_list_by_mobile_network.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_list_by_mobile_network.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/DataNetworkListByMobileNetwork.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/DataNetworkListByMobileNetwork.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_update_tags.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_update_tags.py index 48eb6093fb5f..4584044d1650 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_update_tags.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/data_network_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/DataNetworkUpdateTags.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/DataNetworkUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_create.py index 7ce2781a3875..42531a02e6ab 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_create.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/DiagnosticsPackageCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/DiagnosticsPackageCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_delete.py index b1764c2f12e6..5645fff0a12a 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/DiagnosticsPackageDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/DiagnosticsPackageDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_get.py index d942a24fbb05..bb8bc8a8f197 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/DiagnosticsPackageGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/DiagnosticsPackageGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_list_by_packet_core_control_plane.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_list_by_packet_core_control_plane.py index 310cee4dec28..58179e95b83d 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_list_by_packet_core_control_plane.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/diagnostics_package_list_by_packet_core_control_plane.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/DiagnosticsPackageListByPacketCoreControlPlane.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/DiagnosticsPackageListByPacketCoreControlPlane.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/extended_ue_info4_gget.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/extended_ue_info4_gget.py new file mode 100644 index 000000000000..a4c8608901e5 --- /dev/null +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/extended_ue_info4_gget.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential +from azure.mgmt.mobilenetwork import MobileNetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-mobilenetwork +# USAGE + python extended_ue_info4_gget.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = MobileNetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="00000000-0000-0000-0000-000000000000", + ) + + response = client.extended_ue_information.get( + resource_group_name="rg1", + packet_core_control_plane_name="TestPacketCoreCP", + ue_id="84449105622", + ) + print(response) + + +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/ExtendedUeInfo4GGet.json +if __name__ == "__main__": + main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/extended_ue_info5_gget.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/extended_ue_info5_gget.py new file mode 100644 index 000000000000..a269b3b60cbe --- /dev/null +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/extended_ue_info5_gget.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential +from azure.mgmt.mobilenetwork import MobileNetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-mobilenetwork +# USAGE + python extended_ue_info5_gget.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = MobileNetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="00000000-0000-0000-0000-000000000000", + ) + + response = client.extended_ue_information.get( + resource_group_name="rg1", + packet_core_control_plane_name="TestPacketCoreCP", + ue_id="84449105622", + ) + print(response) + + +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/ExtendedUeInfo5GGet.json +if __name__ == "__main__": + main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_create.py index 7e1b45dff7b0..0442bf7a29de 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_create.py @@ -34,12 +34,32 @@ def main(): mobile_network_name="testMobileNetwork", parameters={ "location": "eastus", - "properties": {"publicLandMobileNetworkIdentifier": {"mcc": "001", "mnc": "01"}}, + "properties": { + "publicLandMobileNetworkIdentifier": {"mcc": "001", "mnc": "01"}, + "publicLandMobileNetworks": [ + { + "homeNetworkPublicKeys": { + "profileA": [ + {"id": 1, "url": "https://contosovault.vault.azure.net/secrets/exampleHnpk"}, + { + "id": 2, + "url": "https://contosovault.vault.azure.net/secrets/exampleHnpk2/5e4876e9140e4e16bfe6e2cf92e0cbd2", + }, + ], + "profileB": [ + {"id": 1, "url": "https://contosovault.vault.azure.net/secrets/exampleHnpkProfileB"} + ], + }, + "mcc": "001", + "mnc": "01", + } + ], + }, }, ).result() print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/MobileNetworkCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/MobileNetworkCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_delete.py index eeb85e181bed..e495215f4006 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_delete.py @@ -35,6 +35,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/MobileNetworkDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/MobileNetworkDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_get.py index 4b717d5f33d5..c0666cd7c661 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/MobileNetworkGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/MobileNetworkGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_list_by_resource_group.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_list_by_resource_group.py index 359eb7a10dfd..a52cbfcfd2dc 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_list_by_resource_group.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_list_by_resource_group.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/MobileNetworkListByResourceGroup.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/MobileNetworkListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_list_by_subscription.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_list_by_subscription.py index 851e59583a4b..fc0838121f17 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_list_by_subscription.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_list_by_subscription.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/MobileNetworkListBySubscription.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/MobileNetworkListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_update_tags.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_update_tags.py index dc9a31da1b18..83ac1d6c7d6a 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_update_tags.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/mobile_network_update_tags.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/MobileNetworkUpdateTags.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/MobileNetworkUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/operation_list.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/operation_list.py index 7249fc77857b..bb78683ef028 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/operation_list.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/operation_list.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/OperationList.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/OperationList.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_create.py index 318d657dfa4b..4c9188ff435e 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_create.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCaptureCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCaptureCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_delete.py index ebca205ae912..743bcbfb9532 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCaptureDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCaptureDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_get.py index bfba54ed8af2..c8b9ff03cb57 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCaptureGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCaptureGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_list_by_packet_core_control_plane.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_list_by_packet_core_control_plane.py index c584b355f27d..e5f7abae2420 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_list_by_packet_core_control_plane.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_list_by_packet_core_control_plane.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCaptureListByPacketCoreControlPlane.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCaptureListByPacketCoreControlPlane.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_stop.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_stop.py index 9f97c5573947..bbb0d68c73f9 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_stop.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_capture_stop.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCaptureStop.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCaptureStop.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_collect_diagnostics_package.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_collect_diagnostics_package.py index 297227de77a6..5b7d216d96b4 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_collect_diagnostics_package.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_collect_diagnostics_package.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneCollectDiagnosticsPackage.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneCollectDiagnosticsPackage.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_create.py index 280463caeb92..4acb13eb7c26 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_create.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_delete.py index 65fef335530f..868bb0317b2e 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_delete.py @@ -35,6 +35,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_get.py index b0e2bf4b3843..08d5ca43cbfd 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_list_by_resource_group.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_list_by_resource_group.py index bf331f502fce..ba6733f61313 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_list_by_resource_group.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_list_by_resource_group.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneListByResourceGroup.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_list_by_subscription.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_list_by_subscription.py index 77261f5474f5..8c90963ff4fe 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_list_by_subscription.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_list_by_subscription.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneListBySubscription.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_patch.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_patch.py index 17e27cac17bf..3de4a7eee2c4 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_patch.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_patch.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlanePatch.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlanePatch.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_reinstall.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_reinstall.py index c0f44a97220c..110a4a90c67b 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_reinstall.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_reinstall.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneReinstall.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneReinstall.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_rollback.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_rollback.py index 1995f2eaeecd..faa10eab1139 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_rollback.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_rollback.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneRollback.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneRollback.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_get.py index d6d23d228781..4f6be3b9ddbb 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_get.py @@ -35,6 +35,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneVersionGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneVersionGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_get_by_subscription.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_get_by_subscription.py index e46f15553ef3..ddcf07c5e174 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_get_by_subscription.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_get_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneVersionGetBySubscription.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneVersionGetBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_list.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_list.py index 877d7928ba46..536bbb9ff59f 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_list.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_list.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneVersionList.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneVersionList.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_list_by_subscription.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_list_by_subscription.py index 7d217c8aa93c..1a3b55041a2a 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_list_by_subscription.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_control_plane_version_list_by_subscription.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreControlPlaneVersionListBySubscription.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreControlPlaneVersionListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_create.py index 03095b1021c3..c28321eeefbb 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreDataPlaneCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreDataPlaneCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_delete.py index 2c83bd214f4e..f9ecddf8bed7 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreDataPlaneDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreDataPlaneDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_get.py index 234c065a3031..9f92a3e08663 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreDataPlaneGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreDataPlaneGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_list_by_packet_core_control_plane.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_list_by_packet_core_control_plane.py index 6dfdc2e8f86f..90e12fe1bebd 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_list_by_packet_core_control_plane.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_list_by_packet_core_control_plane.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_update_tags.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_update_tags.py index 748a33950ecb..5a24505c370b 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_update_tags.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/packet_core_data_plane_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/PacketCoreDataPlaneUpdateTags.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/PacketCoreDataPlaneUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_create.py index 32ee376b99a6..eb6e03b270f2 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_create.py @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/ServiceCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/ServiceCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_delete.py index 6982f3f51168..817ea6ac88c7 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/ServiceDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/ServiceDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_get.py index 3b52f57f2be4..be9b2dd7dddf 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/ServiceGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/ServiceGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_list_by_mobile_network.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_list_by_mobile_network.py index 11df16c4db1b..8011f21e2d53 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_list_by_mobile_network.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_list_by_mobile_network.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/ServiceListByMobileNetwork.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/ServiceListByMobileNetwork.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_update_tags.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_update_tags.py index aa10337181be..99cdcd1b15f5 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_update_tags.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/service_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/ServiceUpdateTags.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/ServiceUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_delete.py index 879f149947e3..8a222c897a3a 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_delete.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimBulkDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimBulkDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_upload.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_upload.py index 32e63901f45d..009fca5784e1 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_upload.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_upload.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimBulkUpload.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimBulkUpload.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_upload_encrypted.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_upload_encrypted.py index 0b1487e7804e..7bae315f5d54 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_upload_encrypted.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_bulk_upload_encrypted.py @@ -91,6 +91,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimBulkUploadEncrypted.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimBulkUploadEncrypted.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_create.py index 85c8460a1a7c..e3c4d6e1830b 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_create.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_delete.py index 91bc51db62c6..1d9a55d19335 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_get.py index 17ccd04243f4..ff3b4b265312 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_create.py index 9dbd74ffd2c7..9dede0c22e2e 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_create.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimGroupCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimGroupCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_delete.py index 6cab3d277ea3..3d8207f78120 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_delete.py @@ -35,6 +35,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimGroupDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimGroupDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_get.py index 92ddee112498..e7a972b5e2b8 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimGroupGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_list_by_resource_group.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_list_by_resource_group.py index bafbd8470745..89b255deb5a3 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_list_by_resource_group.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_list_by_resource_group.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimGroupListByResourceGroup.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimGroupListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_list_by_subscription.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_list_by_subscription.py index 14163e07f34f..fbd9e690acc9 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_list_by_subscription.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_list_by_subscription.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimGroupListBySubscription.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimGroupListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_patch.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_patch.py index 69f8d4e08ef8..37388d8ec1a7 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_patch.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_group_patch.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimGroupPatch.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimGroupPatch.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_list_by_sim_group.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_list_by_sim_group.py index b7482567e2a7..57d22e16ba3b 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_list_by_sim_group.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_list_by_sim_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimListBySimGroup.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimListBySimGroup.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_create.py index 8d8fa950aa6c..a38049a21c96 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_create.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimPolicyCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimPolicyCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_delete.py index 18ea081e7fc2..6c4bf0592979 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimPolicyDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimPolicyDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_get.py index 5b14a16e918d..c7480976c4f7 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimPolicyGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimPolicyGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_list_by_mobile_network.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_list_by_mobile_network.py index 753b3f4f8458..58852317aa44 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_list_by_mobile_network.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_list_by_mobile_network.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimPolicyListByMobileNetwork.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimPolicyListByMobileNetwork.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_update_tags.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_update_tags.py index d98670cea29b..37eebbc24cea 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_update_tags.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/sim_policy_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SimPolicyUpdateTags.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SimPolicyUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_create.py index 9371c9c82fa3..3bc010ea7eac 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SiteCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SiteCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_delete.py index f7dcc1368d5a..d065977abac0 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SiteDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SiteDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_delete_packet_core.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_delete_packet_core.py index 91954ca97763..6c817b115c36 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_delete_packet_core.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_delete_packet_core.py @@ -41,6 +41,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SiteDeletePacketCore.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SiteDeletePacketCore.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_get.py index db98910d9a17..5b206119d077 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SiteGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SiteGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_list_by_mobile_network.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_list_by_mobile_network.py index 91d54f8ec09a..f75090f5d740 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_list_by_mobile_network.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_list_by_mobile_network.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SiteListByMobileNetwork.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SiteListByMobileNetwork.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_update_tags.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_update_tags.py index a39215ef0f4e..21429496e320 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_update_tags.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/site_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SiteUpdateTags.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SiteUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_create.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_create.py index 1eccac8e166f..6284326a6f7f 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_create.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_create.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SliceCreate.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SliceCreate.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_delete.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_delete.py index 35451a3daf6f..74f7937fd4be 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_delete.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SliceDelete.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SliceDelete.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_get.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_get.py index 31e614c484a7..38adc5ed95e4 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_get.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SliceGet.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SliceGet.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_list_by_mobile_network.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_list_by_mobile_network.py index 8da9b12c048f..53bc4c37488b 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_list_by_mobile_network.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_list_by_mobile_network.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SliceListByMobileNetwork.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SliceListByMobileNetwork.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_update_tags.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_update_tags.py index f99504acc987..1e570193528f 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_update_tags.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/slice_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2023-09-01/examples/SliceUpdateTags.json +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/SliceUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/ue_info_list.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/ue_info_list.py new file mode 100644 index 000000000000..a3343a2636ca --- /dev/null +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/generated_samples/ue_info_list.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential +from azure.mgmt.mobilenetwork import MobileNetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-mobilenetwork +# USAGE + python ue_info_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = MobileNetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="00000000-0000-0000-0000-000000000000", + ) + + response = client.ue_information.list( + resource_group_name="rg1", + packet_core_control_plane_name="TestPacketCoreCP", + ) + for item in response: + print(item) + + +# x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2024-02-01/examples/UeInfoList.json +if __name__ == "__main__": + main() diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/setup.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/setup.py index b2513f770797..22967ee7abb4 100644 --- a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/setup.py +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/setup.py @@ -53,11 +53,11 @@ "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "License :: OSI Approved :: MIT License", ], zip_safe=False, @@ -77,7 +77,6 @@ "isodate<1.0.0,>=0.6.1", "azure-common~=1.1", "azure-mgmt-core>=1.3.2,<2.0.0", - "typing-extensions>=4.3.0; python_version<'3.8.0'", ], - python_requires=">=3.7", + python_requires=">=3.8", ) diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/tests/conftest.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/tests/conftest.py new file mode 100644 index 000000000000..587e126e50b0 --- /dev/null +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/tests/conftest.py @@ -0,0 +1,50 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import os +import platform +import pytest +import sys + +from dotenv import load_dotenv + +from devtools_testutils import test_proxy, add_general_regex_sanitizer +from devtools_testutils import add_header_regex_sanitizer, add_body_key_sanitizer + +load_dotenv() + +@pytest.fixture(scope="session", autouse=True) +def add_sanitizers(test_proxy): + subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") + client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") + client_secret = os.environ.get("AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=subscription_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=tenant_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=client_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=client_secret, value="00000000-0000-0000-0000-000000000000") + add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]") + add_header_regex_sanitizer(key="Cookie", value="cookie;") + add_body_key_sanitizer(json_path="$..access_token", value="access_token") \ No newline at end of file diff --git a/sdk/mobilenetwork/azure-mgmt-mobilenetwork/tests/test_cli_mgmt_mobilenetwork.py b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/tests/test_cli_mgmt_mobilenetwork.py new file mode 100644 index 000000000000..9c7e0e4e65a8 --- /dev/null +++ b/sdk/mobilenetwork/azure-mgmt-mobilenetwork/tests/test_cli_mgmt_mobilenetwork.py @@ -0,0 +1,26 @@ +# coding: utf-8 + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +#-------------------------------------------------------------------------- + +from azure.mgmt.mobilenetwork import MobileNetworkManagementClient +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = 'eastus' + +class TestMgmtMobileNetwork(AzureMgmtRecordedTestCase): + + def setup_method(self, method): + self.client = self.create_mgmt_client(MobileNetworkManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_list_by_resource_group(self, resource_group): + assert list(self.client.mobile_networks.list_by_resource_group(resource_group.name)) == [] + + @recorded_by_proxy + def test_list_operations(self): + assert list(self.client.operations.list()) diff --git a/sdk/mobilenetwork/ci.yml b/sdk/mobilenetwork/ci.yml index 98bfa0548ced..a80a78bf663f 100644 --- a/sdk/mobilenetwork/ci.yml +++ b/sdk/mobilenetwork/ci.yml @@ -28,6 +28,7 @@ extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: mobilenetwork + TestProxy: true Artifacts: - name: azure-mgmt-mobilenetwork safeName: azuremgmtmobilenetwork