diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md index af0bc1bb31fb0..736f566f8f262 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2022-07-06) + +- Azure Resource Manager MobileNetwork client library for Java. This package contains Microsoft Azure SDK for MobileNetwork Management SDK. The resources in this swagger specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance. Package tag package-2022-04-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/README.md b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/README.md index d321fa15b25f1..98afa22107795 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/README.md +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/README.md @@ -2,7 +2,7 @@ Azure Resource Manager MobileNetwork client library for Java. -This package contains Microsoft Azure SDK for MobileNetwork Management SDK. The resources in this swagger specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance. Package tag package-2022-03-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for MobileNetwork Management SDK. The resources in this swagger specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance. Package tag package-2022-04-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-mobilenetwork - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/SAMPLE.md b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/SAMPLE.md index 9e69185cc2286..b7ce56425e946 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/SAMPLE.md +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/SAMPLE.md @@ -38,6 +38,7 @@ - [GetByResourceGroup](#packetcorecontrolplanes_getbyresourcegroup) - [List](#packetcorecontrolplanes_list) - [ListByResourceGroup](#packetcorecontrolplanes_listbyresourcegroup) +- [SupportedVersions](#packetcorecontrolplanes_supportedversions) - [UpdateTags](#packetcorecontrolplanes_updatetags) ## PacketCoreDataPlanes @@ -56,6 +57,15 @@ - [ListByMobileNetwork](#services_listbymobilenetwork) - [UpdateTags](#services_updatetags) +## SimGroups + +- [CreateOrUpdate](#simgroups_createorupdate) +- [Delete](#simgroups_delete) +- [GetByResourceGroup](#simgroups_getbyresourcegroup) +- [List](#simgroups_list) +- [ListByResourceGroup](#simgroups_listbyresourcegroup) +- [UpdateTags](#simgroups_updatetags) + ## SimPolicies - [CreateOrUpdate](#simpolicies_createorupdate) @@ -68,10 +78,8 @@ - [CreateOrUpdate](#sims_createorupdate) - [Delete](#sims_delete) -- [GetByResourceGroup](#sims_getbyresourcegroup) -- [List](#sims_list) -- [ListByResourceGroup](#sims_listbyresourcegroup) -- [UpdateTags](#sims_updatetags) +- [Get](#sims_get) +- [ListBySimGroup](#sims_listbysimgroup) ## Sites @@ -102,7 +110,7 @@ import java.util.Arrays; /** Samples for AttachedDataNetworks CreateOrUpdate. */ public final class AttachedDataNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/AttachedDataNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/AttachedDataNetworkCreate.json */ /** * Sample code: Create attached data network. @@ -116,13 +124,14 @@ public final class AttachedDataNetworksCreateOrUpdateSamples { .withRegion("eastus") .withExistingPacketCoreDataPlane("rg1", "TestPacketCoreCP", "TestPacketCoreDP") .withUserPlaneDataInterface(new InterfaceProperties().withName("N6")) + .withDnsAddresses(Arrays.asList("1.1.1.1")) .withNaptConfiguration( new NaptConfiguration() .withEnabled(NaptEnabled.ENABLED) - .withPortRange(new PortRange().withMinPort(1024).withMaxPort(65535)) + .withPortRange(new PortRange().withMinPort(1024).withMaxPort(49999)) .withPortReuseHoldTime(new PortReuseHoldTimes().withTcp(120).withUdp(60)) .withPinholeLimits(65536) - .withPinholeTimeouts(new PinholeTimeouts().withTcp(7440).withUdp(300).withIcmp(60))) + .withPinholeTimeouts(new PinholeTimeouts().withTcp(180).withUdp(30).withIcmp(30))) .withUserEquipmentAddressPoolPrefix(Arrays.asList("2.2.0.0/16")) .withUserEquipmentStaticAddressPoolPrefix(Arrays.asList("2.4.0.0/16")) .create(); @@ -138,7 +147,7 @@ import com.azure.core.util.Context; /** Samples for AttachedDataNetworks Delete. */ public final class AttachedDataNetworksDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/AttachedDataNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/AttachedDataNetworkDelete.json */ /** * Sample code: Delete attached data network resource. @@ -162,7 +171,7 @@ import com.azure.core.util.Context; /** Samples for AttachedDataNetworks Get. */ public final class AttachedDataNetworksGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/AttachedDataNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/AttachedDataNetworkGet.json */ /** * Sample code: Get attached data network. @@ -185,7 +194,7 @@ import com.azure.core.util.Context; /** Samples for AttachedDataNetworks ListByPacketCoreDataPlane. */ public final class AttachedDataNetworksListByPacketCoreDataPlaneSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/AttachedDataNetworkListByPacketCoreDataPlane.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/AttachedDataNetworkListByPacketCoreDataPlane.json */ /** * Sample code: List attached data networks in a data plane. @@ -212,7 +221,7 @@ import java.util.Map; /** Samples for AttachedDataNetworks UpdateTags. */ public final class AttachedDataNetworksUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/AttachedDataNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/AttachedDataNetworkUpdateTags.json */ /** * Sample code: Update attached data network tags. @@ -248,15 +257,14 @@ public final class AttachedDataNetworksUpdateTagsSamples { /** Samples for DataNetworks CreateOrUpdate. */ public final class DataNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/DataNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkCreate.json */ /** - * Sample code: Create mobile network dataNetwork. + * Sample code: Create data network. * * @param manager Entry point to MobileNetworkManager. */ - public static void createMobileNetworkDataNetwork( - com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void createDataNetwork(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager .dataNetworks() .define("testDataNetwork") @@ -276,15 +284,14 @@ import com.azure.core.util.Context; /** Samples for DataNetworks Delete. */ public final class DataNetworksDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/DataNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkDelete.json */ /** - * Sample code: Delete mobile network dataNetwork. + * Sample code: Delete data network. * * @param manager Entry point to MobileNetworkManager. */ - public static void deleteMobileNetworkDataNetwork( - com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void deleteDataNetwork(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.dataNetworks().delete("rg1", "testMobileNetwork", "testDataNetwork", Context.NONE); } } @@ -298,15 +305,14 @@ import com.azure.core.util.Context; /** Samples for DataNetworks Get. */ public final class DataNetworksGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/DataNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkGet.json */ /** - * Sample code: Get mobile network dataNetwork. + * Sample code: Get data network. * * @param manager Entry point to MobileNetworkManager. */ - public static void getMobileNetworkDataNetwork( - com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void getDataNetwork(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.dataNetworks().getWithResponse("rg1", "testMobileNetwork", "testDataNetwork", Context.NONE); } } @@ -320,14 +326,14 @@ import com.azure.core.util.Context; /** Samples for DataNetworks ListByMobileNetwork. */ public final class DataNetworksListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/DataNetworkListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkListByMobileNetwork.json */ /** - * Sample code: List mobile network dataNetworks in a mobile network. + * Sample code: List data networks in a mobile network. * * @param manager Entry point to MobileNetworkManager. */ - public static void listMobileNetworkDataNetworksInAMobileNetwork( + public static void listDataNetworksInAMobileNetwork( com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.dataNetworks().listByMobileNetwork("rg1", "testMobileNetwork", Context.NONE); } @@ -345,7 +351,7 @@ import java.util.Map; /** Samples for DataNetworks UpdateTags. */ public final class DataNetworksUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/DataNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkUpdateTags.json */ /** * Sample code: Update data network tags. @@ -382,7 +388,7 @@ import com.azure.resourcemanager.mobilenetwork.models.PlmnId; /** Samples for MobileNetworks CreateOrUpdate. */ public final class MobileNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkCreate.json */ /** * Sample code: Create mobile network. @@ -409,7 +415,7 @@ import com.azure.core.util.Context; /** Samples for MobileNetworks Delete. */ public final class MobileNetworksDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkDelete.json */ /** * Sample code: Delete mobile network. @@ -430,7 +436,7 @@ import com.azure.core.util.Context; /** Samples for MobileNetworks GetByResourceGroup. */ public final class MobileNetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkGet.json */ /** * Sample code: Get mobile network. @@ -451,7 +457,7 @@ import com.azure.core.util.Context; /** Samples for MobileNetworks List. */ public final class MobileNetworksListSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkListBySubscription.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkListBySubscription.json */ /** * Sample code: List mobile networks in a subscription. @@ -473,7 +479,7 @@ import com.azure.core.util.Context; /** Samples for MobileNetworks ListByResourceGroup. */ public final class MobileNetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkListByResourceGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkListByResourceGroup.json */ /** * Sample code: List mobile networks in resource group. @@ -495,14 +501,14 @@ import com.azure.core.util.Context; /** Samples for MobileNetworks ListSimIds. */ public final class MobileNetworksListSimIdsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimIdListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimIdListByMobileNetwork.json */ /** - * Sample code: List sim profile ids by network. + * Sample code: List the IDs of all provisioned SIMs in a mobile network. * * @param manager Entry point to MobileNetworkManager. */ - public static void listSimProfileIdsByNetwork( + public static void listTheIDsOfAllProvisionedSIMsInAMobileNetwork( com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.mobileNetworks().listSimIds("rg", "testMobileNetworkName", Context.NONE); } @@ -520,7 +526,7 @@ import java.util.Map; /** Samples for MobileNetworks UpdateTags. */ public final class MobileNetworksUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkUpdateTags.json */ /** * Sample code: Update mobile network tags. @@ -557,7 +563,7 @@ import com.azure.core.util.Context; /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/OperationList.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/OperationList.json */ /** * Sample code: Get Registration Operations. @@ -573,15 +579,22 @@ public final class OperationsListSamples { ### PacketCoreControlPlanes_CreateOrUpdate ```java +import com.azure.resourcemanager.mobilenetwork.models.AzureStackEdgeDeviceResourceId; +import com.azure.resourcemanager.mobilenetwork.models.BillingSku; +import com.azure.resourcemanager.mobilenetwork.models.ConnectedClusterResourceId; import com.azure.resourcemanager.mobilenetwork.models.CoreNetworkType; import com.azure.resourcemanager.mobilenetwork.models.CustomLocationResourceId; import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; +import com.azure.resourcemanager.mobilenetwork.models.KeyVaultCertificate; +import com.azure.resourcemanager.mobilenetwork.models.LocalDiagnosticsAccessConfiguration; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.PlatformConfiguration; +import com.azure.resourcemanager.mobilenetwork.models.PlatformType; /** Samples for PacketCoreControlPlanes CreateOrUpdate. */ public final class PacketCoreControlPlanesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneCreate.json */ /** * Sample code: Create packet core control plane. @@ -600,12 +613,29 @@ public final class PacketCoreControlPlanesCreateOrUpdateSamples { .withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork")) .withControlPlaneAccessInterface(new InterfaceProperties().withName("N2")) - .withCustomLocation( - new CustomLocationResourceId() - .withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/TestCustomLocation")) + .withSku(BillingSku.fromString("testSku")) + .withPlatform( + new PlatformConfiguration() + .withType(PlatformType.AKS_HCI) + .withAzureStackEdgeDevice( + new AzureStackEdgeDeviceResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/TestAzureStackEdgeDevice")) + .withConnectedCluster( + new ConnectedClusterResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/TestConnectedCluster")) + .withCustomLocation( + new CustomLocationResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/TestCustomLocation"))) .withCoreNetworkTechnology(CoreNetworkType.FIVE_GC) .withVersion("0.2.0") + .withLocalDiagnosticsAccess( + new LocalDiagnosticsAccessConfiguration() + .withHttpsServerCertificate( + new KeyVaultCertificate() + .withCertificateUrl("https://contosovault.vault.azure.net/certificates/ingress"))) .create(); } } @@ -619,7 +649,7 @@ import com.azure.core.util.Context; /** Samples for PacketCoreControlPlanes Delete. */ public final class PacketCoreControlPlanesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneDelete.json */ /** * Sample code: Delete packet core control plane. @@ -641,7 +671,7 @@ import com.azure.core.util.Context; /** Samples for PacketCoreControlPlanes GetByResourceGroup. */ public final class PacketCoreControlPlanesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneGet.json */ /** * Sample code: Get packet core control plane. @@ -662,7 +692,7 @@ import com.azure.core.util.Context; /** Samples for PacketCoreControlPlanes List. */ public final class PacketCoreControlPlanesListSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneListBySubscription.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneListBySubscription.json */ /** * Sample code: List packet core control planes in a subscription. @@ -684,7 +714,7 @@ import com.azure.core.util.Context; /** Samples for PacketCoreControlPlanes ListByResourceGroup. */ public final class PacketCoreControlPlanesListByResourceGroupSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneListByResourceGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneListByResourceGroup.json */ /** * Sample code: List packet core control planes in resource group. @@ -698,6 +728,28 @@ public final class PacketCoreControlPlanesListByResourceGroupSamples { } ``` +### PacketCoreControlPlanes_SupportedVersions + +```java +import com.azure.core.util.Context; + +/** Samples for PacketCoreControlPlanes SupportedVersions. */ +public final class PacketCoreControlPlanesSupportedVersionsSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SupportedPacketCoreControlPlaneVersions.json + */ + /** + * Sample code: Get supported packet core control plane versions. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void getSupportedPacketCoreControlPlaneVersions( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.packetCoreControlPlanes().supportedVersionsWithResponse("rg", Context.NONE); + } +} +``` + ### PacketCoreControlPlanes_UpdateTags ```java @@ -709,7 +761,7 @@ import java.util.Map; /** Samples for PacketCoreControlPlanes UpdateTags. */ public final class PacketCoreControlPlanesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneUpdateTags.json */ /** * Sample code: Update packet core control plane tags. @@ -747,7 +799,7 @@ import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; /** Samples for PacketCoreDataPlanes CreateOrUpdate. */ public final class PacketCoreDataPlanesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreDataPlaneCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreDataPlaneCreate.json */ /** * Sample code: Create packet core data plane. @@ -774,7 +826,7 @@ import com.azure.core.util.Context; /** Samples for PacketCoreDataPlanes Delete. */ public final class PacketCoreDataPlanesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreDataPlaneDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreDataPlaneDelete.json */ /** * Sample code: Delete packet core data plane. @@ -795,7 +847,7 @@ import com.azure.core.util.Context; /** Samples for PacketCoreDataPlanes Get. */ public final class PacketCoreDataPlanesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreDataPlaneGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreDataPlaneGet.json */ /** * Sample code: Get packet core data plane. @@ -816,7 +868,7 @@ import com.azure.core.util.Context; /** Samples for PacketCoreDataPlanes ListByPacketCoreControlPlane. */ public final class PacketCoreDataPlanesListByPacketCoreControlPlaneSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json */ /** * Sample code: List packet core data planes in a control plane. @@ -841,7 +893,7 @@ import java.util.Map; /** Samples for PacketCoreDataPlanes UpdateTags. */ public final class PacketCoreDataPlanesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreDataPlaneUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreDataPlaneUpdateTags.json */ /** * Sample code: Update packet core data plane tags. @@ -888,7 +940,7 @@ import java.util.Arrays; /** Samples for Services CreateOrUpdate. */ public final class ServicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/ServiceCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/ServiceCreate.json */ /** * Sample code: Create service. @@ -945,7 +997,7 @@ import com.azure.core.util.Context; /** Samples for Services Delete. */ public final class ServicesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/ServiceDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/ServiceDelete.json */ /** * Sample code: Delete service. @@ -966,7 +1018,7 @@ import com.azure.core.util.Context; /** Samples for Services Get. */ public final class ServicesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/ServiceGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/ServiceGet.json */ /** * Sample code: Get service. @@ -987,7 +1039,7 @@ import com.azure.core.util.Context; /** Samples for Services ListByMobileNetwork. */ public final class ServicesListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/ServiceListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/ServiceListByMobileNetwork.json */ /** * Sample code: List services in a mobile network. @@ -1012,7 +1064,7 @@ import java.util.Map; /** Samples for Services UpdateTags. */ public final class ServicesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/ServiceUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/ServiceUpdateTags.json */ /** * Sample code: Update service tags. @@ -1038,6 +1090,161 @@ public final class ServicesUpdateTagsSamples { } ``` +### SimGroups_CreateOrUpdate + +```java +import com.azure.resourcemanager.mobilenetwork.models.KeyVaultKey; +import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; + +/** Samples for SimGroups CreateOrUpdate. */ +public final class SimGroupsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupCreate.json + */ + /** + * Sample code: Create SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void createSIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager + .simGroups() + .define("testSimGroup") + .withRegion("eastus") + .withExistingResourceGroup("rg1") + .withEncryptionKey(new KeyVaultKey().withKeyUrl("https://contosovault.vault.azure.net/keys/azureKey")) + .withMobileNetwork( + new MobileNetworkResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork")) + .create(); + } +} +``` + +### SimGroups_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for SimGroups Delete. */ +public final class SimGroupsDeleteSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupDelete.json + */ + /** + * Sample code: Delete SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void deleteSIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.simGroups().delete("testResourceGroupName", "testSimGroup", Context.NONE); + } +} +``` + +### SimGroups_GetByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for SimGroups GetByResourceGroup. */ +public final class SimGroupsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupGet.json + */ + /** + * Sample code: Get SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void getSIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.simGroups().getByResourceGroupWithResponse("testResourceGroupName", "testSimGroupName", Context.NONE); + } +} +``` + +### SimGroups_List + +```java +import com.azure.core.util.Context; + +/** Samples for SimGroups List. */ +public final class SimGroupsListSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupListBySubscription.json + */ + /** + * Sample code: List SIM groups in a subscription. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void listSIMGroupsInASubscription( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.simGroups().list(Context.NONE); + } +} +``` + +### SimGroups_ListByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for SimGroups ListByResourceGroup. */ +public final class SimGroupsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupListByResourceGroup.json + */ + /** + * Sample code: List SIM groups in a resource group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void listSIMGroupsInAResourceGroup( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.simGroups().listByResourceGroup("rg1", Context.NONE); + } +} +``` + +### SimGroups_UpdateTags + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.mobilenetwork.models.SimGroup; +import java.util.HashMap; +import java.util.Map; + +/** Samples for SimGroups UpdateTags. */ +public final class SimGroupsUpdateTagsSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupUpdateTags.json + */ + /** + * Sample code: Update SIM group tags. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void updateSIMGroupTags(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + SimGroup resource = + manager.simGroups().getByResourceGroupWithResponse("rg1", "testSimGroup", Context.NONE).getValue(); + resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + ### SimPolicies_CreateOrUpdate ```java @@ -1055,14 +1262,14 @@ import java.util.Arrays; /** Samples for SimPolicies CreateOrUpdate. */ public final class SimPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimPolicyCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyCreate.json */ /** - * Sample code: Create sim policy. + * Sample code: Create SIM policy. * * @param manager Entry point to MobileNetworkManager. */ - public static void createSimPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void createSIMPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager .simPolicies() .define("testPolicy") @@ -1120,14 +1327,14 @@ import com.azure.core.util.Context; /** Samples for SimPolicies Delete. */ public final class SimPoliciesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimPolicyDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyDelete.json */ /** - * Sample code: Delete sim policy. + * Sample code: Delete SIM policy. * * @param manager Entry point to MobileNetworkManager. */ - public static void deleteSimPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void deleteSIMPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.simPolicies().delete("rg1", "testMobileNetwork", "testPolicy", Context.NONE); } } @@ -1141,14 +1348,14 @@ import com.azure.core.util.Context; /** Samples for SimPolicies Get. */ public final class SimPoliciesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimPolicyGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyGet.json */ /** - * Sample code: Get sim policy. + * Sample code: Get SIM policy. * * @param manager Entry point to MobileNetworkManager. */ - public static void getSimPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void getSIMPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.simPolicies().getWithResponse("rg1", "testMobileNetwork", "testPolicy", Context.NONE); } } @@ -1162,14 +1369,14 @@ import com.azure.core.util.Context; /** Samples for SimPolicies ListByMobileNetwork. */ public final class SimPoliciesListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimPolicyListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyListByMobileNetwork.json */ /** - * Sample code: List sim policies in a mobile network. + * Sample code: List SIM policies in a mobile network. * * @param manager Entry point to MobileNetworkManager. */ - public static void listSimPoliciesInAMobileNetwork( + public static void listSIMPoliciesInAMobileNetwork( com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.simPolicies().listByMobileNetwork("testResourceGroupName", "testMobileNetwork", Context.NONE); } @@ -1187,14 +1394,14 @@ import java.util.Map; /** Samples for SimPolicies UpdateTags. */ public final class SimPoliciesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimPolicyUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyUpdateTags.json */ /** - * Sample code: Update sim policy tags. + * Sample code: Update SIM policy tags. * * @param manager Entry point to MobileNetworkManager. */ - public static void updateSimPolicyTags(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void updateSIMPolicyTags(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { SimPolicy resource = manager.simPolicies().getWithResponse("rg1", "testMobileNetwork", "testPolicy", Context.NONE).getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); @@ -1217,7 +1424,6 @@ public final class SimPoliciesUpdateTagsSamples { ```java import com.azure.resourcemanager.mobilenetwork.models.AttachedDataNetworkResourceId; -import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties; import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpPropertiesStaticIp; @@ -1227,27 +1433,22 @@ import java.util.Arrays; /** Samples for Sims CreateOrUpdate. */ public final class SimsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimCreate.json */ /** - * Sample code: Create sim. + * Sample code: Create SIM. * * @param manager Entry point to MobileNetworkManager. */ - public static void createSim(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void createSIM(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager .sims() .define("testSim") - .withRegion("testLocation") - .withExistingResourceGroup("rg1") + .withExistingSimGroup("rg1", "testSimGroup") .withInternationalMobileSubscriberIdentity("00000") .withIntegratedCircuitCardIdentifier("8900000000000000000") .withAuthenticationKey("00000000000000000000000000000000") .withOperatorKeyCode("00000000000000000000000000000000") - .withMobileNetwork( - new MobileNetworkResourceId() - .withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork")) .withDeviceType("Video camera") .withSimPolicy( new SimPolicyResourceId() @@ -1279,114 +1480,57 @@ import com.azure.core.util.Context; /** Samples for Sims Delete. */ public final class SimsDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimDelete.json */ /** - * Sample code: Delete sim. + * Sample code: Delete SIM. * * @param manager Entry point to MobileNetworkManager. */ - public static void deleteSim(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.sims().delete("testResourceGroupName", "testSim", Context.NONE); + public static void deleteSIM(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.sims().delete("testResourceGroupName", "testSimGroup", "testSim", Context.NONE); } } ``` -### Sims_GetByResourceGroup +### Sims_Get ```java import com.azure.core.util.Context; -/** Samples for Sims GetByResourceGroup. */ -public final class SimsGetByResourceGroupSamples { +/** Samples for Sims Get. */ +public final class SimsGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGet.json */ /** - * Sample code: Get sim. + * Sample code: Get SIM. * * @param manager Entry point to MobileNetworkManager. */ - public static void getSim(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.sims().getByResourceGroupWithResponse("testResourceGroupName", "testSimName", Context.NONE); + public static void getSIM(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.sims().getWithResponse("testResourceGroupName", "testSimGroup", "testSimName", Context.NONE); } } ``` -### Sims_List +### Sims_ListBySimGroup ```java import com.azure.core.util.Context; -/** Samples for Sims List. */ -public final class SimsListSamples { +/** Samples for Sims ListBySimGroup. */ +public final class SimsListBySimGroupSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimListBySubscription.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimListBySimGroup.json */ /** - * Sample code: List sims in a subscription. + * Sample code: List SIMs in a SIM group. * * @param manager Entry point to MobileNetworkManager. */ - public static void listSimsInASubscription(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.sims().list(Context.NONE); - } -} -``` - -### Sims_ListByResourceGroup - -```java -import com.azure.core.util.Context; - -/** Samples for Sims ListByResourceGroup. */ -public final class SimsListByResourceGroupSamples { - /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimListByResourceGroup.json - */ - /** - * Sample code: List sims in a resource group. - * - * @param manager Entry point to MobileNetworkManager. - */ - public static void listSimsInAResourceGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.sims().listByResourceGroup("rg1", Context.NONE); - } -} -``` - -### Sims_UpdateTags - -```java -import com.azure.core.util.Context; -import com.azure.resourcemanager.mobilenetwork.models.Sim; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Sims UpdateTags. */ -public final class SimsUpdateTagsSamples { - /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimUpdateTags.json - */ - /** - * Sample code: Update sim tags. - * - * @param manager Entry point to MobileNetworkManager. - */ - public static void updateSimTags(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - Sim resource = manager.sims().getByResourceGroupWithResponse("rg1", "testSim", Context.NONE).getValue(); - resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + public static void listSIMsInASIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.sims().listBySimGroup("rg1", "testSimGroup", Context.NONE); } } ``` @@ -1400,7 +1544,7 @@ import java.util.Arrays; /** Samples for Sites CreateOrUpdate. */ public final class SitesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SiteCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteCreate.json */ /** * Sample code: Create mobile network site. @@ -1432,7 +1576,7 @@ import com.azure.core.util.Context; /** Samples for Sites Delete. */ public final class SitesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SiteDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteDelete.json */ /** * Sample code: Delete mobile network site. @@ -1453,7 +1597,7 @@ import com.azure.core.util.Context; /** Samples for Sites Get. */ public final class SitesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SiteGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteGet.json */ /** * Sample code: Get mobile network site. @@ -1474,7 +1618,7 @@ import com.azure.core.util.Context; /** Samples for Sites ListByMobileNetwork. */ public final class SitesListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SiteListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteListByMobileNetwork.json */ /** * Sample code: List mobile network sites in a mobile network. @@ -1499,7 +1643,7 @@ import java.util.Map; /** Samples for Sites UpdateTags. */ public final class SitesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SiteUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteUpdateTags.json */ /** * Sample code: Update mobile network site tags. @@ -1534,14 +1678,14 @@ import com.azure.resourcemanager.mobilenetwork.models.Snssai; /** Samples for Slices CreateOrUpdate. */ public final class SlicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SliceCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceCreate.json */ /** - * Sample code: Create mobile network slice. + * Sample code: Create network slice. * * @param manager Entry point to MobileNetworkManager. */ - public static void createMobileNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void createNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager .slices() .define("testSlice") @@ -1562,14 +1706,14 @@ import com.azure.core.util.Context; /** Samples for Slices Delete. */ public final class SlicesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SliceDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceDelete.json */ /** - * Sample code: Delete mobile network slice. + * Sample code: Delete network slice. * * @param manager Entry point to MobileNetworkManager. */ - public static void deleteMobileNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void deleteNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.slices().delete("rg1", "testMobileNetwork", "testSlice", Context.NONE); } } @@ -1583,14 +1727,14 @@ import com.azure.core.util.Context; /** Samples for Slices Get. */ public final class SlicesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SliceGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceGet.json */ /** - * Sample code: Get mobile network slice. + * Sample code: Get network slice. * * @param manager Entry point to MobileNetworkManager. */ - public static void getMobileNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void getNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.slices().getWithResponse("rg1", "testMobileNetwork", "testSlice", Context.NONE); } } @@ -1604,14 +1748,14 @@ import com.azure.core.util.Context; /** Samples for Slices ListByMobileNetwork. */ public final class SlicesListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SliceListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceListByMobileNetwork.json */ /** - * Sample code: List mobile network slices in a mobile network. + * Sample code: List network slices in a mobile network. * * @param manager Entry point to MobileNetworkManager. */ - public static void listMobileNetworkSlicesInAMobileNetwork( + public static void listNetworkSlicesInAMobileNetwork( com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.slices().listByMobileNetwork("rg1", "testMobileNetwork", Context.NONE); } @@ -1629,15 +1773,14 @@ import java.util.Map; /** Samples for Slices UpdateTags. */ public final class SlicesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SliceUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceUpdateTags.json */ /** - * Sample code: Update mobile network slice tags. + * Sample code: Update network slice tags. * * @param manager Entry point to MobileNetworkManager. */ - public static void updateMobileNetworkSliceTags( - com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void updateNetworkSliceTags(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { Slice resource = manager.slices().getWithResponse("rg1", "testMobileNetwork", "testSlice", Context.NONE).getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/pom.xml b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/pom.xml index 7950482e2959c..f2a22b538f75b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/pom.xml +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for MobileNetwork Management - This package contains Microsoft Azure SDK for MobileNetwork Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The resources in this swagger specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance. Package tag package-2022-03-01-preview. + This package contains Microsoft Azure SDK for MobileNetwork Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The resources in this swagger specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance. Package tag package-2022-04-01-preview. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/MobileNetworkManager.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/MobileNetworkManager.java index 435ab6bee4881..887d70bed7ef6 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/MobileNetworkManager.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/MobileNetworkManager.java @@ -10,11 +10,13 @@ import com.azure.core.http.HttpPipelineBuilder; import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; +import com.azure.core.http.policy.AddHeadersFromContextPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; @@ -30,6 +32,7 @@ import com.azure.resourcemanager.mobilenetwork.implementation.PacketCoreControlPlanesImpl; import com.azure.resourcemanager.mobilenetwork.implementation.PacketCoreDataPlanesImpl; import com.azure.resourcemanager.mobilenetwork.implementation.ServicesImpl; +import com.azure.resourcemanager.mobilenetwork.implementation.SimGroupsImpl; import com.azure.resourcemanager.mobilenetwork.implementation.SimPoliciesImpl; import com.azure.resourcemanager.mobilenetwork.implementation.SimsImpl; import com.azure.resourcemanager.mobilenetwork.implementation.SitesImpl; @@ -41,6 +44,7 @@ import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlanes; import com.azure.resourcemanager.mobilenetwork.models.PacketCoreDataPlanes; import com.azure.resourcemanager.mobilenetwork.models.Services; +import com.azure.resourcemanager.mobilenetwork.models.SimGroups; import com.azure.resourcemanager.mobilenetwork.models.SimPolicies; import com.azure.resourcemanager.mobilenetwork.models.Sims; import com.azure.resourcemanager.mobilenetwork.models.Sites; @@ -65,6 +69,8 @@ public final class MobileNetworkManager { private Sites sites; + private SimGroups simGroups; + private Sims sims; private Operations operations; @@ -106,6 +112,19 @@ public static MobileNetworkManager authenticate(TokenCredential credential, Azur return configure().authenticate(credential, profile); } + /** + * Creates an instance of MobileNetwork service API entry point. + * + * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. + * @param profile the Azure profile for client. + * @return the MobileNetwork service API instance. + */ + public static MobileNetworkManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) { + Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + return new MobileNetworkManager(httpPipeline, profile, null); + } + /** * Gets a Configurable instance that can be used to create MobileNetworkManager with optional configuration. * @@ -124,6 +143,7 @@ public static final class Configurable { private final List policies = new ArrayList<>(); private final List scopes = new ArrayList<>(); private RetryPolicy retryPolicy; + private RetryOptions retryOptions; private Duration defaultPollInterval; private Configurable() { @@ -184,6 +204,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { return this; } + /** + * Sets the retry options for the HTTP pipeline retry policy. + * + *

This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + * + * @param retryOptions the retry options for the HTTP pipeline retry policy. + * @return the configurable object itself. + */ + public Configurable withRetryOptions(RetryOptions retryOptions) { + this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null."); + return this; + } + /** * Sets the default poll interval, used when service does not provide "Retry-After" header. * @@ -217,7 +250,7 @@ public MobileNetworkManager authenticate(TokenCredential credential, AzureProfil .append("-") .append("com.azure.resourcemanager.mobilenetwork") .append("/") - .append("1.0.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -235,10 +268,15 @@ public MobileNetworkManager authenticate(TokenCredential credential, AzureProfil scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default"); } if (retryPolicy == null) { - retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + if (retryOptions != null) { + retryPolicy = new RetryPolicy(retryOptions); + } else { + retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + } } List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); + policies.add(new AddHeadersFromContextPolicy()); policies.add(new RequestIdPolicy()); policies .addAll( @@ -269,7 +307,11 @@ public MobileNetworkManager authenticate(TokenCredential credential, AzureProfil } } - /** @return Resource collection API of AttachedDataNetworks. */ + /** + * Gets the resource collection API of AttachedDataNetworks. It manages AttachedDataNetwork. + * + * @return Resource collection API of AttachedDataNetworks. + */ public AttachedDataNetworks attachedDataNetworks() { if (this.attachedDataNetworks == null) { this.attachedDataNetworks = new AttachedDataNetworksImpl(clientObject.getAttachedDataNetworks(), this); @@ -277,7 +319,11 @@ public AttachedDataNetworks attachedDataNetworks() { return attachedDataNetworks; } - /** @return Resource collection API of DataNetworks. */ + /** + * Gets the resource collection API of DataNetworks. It manages DataNetwork. + * + * @return Resource collection API of DataNetworks. + */ public DataNetworks dataNetworks() { if (this.dataNetworks == null) { this.dataNetworks = new DataNetworksImpl(clientObject.getDataNetworks(), this); @@ -285,7 +331,11 @@ public DataNetworks dataNetworks() { return dataNetworks; } - /** @return Resource collection API of MobileNetworks. */ + /** + * Gets the resource collection API of MobileNetworks. It manages MobileNetwork. + * + * @return Resource collection API of MobileNetworks. + */ public MobileNetworks mobileNetworks() { if (this.mobileNetworks == null) { this.mobileNetworks = new MobileNetworksImpl(clientObject.getMobileNetworks(), this); @@ -293,7 +343,11 @@ public MobileNetworks mobileNetworks() { return mobileNetworks; } - /** @return Resource collection API of Sites. */ + /** + * Gets the resource collection API of Sites. It manages Site. + * + * @return Resource collection API of Sites. + */ public Sites sites() { if (this.sites == null) { this.sites = new SitesImpl(clientObject.getSites(), this); @@ -301,7 +355,23 @@ public Sites sites() { return sites; } - /** @return Resource collection API of Sims. */ + /** + * Gets the resource collection API of SimGroups. It manages SimGroup. + * + * @return Resource collection API of SimGroups. + */ + public SimGroups simGroups() { + if (this.simGroups == null) { + this.simGroups = new SimGroupsImpl(clientObject.getSimGroups(), this); + } + return simGroups; + } + + /** + * Gets the resource collection API of Sims. It manages Sim. + * + * @return Resource collection API of Sims. + */ public Sims sims() { if (this.sims == null) { this.sims = new SimsImpl(clientObject.getSims(), this); @@ -309,7 +379,11 @@ public Sims sims() { return sims; } - /** @return Resource collection API of Operations. */ + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ public Operations operations() { if (this.operations == null) { this.operations = new OperationsImpl(clientObject.getOperations(), this); @@ -317,7 +391,11 @@ public Operations operations() { return operations; } - /** @return Resource collection API of PacketCoreControlPlanes. */ + /** + * Gets the resource collection API of PacketCoreControlPlanes. It manages PacketCoreControlPlane. + * + * @return Resource collection API of PacketCoreControlPlanes. + */ public PacketCoreControlPlanes packetCoreControlPlanes() { if (this.packetCoreControlPlanes == null) { this.packetCoreControlPlanes = @@ -326,7 +404,11 @@ public PacketCoreControlPlanes packetCoreControlPlanes() { return packetCoreControlPlanes; } - /** @return Resource collection API of PacketCoreDataPlanes. */ + /** + * Gets the resource collection API of PacketCoreDataPlanes. It manages PacketCoreDataPlane. + * + * @return Resource collection API of PacketCoreDataPlanes. + */ public PacketCoreDataPlanes packetCoreDataPlanes() { if (this.packetCoreDataPlanes == null) { this.packetCoreDataPlanes = new PacketCoreDataPlanesImpl(clientObject.getPacketCoreDataPlanes(), this); @@ -334,7 +416,11 @@ public PacketCoreDataPlanes packetCoreDataPlanes() { return packetCoreDataPlanes; } - /** @return Resource collection API of Services. */ + /** + * Gets the resource collection API of Services. It manages Service. + * + * @return Resource collection API of Services. + */ public Services services() { if (this.services == null) { this.services = new ServicesImpl(clientObject.getServices(), this); @@ -342,7 +428,11 @@ public Services services() { return services; } - /** @return Resource collection API of SimPolicies. */ + /** + * Gets the resource collection API of SimPolicies. It manages SimPolicy. + * + * @return Resource collection API of SimPolicies. + */ public SimPolicies simPolicies() { if (this.simPolicies == null) { this.simPolicies = new SimPoliciesImpl(clientObject.getSimPolicies(), this); @@ -350,7 +440,11 @@ public SimPolicies simPolicies() { return simPolicies; } - /** @return Resource collection API of Slices. */ + /** + * Gets the resource collection API of Slices. It manages Slice. + * + * @return Resource collection API of Slices. + */ public Slices slices() { if (this.slices == null) { this.slices = new SlicesImpl(clientObject.getSlices(), this); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/AttachedDataNetworksClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/AttachedDataNetworksClient.java index b08c538d6d736..6395b174cc721 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/AttachedDataNetworksClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/AttachedDataNetworksClient.java @@ -223,7 +223,7 @@ AttachedDataNetworkInner createOrUpdate( Context context); /** - * Updates an attached data network update tags. + * Updates an attached data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -244,7 +244,7 @@ AttachedDataNetworkInner updateTags( TagsObject parameters); /** - * Updates an attached data network update tags. + * Updates an attached data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -267,7 +267,7 @@ Response updateTagsWithResponse( Context context); /** - * Gets all the data networks associated with a packet core data plane. + * Gets all the attached data networks associated with a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -275,7 +275,7 @@ Response updateTagsWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the data networks associated with a packet core data plane as paginated response with {@link + * @return all the attached data networks associated with a packet core data plane as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -283,7 +283,7 @@ PagedIterable listByPacketCoreDataPlane( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName); /** - * Gets all the data networks associated with a packet core data plane. + * Gets all the attached data networks associated with a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -292,7 +292,7 @@ PagedIterable listByPacketCoreDataPlane( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the data networks associated with a packet core data plane as paginated response with {@link + * @return all the attached data networks associated with a packet core data plane as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/DataNetworksClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/DataNetworksClient.java index 39f1b7b4a320a..e35722a8ff75c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/DataNetworksClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/DataNetworksClient.java @@ -17,11 +17,11 @@ /** An instance of this class provides access to all the operations defined in DataNetworksClient. */ public interface DataNetworksClient { /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -32,11 +32,11 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String mobileNetworkName, String dataNetworkName); /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -48,11 +48,11 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context); /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -61,11 +61,11 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String mobileNetworkName, String dataNetworkName); /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -75,42 +75,42 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context); /** - * Gets information about the specified mobile network dataNetwork. + * Gets information about the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network dataNetwork. + * @return information about the specified data network. */ @ServiceMethod(returns = ReturnType.SINGLE) DataNetworkInner get(String resourceGroupName, String mobileNetworkName, String dataNetworkName); /** - * Gets information about the specified mobile network dataNetwork. + * Gets information about the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network dataNetwork along with {@link Response}. + * @return information about the specified data network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context); /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -121,12 +121,12 @@ SyncPoller, DataNetworkInner> beginCreateOrUpdate( String resourceGroupName, String mobileNetworkName, String dataNetworkName, DataNetworkInner parameters); /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -142,12 +142,12 @@ SyncPoller, DataNetworkInner> beginCreateOrUpdate( Context context); /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -158,12 +158,12 @@ DataNetworkInner createOrUpdate( String resourceGroupName, String mobileNetworkName, String dataNetworkName, DataNetworkInner parameters); /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -179,11 +179,11 @@ DataNetworkInner createOrUpdate( Context context); /** - * Update data network tags. + * Updates data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param parameters Parameters supplied to update data network tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -195,11 +195,11 @@ DataNetworkInner updateTags( String resourceGroupName, String mobileNetworkName, String dataNetworkName, TagsObject parameters); /** - * Update data network tags. + * Updates data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param parameters Parameters supplied to update data network tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -216,7 +216,7 @@ Response updateTagsWithResponse( Context context); /** - * Lists all dataNetworks in the mobile network. + * Lists all data networks in the mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -229,7 +229,7 @@ Response updateTagsWithResponse( PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName); /** - * Lists all dataNetworks in the mobile network. + * Lists all data networks in the mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/MobileNetworkManagementClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/MobileNetworkManagementClient.java index 14ba0ecd5fc7a..933759f124275 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/MobileNetworkManagementClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/MobileNetworkManagementClient.java @@ -72,6 +72,13 @@ public interface MobileNetworkManagementClient { */ SitesClient getSites(); + /** + * Gets the SimGroupsClient object to access its operations. + * + * @return the SimGroupsClient object. + */ + SimGroupsClient getSimGroups(); + /** * Gets the SimsClient object to access its operations. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/MobileNetworksClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/MobileNetworksClient.java index 97fd6dd1bdff8..d6f37b90024d4 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/MobileNetworksClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/MobileNetworksClient.java @@ -160,7 +160,7 @@ MobileNetworkInner createOrUpdate( String resourceGroupName, String mobileNetworkName, MobileNetworkInner parameters, Context context); /** - * Updates a mobile network update tags. + * Updates mobile network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -174,7 +174,7 @@ MobileNetworkInner createOrUpdate( MobileNetworkInner updateTags(String resourceGroupName, String mobileNetworkName, TagsObject parameters); /** - * Updates a mobile network update tags. + * Updates mobile network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -237,21 +237,21 @@ Response updateTagsWithResponse( PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for list sim ids API service call. + * @return the {@link SyncPoller} for polling of response for list SIM IDs API service call. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SimIdListResultInner> beginListSimIds( String resourceGroupName, String mobileNetworkName); /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -259,27 +259,27 @@ SyncPoller, SimIdListResultInner> beginListSimI * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for list sim ids API service call. + * @return the {@link SyncPoller} for polling of response for list SIM IDs API service call. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SimIdListResultInner> beginListSimIds( String resourceGroupName, String mobileNetworkName, Context context); /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call. + * @return response for list SIM IDs API service call. */ @ServiceMethod(returns = ReturnType.SINGLE) SimIdListResultInner listSimIds(String resourceGroupName, String mobileNetworkName); /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -287,7 +287,7 @@ SyncPoller, SimIdListResultInner> beginListSimI * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call. + * @return response for list SIM IDs API service call. */ @ServiceMethod(returns = ReturnType.SINGLE) SimIdListResultInner listSimIds(String resourceGroupName, String mobileNetworkName, Context context); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreControlPlanesClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreControlPlanesClient.java index 371f24168cd6e..d4e41f6d552db 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreControlPlanesClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreControlPlanesClient.java @@ -12,6 +12,7 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreControlPlaneInner; +import com.azure.resourcemanager.mobilenetwork.fluent.models.SupportedPacketCoreControlPlaneVersionResultInner; import com.azure.resourcemanager.mobilenetwork.models.TagsObject; /** An instance of this class provides access to all the operations defined in PacketCoreControlPlanesClient. */ @@ -98,7 +99,7 @@ Response getByResourceGroupWithResponse( String resourceGroupName, String packetCoreControlPlaneName, Context context); /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -113,7 +114,7 @@ SyncPoller, PacketCoreControlPlaneInner> String resourceGroupName, String packetCoreControlPlaneName, PacketCoreControlPlaneInner parameters); /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -132,7 +133,7 @@ SyncPoller, PacketCoreControlPlaneInner> Context context); /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -147,7 +148,7 @@ PacketCoreControlPlaneInner createOrUpdate( String resourceGroupName, String packetCoreControlPlaneName, PacketCoreControlPlaneInner parameters); /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -166,11 +167,11 @@ PacketCoreControlPlaneInner createOrUpdate( Context context); /** - * Updates a PacketCoreControlPlane update tags. + * Updates packet core control planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. - * @param parameters Parameters supplied to update PacketCoreControlPlane tags. + * @param parameters Parameters supplied to update packet core control plane tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -181,11 +182,11 @@ PacketCoreControlPlaneInner updateTags( String resourceGroupName, String packetCoreControlPlaneName, TagsObject parameters); /** - * Updates a PacketCoreControlPlane update tags. + * Updates packet core control planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. - * @param parameters Parameters supplied to update PacketCoreControlPlane tags. + * @param parameters Parameters supplied to update packet core control plane tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -197,7 +198,7 @@ Response updateTagsWithResponse( String resourceGroupName, String packetCoreControlPlaneName, TagsObject parameters, Context context); /** - * Lists all the packetCoreControlPlanes in a subscription. + * Lists all the packet core control planes in a subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -208,7 +209,7 @@ Response updateTagsWithResponse( PagedIterable list(); /** - * Lists all the packetCoreControlPlanes in a subscription. + * Lists all the packet core control planes in a subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -221,7 +222,7 @@ Response updateTagsWithResponse( PagedIterable list(Context context); /** - * Lists all the packetCoreControlPlanes in a resource group. + * Lists all the packet core control planes in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -234,7 +235,7 @@ Response updateTagsWithResponse( PagedIterable listByResourceGroup(String resourceGroupName); /** - * Lists all the packetCoreControlPlanes in a resource group. + * Lists all the packet core control planes in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -246,4 +247,30 @@ Response updateTagsWithResponse( */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Get the set of packet core control plane versions that are currently supported. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the set of packet core control plane versions that are currently supported. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SupportedPacketCoreControlPlaneVersionResultInner supportedVersions(String resourceGroupName); + + /** + * Get the set of packet core control plane versions that are currently supported. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the set of packet core control plane versions that are currently supported along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response supportedVersionsWithResponse( + String resourceGroupName, Context context); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreDataPlanesClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreDataPlanesClient.java index 496d9bc0ffbd8..ffac817c04319 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreDataPlanesClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreDataPlanesClient.java @@ -107,7 +107,7 @@ Response getWithResponse( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, Context context); /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -126,7 +126,7 @@ SyncPoller, PacketCoreDataPlaneInner> begin PacketCoreDataPlaneInner parameters); /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -147,7 +147,7 @@ SyncPoller, PacketCoreDataPlaneInner> begin Context context); /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -166,7 +166,7 @@ PacketCoreDataPlaneInner createOrUpdate( PacketCoreDataPlaneInner parameters); /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -187,12 +187,12 @@ PacketCoreDataPlaneInner createOrUpdate( Context context); /** - * Updates a PacketCoreDataPlane update tags. + * Updates packet core data planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. - * @param parameters Parameters supplied to update PacketCoreDataPlane tags. + * @param parameters Parameters supplied to update packet core data plane tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -206,12 +206,12 @@ PacketCoreDataPlaneInner updateTags( TagsObject parameters); /** - * Updates a PacketCoreDataPlane update tags. + * Updates packet core data planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. - * @param parameters Parameters supplied to update PacketCoreDataPlane tags. + * @param parameters Parameters supplied to update packet core data plane tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -227,7 +227,7 @@ Response updateTagsWithResponse( Context context); /** - * Lists all the packetCoreDataPlanes associated with a packetCoreControlPlane. + * Lists all the packet core data planes associated with a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -241,7 +241,7 @@ PagedIterable listByPacketCoreControlPlane( String resourceGroupName, String packetCoreControlPlaneName); /** - * Lists all the packetCoreDataPlanes associated with a packetCoreControlPlane. + * Lists all the packet core data planes associated with a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/ServicesClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/ServicesClient.java index 25182b3c2a42b..22995550263aa 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/ServicesClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/ServicesClient.java @@ -111,7 +111,7 @@ Response getWithResponse( String resourceGroupName, String mobileNetworkName, String serviceName, Context context); /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -128,7 +128,7 @@ SyncPoller, ServiceInner> beginCreateOrUpdate( String resourceGroupName, String mobileNetworkName, String serviceName, ServiceInner parameters); /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -150,7 +150,7 @@ SyncPoller, ServiceInner> beginCreateOrUpdate( Context context); /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -167,7 +167,7 @@ ServiceInner createOrUpdate( String resourceGroupName, String mobileNetworkName, String serviceName, ServiceInner parameters); /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -189,7 +189,7 @@ ServiceInner createOrUpdate( Context context); /** - * Update service tags. + * Updates service tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -206,7 +206,7 @@ ServiceInner updateTags( String resourceGroupName, String mobileNetworkName, String serviceName, TagsObject parameters); /** - * Update service tags. + * Updates service tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimGroupsClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimGroupsClient.java new file mode 100644 index 0000000000000..25d5bfd75d1f6 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimGroupsClient.java @@ -0,0 +1,236 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.mobilenetwork.fluent.models.SimGroupInner; +import com.azure.resourcemanager.mobilenetwork.models.TagsObject; + +/** An instance of this class provides access to all the operations defined in SimGroupsClient. */ +public interface SimGroupsClient { + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String simGroupName); + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String simGroupName, Context context); + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String simGroupName); + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String simGroupName, Context context); + + /** + * Gets information about the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified SIM group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SimGroupInner getByResourceGroup(String resourceGroupName, String simGroupName); + + /** + * Gets information about the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified SIM group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse( + String resourceGroupName, String simGroupName, Context context); + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of sIM group resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SimGroupInner> beginCreateOrUpdate( + String resourceGroupName, String simGroupName, SimGroupInner parameters); + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of sIM group resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SimGroupInner> beginCreateOrUpdate( + String resourceGroupName, String simGroupName, SimGroupInner parameters, Context context); + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SimGroupInner createOrUpdate(String resourceGroupName, String simGroupName, SimGroupInner parameters); + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SimGroupInner createOrUpdate( + String resourceGroupName, String simGroupName, SimGroupInner parameters, Context context); + + /** + * Updates SIM group tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to update SIM group tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SimGroupInner updateTags(String resourceGroupName, String simGroupName, TagsObject parameters); + + /** + * Updates SIM group tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to update SIM group tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateTagsWithResponse( + String resourceGroupName, String simGroupName, TagsObject parameters, Context context); + + /** + * Gets all the SIM groups in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all the SIM groups in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + + /** + * Gets all the SIM groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a resource group as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Gets all the SIM groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a resource group as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimPoliciesClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimPoliciesClient.java index 5f6603ebb7bb3..c76e168d35de9 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimPoliciesClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimPoliciesClient.java @@ -17,7 +17,7 @@ /** An instance of this class provides access to all the operations defined in SimPoliciesClient. */ public interface SimPoliciesClient { /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -32,7 +32,7 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String mobileNetworkName, String simPolicyName); /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -48,7 +48,7 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context); /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -61,7 +61,7 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String mobileNetworkName, String simPolicyName); /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -75,7 +75,7 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context); /** - * Gets information about the specified sim policy. + * Gets information about the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -83,13 +83,13 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim policy. + * @return information about the specified SIM policy. */ @ServiceMethod(returns = ReturnType.SINGLE) SimPolicyInner get(String resourceGroupName, String mobileNetworkName, String simPolicyName); /** - * Gets information about the specified sim policy. + * Gets information about the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -98,40 +98,40 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim policy along with {@link Response}. + * @return information about the specified SIM policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context); /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sim policy resource. + * @return the {@link SyncPoller} for polling of sIM policy resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SimPolicyInner> beginCreateOrUpdate( String resourceGroupName, String mobileNetworkName, String simPolicyName, SimPolicyInner parameters); /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sim policy resource. + * @return the {@link SyncPoller} for polling of sIM policy resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SimPolicyInner> beginCreateOrUpdate( @@ -142,33 +142,33 @@ SyncPoller, SimPolicyInner> beginCreateOrUpdate( Context context); /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource. + * @return sIM policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SimPolicyInner createOrUpdate( String resourceGroupName, String mobileNetworkName, String simPolicyName, SimPolicyInner parameters); /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource. + * @return sIM policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SimPolicyInner createOrUpdate( @@ -179,33 +179,33 @@ SimPolicyInner createOrUpdate( Context context); /** - * Update sim policy tags. + * Updates SIM policy tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to update Sim Policy tags. + * @param parameters Parameters supplied to update SIM policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource. + * @return sIM policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SimPolicyInner updateTags( String resourceGroupName, String mobileNetworkName, String simPolicyName, TagsObject parameters); /** - * Update sim policy tags. + * Updates SIM policy tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to update Sim Policy tags. + * @param parameters Parameters supplied to update SIM policy tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource along with {@link Response}. + * @return sIM policy resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateTagsWithResponse( @@ -216,20 +216,20 @@ Response updateTagsWithResponse( Context context); /** - * Gets all the simPolicies in a mobile network. + * Gets all the SIM policies in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the simPolicies in a mobile network as paginated response with {@link PagedIterable}. + * @return all the SIM policies in a mobile network as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName); /** - * Gets all the simPolicies in a mobile network. + * Gets all the SIM policies in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -237,7 +237,7 @@ Response updateTagsWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the simPolicies in a mobile network as paginated response with {@link PagedIterable}. + * @return all the SIM policies in a mobile network as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByMobileNetwork( diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimsClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimsClient.java index 29f27360460de..dc1de80819a94 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimsClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimsClient.java @@ -12,14 +12,14 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.models.SimInner; -import com.azure.resourcemanager.mobilenetwork.models.TagsObject; /** An instance of this class provides access to all the operations defined in SimsClient. */ public interface SimsClient { /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -27,12 +27,13 @@ public interface SimsClient { * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String simName); + SyncPoller, Void> beginDelete(String resourceGroupName, String simGroupName, String simName); /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -41,24 +42,27 @@ public interface SimsClient { * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String simName, Context context); + SyncPoller, Void> beginDelete( + String resourceGroupName, String simGroupName, String simName, Context context); /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String simName); + void delete(String resourceGroupName, String simGroupName, String simName); /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -66,169 +70,126 @@ public interface SimsClient { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String simName, Context context); + void delete(String resourceGroupName, String simGroupName, String simName, Context context); /** - * Gets information about the specified sim. + * Gets information about the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim. + * @return information about the specified SIM. */ @ServiceMethod(returns = ReturnType.SINGLE) - SimInner getByResourceGroup(String resourceGroupName, String simName); + SimInner get(String resourceGroupName, String simGroupName, String simName); /** - * Gets information about the specified sim. + * Gets information about the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim along with {@link Response}. + * @return information about the specified SIM along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String simName, Context context); + Response getWithResponse(String resourceGroupName, String simGroupName, String simName, Context context); /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sim resource. + * @return the {@link SyncPoller} for polling of sIM resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SimInner> beginCreateOrUpdate( - String resourceGroupName, String simName, SimInner parameters); + String resourceGroupName, String simGroupName, String simName, SimInner parameters); /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sim resource. + * @return the {@link SyncPoller} for polling of sIM resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SimInner> beginCreateOrUpdate( - String resourceGroupName, String simName, SimInner parameters, Context context); + String resourceGroupName, String simGroupName, String simName, SimInner parameters, Context context); /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource. + * @return sIM resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SimInner createOrUpdate(String resourceGroupName, String simName, SimInner parameters); + SimInner createOrUpdate(String resourceGroupName, String simGroupName, String simName, SimInner parameters); /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource. + * @return sIM resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SimInner createOrUpdate(String resourceGroupName, String simName, SimInner parameters, Context context); + SimInner createOrUpdate( + String resourceGroupName, String simGroupName, String simName, SimInner parameters, Context context); /** - * Updates a sim update tags. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param simName The name of the SIM. - * @param parameters Parameters supplied to update sim tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SimInner updateTags(String resourceGroupName, String simName, TagsObject parameters); - - /** - * Updates a sim update tags. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param simName The name of the SIM. - * @param parameters Parameters supplied to update sim tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse( - String resourceGroupName, String simName, TagsObject parameters, Context context); - - /** - * Gets all the sims in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the sims in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Gets all the sims in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the sims in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - - /** - * Gets all the Sims in a subscription. + * Gets all the SIMs in a SIM group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Sims in a subscription as paginated response with {@link PagedIterable}. + * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); + PagedIterable listBySimGroup(String resourceGroupName, String simGroupName); /** - * Gets all the Sims in a subscription. + * Gets all the SIMs in a SIM group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Sims in a subscription as paginated response with {@link PagedIterable}. + * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + PagedIterable listBySimGroup(String resourceGroupName, String simGroupName, Context context); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SitesClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SitesClient.java index abc2f3fbedc18..c0b61e8ec0b09 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SitesClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SitesClient.java @@ -169,7 +169,7 @@ SiteInner createOrUpdate( String resourceGroupName, String mobileNetworkName, String siteName, SiteInner parameters, Context context); /** - * Updates a site update tags. + * Updates site tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -184,7 +184,7 @@ SiteInner createOrUpdate( SiteInner updateTags(String resourceGroupName, String mobileNetworkName, String siteName, TagsObject parameters); /** - * Updates a site update tags. + * Updates site tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SlicesClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SlicesClient.java index 5f58299b89864..9ec5df50c691e 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SlicesClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SlicesClient.java @@ -17,11 +17,11 @@ /** An instance of this class provides access to all the operations defined in SlicesClient. */ public interface SlicesClient { /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -32,11 +32,11 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String mobileNetworkName, String sliceName); /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -48,11 +48,11 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String mobileNetworkName, String sliceName, Context context); /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -61,11 +61,11 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String mobileNetworkName, String sliceName); /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -75,42 +75,42 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String mobileNetworkName, String sliceName, Context context); /** - * Gets information about the specified mobile network slice. + * Gets information about the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network slice. + * @return information about the specified network slice. */ @ServiceMethod(returns = ReturnType.SINGLE) SliceInner get(String resourceGroupName, String mobileNetworkName, String sliceName); /** - * Gets information about the specified mobile network slice. + * Gets information about the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network slice along with {@link Response}. + * @return information about the specified network slice along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( String resourceGroupName, String mobileNetworkName, String sliceName, Context context); /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -121,12 +121,12 @@ SyncPoller, SliceInner> beginCreateOrUpdate( String resourceGroupName, String mobileNetworkName, String sliceName, SliceInner parameters); /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -138,12 +138,12 @@ SyncPoller, SliceInner> beginCreateOrUpdate( String resourceGroupName, String mobileNetworkName, String sliceName, SliceInner parameters, Context context); /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -154,12 +154,12 @@ SliceInner createOrUpdate( String resourceGroupName, String mobileNetworkName, String sliceName, SliceInner parameters); /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -171,12 +171,12 @@ SliceInner createOrUpdate( String resourceGroupName, String mobileNetworkName, String sliceName, SliceInner parameters, Context context); /** - * Update slice tags. + * Updates slice tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to update mobile network slice tags. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to update network slice tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -186,12 +186,12 @@ SliceInner createOrUpdate( SliceInner updateTags(String resourceGroupName, String mobileNetworkName, String sliceName, TagsObject parameters); /** - * Update slice tags. + * Updates slice tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to update mobile network slice tags. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to update network slice tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -210,7 +210,7 @@ Response updateTagsWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call as paginated response with {@link PagedIterable}. + * @return response for network slice API service call as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName); @@ -224,7 +224,7 @@ Response updateTagsWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call as paginated response with {@link PagedIterable}. + * @return response for network slice API service call as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName, Context context); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkInner.java index a98ac914d11a9..29a007d32a60e 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkInner.java @@ -56,8 +56,8 @@ public ProvisioningState provisioningState() { } /** - * Get the userPlaneDataInterface property: The user plane interface on the data network. In 5G networks this is - * called as N6 interface whereas in 4G networks this is called as SGi interface. + * Get the userPlaneDataInterface property: The user plane interface on the data network. For 5G networks, this is + * the N6 interface. For 4G networks, this is the SGi interface. * * @return the userPlaneDataInterface value. */ @@ -66,8 +66,8 @@ public InterfaceProperties userPlaneDataInterface() { } /** - * Set the userPlaneDataInterface property: The user plane interface on the data network. In 5G networks this is - * called as N6 interface whereas in 4G networks this is called as SGi interface. + * Set the userPlaneDataInterface property: The user plane interface on the data network. For 5G networks, this is + * the N6 interface. For 4G networks, this is the SGi interface. * * @param userPlaneDataInterface the userPlaneDataInterface value to set. * @return the AttachedDataNetworkInner object itself. @@ -81,8 +81,31 @@ public AttachedDataNetworkInner withUserPlaneDataInterface(InterfaceProperties u } /** - * Get the naptConfiguration property: The Network Address and Port Translation configuration. If not specified the - * attached data network uses a default NAPT configuration with NAPT enabled. + * Get the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. + * + * @return the dnsAddresses value. + */ + public List dnsAddresses() { + return this.innerProperties() == null ? null : this.innerProperties().dnsAddresses(); + } + + /** + * Set the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. + * + * @param dnsAddresses the dnsAddresses value to set. + * @return the AttachedDataNetworkInner object itself. + */ + public AttachedDataNetworkInner withDnsAddresses(List dnsAddresses) { + if (this.innerProperties() == null) { + this.innerProperties = new AttachedDataNetworkPropertiesFormat(); + } + this.innerProperties().withDnsAddresses(dnsAddresses); + return this; + } + + /** + * Get the naptConfiguration property: The network address and port translation (NAPT) configuration. If this is not + * specified, the attached data network will use a default NAPT configuration with NAPT enabled. * * @return the naptConfiguration value. */ @@ -91,8 +114,8 @@ public NaptConfiguration naptConfiguration() { } /** - * Set the naptConfiguration property: The Network Address and Port Translation configuration. If not specified the - * attached data network uses a default NAPT configuration with NAPT enabled. + * Set the naptConfiguration property: The network address and port translation (NAPT) configuration. If this is not + * specified, the attached data network will use a default NAPT configuration with NAPT enabled. * * @param naptConfiguration the naptConfiguration value to set. * @return the AttachedDataNetworkInner object itself. @@ -106,10 +129,11 @@ public AttachedDataNetworkInner withNaptConfiguration(NaptConfiguration naptConf } /** - * Get the userEquipmentAddressPoolPrefix property: The user equipment address pool prefixes for the attached data - * network that are dynamically assigned by the core to UEs when they set up a PDU session. At least one of - * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined then - * they must be the same size. + * Get the userEquipmentAddressPoolPrefix property: The user equipment (UE) address pool prefixes for the attached + * data network from which the packet core instance will dynamically assign IP addresses to UEs. The packet core + * instance assigns an IP address to a UE when the UE sets up a PDU session. You must define at least one of + * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix. If you define both, they must be of the + * same size. * * @return the userEquipmentAddressPoolPrefix value. */ @@ -118,10 +142,11 @@ public List userEquipmentAddressPoolPrefix() { } /** - * Set the userEquipmentAddressPoolPrefix property: The user equipment address pool prefixes for the attached data - * network that are dynamically assigned by the core to UEs when they set up a PDU session. At least one of - * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined then - * they must be the same size. + * Set the userEquipmentAddressPoolPrefix property: The user equipment (UE) address pool prefixes for the attached + * data network from which the packet core instance will dynamically assign IP addresses to UEs. The packet core + * instance assigns an IP address to a UE when the UE sets up a PDU session. You must define at least one of + * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix. If you define both, they must be of the + * same size. * * @param userEquipmentAddressPoolPrefix the userEquipmentAddressPoolPrefix value to set. * @return the AttachedDataNetworkInner object itself. @@ -135,11 +160,11 @@ public AttachedDataNetworkInner withUserEquipmentAddressPoolPrefix(List } /** - * Get the userEquipmentStaticAddressPoolPrefix property: The user equipment address pool prefixes for the attached - * data network that are statically assigned by the core to UEs when they set up a PDU session. The mapping of - * static IP to sim is configured in staticIpConfiguration on the sim resource. At least one of - * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined then - * they must be the same size. + * Get the userEquipmentStaticAddressPoolPrefix property: The user equipment (UE) address pool prefixes for the + * attached data network from which the packet core instance will assign static IP addresses to UEs. The packet core + * instance assigns an IP address to a UE when the UE sets up a PDU session. The static IP address for a specific UE + * is set in StaticIPConfiguration on the corresponding SIM resource. At least one of userEquipmentAddressPoolPrefix + * and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined, they must be of the same size. * * @return the userEquipmentStaticAddressPoolPrefix value. */ @@ -148,11 +173,11 @@ public List userEquipmentStaticAddressPoolPrefix() { } /** - * Set the userEquipmentStaticAddressPoolPrefix property: The user equipment address pool prefixes for the attached - * data network that are statically assigned by the core to UEs when they set up a PDU session. The mapping of - * static IP to sim is configured in staticIpConfiguration on the sim resource. At least one of - * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined then - * they must be the same size. + * Set the userEquipmentStaticAddressPoolPrefix property: The user equipment (UE) address pool prefixes for the + * attached data network from which the packet core instance will assign static IP addresses to UEs. The packet core + * instance assigns an IP address to a UE when the UE sets up a PDU session. The static IP address for a specific UE + * is set in StaticIPConfiguration on the corresponding SIM resource. At least one of userEquipmentAddressPoolPrefix + * and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined, they must be of the same size. * * @param userEquipmentStaticAddressPoolPrefix the userEquipmentStaticAddressPoolPrefix value to set. * @return the AttachedDataNetworkInner object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkPropertiesFormat.java index d2831a1dd1561..fba5f8a9f0d9c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkPropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkPropertiesFormat.java @@ -22,41 +22,49 @@ public final class AttachedDataNetworkPropertiesFormat { private ProvisioningState provisioningState; /* - * The user plane interface on the data network. In 5G networks this is - * called as N6 interface whereas in 4G networks this is called as SGi - * interface. + * The user plane interface on the data network. For 5G networks, this is + * the N6 interface. For 4G networks, this is the SGi interface. */ @JsonProperty(value = "userPlaneDataInterface", required = true) private InterfaceProperties userPlaneDataInterface; /* - * The Network Address and Port Translation configuration. - * If not specified the attached data network uses a default NAPT - * configuration with NAPT enabled. + * The DNS servers to signal to UEs to use for this attached data network. + */ + @JsonProperty(value = "dnsAddresses") + private List dnsAddresses; + + /* + * The network address and port translation (NAPT) configuration. + * If this is not specified, the attached data network will use a default + * NAPT configuration with NAPT enabled. */ @JsonProperty(value = "naptConfiguration") private NaptConfiguration naptConfiguration; /* - * The user equipment address pool prefixes for the attached data network - * that are dynamically assigned by the core to UEs when they set up a PDU - * session. - * At least one of userEquipmentAddressPoolPrefix and - * userEquipmentStaticAddressPoolPrefix must be defined. If both are - * defined then they must be the same size. + * The user equipment (UE) address pool prefixes for the attached data + * network from which the packet core instance will dynamically assign IP + * addresses to UEs. + * The packet core instance assigns an IP address to a UE when the UE sets + * up a PDU session. + * You must define at least one of userEquipmentAddressPoolPrefix and + * userEquipmentStaticAddressPoolPrefix. If you define both, they must be + * of the same size. */ @JsonProperty(value = "userEquipmentAddressPoolPrefix") private List userEquipmentAddressPoolPrefix; /* - * The user equipment address pool prefixes for the attached data network - * that are statically assigned by the core to UEs when they set up a PDU - * session. - * The mapping of static IP to sim is configured in staticIpConfiguration - * on the sim resource. + * The user equipment (UE) address pool prefixes for the attached data + * network from which the packet core instance will assign static IP + * addresses to UEs. + * The packet core instance assigns an IP address to a UE when the UE sets + * up a PDU session. The static IP address for a specific UE is set in + * StaticIPConfiguration on the corresponding SIM resource. * At least one of userEquipmentAddressPoolPrefix and * userEquipmentStaticAddressPoolPrefix must be defined. If both are - * defined then they must be the same size. + * defined, they must be of the same size. */ @JsonProperty(value = "userEquipmentStaticAddressPoolPrefix") private List userEquipmentStaticAddressPoolPrefix; @@ -71,8 +79,8 @@ public ProvisioningState provisioningState() { } /** - * Get the userPlaneDataInterface property: The user plane interface on the data network. In 5G networks this is - * called as N6 interface whereas in 4G networks this is called as SGi interface. + * Get the userPlaneDataInterface property: The user plane interface on the data network. For 5G networks, this is + * the N6 interface. For 4G networks, this is the SGi interface. * * @return the userPlaneDataInterface value. */ @@ -81,8 +89,8 @@ public InterfaceProperties userPlaneDataInterface() { } /** - * Set the userPlaneDataInterface property: The user plane interface on the data network. In 5G networks this is - * called as N6 interface whereas in 4G networks this is called as SGi interface. + * Set the userPlaneDataInterface property: The user plane interface on the data network. For 5G networks, this is + * the N6 interface. For 4G networks, this is the SGi interface. * * @param userPlaneDataInterface the userPlaneDataInterface value to set. * @return the AttachedDataNetworkPropertiesFormat object itself. @@ -93,8 +101,28 @@ public AttachedDataNetworkPropertiesFormat withUserPlaneDataInterface(InterfaceP } /** - * Get the naptConfiguration property: The Network Address and Port Translation configuration. If not specified the - * attached data network uses a default NAPT configuration with NAPT enabled. + * Get the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. + * + * @return the dnsAddresses value. + */ + public List dnsAddresses() { + return this.dnsAddresses; + } + + /** + * Set the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. + * + * @param dnsAddresses the dnsAddresses value to set. + * @return the AttachedDataNetworkPropertiesFormat object itself. + */ + public AttachedDataNetworkPropertiesFormat withDnsAddresses(List dnsAddresses) { + this.dnsAddresses = dnsAddresses; + return this; + } + + /** + * Get the naptConfiguration property: The network address and port translation (NAPT) configuration. If this is not + * specified, the attached data network will use a default NAPT configuration with NAPT enabled. * * @return the naptConfiguration value. */ @@ -103,8 +131,8 @@ public NaptConfiguration naptConfiguration() { } /** - * Set the naptConfiguration property: The Network Address and Port Translation configuration. If not specified the - * attached data network uses a default NAPT configuration with NAPT enabled. + * Set the naptConfiguration property: The network address and port translation (NAPT) configuration. If this is not + * specified, the attached data network will use a default NAPT configuration with NAPT enabled. * * @param naptConfiguration the naptConfiguration value to set. * @return the AttachedDataNetworkPropertiesFormat object itself. @@ -115,10 +143,11 @@ public AttachedDataNetworkPropertiesFormat withNaptConfiguration(NaptConfigurati } /** - * Get the userEquipmentAddressPoolPrefix property: The user equipment address pool prefixes for the attached data - * network that are dynamically assigned by the core to UEs when they set up a PDU session. At least one of - * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined then - * they must be the same size. + * Get the userEquipmentAddressPoolPrefix property: The user equipment (UE) address pool prefixes for the attached + * data network from which the packet core instance will dynamically assign IP addresses to UEs. The packet core + * instance assigns an IP address to a UE when the UE sets up a PDU session. You must define at least one of + * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix. If you define both, they must be of the + * same size. * * @return the userEquipmentAddressPoolPrefix value. */ @@ -127,10 +156,11 @@ public List userEquipmentAddressPoolPrefix() { } /** - * Set the userEquipmentAddressPoolPrefix property: The user equipment address pool prefixes for the attached data - * network that are dynamically assigned by the core to UEs when they set up a PDU session. At least one of - * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined then - * they must be the same size. + * Set the userEquipmentAddressPoolPrefix property: The user equipment (UE) address pool prefixes for the attached + * data network from which the packet core instance will dynamically assign IP addresses to UEs. The packet core + * instance assigns an IP address to a UE when the UE sets up a PDU session. You must define at least one of + * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix. If you define both, they must be of the + * same size. * * @param userEquipmentAddressPoolPrefix the userEquipmentAddressPoolPrefix value to set. * @return the AttachedDataNetworkPropertiesFormat object itself. @@ -142,11 +172,11 @@ public AttachedDataNetworkPropertiesFormat withUserEquipmentAddressPoolPrefix( } /** - * Get the userEquipmentStaticAddressPoolPrefix property: The user equipment address pool prefixes for the attached - * data network that are statically assigned by the core to UEs when they set up a PDU session. The mapping of - * static IP to sim is configured in staticIpConfiguration on the sim resource. At least one of - * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined then - * they must be the same size. + * Get the userEquipmentStaticAddressPoolPrefix property: The user equipment (UE) address pool prefixes for the + * attached data network from which the packet core instance will assign static IP addresses to UEs. The packet core + * instance assigns an IP address to a UE when the UE sets up a PDU session. The static IP address for a specific UE + * is set in StaticIPConfiguration on the corresponding SIM resource. At least one of userEquipmentAddressPoolPrefix + * and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined, they must be of the same size. * * @return the userEquipmentStaticAddressPoolPrefix value. */ @@ -155,11 +185,11 @@ public List userEquipmentStaticAddressPoolPrefix() { } /** - * Set the userEquipmentStaticAddressPoolPrefix property: The user equipment address pool prefixes for the attached - * data network that are statically assigned by the core to UEs when they set up a PDU session. The mapping of - * static IP to sim is configured in staticIpConfiguration on the sim resource. At least one of - * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined then - * they must be the same size. + * Set the userEquipmentStaticAddressPoolPrefix property: The user equipment (UE) address pool prefixes for the + * attached data network from which the packet core instance will assign static IP addresses to UEs. The packet core + * instance assigns an IP address to a UE when the UE sets up a PDU session. The static IP address for a specific UE + * is set in StaticIPConfiguration on the corresponding SIM resource. At least one of userEquipmentAddressPoolPrefix + * and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined, they must be of the same size. * * @param userEquipmentStaticAddressPoolPrefix the userEquipmentStaticAddressPoolPrefix value to set. * @return the AttachedDataNetworkPropertiesFormat object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkInner.java index bb6b766c33f11..2a570b1a2e915 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkInner.java @@ -72,7 +72,7 @@ public ProvisioningState provisioningState() { /** * Get the publicLandMobileNetworkIdentifier property: 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 + * 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. * @@ -84,7 +84,7 @@ public PlmnId publicLandMobileNetworkIdentifier() { /** * Set the publicLandMobileNetworkIdentifier property: 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 + * 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. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkPropertiesFormat.java index 71ebb4be05812..6ee6e648a4b40 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkPropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkPropertiesFormat.java @@ -21,7 +21,7 @@ public final class MobileNetworkPropertiesFormat { /* * The unique public land mobile network identifier for the network. This - * is made up of the Mobile Country Code and Mobile Network Code, as + * 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. @@ -46,7 +46,7 @@ public ProvisioningState provisioningState() { /** * Get the publicLandMobileNetworkIdentifier property: 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 + * 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. * @@ -58,7 +58,7 @@ public PlmnId publicLandMobileNetworkIdentifier() { /** * Set the publicLandMobileNetworkIdentifier property: 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 + * 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. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneInner.java index f69ade4a3635e..dd9e71eb6831a 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneInner.java @@ -8,10 +8,13 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.mobilenetwork.models.BillingSku; import com.azure.resourcemanager.mobilenetwork.models.CoreNetworkType; -import com.azure.resourcemanager.mobilenetwork.models.CustomLocationResourceId; import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; +import com.azure.resourcemanager.mobilenetwork.models.LocalDiagnosticsAccessConfiguration; +import com.azure.resourcemanager.mobilenetwork.models.ManagedServiceIdentity; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.PlatformConfiguration; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -25,6 +28,13 @@ public final class PacketCoreControlPlaneInner extends Resource { @JsonProperty(value = "properties", required = true) private PacketCoreControlPlanePropertiesFormat innerProperties = new PacketCoreControlPlanePropertiesFormat(); + /* + * The identity used to retrieve the ingress certificate from Azure key + * vault. + */ + @JsonProperty(value = "identity") + private ManagedServiceIdentity identity; + /* * Azure Resource Manager metadata containing createdBy and modifiedBy * information. @@ -41,6 +51,26 @@ private PacketCoreControlPlanePropertiesFormat innerProperties() { return this.innerProperties; } + /** + * Get the identity property: The identity used to retrieve the ingress certificate from Azure key vault. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: The identity used to retrieve the ingress certificate from Azure key vault. + * + * @param identity the identity value to set. + * @return the PacketCoreControlPlaneInner object itself. + */ + public PacketCoreControlPlaneInner withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * @@ -74,7 +104,7 @@ public ProvisioningState provisioningState() { } /** - * Get the mobileNetwork property: Mobile network that this packet core control plane belongs to. + * Get the mobileNetwork property: Mobile network in which this packet core control plane is deployed. * * @return the mobileNetwork value. */ @@ -83,7 +113,7 @@ public MobileNetworkResourceId mobileNetwork() { } /** - * Set the mobileNetwork property: Mobile network that this packet core control plane belongs to. + * Set the mobileNetwork property: Mobile network in which this packet core control plane is deployed. * * @param mobileNetwork the mobileNetwork value to set. * @return the PacketCoreControlPlaneInner object itself. @@ -97,30 +127,30 @@ public PacketCoreControlPlaneInner withMobileNetwork(MobileNetworkResourceId mob } /** - * Get the customLocation property: Azure ARC custom location where the packet core is deployed. + * Get the platform property: The platform where the packet core is deployed. * - * @return the customLocation value. + * @return the platform value. */ - public CustomLocationResourceId customLocation() { - return this.innerProperties() == null ? null : this.innerProperties().customLocation(); + public PlatformConfiguration platform() { + return this.innerProperties() == null ? null : this.innerProperties().platform(); } /** - * Set the customLocation property: Azure ARC custom location where the packet core is deployed. + * Set the platform property: The platform where the packet core is deployed. * - * @param customLocation the customLocation value to set. + * @param platform the platform value to set. * @return the PacketCoreControlPlaneInner object itself. */ - public PacketCoreControlPlaneInner withCustomLocation(CustomLocationResourceId customLocation) { + public PacketCoreControlPlaneInner withPlatform(PlatformConfiguration platform) { if (this.innerProperties() == null) { this.innerProperties = new PacketCoreControlPlanePropertiesFormat(); } - this.innerProperties().withCustomLocation(customLocation); + this.innerProperties().withPlatform(platform); return this; } /** - * Get the coreNetworkTechnology property: The core network technology generation. + * Get the coreNetworkTechnology property: The core network technology generation (5G core or EPC / 4G core). * * @return the coreNetworkTechnology value. */ @@ -129,7 +159,7 @@ public CoreNetworkType coreNetworkTechnology() { } /** - * Set the coreNetworkTechnology property: The core network technology generation. + * Set the coreNetworkTechnology property: The core network technology generation (5G core or EPC / 4G core). * * @param coreNetworkTechnology the coreNetworkTechnology value to set. * @return the PacketCoreControlPlaneInner object itself. @@ -166,8 +196,8 @@ public PacketCoreControlPlaneInner withVersion(String version) { } /** - * Get the controlPlaneAccessInterface property: The control plane interface on the access network. In 5G networks - * this is called as N2 interface whereas in 4G networks this is called as S1-MME interface. + * Get the controlPlaneAccessInterface property: The control plane interface on the access network. For 5G networks, + * this is the N2 interface. For 4G networks, this is the S1-MME interface. * * @return the controlPlaneAccessInterface value. */ @@ -176,8 +206,8 @@ public InterfaceProperties controlPlaneAccessInterface() { } /** - * Set the controlPlaneAccessInterface property: The control plane interface on the access network. In 5G networks - * this is called as N2 interface whereas in 4G networks this is called as S1-MME interface. + * Set the controlPlaneAccessInterface property: The control plane interface on the access network. For 5G networks, + * this is the N2 interface. For 4G networks, this is the S1-MME interface. * * @param controlPlaneAccessInterface the controlPlaneAccessInterface value to set. * @return the PacketCoreControlPlaneInner object itself. @@ -191,6 +221,82 @@ public PacketCoreControlPlaneInner withControlPlaneAccessInterface( return this; } + /** + * Get the sku property: The SKU defining the throughput and SIM allowances for this packet core control plane + * deployment. + * + * @return the sku value. + */ + public BillingSku sku() { + return this.innerProperties() == null ? null : this.innerProperties().sku(); + } + + /** + * Set the sku property: The SKU defining the throughput and SIM allowances for this packet core control plane + * deployment. + * + * @param sku the sku value to set. + * @return the PacketCoreControlPlaneInner object itself. + */ + public PacketCoreControlPlaneInner withSku(BillingSku sku) { + if (this.innerProperties() == null) { + this.innerProperties = new PacketCoreControlPlanePropertiesFormat(); + } + this.innerProperties().withSku(sku); + return this; + } + + /** + * Get the localDiagnosticsAccess property: The kubernetes ingress configuration to control access to packet core + * diagnostics over local APIs. + * + * @return the localDiagnosticsAccess value. + */ + public LocalDiagnosticsAccessConfiguration localDiagnosticsAccess() { + return this.innerProperties() == null ? null : this.innerProperties().localDiagnosticsAccess(); + } + + /** + * Set the localDiagnosticsAccess property: The kubernetes ingress configuration to control access to packet core + * diagnostics over local APIs. + * + * @param localDiagnosticsAccess the localDiagnosticsAccess value to set. + * @return the PacketCoreControlPlaneInner object itself. + */ + public PacketCoreControlPlaneInner withLocalDiagnosticsAccess( + LocalDiagnosticsAccessConfiguration localDiagnosticsAccess) { + if (this.innerProperties() == null) { + this.innerProperties = new PacketCoreControlPlanePropertiesFormat(); + } + this.innerProperties().withLocalDiagnosticsAccess(localDiagnosticsAccess); + return this; + } + + /** + * Get the interopSettings property: Settings to allow interoperability with third party components e.g. RANs and + * UEs. + * + * @return the interopSettings value. + */ + public Object interopSettings() { + return this.innerProperties() == null ? null : this.innerProperties().interopSettings(); + } + + /** + * Set the interopSettings property: Settings to allow interoperability with third party components e.g. RANs and + * UEs. + * + * @param interopSettings the interopSettings value to set. + * @return the PacketCoreControlPlaneInner object itself. + */ + public PacketCoreControlPlaneInner withInteropSettings(Object interopSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new PacketCoreControlPlanePropertiesFormat(); + } + this.innerProperties().withInteropSettings(interopSettings); + return this; + } + /** * Validates the instance. * @@ -205,6 +311,9 @@ public void validate() { } else { innerProperties().validate(); } + if (identity() != null) { + identity().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(PacketCoreControlPlaneInner.class); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlanePropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlanePropertiesFormat.java index 13f2e4130e372..f6fbdbcaf0400 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlanePropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlanePropertiesFormat.java @@ -6,14 +6,16 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.mobilenetwork.models.BillingSku; import com.azure.resourcemanager.mobilenetwork.models.CoreNetworkType; -import com.azure.resourcemanager.mobilenetwork.models.CustomLocationResourceId; import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; +import com.azure.resourcemanager.mobilenetwork.models.LocalDiagnosticsAccessConfiguration; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.PlatformConfiguration; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; -/** PacketCoreControlPlane properties. */ +/** Packet core control plane properties. */ @Fluent public final class PacketCoreControlPlanePropertiesFormat { /* @@ -23,19 +25,19 @@ public final class PacketCoreControlPlanePropertiesFormat { private ProvisioningState provisioningState; /* - * Mobile network that this packet core control plane belongs to + * Mobile network in which this packet core control plane is deployed. */ @JsonProperty(value = "mobileNetwork", required = true) private MobileNetworkResourceId mobileNetwork; /* - * Azure ARC custom location where the packet core is deployed. + * The platform where the packet core is deployed. */ - @JsonProperty(value = "customLocation") - private CustomLocationResourceId customLocation; + @JsonProperty(value = "platform") + private PlatformConfiguration platform; /* - * The core network technology generation. + * The core network technology generation (5G core or EPC / 4G core). */ @JsonProperty(value = "coreNetworkTechnology") private CoreNetworkType coreNetworkTechnology; @@ -47,13 +49,33 @@ public final class PacketCoreControlPlanePropertiesFormat { private String version; /* - * The control plane interface on the access network. In 5G networks this - * is called as N2 interface whereas in 4G networks this is called as - * S1-MME interface. + * The control plane interface on the access network. For 5G networks, this + * is the N2 interface. For 4G networks, this is the S1-MME interface. */ @JsonProperty(value = "controlPlaneAccessInterface", required = true) private InterfaceProperties controlPlaneAccessInterface; + /* + * The SKU defining the throughput and SIM allowances for this packet core + * control plane deployment. + */ + @JsonProperty(value = "sku", required = true) + private BillingSku sku; + + /* + * The kubernetes ingress configuration to control access to packet core + * diagnostics over local APIs. + */ + @JsonProperty(value = "localDiagnosticsAccess") + private LocalDiagnosticsAccessConfiguration localDiagnosticsAccess; + + /* + * Settings to allow interoperability with third party components e.g. RANs + * and UEs. + */ + @JsonProperty(value = "interopSettings") + private Object interopSettings; + /** * Get the provisioningState property: The provisioning state of the packet core control plane resource. * @@ -64,7 +86,7 @@ public ProvisioningState provisioningState() { } /** - * Get the mobileNetwork property: Mobile network that this packet core control plane belongs to. + * Get the mobileNetwork property: Mobile network in which this packet core control plane is deployed. * * @return the mobileNetwork value. */ @@ -73,7 +95,7 @@ public MobileNetworkResourceId mobileNetwork() { } /** - * Set the mobileNetwork property: Mobile network that this packet core control plane belongs to. + * Set the mobileNetwork property: Mobile network in which this packet core control plane is deployed. * * @param mobileNetwork the mobileNetwork value to set. * @return the PacketCoreControlPlanePropertiesFormat object itself. @@ -84,27 +106,27 @@ public PacketCoreControlPlanePropertiesFormat withMobileNetwork(MobileNetworkRes } /** - * Get the customLocation property: Azure ARC custom location where the packet core is deployed. + * Get the platform property: The platform where the packet core is deployed. * - * @return the customLocation value. + * @return the platform value. */ - public CustomLocationResourceId customLocation() { - return this.customLocation; + public PlatformConfiguration platform() { + return this.platform; } /** - * Set the customLocation property: Azure ARC custom location where the packet core is deployed. + * Set the platform property: The platform where the packet core is deployed. * - * @param customLocation the customLocation value to set. + * @param platform the platform value to set. * @return the PacketCoreControlPlanePropertiesFormat object itself. */ - public PacketCoreControlPlanePropertiesFormat withCustomLocation(CustomLocationResourceId customLocation) { - this.customLocation = customLocation; + public PacketCoreControlPlanePropertiesFormat withPlatform(PlatformConfiguration platform) { + this.platform = platform; return this; } /** - * Get the coreNetworkTechnology property: The core network technology generation. + * Get the coreNetworkTechnology property: The core network technology generation (5G core or EPC / 4G core). * * @return the coreNetworkTechnology value. */ @@ -113,7 +135,7 @@ public CoreNetworkType coreNetworkTechnology() { } /** - * Set the coreNetworkTechnology property: The core network technology generation. + * Set the coreNetworkTechnology property: The core network technology generation (5G core or EPC / 4G core). * * @param coreNetworkTechnology the coreNetworkTechnology value to set. * @return the PacketCoreControlPlanePropertiesFormat object itself. @@ -144,8 +166,8 @@ public PacketCoreControlPlanePropertiesFormat withVersion(String version) { } /** - * Get the controlPlaneAccessInterface property: The control plane interface on the access network. In 5G networks - * this is called as N2 interface whereas in 4G networks this is called as S1-MME interface. + * Get the controlPlaneAccessInterface property: The control plane interface on the access network. For 5G networks, + * this is the N2 interface. For 4G networks, this is the S1-MME interface. * * @return the controlPlaneAccessInterface value. */ @@ -154,8 +176,8 @@ public InterfaceProperties controlPlaneAccessInterface() { } /** - * Set the controlPlaneAccessInterface property: The control plane interface on the access network. In 5G networks - * this is called as N2 interface whereas in 4G networks this is called as S1-MME interface. + * Set the controlPlaneAccessInterface property: The control plane interface on the access network. For 5G networks, + * this is the N2 interface. For 4G networks, this is the S1-MME interface. * * @param controlPlaneAccessInterface the controlPlaneAccessInterface value to set. * @return the PacketCoreControlPlanePropertiesFormat object itself. @@ -166,6 +188,73 @@ public PacketCoreControlPlanePropertiesFormat withControlPlaneAccessInterface( return this; } + /** + * Get the sku property: The SKU defining the throughput and SIM allowances for this packet core control plane + * deployment. + * + * @return the sku value. + */ + public BillingSku sku() { + return this.sku; + } + + /** + * Set the sku property: The SKU defining the throughput and SIM allowances for this packet core control plane + * deployment. + * + * @param sku the sku value to set. + * @return the PacketCoreControlPlanePropertiesFormat object itself. + */ + public PacketCoreControlPlanePropertiesFormat withSku(BillingSku sku) { + this.sku = sku; + return this; + } + + /** + * Get the localDiagnosticsAccess property: The kubernetes ingress configuration to control access to packet core + * diagnostics over local APIs. + * + * @return the localDiagnosticsAccess value. + */ + public LocalDiagnosticsAccessConfiguration localDiagnosticsAccess() { + return this.localDiagnosticsAccess; + } + + /** + * Set the localDiagnosticsAccess property: The kubernetes ingress configuration to control access to packet core + * diagnostics over local APIs. + * + * @param localDiagnosticsAccess the localDiagnosticsAccess value to set. + * @return the PacketCoreControlPlanePropertiesFormat object itself. + */ + public PacketCoreControlPlanePropertiesFormat withLocalDiagnosticsAccess( + LocalDiagnosticsAccessConfiguration localDiagnosticsAccess) { + this.localDiagnosticsAccess = localDiagnosticsAccess; + return this; + } + + /** + * Get the interopSettings property: Settings to allow interoperability with third party components e.g. RANs and + * UEs. + * + * @return the interopSettings value. + */ + public Object interopSettings() { + return this.interopSettings; + } + + /** + * Set the interopSettings property: Settings to allow interoperability with third party components e.g. RANs and + * UEs. + * + * @param interopSettings the interopSettings value to set. + * @return the PacketCoreControlPlanePropertiesFormat object itself. + */ + public PacketCoreControlPlanePropertiesFormat withInteropSettings(Object interopSettings) { + this.interopSettings = interopSettings; + return this; + } + /** * Validates the instance. * @@ -180,8 +269,8 @@ public void validate() { } else { mobileNetwork().validate(); } - if (customLocation() != null) { - customLocation().validate(); + if (platform() != null) { + platform().validate(); } if (controlPlaneAccessInterface() == null) { throw LOGGER @@ -192,6 +281,15 @@ public void validate() { } else { controlPlaneAccessInterface().validate(); } + if (sku() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property sku in model PacketCoreControlPlanePropertiesFormat")); + } + if (localDiagnosticsAccess() != null) { + localDiagnosticsAccess().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(PacketCoreControlPlanePropertiesFormat.class); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlaneInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlaneInner.java index 263b17a3d24d3..2977ef5298165 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlaneInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlaneInner.java @@ -71,8 +71,8 @@ public ProvisioningState provisioningState() { } /** - * Get the userPlaneAccessInterface property: The user plane interface on the access network. In 5G networks this is - * called as N3 interface whereas in 4G networks this is called the S1-U interface. + * Get the userPlaneAccessInterface property: The user plane interface on the access network. For 5G networks, this + * is the N3 interface. For 4G networks, this is the S1-U interface. * * @return the userPlaneAccessInterface value. */ @@ -81,8 +81,8 @@ public InterfaceProperties userPlaneAccessInterface() { } /** - * Set the userPlaneAccessInterface property: The user plane interface on the access network. In 5G networks this is - * called as N3 interface whereas in 4G networks this is called the S1-U interface. + * Set the userPlaneAccessInterface property: The user plane interface on the access network. For 5G networks, this + * is the N3 interface. For 4G networks, this is the S1-U interface. * * @param userPlaneAccessInterface the userPlaneAccessInterface value to set. * @return the PacketCoreDataPlaneInner object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlanePropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlanePropertiesFormat.java index 2474f1b771fd8..444ab67c700e0 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlanePropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreDataPlanePropertiesFormat.java @@ -10,7 +10,7 @@ import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; -/** PacketCoreDataPlane properties. */ +/** Packet core data plane properties. */ @Fluent public final class PacketCoreDataPlanePropertiesFormat { /* @@ -20,9 +20,8 @@ public final class PacketCoreDataPlanePropertiesFormat { private ProvisioningState provisioningState; /* - * The user plane interface on the access network. In 5G networks this is - * called as N3 interface whereas in 4G networks this is called the S1-U - * interface. + * The user plane interface on the access network. For 5G networks, this is + * the N3 interface. For 4G networks, this is the S1-U interface. */ @JsonProperty(value = "userPlaneAccessInterface", required = true) private InterfaceProperties userPlaneAccessInterface; @@ -37,8 +36,8 @@ public ProvisioningState provisioningState() { } /** - * Get the userPlaneAccessInterface property: The user plane interface on the access network. In 5G networks this is - * called as N3 interface whereas in 4G networks this is called the S1-U interface. + * Get the userPlaneAccessInterface property: The user plane interface on the access network. For 5G networks, this + * is the N3 interface. For 4G networks, this is the S1-U interface. * * @return the userPlaneAccessInterface value. */ @@ -47,8 +46,8 @@ public InterfaceProperties userPlaneAccessInterface() { } /** - * Set the userPlaneAccessInterface property: The user plane interface on the access network. In 5G networks this is - * called as N3 interface whereas in 4G networks this is called the S1-U interface. + * Set the userPlaneAccessInterface property: The user plane interface on the access network. For 5G networks, this + * is the N3 interface. For 4G networks, this is the S1-U interface. * * @param userPlaneAccessInterface the userPlaneAccessInterface value to set. * @return the PacketCoreDataPlanePropertiesFormat object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServiceInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServiceInner.java index 29841a73d4fa5..3072daa9c4754 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServiceInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServiceInner.java @@ -74,8 +74,8 @@ public ProvisioningState provisioningState() { /** * Get the servicePrecedence property: A precedence value that is used to decide between services when identifying - * the QoS values to use for a particular Sim. A lower value means a higher priority. This value should be unique - * among all services configured in the Mobile Network. + * the QoS values to use for a particular SIM. A lower value means a higher priority. This value should be unique + * among all services configured in the mobile network. * * @return the servicePrecedence value. */ @@ -85,8 +85,8 @@ public int servicePrecedence() { /** * Set the servicePrecedence property: A precedence value that is used to decide between services when identifying - * the QoS values to use for a particular Sim. A lower value means a higher priority. This value should be unique - * among all services configured in the Mobile Network. + * the QoS values to use for a particular SIM. A lower value means a higher priority. This value should be unique + * among all services configured in the mobile network. * * @param servicePrecedence the servicePrecedence value to set. * @return the ServiceInner object itself. @@ -102,7 +102,7 @@ public ServiceInner withServicePrecedence(int servicePrecedence) { /** * Get the serviceQosPolicy property: The QoS policy to use for packets matching this service. This can be * overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null - * then the UE's simPolicy will define the QoS settings. + * then the UE's SIM policy will define the QoS settings. * * @return the serviceQosPolicy value. */ @@ -113,7 +113,7 @@ public QosPolicy serviceQosPolicy() { /** * Set the serviceQosPolicy property: The QoS policy to use for packets matching this service. This can be * overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null - * then the UE's simPolicy will define the QoS settings. + * then the UE's SIM policy will define the QoS settings. * * @param serviceQosPolicy the serviceQosPolicy value to set. * @return the ServiceInner object itself. @@ -127,7 +127,7 @@ public ServiceInner withServiceQosPolicy(QosPolicy serviceQosPolicy) { } /** - * Get the pccRules property: The set of PCC Rules that make up this service. + * Get the pccRules property: The set of data flow policy rules that make up this service. * * @return the pccRules value. */ @@ -136,7 +136,7 @@ public List pccRules() { } /** - * Set the pccRules property: The set of PCC Rules that make up this service. + * Set the pccRules property: The set of data flow policy rules that make up this service. * * @param pccRules the pccRules value to set. * @return the ServiceInner object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServicePropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServicePropertiesFormat.java index 0100ca20ad530..bb8105fd5fbf7 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServicePropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/ServicePropertiesFormat.java @@ -23,9 +23,9 @@ public final class ServicePropertiesFormat { /* * A precedence value that is used to decide between services when - * identifying the QoS values to use for a particular Sim. A lower value + * identifying the QoS values to use for a particular SIM. A lower value * means a higher priority. This value should be unique among all services - * configured in the Mobile Network. + * configured in the mobile network. */ @JsonProperty(value = "servicePrecedence", required = true) private int servicePrecedence; @@ -33,14 +33,14 @@ public final class ServicePropertiesFormat { /* * The QoS policy to use for packets matching this service. This can be * overridden for particular flows using the ruleQosPolicy field in a - * PccRuleConfiguration. If this field is null then the UE's simPolicy will - * define the QoS settings. + * PccRuleConfiguration. If this field is null then the UE's SIM policy + * will define the QoS settings. */ @JsonProperty(value = "serviceQosPolicy") private QosPolicy serviceQosPolicy; /* - * The set of PCC Rules that make up this service. + * The set of data flow policy rules that make up this service. */ @JsonProperty(value = "pccRules", required = true) private List pccRules; @@ -56,8 +56,8 @@ public ProvisioningState provisioningState() { /** * Get the servicePrecedence property: A precedence value that is used to decide between services when identifying - * the QoS values to use for a particular Sim. A lower value means a higher priority. This value should be unique - * among all services configured in the Mobile Network. + * the QoS values to use for a particular SIM. A lower value means a higher priority. This value should be unique + * among all services configured in the mobile network. * * @return the servicePrecedence value. */ @@ -67,8 +67,8 @@ public int servicePrecedence() { /** * Set the servicePrecedence property: A precedence value that is used to decide between services when identifying - * the QoS values to use for a particular Sim. A lower value means a higher priority. This value should be unique - * among all services configured in the Mobile Network. + * the QoS values to use for a particular SIM. A lower value means a higher priority. This value should be unique + * among all services configured in the mobile network. * * @param servicePrecedence the servicePrecedence value to set. * @return the ServicePropertiesFormat object itself. @@ -81,7 +81,7 @@ public ServicePropertiesFormat withServicePrecedence(int servicePrecedence) { /** * Get the serviceQosPolicy property: The QoS policy to use for packets matching this service. This can be * overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null - * then the UE's simPolicy will define the QoS settings. + * then the UE's SIM policy will define the QoS settings. * * @return the serviceQosPolicy value. */ @@ -92,7 +92,7 @@ public QosPolicy serviceQosPolicy() { /** * Set the serviceQosPolicy property: The QoS policy to use for packets matching this service. This can be * overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null - * then the UE's simPolicy will define the QoS settings. + * then the UE's SIM policy will define the QoS settings. * * @param serviceQosPolicy the serviceQosPolicy value to set. * @return the ServicePropertiesFormat object itself. @@ -103,7 +103,7 @@ public ServicePropertiesFormat withServiceQosPolicy(QosPolicy serviceQosPolicy) } /** - * Get the pccRules property: The set of PCC Rules that make up this service. + * Get the pccRules property: The set of data flow policy rules that make up this service. * * @return the pccRules value. */ @@ -112,7 +112,7 @@ public List pccRules() { } /** - * Set the pccRules property: The set of PCC Rules that make up this service. + * Set the pccRules property: The set of data flow policy rules that make up this service. * * @param pccRules the pccRules value to set. * @return the ServicePropertiesFormat object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimGroupInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimGroupInner.java new file mode 100644 index 0000000000000..5df0d2d887ada --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimGroupInner.java @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.mobilenetwork.models.KeyVaultKey; +import com.azure.resourcemanager.mobilenetwork.models.ManagedServiceIdentity; +import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; + +/** SIM group resource. */ +@Fluent +public final class SimGroupInner extends Resource { + /* + * SIM group Properties. + */ + @JsonProperty(value = "properties", required = true) + private SimGroupPropertiesFormat innerProperties = new SimGroupPropertiesFormat(); + + /* + * The identity used to retrieve the encryption key from Azure key vault. + */ + @JsonProperty(value = "identity") + private ManagedServiceIdentity identity; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy + * information. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /** + * Get the innerProperties property: SIM group Properties. + * + * @return the innerProperties value. + */ + private SimGroupPropertiesFormat innerProperties() { + return this.innerProperties; + } + + /** + * Get the identity property: The identity used to retrieve the encryption key from Azure key vault. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: The identity used to retrieve the encryption key from Azure key vault. + * + * @param identity the identity value to set. + * @return the SimGroupInner object itself. + */ + public SimGroupInner withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** {@inheritDoc} */ + @Override + public SimGroupInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public SimGroupInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Get the provisioningState property: The provisioning state of the SIM group resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the encryptionKey property: A key to encrypt the SIM data that belongs to this SIM group. + * + * @return the encryptionKey value. + */ + public KeyVaultKey encryptionKey() { + return this.innerProperties() == null ? null : this.innerProperties().encryptionKey(); + } + + /** + * Set the encryptionKey property: A key to encrypt the SIM data that belongs to this SIM group. + * + * @param encryptionKey the encryptionKey value to set. + * @return the SimGroupInner object itself. + */ + public SimGroupInner withEncryptionKey(KeyVaultKey encryptionKey) { + if (this.innerProperties() == null) { + this.innerProperties = new SimGroupPropertiesFormat(); + } + this.innerProperties().withEncryptionKey(encryptionKey); + return this; + } + + /** + * Get the mobileNetwork property: Mobile network that this SIM belongs to. + * + * @return the mobileNetwork value. + */ + public MobileNetworkResourceId mobileNetwork() { + return this.innerProperties() == null ? null : this.innerProperties().mobileNetwork(); + } + + /** + * Set the mobileNetwork property: Mobile network that this SIM belongs to. + * + * @param mobileNetwork the mobileNetwork value to set. + * @return the SimGroupInner object itself. + */ + public SimGroupInner withMobileNetwork(MobileNetworkResourceId mobileNetwork) { + if (this.innerProperties() == null) { + this.innerProperties = new SimGroupPropertiesFormat(); + } + this.innerProperties().withMobileNetwork(mobileNetwork); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property innerProperties in model SimGroupInner")); + } else { + innerProperties().validate(); + } + if (identity() != null) { + identity().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SimGroupInner.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimGroupPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimGroupPropertiesFormat.java new file mode 100644 index 0000000000000..55ab698297c7e --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimGroupPropertiesFormat.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.mobilenetwork.models.KeyVaultKey; +import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** SIM group properties. */ +@Fluent +public final class SimGroupPropertiesFormat { + /* + * The provisioning state of the SIM group resource. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ProvisioningState provisioningState; + + /* + * A key to encrypt the SIM data that belongs to this SIM group. + */ + @JsonProperty(value = "encryptionKey") + private KeyVaultKey encryptionKey; + + /* + * Mobile network that this SIM belongs to + */ + @JsonProperty(value = "mobileNetwork") + private MobileNetworkResourceId mobileNetwork; + + /** + * Get the provisioningState property: The provisioning state of the SIM group resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the encryptionKey property: A key to encrypt the SIM data that belongs to this SIM group. + * + * @return the encryptionKey value. + */ + public KeyVaultKey encryptionKey() { + return this.encryptionKey; + } + + /** + * Set the encryptionKey property: A key to encrypt the SIM data that belongs to this SIM group. + * + * @param encryptionKey the encryptionKey value to set. + * @return the SimGroupPropertiesFormat object itself. + */ + public SimGroupPropertiesFormat withEncryptionKey(KeyVaultKey encryptionKey) { + this.encryptionKey = encryptionKey; + return this; + } + + /** + * Get the mobileNetwork property: Mobile network that this SIM belongs to. + * + * @return the mobileNetwork value. + */ + public MobileNetworkResourceId mobileNetwork() { + return this.mobileNetwork; + } + + /** + * Set the mobileNetwork property: Mobile network that this SIM belongs to. + * + * @param mobileNetwork the mobileNetwork value to set. + * @return the SimGroupPropertiesFormat object itself. + */ + public SimGroupPropertiesFormat withMobileNetwork(MobileNetworkResourceId mobileNetwork) { + this.mobileNetwork = mobileNetwork; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (encryptionKey() != null) { + encryptionKey().validate(); + } + if (mobileNetwork() != null) { + mobileNetwork().validate(); + } + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimIdListResultInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimIdListResultInner.java index e93cba4e8f193..e893078b2b029 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimIdListResultInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimIdListResultInner.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Response for list sim ids API service call. */ +/** Response for list SIM IDs API service call. */ @Fluent public final class SimIdListResultInner { /* - * A list of sim profile ids in a resource group. + * A list of SIM IDs. */ @JsonProperty(value = "value") private List value; @@ -25,7 +25,7 @@ public final class SimIdListResultInner { private String nextLink; /** - * Get the value property: A list of sim profile ids in a resource group. + * Get the value property: A list of SIM IDs. * * @return the value value. */ @@ -34,7 +34,7 @@ public List value() { } /** - * Set the value property: A list of sim profile ids in a resource group. + * Set the value property: A list of SIM IDs. * * @param value the value value to set. * @return the SimIdListResultInner object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimInner.java index 6b907ea368bf4..97f3d996d7607 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimInner.java @@ -5,36 +5,26 @@ package com.azure.resourcemanager.mobilenetwork.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; +import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; import com.azure.resourcemanager.mobilenetwork.models.SimState; import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -import java.util.Map; -/** Sim resource. */ +/** SIM resource. */ @Fluent -public final class SimInner extends Resource { +public final class SimInner extends ProxyResource { /* - * Sim Properties. + * SIM Properties. */ @JsonProperty(value = "properties", required = true) private SimPropertiesFormat innerProperties = new SimPropertiesFormat(); - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. - */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) - private SystemData systemData; - /** - * Get the innerProperties property: Sim Properties. + * Get the innerProperties property: SIM Properties. * * @return the innerProperties value. */ @@ -43,30 +33,7 @@ private SimPropertiesFormat innerProperties() { } /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** {@inheritDoc} */ - @Override - public SimInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public SimInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Get the provisioningState property: The provisioning state of the sim resource. + * Get the provisioningState property: The provisioning state of the SIM resource. * * @return the provisioningState value. */ @@ -75,7 +42,7 @@ public ProvisioningState provisioningState() { } /** - * Get the simState property: The state of the sim resource. + * Get the simState property: The state of the SIM resource. * * @return the simState value. */ @@ -84,8 +51,8 @@ public SimState simState() { } /** - * Get the internationalMobileSubscriberIdentity property: The International Mobile Subscriber Identity (IMSI) for - * the sim. + * Get the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for + * the SIM. * * @return the internationalMobileSubscriberIdentity value. */ @@ -94,8 +61,8 @@ public String internationalMobileSubscriberIdentity() { } /** - * Set the internationalMobileSubscriberIdentity property: The International Mobile Subscriber Identity (IMSI) for - * the sim. + * Set the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for + * the SIM. * * @param internationalMobileSubscriberIdentity the internationalMobileSubscriberIdentity value to set. * @return the SimInner object itself. @@ -109,7 +76,7 @@ public SimInner withInternationalMobileSubscriberIdentity(String internationalMo } /** - * Get the integratedCircuitCardIdentifier property: The Integrated Circuit Card ID (ICC Id) for the sim. + * Get the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. * * @return the integratedCircuitCardIdentifier value. */ @@ -118,7 +85,7 @@ public String integratedCircuitCardIdentifier() { } /** - * Set the integratedCircuitCardIdentifier property: The Integrated Circuit Card ID (ICC Id) for the sim. + * Set the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. * * @param integratedCircuitCardIdentifier the integratedCircuitCardIdentifier value to set. * @return the SimInner object itself. @@ -132,7 +99,7 @@ public SimInner withIntegratedCircuitCardIdentifier(String integratedCircuitCard } /** - * Get the authenticationKey property: The ki value for the sim. + * Get the authenticationKey property: The Ki value for the SIM. * * @return the authenticationKey value. */ @@ -141,7 +108,7 @@ public String authenticationKey() { } /** - * Set the authenticationKey property: The ki value for the sim. + * Set the authenticationKey property: The Ki value for the SIM. * * @param authenticationKey the authenticationKey value to set. * @return the SimInner object itself. @@ -155,7 +122,7 @@ public SimInner withAuthenticationKey(String authenticationKey) { } /** - * Get the operatorKeyCode property: The Opc value for the sim. + * Get the operatorKeyCode property: The Opc value for the SIM. * * @return the operatorKeyCode value. */ @@ -164,7 +131,7 @@ public String operatorKeyCode() { } /** - * Set the operatorKeyCode property: The Opc value for the sim. + * Set the operatorKeyCode property: The Opc value for the SIM. * * @param operatorKeyCode the operatorKeyCode value to set. * @return the SimInner object itself. @@ -178,31 +145,8 @@ public SimInner withOperatorKeyCode(String operatorKeyCode) { } /** - * Get the mobileNetwork property: Mobile network that this sim belongs to. - * - * @return the mobileNetwork value. - */ - public MobileNetworkResourceId mobileNetwork() { - return this.innerProperties() == null ? null : this.innerProperties().mobileNetwork(); - } - - /** - * Set the mobileNetwork property: Mobile network that this sim belongs to. - * - * @param mobileNetwork the mobileNetwork value to set. - * @return the SimInner object itself. - */ - public SimInner withMobileNetwork(MobileNetworkResourceId mobileNetwork) { - if (this.innerProperties() == null) { - this.innerProperties = new SimPropertiesFormat(); - } - this.innerProperties().withMobileNetwork(mobileNetwork); - return this; - } - - /** - * Get the deviceType property: An optional free-form text field that can be used to record the device type this sim - * is associated with, for example 'Video camera'. The Azure portal allows Sims to be grouped and filtered based on + * Get the deviceType property: An optional free-form text field that can be used to record the device type this SIM + * is associated with, for example 'Video camera'. The Azure portal allows SIMs to be grouped and filtered based on * this value. * * @return the deviceType value. @@ -212,8 +156,8 @@ public String deviceType() { } /** - * Set the deviceType property: An optional free-form text field that can be used to record the device type this sim - * is associated with, for example 'Video camera'. The Azure portal allows Sims to be grouped and filtered based on + * Set the deviceType property: An optional free-form text field that can be used to record the device type this SIM + * is associated with, for example 'Video camera'. The Azure portal allows SIMs to be grouped and filtered based on * this value. * * @param deviceType the deviceType value to set. @@ -228,7 +172,7 @@ public SimInner withDeviceType(String deviceType) { } /** - * Get the simPolicy property: The simPolicy used by this sim. + * Get the simPolicy property: The SIM policy used by this SIM. * * @return the simPolicy value. */ @@ -237,7 +181,7 @@ public SimPolicyResourceId simPolicy() { } /** - * Set the simPolicy property: The simPolicy used by this sim. + * Set the simPolicy property: The SIM policy used by this SIM. * * @param simPolicy the simPolicy value to set. * @return the SimInner object itself. @@ -251,7 +195,7 @@ public SimInner withSimPolicy(SimPolicyResourceId simPolicy) { } /** - * Get the staticIpConfiguration property: A list of static IP addresses assigned to this sim. Each address is + * Get the staticIpConfiguration property: A list of static IP addresses assigned to this SIM. Each address is * assigned at a defined network scope, made up of {attached data network, slice}. * * @return the staticIpConfiguration value. @@ -261,7 +205,7 @@ public List staticIpConfiguration() { } /** - * Set the staticIpConfiguration property: A list of static IP addresses assigned to this sim. Each address is + * Set the staticIpConfiguration property: A list of static IP addresses assigned to this SIM. Each address is * assigned at a defined network scope, made up of {attached data network, slice}. * * @param staticIpConfiguration the staticIpConfiguration value to set. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyInner.java index 20ae0468c65bc..af33317efe230 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyInner.java @@ -16,11 +16,11 @@ import java.util.List; import java.util.Map; -/** Sim policy resource. */ +/** SIM policy resource. */ @Fluent public final class SimPolicyInner extends Resource { /* - * Sim policy Properties. + * SIM policy Properties. */ @JsonProperty(value = "properties", required = true) private SimPolicyPropertiesFormat innerProperties = new SimPolicyPropertiesFormat(); @@ -33,7 +33,7 @@ public final class SimPolicyInner extends Resource { private SystemData systemData; /** - * Get the innerProperties property: Sim policy Properties. + * Get the innerProperties property: SIM policy Properties. * * @return the innerProperties value. */ @@ -65,7 +65,7 @@ public SimPolicyInner withTags(Map tags) { } /** - * Get the provisioningState property: The provisioning state of the sim policy resource. + * Get the provisioningState property: The provisioning state of the SIM policy resource. * * @return the provisioningState value. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyPropertiesFormat.java index 9e3eec9f344e1..b264e0f3316c4 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyPropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPolicyPropertiesFormat.java @@ -13,11 +13,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** SimPolicy properties. */ +/** SIM policy properties. */ @Fluent public final class SimPolicyPropertiesFormat { /* - * The provisioning state of the sim policy resource. + * The provisioning state of the SIM policy resource. */ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; @@ -31,14 +31,14 @@ public final class SimPolicyPropertiesFormat { private Ambr ueAmbr; /* - * The default slice to use if the UE does not explicitly specify it. This + * The default slice to use if the UE does not explicitly specify it. This * slice must exist in the `sliceConfigurations` map. */ @JsonProperty(value = "defaultSlice", required = true) private SliceResourceId defaultSlice; /* - * RAT/Frequency Selection Priority Index, defined in 3GPP TS 36.413. This + * RAT/Frequency Selection Priority Index, defined in 3GPP TS 36.413. This * is an optional setting and by default is unspecified. */ @JsonProperty(value = "rfspIndex") @@ -58,7 +58,7 @@ public final class SimPolicyPropertiesFormat { private List sliceConfigurations; /** - * Get the provisioningState property: The provisioning state of the sim policy resource. + * Get the provisioningState property: The provisioning state of the SIM policy resource. * * @return the provisioningState value. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPropertiesFormat.java index fa3658d8d9670..ee424209a1070 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimPropertiesFormat.java @@ -6,7 +6,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; import com.azure.resourcemanager.mobilenetwork.models.SimState; @@ -14,67 +13,61 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Sim properties. */ +/** SIM properties. */ @Fluent public final class SimPropertiesFormat { /* - * The provisioning state of the sim resource. + * The provisioning state of the SIM resource. */ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; /* - * The state of the sim resource. + * The state of the SIM resource. */ @JsonProperty(value = "simState", access = JsonProperty.Access.WRITE_ONLY) private SimState simState; /* - * The International Mobile Subscriber Identity (IMSI) for the sim. + * The international mobile subscriber identity (IMSI) for the SIM. */ @JsonProperty(value = "internationalMobileSubscriberIdentity", required = true) private String internationalMobileSubscriberIdentity; /* - * The Integrated Circuit Card ID (ICC Id) for the sim. + * The integrated circuit card ID (ICCID) for the SIM. */ @JsonProperty(value = "integratedCircuitCardIdentifier") private String integratedCircuitCardIdentifier; /* - * The ki value for the sim. + * The Ki value for the SIM. */ @JsonProperty(value = "authenticationKey") private String authenticationKey; /* - * The Opc value for the sim. + * The Opc value for the SIM. */ @JsonProperty(value = "operatorKeyCode") private String operatorKeyCode; - /* - * Mobile network that this sim belongs to - */ - @JsonProperty(value = "mobileNetwork") - private MobileNetworkResourceId mobileNetwork; - /* * An optional free-form text field that can be used to record the device - * type this sim is associated with, for example 'Video camera'. The Azure - * portal allows Sims to be grouped and filtered based on this value. + * type this SIM is associated with, for example 'Video camera'. The Azure + * portal allows SIMs to be grouped and filtered based on this value. */ @JsonProperty(value = "deviceType") private String deviceType; /* - * The simPolicy used by this sim. + * The SIM policy used by this SIM. */ @JsonProperty(value = "simPolicy") private SimPolicyResourceId simPolicy; /* - * A list of static IP addresses assigned to this sim. Each address is + * A list of static IP addresses assigned to this SIM. Each address is * assigned at a defined network scope, made up of {attached data network, * slice}. */ @@ -82,7 +75,7 @@ public final class SimPropertiesFormat { private List staticIpConfiguration; /** - * Get the provisioningState property: The provisioning state of the sim resource. + * Get the provisioningState property: The provisioning state of the SIM resource. * * @return the provisioningState value. */ @@ -91,7 +84,7 @@ public ProvisioningState provisioningState() { } /** - * Get the simState property: The state of the sim resource. + * Get the simState property: The state of the SIM resource. * * @return the simState value. */ @@ -100,8 +93,8 @@ public SimState simState() { } /** - * Get the internationalMobileSubscriberIdentity property: The International Mobile Subscriber Identity (IMSI) for - * the sim. + * Get the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for + * the SIM. * * @return the internationalMobileSubscriberIdentity value. */ @@ -110,8 +103,8 @@ public String internationalMobileSubscriberIdentity() { } /** - * Set the internationalMobileSubscriberIdentity property: The International Mobile Subscriber Identity (IMSI) for - * the sim. + * Set the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for + * the SIM. * * @param internationalMobileSubscriberIdentity the internationalMobileSubscriberIdentity value to set. * @return the SimPropertiesFormat object itself. @@ -122,7 +115,7 @@ public SimPropertiesFormat withInternationalMobileSubscriberIdentity(String inte } /** - * Get the integratedCircuitCardIdentifier property: The Integrated Circuit Card ID (ICC Id) for the sim. + * Get the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. * * @return the integratedCircuitCardIdentifier value. */ @@ -131,7 +124,7 @@ public String integratedCircuitCardIdentifier() { } /** - * Set the integratedCircuitCardIdentifier property: The Integrated Circuit Card ID (ICC Id) for the sim. + * Set the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. * * @param integratedCircuitCardIdentifier the integratedCircuitCardIdentifier value to set. * @return the SimPropertiesFormat object itself. @@ -142,7 +135,7 @@ public SimPropertiesFormat withIntegratedCircuitCardIdentifier(String integrated } /** - * Get the authenticationKey property: The ki value for the sim. + * Get the authenticationKey property: The Ki value for the SIM. * * @return the authenticationKey value. */ @@ -151,7 +144,7 @@ public String authenticationKey() { } /** - * Set the authenticationKey property: The ki value for the sim. + * Set the authenticationKey property: The Ki value for the SIM. * * @param authenticationKey the authenticationKey value to set. * @return the SimPropertiesFormat object itself. @@ -162,7 +155,7 @@ public SimPropertiesFormat withAuthenticationKey(String authenticationKey) { } /** - * Get the operatorKeyCode property: The Opc value for the sim. + * Get the operatorKeyCode property: The Opc value for the SIM. * * @return the operatorKeyCode value. */ @@ -171,7 +164,7 @@ public String operatorKeyCode() { } /** - * Set the operatorKeyCode property: The Opc value for the sim. + * Set the operatorKeyCode property: The Opc value for the SIM. * * @param operatorKeyCode the operatorKeyCode value to set. * @return the SimPropertiesFormat object itself. @@ -182,28 +175,8 @@ public SimPropertiesFormat withOperatorKeyCode(String operatorKeyCode) { } /** - * Get the mobileNetwork property: Mobile network that this sim belongs to. - * - * @return the mobileNetwork value. - */ - public MobileNetworkResourceId mobileNetwork() { - return this.mobileNetwork; - } - - /** - * Set the mobileNetwork property: Mobile network that this sim belongs to. - * - * @param mobileNetwork the mobileNetwork value to set. - * @return the SimPropertiesFormat object itself. - */ - public SimPropertiesFormat withMobileNetwork(MobileNetworkResourceId mobileNetwork) { - this.mobileNetwork = mobileNetwork; - return this; - } - - /** - * Get the deviceType property: An optional free-form text field that can be used to record the device type this sim - * is associated with, for example 'Video camera'. The Azure portal allows Sims to be grouped and filtered based on + * Get the deviceType property: An optional free-form text field that can be used to record the device type this SIM + * is associated with, for example 'Video camera'. The Azure portal allows SIMs to be grouped and filtered based on * this value. * * @return the deviceType value. @@ -213,8 +186,8 @@ public String deviceType() { } /** - * Set the deviceType property: An optional free-form text field that can be used to record the device type this sim - * is associated with, for example 'Video camera'. The Azure portal allows Sims to be grouped and filtered based on + * Set the deviceType property: An optional free-form text field that can be used to record the device type this SIM + * is associated with, for example 'Video camera'. The Azure portal allows SIMs to be grouped and filtered based on * this value. * * @param deviceType the deviceType value to set. @@ -226,7 +199,7 @@ public SimPropertiesFormat withDeviceType(String deviceType) { } /** - * Get the simPolicy property: The simPolicy used by this sim. + * Get the simPolicy property: The SIM policy used by this SIM. * * @return the simPolicy value. */ @@ -235,7 +208,7 @@ public SimPolicyResourceId simPolicy() { } /** - * Set the simPolicy property: The simPolicy used by this sim. + * Set the simPolicy property: The SIM policy used by this SIM. * * @param simPolicy the simPolicy value to set. * @return the SimPropertiesFormat object itself. @@ -246,7 +219,7 @@ public SimPropertiesFormat withSimPolicy(SimPolicyResourceId simPolicy) { } /** - * Get the staticIpConfiguration property: A list of static IP addresses assigned to this sim. Each address is + * Get the staticIpConfiguration property: A list of static IP addresses assigned to this SIM. Each address is * assigned at a defined network scope, made up of {attached data network, slice}. * * @return the staticIpConfiguration value. @@ -256,7 +229,7 @@ public List staticIpConfiguration() { } /** - * Set the staticIpConfiguration property: A list of static IP addresses assigned to this sim. Each address is + * Set the staticIpConfiguration property: A list of static IP addresses assigned to this SIM. Each address is * assigned at a defined network scope, made up of {attached data network, slice}. * * @param staticIpConfiguration the staticIpConfiguration value to set. @@ -280,9 +253,6 @@ public void validate() { "Missing required property internationalMobileSubscriberIdentity in model" + " SimPropertiesFormat")); } - if (mobileNetwork() != null) { - mobileNetwork().validate(); - } if (simPolicy() != null) { simPolicy().validate(); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SiteInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SiteInner.java index bd53c5e317317..91abeab93526a 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SiteInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SiteInner.java @@ -62,8 +62,7 @@ public SiteInner withTags(Map tags) { } /** - * Get the provisioningState property: The provisioning state of the site resource. **TODO**: Confirm if this is - * needed. + * Get the provisioningState property: The provisioning state of the site resource. * * @return the provisioningState value. */ @@ -72,7 +71,7 @@ public ProvisioningState provisioningState() { } /** - * Get the networkFunctions property: An array of ids of the network functions deployed on the site, maintained by + * Get the networkFunctions property: An array of IDs of the network functions deployed on the site, maintained by * the user. * * @return the networkFunctions value. @@ -82,7 +81,7 @@ public List networkFunctions() { } /** - * Set the networkFunctions property: An array of ids of the network functions deployed on the site, maintained by + * Set the networkFunctions property: An array of IDs of the network functions deployed on the site, maintained by * the user. * * @param networkFunctions the networkFunctions value to set. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SitePropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SitePropertiesFormat.java index eda4cd9bb0810..22c8299de39a9 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SitePropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SitePropertiesFormat.java @@ -14,22 +14,20 @@ @Fluent public final class SitePropertiesFormat { /* - * The provisioning state of the site resource. **TODO**: Confirm if this - * is needed + * The provisioning state of the site resource. */ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; /* - * An array of ids of the network functions deployed on the site, + * An array of IDs of the network functions deployed on the site, * maintained by the user. */ @JsonProperty(value = "networkFunctions") private List networkFunctions; /** - * Get the provisioningState property: The provisioning state of the site resource. **TODO**: Confirm if this is - * needed. + * Get the provisioningState property: The provisioning state of the site resource. * * @return the provisioningState value. */ @@ -38,7 +36,7 @@ public ProvisioningState provisioningState() { } /** - * Get the networkFunctions property: An array of ids of the network functions deployed on the site, maintained by + * Get the networkFunctions property: An array of IDs of the network functions deployed on the site, maintained by * the user. * * @return the networkFunctions value. @@ -48,7 +46,7 @@ public List networkFunctions() { } /** - * Set the networkFunctions property: An array of ids of the network functions deployed on the site, maintained by + * Set the networkFunctions property: An array of IDs of the network functions deployed on the site, maintained by * the user. * * @param networkFunctions the networkFunctions value to set. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SliceInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SliceInner.java index 1ccd49060869b..34f03a806f234 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SliceInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SliceInner.java @@ -71,8 +71,8 @@ public ProvisioningState provisioningState() { } /** - * Get the snssai property: The S-NSSAI (single network slice selection assistance information). Unique at the scope - * of a MobileNetwork. + * Get the snssai property: Single-network slice selection assistance information (S-NSSAI). Unique at the scope of + * a mobile network. * * @return the snssai value. */ @@ -81,8 +81,8 @@ public Snssai snssai() { } /** - * Set the snssai property: The S-NSSAI (single network slice selection assistance information). Unique at the scope - * of a MobileNetwork. + * Set the snssai property: Single-network slice selection assistance information (S-NSSAI). Unique at the scope of + * a mobile network. * * @param snssai the snssai value to set. * @return the SliceInner object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SlicePropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SlicePropertiesFormat.java index b3ec4361353b3..f9b78e2692d14 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SlicePropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SlicePropertiesFormat.java @@ -20,8 +20,8 @@ public final class SlicePropertiesFormat { private ProvisioningState provisioningState; /* - * The S-NSSAI (single network slice selection assistance information). - * Unique at the scope of a MobileNetwork. + * Single-network slice selection assistance information (S-NSSAI). Unique + * at the scope of a mobile network. */ @JsonProperty(value = "snssai", required = true) private Snssai snssai; @@ -42,8 +42,8 @@ public ProvisioningState provisioningState() { } /** - * Get the snssai property: The S-NSSAI (single network slice selection assistance information). Unique at the scope - * of a MobileNetwork. + * Get the snssai property: Single-network slice selection assistance information (S-NSSAI). Unique at the scope of + * a mobile network. * * @return the snssai value. */ @@ -52,8 +52,8 @@ public Snssai snssai() { } /** - * Set the snssai property: The S-NSSAI (single network slice selection assistance information). Unique at the scope - * of a MobileNetwork. + * Set the snssai property: Single-network slice selection assistance information (S-NSSAI). Unique at the scope of + * a mobile network. * * @param snssai the snssai value to set. * @return the SlicePropertiesFormat object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SupportedPacketCoreControlPlaneVersionResultInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SupportedPacketCoreControlPlaneVersionResultInner.java new file mode 100644 index 0000000000000..964e59ab08986 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SupportedPacketCoreControlPlaneVersionResultInner.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Response for supported packet core control plane versions API call. */ +@Fluent +public final class SupportedPacketCoreControlPlaneVersionResultInner { + /* + * The supported packet core control plane versions. + */ + @JsonProperty(value = "supportedVersions") + private List supportedVersions; + + /* + * The recommended version to use for new packet core control plane + * deployments. + */ + @JsonProperty(value = "recommendedVersion") + private String recommendedVersion; + + /** + * Get the supportedVersions property: The supported packet core control plane versions. + * + * @return the supportedVersions value. + */ + public List supportedVersions() { + return this.supportedVersions; + } + + /** + * Set the supportedVersions property: The supported packet core control plane versions. + * + * @param supportedVersions the supportedVersions value to set. + * @return the SupportedPacketCoreControlPlaneVersionResultInner object itself. + */ + public SupportedPacketCoreControlPlaneVersionResultInner withSupportedVersions(List supportedVersions) { + this.supportedVersions = supportedVersions; + return this; + } + + /** + * Get the recommendedVersion property: The recommended version to use for new packet core control plane + * deployments. + * + * @return the recommendedVersion value. + */ + public String recommendedVersion() { + return this.recommendedVersion; + } + + /** + * Set the recommendedVersion property: The recommended version to use for new packet core control plane + * deployments. + * + * @param recommendedVersion the recommendedVersion value to set. + * @return the SupportedPacketCoreControlPlaneVersionResultInner object itself. + */ + public SupportedPacketCoreControlPlaneVersionResultInner withRecommendedVersion(String recommendedVersion) { + this.recommendedVersion = recommendedVersion; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworkImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworkImpl.java index b84c5a055d5bd..74937c80cd74a 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworkImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworkImpl.java @@ -55,6 +55,15 @@ public InterfaceProperties userPlaneDataInterface() { return this.innerModel().userPlaneDataInterface(); } + public List dnsAddresses() { + List inner = this.innerModel().dnsAddresses(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + public NaptConfiguration naptConfiguration() { return this.innerModel().naptConfiguration(); } @@ -85,6 +94,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public AttachedDataNetworkInner innerModel() { return this.innerObject; } @@ -250,6 +263,11 @@ public AttachedDataNetworkImpl withTags(Map tags) { } } + public AttachedDataNetworkImpl withDnsAddresses(List dnsAddresses) { + this.innerModel().withDnsAddresses(dnsAddresses); + return this; + } + public AttachedDataNetworkImpl withNaptConfiguration(NaptConfiguration naptConfiguration) { this.innerModel().withNaptConfiguration(naptConfiguration); return this; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksClientImpl.java index 6f092a1a871b4..953f197f5cae9 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksClientImpl.java @@ -676,14 +676,7 @@ private Mono getAsync( String attachedDataNetworkName) { return getWithResponseAsync( resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, attachedDataNetworkName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1152,7 +1145,7 @@ public AttachedDataNetworkInner createOrUpdate( } /** - * Updates an attached data network update tags. + * Updates an attached data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1228,7 +1221,7 @@ private Mono> updateTagsWithResponseAsync( } /** - * Updates an attached data network update tags. + * Updates an attached data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1303,7 +1296,7 @@ private Mono> updateTagsWithResponseAsync( } /** - * Updates an attached data network update tags. + * Updates an attached data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1328,18 +1321,11 @@ private Mono updateTagsAsync( packetCoreDataPlaneName, attachedDataNetworkName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Updates an attached data network update tags. + * Updates an attached data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1368,7 +1354,7 @@ public AttachedDataNetworkInner updateTags( } /** - * Updates an attached data network update tags. + * Updates an attached data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1400,7 +1386,7 @@ public Response updateTagsWithResponse( } /** - * Gets all the data networks associated with a packet core data plane. + * Gets all the attached data networks associated with a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1408,8 +1394,8 @@ public Response updateTagsWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the data networks associated with a packet core data plane along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return all the attached data networks associated with a packet core data plane along with {@link PagedResponse} + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByPacketCoreDataPlaneSinglePageAsync( @@ -1468,7 +1454,7 @@ private Mono> listByPacketCoreDataPlaneS } /** - * Gets all the data networks associated with a packet core data plane. + * Gets all the attached data networks associated with a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1477,8 +1463,8 @@ private Mono> listByPacketCoreDataPlaneS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the data networks associated with a packet core data plane along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return all the attached data networks associated with a packet core data plane along with {@link PagedResponse} + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByPacketCoreDataPlaneSinglePageAsync( @@ -1534,7 +1520,7 @@ private Mono> listByPacketCoreDataPlaneS } /** - * Gets all the data networks associated with a packet core data plane. + * Gets all the attached data networks associated with a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1542,7 +1528,7 @@ private Mono> listByPacketCoreDataPlaneS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the data networks associated with a packet core data plane as paginated response with {@link + * @return all the attached data networks associated with a packet core data plane as paginated response with {@link * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1556,7 +1542,7 @@ private PagedFlux listByPacketCoreDataPlaneAsync( } /** - * Gets all the data networks associated with a packet core data plane. + * Gets all the attached data networks associated with a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1565,7 +1551,7 @@ private PagedFlux listByPacketCoreDataPlaneAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the data networks associated with a packet core data plane as paginated response with {@link + * @return all the attached data networks associated with a packet core data plane as paginated response with {@link * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1579,7 +1565,7 @@ private PagedFlux listByPacketCoreDataPlaneAsync( } /** - * Gets all the data networks associated with a packet core data plane. + * Gets all the attached data networks associated with a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1587,7 +1573,7 @@ private PagedFlux listByPacketCoreDataPlaneAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the data networks associated with a packet core data plane as paginated response with {@link + * @return all the attached data networks associated with a packet core data plane as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1598,7 +1584,7 @@ public PagedIterable listByPacketCoreDataPlane( } /** - * Gets all the data networks associated with a packet core data plane. + * Gets all the attached data networks associated with a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1607,7 +1593,7 @@ public PagedIterable listByPacketCoreDataPlane( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the data networks associated with a packet core data plane as paginated response with {@link + * @return all the attached data networks associated with a packet core data plane as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworkImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworkImpl.java index dff4f5f80d2b2..74f931a569238 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworkImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworkImpl.java @@ -64,6 +64,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public DataNetworkInner innerModel() { return this.innerObject; } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksClientImpl.java index d00d8ccc15c05..e2dc1af14a87b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksClientImpl.java @@ -159,11 +159,11 @@ Mono> listByMobileNetworkNext( } /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -214,11 +214,11 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -267,11 +267,11 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -289,11 +289,11 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -312,11 +312,11 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -329,11 +329,11 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -347,11 +347,11 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -365,11 +365,11 @@ private Mono deleteAsync(String resourceGroupName, String mobileNetworkNam } /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -385,11 +385,11 @@ private Mono deleteAsync( } /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -400,11 +400,11 @@ public void delete(String resourceGroupName, String mobileNetworkName, String da } /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -416,16 +416,16 @@ public void delete(String resourceGroupName, String mobileNetworkName, String da } /** - * Gets information about the specified mobile network dataNetwork. + * Gets information about the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network dataNetwork along with {@link Response} on successful - * completion of {@link Mono}. + * @return information about the specified data network along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -472,17 +472,17 @@ private Mono> getWithResponseAsync( } /** - * Gets information about the specified mobile network dataNetwork. + * Gets information about the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network dataNetwork along with {@link Response} on successful - * completion of {@link Mono}. + * @return information about the specified data network along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -526,40 +526,33 @@ private Mono> getWithResponseAsync( } /** - * Gets information about the specified mobile network dataNetwork. + * Gets information about the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network dataNetwork on successful completion of {@link Mono}. + * @return information about the specified data network on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( String resourceGroupName, String mobileNetworkName, String dataNetworkName) { return getWithResponseAsync(resourceGroupName, mobileNetworkName, dataNetworkName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets information about the specified mobile network dataNetwork. + * Gets information about the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network dataNetwork. + * @return information about the specified data network. */ @ServiceMethod(returns = ReturnType.SINGLE) public DataNetworkInner get(String resourceGroupName, String mobileNetworkName, String dataNetworkName) { @@ -567,16 +560,16 @@ public DataNetworkInner get(String resourceGroupName, String mobileNetworkName, } /** - * Gets information about the specified mobile network dataNetwork. + * Gets information about the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network dataNetwork along with {@link Response}. + * @return information about the specified data network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -585,12 +578,12 @@ public Response getWithResponse( } /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -647,12 +640,12 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -711,12 +704,12 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -738,12 +731,12 @@ private PollerFlux, DataNetworkInner> beginCreateOr } /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -767,12 +760,12 @@ private PollerFlux, DataNetworkInner> beginCreateOr } /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -786,12 +779,12 @@ public SyncPoller, DataNetworkInner> beginCreateOrU } /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -810,12 +803,12 @@ public SyncPoller, DataNetworkInner> beginCreateOrU } /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -830,12 +823,12 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -855,12 +848,12 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -873,12 +866,12 @@ public DataNetworkInner createOrUpdate( } /** - * Creates or updates a mobile network dataNetwork. + * Creates or updates a data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. - * @param parameters Parameters supplied to the create or update mobile network dataNetwork operation. + * @param dataNetworkName The name of the data network. + * @param parameters Parameters supplied to the create or update data network operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -896,11 +889,11 @@ public DataNetworkInner createOrUpdate( } /** - * Update data network tags. + * Updates data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param parameters Parameters supplied to update data network tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -958,11 +951,11 @@ private Mono> updateTagsWithResponseAsync( } /** - * Update data network tags. + * Updates data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param parameters Parameters supplied to update data network tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1022,11 +1015,11 @@ private Mono> updateTagsWithResponseAsync( } /** - * Update data network tags. + * Updates data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param parameters Parameters supplied to update data network tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1037,22 +1030,15 @@ private Mono> updateTagsWithResponseAsync( private Mono updateTagsAsync( String resourceGroupName, String mobileNetworkName, String dataNetworkName, TagsObject parameters) { return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, dataNetworkName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Update data network tags. + * Updates data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param parameters Parameters supplied to update data network tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1066,11 +1052,11 @@ public DataNetworkInner updateTags( } /** - * Update data network tags. + * Updates data network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param parameters Parameters supplied to update data network tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1090,7 +1076,7 @@ public Response updateTagsWithResponse( } /** - * Lists all dataNetworks in the mobile network. + * Lists all data networks in the mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1149,7 +1135,7 @@ private Mono> listByMobileNetworkSinglePageAsync } /** - * Lists all dataNetworks in the mobile network. + * Lists all data networks in the mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1206,7 +1192,7 @@ private Mono> listByMobileNetworkSinglePageAsync } /** - * Lists all dataNetworks in the mobile network. + * Lists all data networks in the mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1223,7 +1209,7 @@ private PagedFlux listByMobileNetworkAsync(String resourceGrou } /** - * Lists all dataNetworks in the mobile network. + * Lists all data networks in the mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1242,7 +1228,7 @@ private PagedFlux listByMobileNetworkAsync( } /** - * Lists all dataNetworks in the mobile network. + * Lists all data networks in the mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1257,7 +1243,7 @@ public PagedIterable listByMobileNetwork(String resourceGroupN } /** - * Lists all dataNetworks in the mobile network. + * Lists all data networks in the mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkImpl.java index 3c61cc52b8282..972783a471484 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkImpl.java @@ -70,6 +70,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public MobileNetworkInner innerModel() { return this.innerObject; } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientBuilder.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientBuilder.java index 18f4656d55452..7425038f5243c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientBuilder.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientBuilder.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; -import com.azure.core.http.policy.CookiePolicy; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.AzureEnvironment; @@ -67,34 +66,34 @@ public MobileNetworkManagementClientBuilder environment(AzureEnvironment environ } /* - * The default poll interval for long-running operation + * The HTTP pipeline to send requests through */ - private Duration defaultPollInterval; + private HttpPipeline pipeline; /** - * Sets The default poll interval for long-running operation. + * Sets The HTTP pipeline to send requests through. * - * @param defaultPollInterval the defaultPollInterval value. + * @param pipeline the pipeline value. * @return the MobileNetworkManagementClientBuilder. */ - public MobileNetworkManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = defaultPollInterval; + public MobileNetworkManagementClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; return this; } /* - * The HTTP pipeline to send requests through + * The default poll interval for long-running operation */ - private HttpPipeline pipeline; + private Duration defaultPollInterval; /** - * Sets The HTTP pipeline to send requests through. + * Sets The default poll interval for long-running operation. * - * @param pipeline the pipeline value. + * @param defaultPollInterval the defaultPollInterval value. * @return the MobileNetworkManagementClientBuilder. */ - public MobileNetworkManagementClientBuilder pipeline(HttpPipeline pipeline) { - this.pipeline = pipeline; + public MobileNetworkManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { + this.defaultPollInterval = defaultPollInterval; return this; } @@ -126,15 +125,12 @@ public MobileNetworkManagementClientImpl buildClient() { if (environment == null) { this.environment = AzureEnvironment.AZURE; } + if (pipeline == null) { + this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + } if (defaultPollInterval == null) { this.defaultPollInterval = Duration.ofSeconds(30); } - if (pipeline == null) { - this.pipeline = - new HttpPipelineBuilder() - .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) - .build(); - } if (serializerAdapter == null) { this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientImpl.java index 4092b8cf8aa7d..5d2cba992f4c0 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworkManagementClientImpl.java @@ -15,6 +15,7 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; @@ -29,6 +30,7 @@ import com.azure.resourcemanager.mobilenetwork.fluent.PacketCoreControlPlanesClient; import com.azure.resourcemanager.mobilenetwork.fluent.PacketCoreDataPlanesClient; import com.azure.resourcemanager.mobilenetwork.fluent.ServicesClient; +import com.azure.resourcemanager.mobilenetwork.fluent.SimGroupsClient; import com.azure.resourcemanager.mobilenetwork.fluent.SimPoliciesClient; import com.azure.resourcemanager.mobilenetwork.fluent.SimsClient; import com.azure.resourcemanager.mobilenetwork.fluent.SitesClient; @@ -39,7 +41,6 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.time.Duration; -import java.util.Map; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -166,6 +167,18 @@ public SitesClient getSites() { return this.sites; } + /** The SimGroupsClient object to access its operations. */ + private final SimGroupsClient simGroups; + + /** + * Gets the SimGroupsClient object to access its operations. + * + * @return the SimGroupsClient object. + */ + public SimGroupsClient getSimGroups() { + return this.simGroups; + } + /** The SimsClient object to access its operations. */ private final SimsClient sims; @@ -272,11 +285,12 @@ public SlicesClient getSlices() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2022-03-01-preview"; + this.apiVersion = "2022-04-01-preview"; this.attachedDataNetworks = new AttachedDataNetworksClientImpl(this); this.dataNetworks = new DataNetworksClientImpl(this); this.mobileNetworks = new MobileNetworksClientImpl(this); this.sites = new SitesClientImpl(this); + this.simGroups = new SimGroupsClientImpl(this); this.sims = new SimsClientImpl(this); this.operations = new OperationsClientImpl(this); this.packetCoreControlPlanes = new PacketCoreControlPlanesClientImpl(this); @@ -302,10 +316,7 @@ public Context getContext() { * @return the merged context. */ public Context mergeContext(Context context) { - for (Map.Entry entry : this.getContext().getValues().entrySet()) { - context = context.addData(entry.getKey(), entry.getValue()); - } - return context; + return CoreUtils.mergeContexts(this.getContext(), context); } /** diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksClientImpl.java index cfc8a44d2b062..71b709af30b87 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksClientImpl.java @@ -534,14 +534,7 @@ private Mono> getByResourceGroupWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String mobileNetworkName) { return getByResourceGroupWithResponseAsync(resourceGroupName, mobileNetworkName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -846,7 +839,7 @@ public MobileNetworkInner createOrUpdate( } /** - * Updates a mobile network update tags. + * Updates mobile network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -902,7 +895,7 @@ private Mono> updateTagsWithResponseAsync( } /** - * Updates a mobile network update tags. + * Updates mobile network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -956,7 +949,7 @@ private Mono> updateTagsWithResponseAsync( } /** - * Updates a mobile network update tags. + * Updates mobile network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -970,18 +963,11 @@ private Mono> updateTagsWithResponseAsync( private Mono updateTagsAsync( String resourceGroupName, String mobileNetworkName, TagsObject parameters) { return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Updates a mobile network update tags. + * Updates mobile network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -997,7 +983,7 @@ public MobileNetworkInner updateTags(String resourceGroupName, String mobileNetw } /** - * Updates a mobile network update tags. + * Updates mobile network tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1323,14 +1309,14 @@ public PagedIterable listByResourceGroup(String resourceGrou } /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call along with {@link Response} on successful completion of {@link + * @return response for list SIM IDs API service call along with {@link Response} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1373,7 +1359,7 @@ private Mono>> listSimIdsWithResponseAsync( } /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1381,7 +1367,7 @@ private Mono>> listSimIdsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call along with {@link Response} on successful completion of {@link + * @return response for list SIM IDs API service call along with {@link Response} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1421,14 +1407,14 @@ private Mono>> listSimIdsWithResponseAsync( } /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for list sim ids API service call. + * @return the {@link PollerFlux} for polling of response for list SIM IDs API service call. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SimIdListResultInner> beginListSimIdsAsync( @@ -1445,7 +1431,7 @@ private PollerFlux, SimIdListResultInner> begin } /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1453,7 +1439,7 @@ private PollerFlux, SimIdListResultInner> begin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for list sim ids API service call. + * @return the {@link PollerFlux} for polling of response for list SIM IDs API service call. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SimIdListResultInner> beginListSimIdsAsync( @@ -1468,14 +1454,14 @@ private PollerFlux, SimIdListResultInner> begin } /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for list sim ids API service call. + * @return the {@link SyncPoller} for polling of response for list SIM IDs API service call. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SimIdListResultInner> beginListSimIds( @@ -1484,7 +1470,7 @@ public SyncPoller, SimIdListResultInner> beginL } /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1492,7 +1478,7 @@ public SyncPoller, SimIdListResultInner> beginL * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for list sim ids API service call. + * @return the {@link SyncPoller} for polling of response for list SIM IDs API service call. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SimIdListResultInner> beginListSimIds( @@ -1501,14 +1487,14 @@ public SyncPoller, SimIdListResultInner> beginL } /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call on successful completion of {@link Mono}. + * @return response for list SIM IDs API service call on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listSimIdsAsync(String resourceGroupName, String mobileNetworkName) { @@ -1518,7 +1504,7 @@ private Mono listSimIdsAsync(String resourceGroupName, Str } /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1526,7 +1512,7 @@ private Mono listSimIdsAsync(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call on successful completion of {@link Mono}. + * @return response for list SIM IDs API service call on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listSimIdsAsync( @@ -1537,14 +1523,14 @@ private Mono listSimIdsAsync( } /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call. + * @return response for list SIM IDs API service call. */ @ServiceMethod(returns = ReturnType.SINGLE) public SimIdListResultInner listSimIds(String resourceGroupName, String mobileNetworkName) { @@ -1552,7 +1538,7 @@ public SimIdListResultInner listSimIds(String resourceGroupName, String mobileNe } /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1560,7 +1546,7 @@ public SimIdListResultInner listSimIds(String resourceGroupName, String mobileNe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call. + * @return response for list SIM IDs API service call. */ @ServiceMethod(returns = ReturnType.SINGLE) public SimIdListResultInner listSimIds(String resourceGroupName, String mobileNetworkName, Context context) { diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneImpl.java index 36a7cd2b459db..0627924ca9fac 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneImpl.java @@ -8,11 +8,14 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreControlPlaneInner; +import com.azure.resourcemanager.mobilenetwork.models.BillingSku; import com.azure.resourcemanager.mobilenetwork.models.CoreNetworkType; -import com.azure.resourcemanager.mobilenetwork.models.CustomLocationResourceId; import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; +import com.azure.resourcemanager.mobilenetwork.models.LocalDiagnosticsAccessConfiguration; +import com.azure.resourcemanager.mobilenetwork.models.ManagedServiceIdentity; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlane; +import com.azure.resourcemanager.mobilenetwork.models.PlatformConfiguration; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.TagsObject; import java.util.Collections; @@ -49,6 +52,10 @@ public Map tags() { } } + public ManagedServiceIdentity identity() { + return this.innerModel().identity(); + } + public SystemData systemData() { return this.innerModel().systemData(); } @@ -61,8 +68,8 @@ public MobileNetworkResourceId mobileNetwork() { return this.innerModel().mobileNetwork(); } - public CustomLocationResourceId customLocation() { - return this.innerModel().customLocation(); + public PlatformConfiguration platform() { + return this.innerModel().platform(); } public CoreNetworkType coreNetworkTechnology() { @@ -77,6 +84,18 @@ public InterfaceProperties controlPlaneAccessInterface() { return this.innerModel().controlPlaneAccessInterface(); } + public BillingSku sku() { + return this.innerModel().sku(); + } + + public LocalDiagnosticsAccessConfiguration localDiagnosticsAccess() { + return this.innerModel().localDiagnosticsAccess(); + } + + public Object interopSettings() { + return this.innerModel().interopSettings(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -85,6 +104,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public PacketCoreControlPlaneInner innerModel() { return this.innerObject; } @@ -203,6 +226,11 @@ public PacketCoreControlPlaneImpl withControlPlaneAccessInterface(InterfacePrope return this; } + public PacketCoreControlPlaneImpl withSku(BillingSku sku) { + this.innerModel().withSku(sku); + return this; + } + public PacketCoreControlPlaneImpl withTags(Map tags) { if (isInCreateMode()) { this.innerModel().withTags(tags); @@ -213,8 +241,13 @@ public PacketCoreControlPlaneImpl withTags(Map tags) { } } - public PacketCoreControlPlaneImpl withCustomLocation(CustomLocationResourceId customLocation) { - this.innerModel().withCustomLocation(customLocation); + public PacketCoreControlPlaneImpl withIdentity(ManagedServiceIdentity identity) { + this.innerModel().withIdentity(identity); + return this; + } + + public PacketCoreControlPlaneImpl withPlatform(PlatformConfiguration platform) { + this.innerModel().withPlatform(platform); return this; } @@ -228,6 +261,17 @@ public PacketCoreControlPlaneImpl withVersion(String version) { return this; } + public PacketCoreControlPlaneImpl withLocalDiagnosticsAccess( + LocalDiagnosticsAccessConfiguration localDiagnosticsAccess) { + this.innerModel().withLocalDiagnosticsAccess(localDiagnosticsAccess); + return this; + } + + public PacketCoreControlPlaneImpl withInteropSettings(Object interopSettings) { + this.innerModel().withInteropSettings(interopSettings); + return this; + } + private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesClientImpl.java index 92f5dd91425a8..4c7d1b3670a41 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesClientImpl.java @@ -34,6 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.PacketCoreControlPlanesClient; import com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreControlPlaneInner; +import com.azure.resourcemanager.mobilenetwork.fluent.models.SupportedPacketCoreControlPlaneVersionResultInner; import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlaneListResult; import com.azure.resourcemanager.mobilenetwork.models.TagsObject; import java.nio.ByteBuffer; @@ -154,6 +155,20 @@ Mono> listByResourceGroup( @HeaderParam("Accept") String accept, Context context); + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/supportedPacketCoreControlPlaneVersions") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> supportedVersions( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + @Headers({"Content-Type: application/json"}) @Get("{nextLink}") @ExpectedResponses({200}) @@ -529,14 +544,7 @@ private Mono> getByResourceGroupWithRespon private Mono getByResourceGroupAsync( String resourceGroupName, String packetCoreControlPlaneName) { return getByResourceGroupWithResponseAsync(resourceGroupName, packetCoreControlPlaneName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -572,7 +580,7 @@ public Response getByResourceGroupWithResponse( } /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -630,7 +638,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -689,7 +697,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -715,7 +723,7 @@ private PollerFlux, PacketCoreControlPla } /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -746,7 +754,7 @@ private PollerFlux, PacketCoreControlPla } /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -763,7 +771,7 @@ public SyncPoller, PacketCoreControlPlan } /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -785,7 +793,7 @@ public SyncPoller, PacketCoreControlPlan } /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -804,7 +812,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -827,7 +835,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -844,7 +852,7 @@ public PacketCoreControlPlaneInner createOrUpdate( } /** - * Creates or updates a PacketCoreControlPlane. + * Creates or updates a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -865,11 +873,11 @@ public PacketCoreControlPlaneInner createOrUpdate( } /** - * Updates a PacketCoreControlPlane update tags. + * Updates packet core control planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. - * @param parameters Parameters supplied to update PacketCoreControlPlane tags. + * @param parameters Parameters supplied to update packet core control plane tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -923,11 +931,11 @@ private Mono> updateTagsWithResponseAsync( } /** - * Updates a PacketCoreControlPlane update tags. + * Updates packet core control planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. - * @param parameters Parameters supplied to update PacketCoreControlPlane tags. + * @param parameters Parameters supplied to update packet core control plane tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -979,11 +987,11 @@ private Mono> updateTagsWithResponseAsync( } /** - * Updates a PacketCoreControlPlane update tags. + * Updates packet core control planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. - * @param parameters Parameters supplied to update PacketCoreControlPlane tags. + * @param parameters Parameters supplied to update packet core control plane tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -993,22 +1001,15 @@ private Mono> updateTagsWithResponseAsync( private Mono updateTagsAsync( String resourceGroupName, String packetCoreControlPlaneName, TagsObject parameters) { return updateTagsWithResponseAsync(resourceGroupName, packetCoreControlPlaneName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Updates a PacketCoreControlPlane update tags. + * Updates packet core control planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. - * @param parameters Parameters supplied to update PacketCoreControlPlane tags. + * @param parameters Parameters supplied to update packet core control plane tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1021,11 +1022,11 @@ public PacketCoreControlPlaneInner updateTags( } /** - * Updates a PacketCoreControlPlane update tags. + * Updates packet core control planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. - * @param parameters Parameters supplied to update PacketCoreControlPlane tags. + * @param parameters Parameters supplied to update packet core control plane tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1039,7 +1040,7 @@ public Response updateTagsWithResponse( } /** - * Lists all the packetCoreControlPlanes in a subscription. + * Lists all the packet core control planes in a subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1084,7 +1085,7 @@ private Mono> listSinglePageAsync() { } /** - * Lists all the packetCoreControlPlanes in a subscription. + * Lists all the packet core control planes in a subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1128,7 +1129,7 @@ private Mono> listSinglePageAsync(Con } /** - * Lists all the packetCoreControlPlanes in a subscription. + * Lists all the packet core control planes in a subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1141,7 +1142,7 @@ private PagedFlux listAsync() { } /** - * Lists all the packetCoreControlPlanes in a subscription. + * Lists all the packet core control planes in a subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1156,7 +1157,7 @@ private PagedFlux listAsync(Context context) { } /** - * Lists all the packetCoreControlPlanes in a subscription. + * Lists all the packet core control planes in a subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1169,7 +1170,7 @@ public PagedIterable list() { } /** - * Lists all the packetCoreControlPlanes in a subscription. + * Lists all the packet core control planes in a subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1184,7 +1185,7 @@ public PagedIterable list(Context context) { } /** - * Lists all the packetCoreControlPlanes in a resource group. + * Lists all the packet core control planes in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1237,7 +1238,7 @@ private Mono> listByResourceGroupSing } /** - * Lists all the packetCoreControlPlanes in a resource group. + * Lists all the packet core control planes in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -1288,7 +1289,7 @@ private Mono> listByResourceGroupSing } /** - * Lists all the packetCoreControlPlanes in a resource group. + * Lists all the packet core control planes in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1304,7 +1305,7 @@ private PagedFlux listByResourceGroupAsync(String r } /** - * Lists all the packetCoreControlPlanes in a resource group. + * Lists all the packet core control planes in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -1321,7 +1322,7 @@ private PagedFlux listByResourceGroupAsync(String r } /** - * Lists all the packetCoreControlPlanes in a resource group. + * Lists all the packet core control planes in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1336,7 +1337,7 @@ public PagedIterable listByResourceGroup(String res } /** - * Lists all the packetCoreControlPlanes in a resource group. + * Lists all the packet core control planes in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -1351,6 +1352,137 @@ public PagedIterable listByResourceGroup(String res return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } + /** + * Get the set of packet core control plane versions that are currently supported. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the set of packet core control plane versions that are currently supported along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> supportedVersionsWithResponseAsync( + String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .supportedVersions( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + this.client.getApiVersion(), + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the set of packet core control plane versions that are currently supported. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the set of packet core control plane versions that are currently supported along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> supportedVersionsWithResponseAsync( + String resourceGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .supportedVersions( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + this.client.getApiVersion(), + accept, + context); + } + + /** + * Get the set of packet core control plane versions that are currently supported. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the set of packet core control plane versions that are currently supported on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono supportedVersionsAsync(String resourceGroupName) { + return supportedVersionsWithResponseAsync(resourceGroupName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get the set of packet core control plane versions that are currently supported. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the set of packet core control plane versions that are currently supported. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SupportedPacketCoreControlPlaneVersionResultInner supportedVersions(String resourceGroupName) { + return supportedVersionsAsync(resourceGroupName).block(); + } + + /** + * Get the set of packet core control plane versions that are currently supported. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the set of packet core control plane versions that are currently supported along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response supportedVersionsWithResponse( + String resourceGroupName, Context context) { + return supportedVersionsWithResponseAsync(resourceGroupName, context).block(); + } + /** * Get the next page of items. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesImpl.java index 0bb5b3f821222..4f9e4590a8b9f 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlanesImpl.java @@ -11,8 +11,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.PacketCoreControlPlanesClient; import com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreControlPlaneInner; +import com.azure.resourcemanager.mobilenetwork.fluent.models.SupportedPacketCoreControlPlaneVersionResultInner; import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlane; import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlanes; +import com.azure.resourcemanager.mobilenetwork.models.SupportedPacketCoreControlPlaneVersionResult; public final class PacketCoreControlPlanesImpl implements PacketCoreControlPlanes { private static final ClientLogger LOGGER = new ClientLogger(PacketCoreControlPlanesImpl.class); @@ -82,6 +84,31 @@ public PagedIterable listByResourceGroup(String resource return Utils.mapPage(inner, inner1 -> new PacketCoreControlPlaneImpl(inner1, this.manager())); } + public SupportedPacketCoreControlPlaneVersionResult supportedVersions(String resourceGroupName) { + SupportedPacketCoreControlPlaneVersionResultInner inner = + this.serviceClient().supportedVersions(resourceGroupName); + if (inner != null) { + return new SupportedPacketCoreControlPlaneVersionResultImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response supportedVersionsWithResponse( + String resourceGroupName, Context context) { + Response inner = + this.serviceClient().supportedVersionsWithResponse(resourceGroupName, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new SupportedPacketCoreControlPlaneVersionResultImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + public PacketCoreControlPlane getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlaneImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlaneImpl.java index c41d1a5c5b565..68b61bac4c9b7 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlaneImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlaneImpl.java @@ -66,6 +66,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public PacketCoreDataPlaneInner innerModel() { return this.innerObject; } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesClientImpl.java index fe9650b342e07..e42cce433fcae 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesClientImpl.java @@ -560,14 +560,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName) { return getWithResponseAsync(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -607,7 +600,7 @@ public Response getWithResponse( } /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -675,7 +668,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -742,7 +735,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -773,7 +766,7 @@ private PollerFlux, PacketCoreDataPlaneInne } /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -807,7 +800,7 @@ private PollerFlux, PacketCoreDataPlaneInne } /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -830,7 +823,7 @@ public SyncPoller, PacketCoreDataPlaneInner } /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -855,7 +848,7 @@ public SyncPoller, PacketCoreDataPlaneInner } /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -879,7 +872,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -905,7 +898,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -927,7 +920,7 @@ public PacketCoreDataPlaneInner createOrUpdate( } /** - * Creates or updates a PacketCoreDataPlane. + * Creates or updates a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -952,12 +945,12 @@ public PacketCoreDataPlaneInner createOrUpdate( } /** - * Updates a PacketCoreDataPlane update tags. + * Updates packet core data planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. - * @param parameters Parameters supplied to update PacketCoreDataPlane tags. + * @param parameters Parameters supplied to update packet core data plane tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1020,12 +1013,12 @@ private Mono> updateTagsWithResponseAsync( } /** - * Updates a PacketCoreDataPlane update tags. + * Updates packet core data planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. - * @param parameters Parameters supplied to update PacketCoreDataPlane tags. + * @param parameters Parameters supplied to update packet core data plane tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1087,12 +1080,12 @@ private Mono> updateTagsWithResponseAsync( } /** - * Updates a PacketCoreDataPlane update tags. + * Updates packet core data planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. - * @param parameters Parameters supplied to update PacketCoreDataPlane tags. + * @param parameters Parameters supplied to update packet core data plane tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1106,23 +1099,16 @@ private Mono updateTagsAsync( TagsObject parameters) { return updateTagsWithResponseAsync( resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Updates a PacketCoreDataPlane update tags. + * Updates packet core data planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. - * @param parameters Parameters supplied to update PacketCoreDataPlane tags. + * @param parameters Parameters supplied to update packet core data plane tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1139,12 +1125,12 @@ public PacketCoreDataPlaneInner updateTags( } /** - * Updates a PacketCoreDataPlane update tags. + * Updates packet core data planes tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. - * @param parameters Parameters supplied to update PacketCoreDataPlane tags. + * @param parameters Parameters supplied to update packet core data plane tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1164,7 +1150,7 @@ public Response updateTagsWithResponse( } /** - * Lists all the packetCoreDataPlanes associated with a packetCoreControlPlane. + * Lists all the packet core data planes associated with a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1225,7 +1211,7 @@ private Mono> listByPacketCoreControlPla } /** - * Lists all the packetCoreDataPlanes associated with a packetCoreControlPlane. + * Lists all the packet core data planes associated with a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1284,7 +1270,7 @@ private Mono> listByPacketCoreControlPla } /** - * Lists all the packetCoreDataPlanes associated with a packetCoreControlPlane. + * Lists all the packet core data planes associated with a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1302,7 +1288,7 @@ private PagedFlux listByPacketCoreControlPlaneAsync( } /** - * Lists all the packetCoreDataPlanes associated with a packetCoreControlPlane. + * Lists all the packet core data planes associated with a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1321,7 +1307,7 @@ private PagedFlux listByPacketCoreControlPlaneAsync( } /** - * Lists all the packetCoreDataPlanes associated with a packetCoreControlPlane. + * Lists all the packet core data planes associated with a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -1337,7 +1323,7 @@ public PagedIterable listByPacketCoreControlPlane( } /** - * Lists all the packetCoreDataPlanes associated with a packetCoreControlPlane. + * Lists all the packet core data planes associated with a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServiceImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServiceImpl.java index 736cf990c62dc..064b36226d443 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServiceImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServiceImpl.java @@ -80,6 +80,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ServiceInner innerModel() { return this.innerObject; } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesClientImpl.java index 1342f8f28dd69..71b900830ac30 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesClientImpl.java @@ -547,14 +547,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String mobileNetworkName, String serviceName) { return getWithResponseAsync(resourceGroupName, mobileNetworkName, serviceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -594,7 +587,7 @@ public Response getWithResponse( } /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -656,7 +649,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -720,7 +713,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -744,7 +737,7 @@ private PollerFlux, ServiceInner> beginCreateOrUpdateAs } /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -774,7 +767,7 @@ private PollerFlux, ServiceInner> beginCreateOrUpdateAs } /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -793,7 +786,7 @@ public SyncPoller, ServiceInner> beginCreateOrUpdate( } /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -818,7 +811,7 @@ public SyncPoller, ServiceInner> beginCreateOrUpdate( } /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -839,7 +832,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -865,7 +858,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -884,7 +877,7 @@ public ServiceInner createOrUpdate( } /** - * Creates or updates a Service. + * Creates or updates a service. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -908,7 +901,7 @@ public ServiceInner createOrUpdate( } /** - * Update service tags. + * Updates service tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -970,7 +963,7 @@ private Mono> updateTagsWithResponseAsync( } /** - * Update service tags. + * Updates service tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1034,7 +1027,7 @@ private Mono> updateTagsWithResponseAsync( } /** - * Update service tags. + * Updates service tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1050,18 +1043,11 @@ private Mono> updateTagsWithResponseAsync( private Mono updateTagsAsync( String resourceGroupName, String mobileNetworkName, String serviceName, TagsObject parameters) { return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, serviceName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Update service tags. + * Updates service tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1080,7 +1066,7 @@ public ServiceInner updateTags( } /** - * Update service tags. + * Updates service tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1295,7 +1281,7 @@ public PagedIterable listByMobileNetwork( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for Services API service call along with {@link PagedResponse} on successful completion of + * @return response for services API service call along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1333,7 +1319,7 @@ private Mono> listByMobileNetworkNextSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for Services API service call along with {@link PagedResponse} on successful completion of + * @return response for services API service call along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimGroupImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimGroupImpl.java new file mode 100644 index 0000000000000..1a00e5d449b2b --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimGroupImpl.java @@ -0,0 +1,216 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.mobilenetwork.fluent.models.SimGroupInner; +import com.azure.resourcemanager.mobilenetwork.models.KeyVaultKey; +import com.azure.resourcemanager.mobilenetwork.models.ManagedServiceIdentity; +import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; +import com.azure.resourcemanager.mobilenetwork.models.SimGroup; +import com.azure.resourcemanager.mobilenetwork.models.TagsObject; +import java.util.Collections; +import java.util.Map; + +public final class SimGroupImpl implements SimGroup, SimGroup.Definition, SimGroup.Update { + private SimGroupInner innerObject; + + private final com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public ManagedServiceIdentity identity() { + return this.innerModel().identity(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public ProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + + public KeyVaultKey encryptionKey() { + return this.innerModel().encryptionKey(); + } + + public MobileNetworkResourceId mobileNetwork() { + return this.innerModel().mobileNetwork(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public SimGroupInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String simGroupName; + + private TagsObject updateParameters; + + public SimGroupImpl withExistingResourceGroup(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + public SimGroup create() { + this.innerObject = + serviceManager + .serviceClient() + .getSimGroups() + .createOrUpdate(resourceGroupName, simGroupName, this.innerModel(), Context.NONE); + return this; + } + + public SimGroup create(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getSimGroups() + .createOrUpdate(resourceGroupName, simGroupName, this.innerModel(), context); + return this; + } + + SimGroupImpl(String name, com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager) { + this.innerObject = new SimGroupInner(); + this.serviceManager = serviceManager; + this.simGroupName = name; + } + + public SimGroupImpl update() { + this.updateParameters = new TagsObject(); + return this; + } + + public SimGroup apply() { + this.innerObject = + serviceManager + .serviceClient() + .getSimGroups() + .updateTagsWithResponse(resourceGroupName, simGroupName, updateParameters, Context.NONE) + .getValue(); + return this; + } + + public SimGroup apply(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getSimGroups() + .updateTagsWithResponse(resourceGroupName, simGroupName, updateParameters, context) + .getValue(); + return this; + } + + SimGroupImpl( + SimGroupInner innerObject, com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.simGroupName = Utils.getValueFromIdByName(innerObject.id(), "simGroups"); + } + + public SimGroup refresh() { + this.innerObject = + serviceManager + .serviceClient() + .getSimGroups() + .getByResourceGroupWithResponse(resourceGroupName, simGroupName, Context.NONE) + .getValue(); + return this; + } + + public SimGroup refresh(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getSimGroups() + .getByResourceGroupWithResponse(resourceGroupName, simGroupName, context) + .getValue(); + return this; + } + + public SimGroupImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public SimGroupImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public SimGroupImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateParameters.withTags(tags); + return this; + } + } + + public SimGroupImpl withIdentity(ManagedServiceIdentity identity) { + this.innerModel().withIdentity(identity); + return this; + } + + public SimGroupImpl withEncryptionKey(KeyVaultKey encryptionKey) { + this.innerModel().withEncryptionKey(encryptionKey); + return this; + } + + public SimGroupImpl withMobileNetwork(MobileNetworkResourceId mobileNetwork) { + this.innerModel().withMobileNetwork(mobileNetwork); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel().id() == null; + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimGroupsClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimGroupsClientImpl.java new file mode 100644 index 0000000000000..7182d51cd816e --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimGroupsClientImpl.java @@ -0,0 +1,1429 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.mobilenetwork.fluent.SimGroupsClient; +import com.azure.resourcemanager.mobilenetwork.fluent.models.SimGroupInner; +import com.azure.resourcemanager.mobilenetwork.models.SimGroupListResult; +import com.azure.resourcemanager.mobilenetwork.models.TagsObject; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in SimGroupsClient. */ +public final class SimGroupsClientImpl implements SimGroupsClient { + /** The proxy service used to perform REST calls. */ + private final SimGroupsService service; + + /** The service client containing this operation class. */ + private final MobileNetworkManagementClientImpl client; + + /** + * Initializes an instance of SimGroupsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + SimGroupsClientImpl(MobileNetworkManagementClientImpl client) { + this.service = + RestProxy.create(SimGroupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for MobileNetworkManagementClientSimGroups to be used by the proxy + * service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "MobileNetworkManagem") + private interface SimGroupsService { + @Headers({"Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups/{simGroupName}") + @ExpectedResponses({200, 202, 204}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("simGroupName") String simGroupName, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups/{simGroupName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("simGroupName") String simGroupName, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups/{simGroupName}") + @ExpectedResponses({200, 201}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("simGroupName") String simGroupName, + @BodyParam("application/json") SimGroupInner parameters, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Patch( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups/{simGroupName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> updateTags( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("simGroupName") String simGroupName, + @BodyParam("application/json") TagsObject parameters, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.MobileNetwork/simGroups") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String simGroupName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .delete( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + simGroupName, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String simGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .delete( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + simGroupName, + accept, + context); + } + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String simGroupName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, simGroupName); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String simGroupName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, simGroupName, context); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + } + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String simGroupName) { + return beginDeleteAsync(resourceGroupName, simGroupName).getSyncPoller(); + } + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete( + String resourceGroupName, String simGroupName, Context context) { + return beginDeleteAsync(resourceGroupName, simGroupName, context).getSyncPoller(); + } + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String simGroupName) { + return beginDeleteAsync(resourceGroupName, simGroupName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String simGroupName, Context context) { + return beginDeleteAsync(resourceGroupName, simGroupName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String simGroupName) { + deleteAsync(resourceGroupName, simGroupName).block(); + } + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String simGroupName, Context context) { + deleteAsync(resourceGroupName, simGroupName, context).block(); + } + + /** + * Gets information about the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified SIM group along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync( + String resourceGroupName, String simGroupName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .getByResourceGroup( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + simGroupName, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets information about the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified SIM group along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync( + String resourceGroupName, String simGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .getByResourceGroup( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + simGroupName, + accept, + context); + } + + /** + * Gets information about the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified SIM group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getByResourceGroupAsync(String resourceGroupName, String simGroupName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, simGroupName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets information about the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified SIM group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SimGroupInner getByResourceGroup(String resourceGroupName, String simGroupName) { + return getByResourceGroupAsync(resourceGroupName, simGroupName).block(); + } + + /** + * Gets information about the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified SIM group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse( + String resourceGroupName, String simGroupName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, simGroupName, context).block(); + } + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync( + String resourceGroupName, String simGroupName, SimGroupInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .createOrUpdate( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + simGroupName, + parameters, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync( + String resourceGroupName, String simGroupName, SimGroupInner parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .createOrUpdate( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + simGroupName, + parameters, + accept, + context); + } + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of sIM group resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SimGroupInner> beginCreateOrUpdateAsync( + String resourceGroupName, String simGroupName, SimGroupInner parameters) { + Mono>> mono = + createOrUpdateWithResponseAsync(resourceGroupName, simGroupName, parameters); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + SimGroupInner.class, + SimGroupInner.class, + this.client.getContext()); + } + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of sIM group resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SimGroupInner> beginCreateOrUpdateAsync( + String resourceGroupName, String simGroupName, SimGroupInner parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + createOrUpdateWithResponseAsync(resourceGroupName, simGroupName, parameters, context); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), SimGroupInner.class, SimGroupInner.class, context); + } + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of sIM group resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SimGroupInner> beginCreateOrUpdate( + String resourceGroupName, String simGroupName, SimGroupInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, simGroupName, parameters).getSyncPoller(); + } + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of sIM group resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SimGroupInner> beginCreateOrUpdate( + String resourceGroupName, String simGroupName, SimGroupInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, simGroupName, parameters, context).getSyncPoller(); + } + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync( + String resourceGroupName, String simGroupName, SimGroupInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, simGroupName, parameters) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync( + String resourceGroupName, String simGroupName, SimGroupInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, simGroupName, parameters, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SimGroupInner createOrUpdate(String resourceGroupName, String simGroupName, SimGroupInner parameters) { + return createOrUpdateAsync(resourceGroupName, simGroupName, parameters).block(); + } + + /** + * Creates or updates a SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to the create or update SIM group operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SimGroupInner createOrUpdate( + String resourceGroupName, String simGroupName, SimGroupInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, simGroupName, parameters, context).block(); + } + + /** + * Updates SIM group tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to update SIM group tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateTagsWithResponseAsync( + String resourceGroupName, String simGroupName, TagsObject parameters) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .updateTags( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + simGroupName, + parameters, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates SIM group tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to update SIM group tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateTagsWithResponseAsync( + String resourceGroupName, String simGroupName, TagsObject parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .updateTags( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + simGroupName, + parameters, + accept, + context); + } + + /** + * Updates SIM group tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to update SIM group tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateTagsAsync(String resourceGroupName, String simGroupName, TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, simGroupName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Updates SIM group tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to update SIM group tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SimGroupInner updateTags(String resourceGroupName, String simGroupName, TagsObject parameters) { + return updateTagsAsync(resourceGroupName, simGroupName, parameters).block(); + } + + /** + * Updates SIM group tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param parameters Parameters supplied to update SIM group tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sIM group resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse( + String resourceGroupName, String simGroupName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, simGroupName, parameters, context).block(); + } + + /** + * Gets all the SIM groups in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a subscription along with {@link PagedResponse} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .list( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + accept, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets all the SIM groups in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a subscription along with {@link PagedResponse} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + accept, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Gets all the SIM groups in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>( + () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * Gets all the SIM groups in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>( + () -> listSinglePageAsync(context), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the SIM groups in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Gets all the SIM groups in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Gets all the SIM groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .listByResourceGroup( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + accept, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets all the SIM groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync( + String resourceGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + accept, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Gets all the SIM groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a resource group as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>( + () -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * Gets all the SIM groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a resource group as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>( + () -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the SIM groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a resource group as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * Gets all the SIM groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a resource group as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for list SIM groups API service call along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for list SIM groups API service call along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for list SIM groups API service call along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for list SIM groups API service call along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync( + String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimGroupsImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimGroupsImpl.java new file mode 100644 index 0000000000000..04004410e931c --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimGroupsImpl.java @@ -0,0 +1,169 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.mobilenetwork.fluent.SimGroupsClient; +import com.azure.resourcemanager.mobilenetwork.fluent.models.SimGroupInner; +import com.azure.resourcemanager.mobilenetwork.models.SimGroup; +import com.azure.resourcemanager.mobilenetwork.models.SimGroups; + +public final class SimGroupsImpl implements SimGroups { + private static final ClientLogger LOGGER = new ClientLogger(SimGroupsImpl.class); + + private final SimGroupsClient innerClient; + + private final com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager; + + public SimGroupsImpl( + SimGroupsClient innerClient, com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public void deleteByResourceGroup(String resourceGroupName, String simGroupName) { + this.serviceClient().delete(resourceGroupName, simGroupName); + } + + public void delete(String resourceGroupName, String simGroupName, Context context) { + this.serviceClient().delete(resourceGroupName, simGroupName, context); + } + + public SimGroup getByResourceGroup(String resourceGroupName, String simGroupName) { + SimGroupInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, simGroupName); + if (inner != null) { + return new SimGroupImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getByResourceGroupWithResponse( + String resourceGroupName, String simGroupName, Context context) { + Response inner = + this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, simGroupName, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new SimGroupImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return Utils.mapPage(inner, inner1 -> new SimGroupImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return Utils.mapPage(inner, inner1 -> new SimGroupImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + return Utils.mapPage(inner, inner1 -> new SimGroupImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return Utils.mapPage(inner, inner1 -> new SimGroupImpl(inner1, this.manager())); + } + + public SimGroup getById(String id) { + String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String simGroupName = Utils.getValueFromIdByName(id, "simGroups"); + if (simGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'simGroups'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, simGroupName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String simGroupName = Utils.getValueFromIdByName(id, "simGroups"); + if (simGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'simGroups'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, simGroupName, context); + } + + public void deleteById(String id) { + String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String simGroupName = Utils.getValueFromIdByName(id, "simGroups"); + if (simGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'simGroups'.", id))); + } + this.delete(resourceGroupName, simGroupName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String simGroupName = Utils.getValueFromIdByName(id, "simGroups"); + if (simGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'simGroups'.", id))); + } + this.delete(resourceGroupName, simGroupName, context); + } + + private SimGroupsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager() { + return this.serviceManager; + } + + public SimGroupImpl define(String name) { + return new SimGroupImpl(name, this.manager()); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimImpl.java index b69cdbd870edd..b1a461e48c204 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimImpl.java @@ -4,20 +4,15 @@ package com.azure.resourcemanager.mobilenetwork.implementation; -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.mobilenetwork.fluent.models.SimInner; -import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.Sim; import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; import com.azure.resourcemanager.mobilenetwork.models.SimState; import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties; -import com.azure.resourcemanager.mobilenetwork.models.TagsObject; import java.util.Collections; import java.util.List; -import java.util.Map; public final class SimImpl implements Sim, Sim.Definition, Sim.Update { private SimInner innerObject; @@ -36,23 +31,6 @@ public String type() { return this.innerModel().type(); } - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } @@ -77,10 +55,6 @@ public String operatorKeyCode() { return this.innerModel().operatorKeyCode(); } - public MobileNetworkResourceId mobileNetwork() { - return this.innerModel().mobileNetwork(); - } - public String deviceType() { return this.innerModel().deviceType(); } @@ -98,12 +72,8 @@ public List staticIpConfiguration() { } } - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); + public String resourceGroupName() { + return resourceGroupName; } public SimInner innerModel() { @@ -116,12 +86,13 @@ private com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager() { private String resourceGroupName; - private String simName; + private String simGroupName; - private TagsObject updateParameters; + private String simName; - public SimImpl withExistingResourceGroup(String resourceGroupName) { + public SimImpl withExistingSimGroup(String resourceGroupName, String simGroupName) { this.resourceGroupName = resourceGroupName; + this.simGroupName = simGroupName; return this; } @@ -130,7 +101,7 @@ public Sim create() { serviceManager .serviceClient() .getSims() - .createOrUpdate(resourceGroupName, simName, this.innerModel(), Context.NONE); + .createOrUpdate(resourceGroupName, simGroupName, simName, this.innerModel(), Context.NONE); return this; } @@ -139,7 +110,7 @@ public Sim create(Context context) { serviceManager .serviceClient() .getSims() - .createOrUpdate(resourceGroupName, simName, this.innerModel(), context); + .createOrUpdate(resourceGroupName, simGroupName, simName, this.innerModel(), context); return this; } @@ -150,7 +121,6 @@ public Sim create(Context context) { } public SimImpl update() { - this.updateParameters = new TagsObject(); return this; } @@ -159,8 +129,7 @@ public Sim apply() { serviceManager .serviceClient() .getSims() - .updateTagsWithResponse(resourceGroupName, simName, updateParameters, Context.NONE) - .getValue(); + .createOrUpdate(resourceGroupName, simGroupName, simName, this.innerModel(), Context.NONE); return this; } @@ -169,8 +138,7 @@ public Sim apply(Context context) { serviceManager .serviceClient() .getSims() - .updateTagsWithResponse(resourceGroupName, simName, updateParameters, context) - .getValue(); + .createOrUpdate(resourceGroupName, simGroupName, simName, this.innerModel(), context); return this; } @@ -178,6 +146,7 @@ public Sim apply(Context context) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.simGroupName = Utils.getValueFromIdByName(innerObject.id(), "simGroups"); this.simName = Utils.getValueFromIdByName(innerObject.id(), "sims"); } @@ -186,7 +155,7 @@ public Sim refresh() { serviceManager .serviceClient() .getSims() - .getByResourceGroupWithResponse(resourceGroupName, simName, Context.NONE) + .getWithResponse(resourceGroupName, simGroupName, simName, Context.NONE) .getValue(); return this; } @@ -196,36 +165,16 @@ public Sim refresh(Context context) { serviceManager .serviceClient() .getSims() - .getByResourceGroupWithResponse(resourceGroupName, simName, context) + .getWithResponse(resourceGroupName, simGroupName, simName, context) .getValue(); return this; } - public SimImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public SimImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - public SimImpl withInternationalMobileSubscriberIdentity(String internationalMobileSubscriberIdentity) { this.innerModel().withInternationalMobileSubscriberIdentity(internationalMobileSubscriberIdentity); return this; } - public SimImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateParameters.withTags(tags); - return this; - } - } - public SimImpl withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier) { this.innerModel().withIntegratedCircuitCardIdentifier(integratedCircuitCardIdentifier); return this; @@ -241,11 +190,6 @@ public SimImpl withOperatorKeyCode(String operatorKeyCode) { return this; } - public SimImpl withMobileNetwork(MobileNetworkResourceId mobileNetwork) { - this.innerModel().withMobileNetwork(mobileNetwork); - return this; - } - public SimImpl withDeviceType(String deviceType) { this.innerModel().withDeviceType(deviceType); return this; @@ -260,8 +204,4 @@ public SimImpl withStaticIpConfiguration(List staticIpCon this.innerModel().withStaticIpConfiguration(staticIpConfiguration); return this; } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesClientImpl.java index d42dac3e13b08..a56b6f0ed51cb 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesClientImpl.java @@ -159,7 +159,7 @@ Mono> listByMobileNetworkNext( } /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -213,7 +213,7 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -265,7 +265,7 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -287,7 +287,7 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -310,7 +310,7 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -327,7 +327,7 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -345,7 +345,7 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -363,7 +363,7 @@ private Mono deleteAsync(String resourceGroupName, String mobileNetworkNam } /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -383,7 +383,7 @@ private Mono deleteAsync( } /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -398,7 +398,7 @@ public void delete(String resourceGroupName, String mobileNetworkName, String si } /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -414,7 +414,7 @@ public void delete(String resourceGroupName, String mobileNetworkName, String si } /** - * Gets information about the specified sim policy. + * Gets information about the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -422,7 +422,7 @@ public void delete(String resourceGroupName, String mobileNetworkName, String si * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim policy along with {@link Response} on successful completion of {@link + * @return information about the specified SIM policy along with {@link Response} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -469,7 +469,7 @@ private Mono> getWithResponseAsync( } /** - * Gets information about the specified sim policy. + * Gets information about the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -478,7 +478,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim policy along with {@link Response} on successful completion of {@link + * @return information about the specified SIM policy along with {@link Response} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -522,7 +522,7 @@ private Mono> getWithResponseAsync( } /** - * Gets information about the specified sim policy. + * Gets information about the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -530,23 +530,16 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim policy on successful completion of {@link Mono}. + * @return information about the specified SIM policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String mobileNetworkName, String simPolicyName) { return getWithResponseAsync(resourceGroupName, mobileNetworkName, simPolicyName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets information about the specified sim policy. + * Gets information about the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -554,7 +547,7 @@ private Mono getAsync(String resourceGroupName, String mobileNet * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim policy. + * @return information about the specified SIM policy. */ @ServiceMethod(returns = ReturnType.SINGLE) public SimPolicyInner get(String resourceGroupName, String mobileNetworkName, String simPolicyName) { @@ -562,7 +555,7 @@ public SimPolicyInner get(String resourceGroupName, String mobileNetworkName, St } /** - * Gets information about the specified sim policy. + * Gets information about the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -571,7 +564,7 @@ public SimPolicyInner get(String resourceGroupName, String mobileNetworkName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim policy along with {@link Response}. + * @return information about the specified SIM policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -580,16 +573,16 @@ public Response getWithResponse( } /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource along with {@link Response} on successful completion of {@link Mono}. + * @return sIM policy resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -641,17 +634,17 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource along with {@link Response} on successful completion of {@link Mono}. + * @return sIM policy resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -704,16 +697,16 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sim policy resource. + * @return the {@link PollerFlux} for polling of sIM policy resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SimPolicyInner> beginCreateOrUpdateAsync( @@ -731,17 +724,17 @@ private PollerFlux, SimPolicyInner> beginCreateOrUpda } /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sim policy resource. + * @return the {@link PollerFlux} for polling of sIM policy resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SimPolicyInner> beginCreateOrUpdateAsync( @@ -760,16 +753,16 @@ private PollerFlux, SimPolicyInner> beginCreateOrUpda } /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sim policy resource. + * @return the {@link SyncPoller} for polling of sIM policy resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SimPolicyInner> beginCreateOrUpdate( @@ -779,17 +772,17 @@ public SyncPoller, SimPolicyInner> beginCreateOrUpdat } /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sim policy resource. + * @return the {@link SyncPoller} for polling of sIM policy resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SimPolicyInner> beginCreateOrUpdate( @@ -803,16 +796,16 @@ public SyncPoller, SimPolicyInner> beginCreateOrUpdat } /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource on successful completion of {@link Mono}. + * @return sIM policy resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -823,17 +816,17 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource on successful completion of {@link Mono}. + * @return sIM policy resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -848,16 +841,16 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource. + * @return sIM policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SimPolicyInner createOrUpdate( @@ -866,17 +859,17 @@ public SimPolicyInner createOrUpdate( } /** - * Creates or updates a SimPolicy. + * Creates or updates a SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to the create or update sim policy operation. + * @param parameters Parameters supplied to the create or update SIM policy operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource. + * @return sIM policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SimPolicyInner createOrUpdate( @@ -889,16 +882,16 @@ public SimPolicyInner createOrUpdate( } /** - * Update sim policy tags. + * Updates SIM policy tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to update Sim Policy tags. + * @param parameters Parameters supplied to update SIM policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource along with {@link Response} on successful completion of {@link Mono}. + * @return sIM policy resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateTagsWithResponseAsync( @@ -950,17 +943,17 @@ private Mono> updateTagsWithResponseAsync( } /** - * Update sim policy tags. + * Updates SIM policy tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to update Sim Policy tags. + * @param parameters Parameters supplied to update SIM policy tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource along with {@link Response} on successful completion of {@link Mono}. + * @return sIM policy resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateTagsWithResponseAsync( @@ -1013,42 +1006,35 @@ private Mono> updateTagsWithResponseAsync( } /** - * Update sim policy tags. + * Updates SIM policy tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to update Sim Policy tags. + * @param parameters Parameters supplied to update SIM policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource on successful completion of {@link Mono}. + * @return sIM policy resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateTagsAsync( String resourceGroupName, String mobileNetworkName, String simPolicyName, TagsObject parameters) { return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, simPolicyName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Update sim policy tags. + * Updates SIM policy tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to update Sim Policy tags. + * @param parameters Parameters supplied to update SIM policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource. + * @return sIM policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SimPolicyInner updateTags( @@ -1057,17 +1043,17 @@ public SimPolicyInner updateTags( } /** - * Update sim policy tags. + * Updates SIM policy tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param simPolicyName The name of the SIM policy. - * @param parameters Parameters supplied to update Sim Policy tags. + * @param parameters Parameters supplied to update SIM policy tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim policy resource along with {@link Response}. + * @return sIM policy resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateTagsWithResponse( @@ -1081,14 +1067,14 @@ public Response updateTagsWithResponse( } /** - * Gets all the simPolicies in a mobile network. + * Gets all the SIM policies in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the simPolicies in a mobile network along with {@link PagedResponse} on successful completion of + * @return all the SIM policies in a mobile network along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1140,7 +1126,7 @@ private Mono> listByMobileNetworkSinglePageAsync( } /** - * Gets all the simPolicies in a mobile network. + * Gets all the SIM policies in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1148,7 +1134,7 @@ private Mono> listByMobileNetworkSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the simPolicies in a mobile network along with {@link PagedResponse} on successful completion of + * @return all the SIM policies in a mobile network along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1197,14 +1183,14 @@ private Mono> listByMobileNetworkSinglePageAsync( } /** - * Gets all the simPolicies in a mobile network. + * Gets all the SIM policies in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the simPolicies in a mobile network as paginated response with {@link PagedFlux}. + * @return all the SIM policies in a mobile network as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByMobileNetworkAsync(String resourceGroupName, String mobileNetworkName) { @@ -1214,7 +1200,7 @@ private PagedFlux listByMobileNetworkAsync(String resourceGroupN } /** - * Gets all the simPolicies in a mobile network. + * Gets all the SIM policies in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1222,7 +1208,7 @@ private PagedFlux listByMobileNetworkAsync(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the simPolicies in a mobile network as paginated response with {@link PagedFlux}. + * @return all the SIM policies in a mobile network as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByMobileNetworkAsync( @@ -1233,14 +1219,14 @@ private PagedFlux listByMobileNetworkAsync( } /** - * Gets all the simPolicies in a mobile network. + * Gets all the SIM policies in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the simPolicies in a mobile network as paginated response with {@link PagedIterable}. + * @return all the SIM policies in a mobile network as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName) { @@ -1248,7 +1234,7 @@ public PagedIterable listByMobileNetwork(String resourceGroupNam } /** - * Gets all the simPolicies in a mobile network. + * Gets all the SIM policies in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1256,7 +1242,7 @@ public PagedIterable listByMobileNetwork(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the simPolicies in a mobile network as paginated response with {@link PagedIterable}. + * @return all the SIM policies in a mobile network as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByMobileNetwork( @@ -1271,7 +1257,7 @@ public PagedIterable listByMobileNetwork( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for SimPolicies API service call along with {@link PagedResponse} on successful completion of + * @return response for SIM policies API service call along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1309,7 +1295,7 @@ private Mono> listByMobileNetworkNextSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for SimPolicies API service call along with {@link PagedResponse} on successful completion of + * @return response for SIM policies API service call along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPolicyImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPolicyImpl.java index 9987037c84237..023edef1a1465 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPolicyImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPolicyImpl.java @@ -89,6 +89,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public SimPolicyInner innerModel() { return this.innerObject; } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsClientImpl.java index 79f85f6eaea60..a003ae97a769b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsClientImpl.java @@ -12,7 +12,6 @@ import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; import com.azure.core.annotation.PathParam; import com.azure.core.annotation.Put; import com.azure.core.annotation.QueryParam; @@ -35,7 +34,6 @@ import com.azure.resourcemanager.mobilenetwork.fluent.SimsClient; import com.azure.resourcemanager.mobilenetwork.fluent.models.SimInner; import com.azure.resourcemanager.mobilenetwork.models.SimListResult; -import com.azure.resourcemanager.mobilenetwork.models.TagsObject; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,8 +65,8 @@ public final class SimsClientImpl implements SimsClient { private interface SimsService { @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/sims" - + "/{simName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups/{simGroupName}/sims/{simName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -76,29 +74,31 @@ Mono>> delete( @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("simGroupName") String simGroupName, @PathParam("simName") String simName, @HeaderParam("Accept") String accept, Context context); @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/sims" - + "/{simName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups/{simGroupName}/sims/{simName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup( + Mono> get( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("simGroupName") String simGroupName, @PathParam("simName") String simName, @HeaderParam("Accept") String accept, Context context); @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/sims" - + "/{simName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups/{simGroupName}/sims/{simName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -106,48 +106,24 @@ Mono>> createOrUpdate( @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("simGroupName") String simGroupName, @PathParam("simName") String simName, @BodyParam("application/json") SimInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/sims" - + "/{simName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("simName") String simName, - @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.MobileNetwork/sims") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, - Context context); - @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/sims") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups/{simGroupName}/sims") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( + Mono> listBySimGroup( @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("simGroupName") String simGroupName, @HeaderParam("Accept") String accept, Context context); @@ -155,17 +131,7 @@ Mono> listByResourceGroup( @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( + Mono> listBySimGroupNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, @@ -173,9 +139,10 @@ Mono> listByResourceGroupNext( } /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -183,7 +150,8 @@ Mono> listByResourceGroupNext( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String simName) { + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String simGroupName, String simName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -200,6 +168,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } if (simName == null) { return Mono.error(new IllegalArgumentException("Parameter simName is required and cannot be null.")); } @@ -213,6 +184,7 @@ private Mono>> deleteWithResponseAsync(String resource this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, + simGroupName, simName, accept, context)) @@ -220,9 +192,10 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -232,7 +205,7 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( - String resourceGroupName, String simName, Context context) { + String resourceGroupName, String simGroupName, String simName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -249,6 +222,9 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } if (simName == null) { return Mono.error(new IllegalArgumentException("Parameter simName is required and cannot be null.")); } @@ -260,15 +236,17 @@ private Mono>> deleteWithResponseAsync( this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, + simGroupName, simName, accept, context); } /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -276,8 +254,9 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String simName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, simName); + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String simGroupName, String simName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, simGroupName, simName); return this .client .getLroResult( @@ -285,9 +264,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -297,18 +277,20 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String simName, Context context) { + String resourceGroupName, String simGroupName, String simName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, simName, context); + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, simGroupName, simName, context); return this .client .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -316,14 +298,16 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String simName) { - return beginDeleteAsync(resourceGroupName, simName).getSyncPoller(); + public SyncPoller, Void> beginDelete( + String resourceGroupName, String simGroupName, String simName) { + return beginDeleteAsync(resourceGroupName, simGroupName, simName).getSyncPoller(); } /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -332,14 +316,16 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String simName, Context context) { - return beginDeleteAsync(resourceGroupName, simName, context).getSyncPoller(); + public SyncPoller, Void> beginDelete( + String resourceGroupName, String simGroupName, String simName, Context context) { + return beginDeleteAsync(resourceGroupName, simGroupName, simName, context).getSyncPoller(); } /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -347,14 +333,17 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String simName) { - return beginDeleteAsync(resourceGroupName, simName).last().flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String resourceGroupName, String simGroupName, String simName) { + return beginDeleteAsync(resourceGroupName, simGroupName, simName) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -363,30 +352,32 @@ private Mono deleteAsync(String resourceGroupName, String simName) { * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String simName, Context context) { - return beginDeleteAsync(resourceGroupName, simName, context) + private Mono deleteAsync(String resourceGroupName, String simGroupName, String simName, Context context) { + return beginDeleteAsync(resourceGroupName, simGroupName, simName, context) .last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String simName) { - deleteAsync(resourceGroupName, simName).block(); + public void delete(String resourceGroupName, String simGroupName, String simName) { + deleteAsync(resourceGroupName, simGroupName, simName).block(); } /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -394,22 +385,24 @@ public void delete(String resourceGroupName, String simName) { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String simName, Context context) { - deleteAsync(resourceGroupName, simName, context).block(); + public void delete(String resourceGroupName, String simGroupName, String simName, Context context) { + deleteAsync(resourceGroupName, simGroupName, simName, context).block(); } /** - * Gets information about the specified sim. + * Gets information about the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim along with {@link Response} on successful completion of {@link Mono}. + * @return information about the specified SIM along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String simName) { + private Mono> getWithResponseAsync( + String resourceGroupName, String simGroupName, String simName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -426,6 +419,9 @@ private Mono> getByResourceGroupWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } if (simName == null) { return Mono.error(new IllegalArgumentException("Parameter simName is required and cannot be null.")); } @@ -434,11 +430,12 @@ private Mono> getByResourceGroupWithResponseAsync(String reso .withContext( context -> service - .getByResourceGroup( + .get( this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, + simGroupName, simName, accept, context)) @@ -446,19 +443,20 @@ private Mono> getByResourceGroupWithResponseAsync(String reso } /** - * Gets information about the specified sim. + * Gets information about the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim along with {@link Response} on successful completion of {@link Mono}. + * @return information about the specified SIM along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String simName, Context context) { + private Mono> getWithResponseAsync( + String resourceGroupName, String simGroupName, String simName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -475,91 +473,92 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } if (simName == null) { return Mono.error(new IllegalArgumentException("Parameter simName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); return service - .getByResourceGroup( + .get( this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, + simGroupName, simName, accept, context); } /** - * Gets information about the specified sim. + * Gets information about the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim on successful completion of {@link Mono}. + * @return information about the specified SIM on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String simName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, simName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + private Mono getAsync(String resourceGroupName, String simGroupName, String simName) { + return getWithResponseAsync(resourceGroupName, simGroupName, simName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets information about the specified sim. + * Gets information about the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim. + * @return information about the specified SIM. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SimInner getByResourceGroup(String resourceGroupName, String simName) { - return getByResourceGroupAsync(resourceGroupName, simName).block(); + public SimInner get(String resourceGroupName, String simGroupName, String simName) { + return getAsync(resourceGroupName, simGroupName, simName).block(); } /** - * Gets information about the specified sim. + * Gets information about the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim along with {@link Response}. + * @return information about the specified SIM along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String simName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, simName, context).block(); + public Response getWithResponse( + String resourceGroupName, String simGroupName, String simName, Context context) { + return getWithResponseAsync(resourceGroupName, simGroupName, simName, context).block(); } /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource along with {@link Response} on successful completion of {@link Mono}. + * @return sIM resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String simName, SimInner parameters) { + String resourceGroupName, String simGroupName, String simName, SimInner parameters) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -576,6 +575,9 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } if (simName == null) { return Mono.error(new IllegalArgumentException("Parameter simName is required and cannot be null.")); } @@ -594,6 +596,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, + simGroupName, simName, parameters, accept, @@ -602,20 +605,21 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource along with {@link Response} on successful completion of {@link Mono}. + * @return sIM resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String simName, SimInner parameters, Context context) { + String resourceGroupName, String simGroupName, String simName, SimInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -632,6 +636,9 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } if (simName == null) { return Mono.error(new IllegalArgumentException("Parameter simName is required and cannot be null.")); } @@ -648,6 +655,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, + simGroupName, simName, parameters, accept, @@ -655,20 +663,22 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sim resource. + * @return the {@link PollerFlux} for polling of sIM resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SimInner> beginCreateOrUpdateAsync( - String resourceGroupName, String simName, SimInner parameters) { - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, simName, parameters); + String resourceGroupName, String simGroupName, String simName, SimInner parameters) { + Mono>> mono = + createOrUpdateWithResponseAsync(resourceGroupName, simGroupName, simName, parameters); return this .client .getLroResult( @@ -676,23 +686,24 @@ private PollerFlux, SimInner> beginCreateOrUpdateAsync( } /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sim resource. + * @return the {@link PollerFlux} for polling of sIM resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SimInner> beginCreateOrUpdateAsync( - String resourceGroupName, String simName, SimInner parameters, Context context) { + String resourceGroupName, String simGroupName, String simName, SimInner parameters, Context context) { context = this.client.mergeContext(context); Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, simName, parameters, context); + createOrUpdateWithResponseAsync(resourceGroupName, simGroupName, simName, parameters, context); return this .client .getLroResult( @@ -700,455 +711,161 @@ private PollerFlux, SimInner> beginCreateOrUpdateAsync( } /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sim resource. + * @return the {@link SyncPoller} for polling of sIM resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SimInner> beginCreateOrUpdate( - String resourceGroupName, String simName, SimInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, simName, parameters).getSyncPoller(); + String resourceGroupName, String simGroupName, String simName, SimInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, simGroupName, simName, parameters).getSyncPoller(); } /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sim resource. + * @return the {@link SyncPoller} for polling of sIM resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SimInner> beginCreateOrUpdate( - String resourceGroupName, String simName, SimInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, simName, parameters, context).getSyncPoller(); + String resourceGroupName, String simGroupName, String simName, SimInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, simGroupName, simName, parameters, context).getSyncPoller(); } /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource on successful completion of {@link Mono}. + * @return sIM resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String simName, SimInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, simName, parameters) + private Mono createOrUpdateAsync( + String resourceGroupName, String simGroupName, String simName, SimInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, simGroupName, simName, parameters) .last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource on successful completion of {@link Mono}. + * @return sIM resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String simName, SimInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, simName, parameters, context) + String resourceGroupName, String simGroupName, String simName, SimInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, simGroupName, simName, parameters, context) .last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource. + * @return sIM resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SimInner createOrUpdate(String resourceGroupName, String simName, SimInner parameters) { - return createOrUpdateAsync(resourceGroupName, simName, parameters).block(); + public SimInner createOrUpdate(String resourceGroupName, String simGroupName, String simName, SimInner parameters) { + return createOrUpdateAsync(resourceGroupName, simGroupName, simName, parameters).block(); } /** - * Creates or updates a Sim. + * Creates or updates a SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. - * @param parameters Parameters supplied to the create or update sim operation. + * @param parameters Parameters supplied to the create or update SIM operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource. + * @return sIM resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SimInner createOrUpdate(String resourceGroupName, String simName, SimInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, simName, parameters, context).block(); + public SimInner createOrUpdate( + String resourceGroupName, String simGroupName, String simName, SimInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, simGroupName, simName, parameters, context).block(); } /** - * Updates a sim update tags. + * Gets all the SIMs in a SIM group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param simName The name of the SIM. - * @param parameters Parameters supplied to update sim tags. + * @param simGroupName The name of the SIM Group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource along with {@link Response} on successful completion of {@link Mono}. + * @return all the SIMs in a SIM group along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync( - String resourceGroupName, String simName, TagsObject parameters) { + private Mono> listBySimGroupSinglePageAsync(String resourceGroupName, String simGroupName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (simName == null) { - return Mono.error(new IllegalArgumentException("Parameter simName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .updateTags( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - simName, - parameters, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates a sim update tags. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param simName The name of the SIM. - * @param parameters Parameters supplied to update sim tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync( - String resourceGroupName, String simName, TagsObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (simName == null) { - return Mono.error(new IllegalArgumentException("Parameter simName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .updateTags( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - simName, - parameters, - accept, - context); - } - - /** - * Updates a sim update tags. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param simName The name of the SIM. - * @param parameters Parameters supplied to update sim tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateTagsAsync(String resourceGroupName, String simName, TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, simName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); - } - - /** - * Updates a sim update tags. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param simName The name of the SIM. - * @param parameters Parameters supplied to update sim tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SimInner updateTags(String resourceGroupName, String simName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, simName, parameters).block(); - } - - /** - * Updates a sim update tags. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param simName The name of the SIM. - * @param parameters Parameters supplied to update sim tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sim resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse( - String resourceGroupName, String simName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, simName, parameters, context).block(); - } - - /** - * Gets all the sims in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the sims in a subscription along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets all the sims in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the sims in a subscription along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono .error( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Gets all the sims in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the sims in a subscription as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>( - () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); - } - - /** - * Gets all the sims in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the sims in a subscription as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(context), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets all the sims in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the sims in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Gets all the sims in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the sims in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * Gets all the Sims in a subscription. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Sims in a subscription along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext( context -> service - .listByResourceGroup( + .listBySimGroup( this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), this.client.getSubscriptionId(), + simGroupName, accept, context)) .>map( @@ -1164,18 +881,19 @@ private Mono> listByResourceGroupSinglePageAsync(String } /** - * Gets all the Sims in a subscription. + * Gets all the SIMs in a SIM group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Sims in a subscription along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return all the SIMs in a SIM group along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync( - String resourceGroupName, Context context) { + private Mono> listBySimGroupSinglePageAsync( + String resourceGroupName, String simGroupName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1192,14 +910,18 @@ private Mono> listByResourceGroupSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (simGroupName == null) { + return Mono.error(new IllegalArgumentException("Parameter simGroupName is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup( + .listBySimGroup( this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), this.client.getSubscriptionId(), + simGroupName, accept, context) .map( @@ -1214,65 +936,69 @@ private Mono> listByResourceGroupSinglePageAsync( } /** - * Gets all the Sims in a subscription. + * Gets all the SIMs in a SIM group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Sims in a subscription as paginated response with {@link PagedFlux}. + * @return all the SIMs in a SIM group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + private PagedFlux listBySimGroupAsync(String resourceGroupName, String simGroupName) { return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + () -> listBySimGroupSinglePageAsync(resourceGroupName, simGroupName), + nextLink -> listBySimGroupNextSinglePageAsync(nextLink)); } /** - * Gets all the Sims in a subscription. + * Gets all the SIMs in a SIM group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Sims in a subscription as paginated response with {@link PagedFlux}. + * @return all the SIMs in a SIM group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + private PagedFlux listBySimGroupAsync(String resourceGroupName, String simGroupName, Context context) { return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + () -> listBySimGroupSinglePageAsync(resourceGroupName, simGroupName, context), + nextLink -> listBySimGroupNextSinglePageAsync(nextLink, context)); } /** - * Gets all the Sims in a subscription. + * Gets all the SIMs in a SIM group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Sims in a subscription as paginated response with {@link PagedIterable}. + * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable listBySimGroup(String resourceGroupName, String simGroupName) { + return new PagedIterable<>(listBySimGroupAsync(resourceGroupName, simGroupName)); } /** - * Gets all the Sims in a subscription. + * Gets all the SIMs in a SIM group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Sims in a subscription as paginated response with {@link PagedIterable}. + * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable listBySimGroup(String resourceGroupName, String simGroupName, Context context) { + return new PagedIterable<>(listBySimGroupAsync(resourceGroupName, simGroupName, context)); } /** @@ -1282,11 +1008,11 @@ public PagedIterable listByResourceGroup(String resourceGroupName, Con * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list Sims API service call along with {@link PagedResponse} on successful completion of + * @return response for list SIMs API service call along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + private Mono> listBySimGroupNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1298,82 +1024,7 @@ private Mono> listBySubscriptionNextSinglePageAsync(Stri } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list Sims API service call along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list Sims API service call along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .withContext(context -> service.listBySimGroupNext(nextLink, this.client.getEndpoint(), accept, context)) .>map( res -> new PagedResponseBase<>( @@ -1394,11 +1045,11 @@ private Mono> listByResourceGroupNextSinglePageAsync(Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list Sims API service call along with {@link PagedResponse} on successful completion of + * @return response for list SIMs API service call along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, Context context) { + private Mono> listBySimGroupNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1411,7 +1062,7 @@ private Mono> listByResourceGroupNextSinglePageAsync(Str final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .listBySimGroupNext(nextLink, this.client.getEndpoint(), accept, context) .map( res -> new PagedResponseBase<>( diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsImpl.java index fd42c5bf5a8e0..e17788054f78e 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimsImpl.java @@ -27,16 +27,16 @@ public SimsImpl( this.serviceManager = serviceManager; } - public void deleteByResourceGroup(String resourceGroupName, String simName) { - this.serviceClient().delete(resourceGroupName, simName); + public void delete(String resourceGroupName, String simGroupName, String simName) { + this.serviceClient().delete(resourceGroupName, simGroupName, simName); } - public void delete(String resourceGroupName, String simName, Context context) { - this.serviceClient().delete(resourceGroupName, simName, context); + public void delete(String resourceGroupName, String simGroupName, String simName, Context context) { + this.serviceClient().delete(resourceGroupName, simGroupName, simName, context); } - public Sim getByResourceGroup(String resourceGroupName, String simName) { - SimInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, simName); + public Sim get(String resourceGroupName, String simGroupName, String simName) { + SimInner inner = this.serviceClient().get(resourceGroupName, simGroupName, simName); if (inner != null) { return new SimImpl(inner, this.manager()); } else { @@ -44,9 +44,10 @@ public Sim getByResourceGroup(String resourceGroupName, String simName) { } } - public Response getByResourceGroupWithResponse(String resourceGroupName, String simName, Context context) { + public Response getWithResponse( + String resourceGroupName, String simGroupName, String simName, Context context) { Response inner = - this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, simName, context); + this.serviceClient().getWithResponse(resourceGroupName, simGroupName, simName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), @@ -58,23 +59,13 @@ public Response getByResourceGroupWithResponse(String resourceGroupName, St } } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); + public PagedIterable listBySimGroup(String resourceGroupName, String simGroupName) { + PagedIterable inner = this.serviceClient().listBySimGroup(resourceGroupName, simGroupName); return Utils.mapPage(inner, inner1 -> new SimImpl(inner1, this.manager())); } - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new SimImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new SimImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); + public PagedIterable listBySimGroup(String resourceGroupName, String simGroupName, Context context) { + PagedIterable inner = this.serviceClient().listBySimGroup(resourceGroupName, simGroupName, context); return Utils.mapPage(inner, inner1 -> new SimImpl(inner1, this.manager())); } @@ -87,6 +78,13 @@ public Sim getById(String id) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String simGroupName = Utils.getValueFromIdByName(id, "simGroups"); + if (simGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'simGroups'.", id))); + } String simName = Utils.getValueFromIdByName(id, "sims"); if (simName == null) { throw LOGGER @@ -94,7 +92,7 @@ public Sim getById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sims'.", id))); } - return this.getByResourceGroupWithResponse(resourceGroupName, simName, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, simGroupName, simName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { @@ -106,6 +104,13 @@ public Response getByIdWithResponse(String id, Context context) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String simGroupName = Utils.getValueFromIdByName(id, "simGroups"); + if (simGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'simGroups'.", id))); + } String simName = Utils.getValueFromIdByName(id, "sims"); if (simName == null) { throw LOGGER @@ -113,7 +118,7 @@ public Response getByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sims'.", id))); } - return this.getByResourceGroupWithResponse(resourceGroupName, simName, context); + return this.getWithResponse(resourceGroupName, simGroupName, simName, context); } public void deleteById(String id) { @@ -125,6 +130,13 @@ public void deleteById(String id) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String simGroupName = Utils.getValueFromIdByName(id, "simGroups"); + if (simGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'simGroups'.", id))); + } String simName = Utils.getValueFromIdByName(id, "sims"); if (simName == null) { throw LOGGER @@ -132,7 +144,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sims'.", id))); } - this.delete(resourceGroupName, simName, Context.NONE); + this.delete(resourceGroupName, simGroupName, simName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { @@ -144,6 +156,13 @@ public void deleteByIdWithResponse(String id, Context context) { String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String simGroupName = Utils.getValueFromIdByName(id, "simGroups"); + if (simGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'simGroups'.", id))); + } String simName = Utils.getValueFromIdByName(id, "sims"); if (simName == null) { throw LOGGER @@ -151,7 +170,7 @@ public void deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sims'.", id))); } - this.delete(resourceGroupName, simName, context); + this.delete(resourceGroupName, simGroupName, simName, context); } private SimsClient serviceClient() { diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SiteImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SiteImpl.java index d60af51b81742..a6e3e40c4b1db 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SiteImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SiteImpl.java @@ -71,6 +71,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public SiteInner innerModel() { return this.innerObject; } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesClientImpl.java index 9d0b4235802ec..508fb1a7f4331 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesClientImpl.java @@ -533,14 +533,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String mobileNetworkName, String siteName) { return getWithResponseAsync(resourceGroupName, mobileNetworkName, siteName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -862,7 +855,7 @@ public SiteInner createOrUpdate( } /** - * Updates a site update tags. + * Updates site tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -923,7 +916,7 @@ private Mono> updateTagsWithResponseAsync( } /** - * Updates a site update tags. + * Updates site tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -982,7 +975,7 @@ private Mono> updateTagsWithResponseAsync( } /** - * Updates a site update tags. + * Updates site tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -997,18 +990,11 @@ private Mono> updateTagsWithResponseAsync( private Mono updateTagsAsync( String resourceGroupName, String mobileNetworkName, String siteName, TagsObject parameters) { return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, siteName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Updates a site update tags. + * Updates site tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1026,7 +1012,7 @@ public SiteInner updateTags( } /** - * Updates a site update tags. + * Updates site tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SliceImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SliceImpl.java index dfb17c1409258..52b33fd8e3215 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SliceImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SliceImpl.java @@ -69,6 +69,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public SliceInner innerModel() { return this.innerObject; } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesClientImpl.java index 439a2e9e39e0f..91ec5bf547404 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesClientImpl.java @@ -158,11 +158,11 @@ Mono> listByMobileNetworkNext( } /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -212,11 +212,11 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -264,11 +264,11 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -286,11 +286,11 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -309,11 +309,11 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -326,11 +326,11 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -344,11 +344,11 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -362,11 +362,11 @@ private Mono deleteAsync(String resourceGroupName, String mobileNetworkNam } /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -382,11 +382,11 @@ private Mono deleteAsync( } /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -397,11 +397,11 @@ public void delete(String resourceGroupName, String mobileNetworkName, String sl } /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -413,16 +413,16 @@ public void delete(String resourceGroupName, String mobileNetworkName, String sl } /** - * Gets information about the specified mobile network slice. + * Gets information about the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network slice along with {@link Response} on successful completion - * of {@link Mono}. + * @return information about the specified network slice along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -468,17 +468,17 @@ private Mono> getWithResponseAsync( } /** - * Gets information about the specified mobile network slice. + * Gets information about the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network slice along with {@link Response} on successful completion - * of {@link Mono}. + * @return information about the specified network slice along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -521,39 +521,32 @@ private Mono> getWithResponseAsync( } /** - * Gets information about the specified mobile network slice. + * Gets information about the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network slice on successful completion of {@link Mono}. + * @return information about the specified network slice on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String mobileNetworkName, String sliceName) { return getWithResponseAsync(resourceGroupName, mobileNetworkName, sliceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets information about the specified mobile network slice. + * Gets information about the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network slice. + * @return information about the specified network slice. */ @ServiceMethod(returns = ReturnType.SINGLE) public SliceInner get(String resourceGroupName, String mobileNetworkName, String sliceName) { @@ -561,16 +554,16 @@ public SliceInner get(String resourceGroupName, String mobileNetworkName, String } /** - * Gets information about the specified mobile network slice. + * Gets information about the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network slice along with {@link Response}. + * @return information about the specified network slice along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -579,12 +572,12 @@ public Response getWithResponse( } /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -640,12 +633,12 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -699,12 +692,12 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -722,12 +715,12 @@ private PollerFlux, SliceInner> beginCreateOrUpdateAsync( } /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -747,12 +740,12 @@ private PollerFlux, SliceInner> beginCreateOrUpdateAsync( } /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -765,12 +758,12 @@ public SyncPoller, SliceInner> beginCreateOrUpdate( } /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -785,12 +778,12 @@ public SyncPoller, SliceInner> beginCreateOrUpdate( } /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -805,12 +798,12 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -826,12 +819,12 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -844,12 +837,12 @@ public SliceInner createOrUpdate( } /** - * Creates or updates a mobile network slice. + * Creates or updates a network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to the create or update mobile network slice operation. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to the create or update network slice operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -863,12 +856,12 @@ public SliceInner createOrUpdate( } /** - * Update slice tags. + * Updates slice tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to update mobile network slice tags. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to update network slice tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -924,12 +917,12 @@ private Mono> updateTagsWithResponseAsync( } /** - * Update slice tags. + * Updates slice tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to update mobile network slice tags. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to update network slice tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -983,12 +976,12 @@ private Mono> updateTagsWithResponseAsync( } /** - * Update slice tags. + * Updates slice tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to update mobile network slice tags. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to update network slice tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -998,23 +991,16 @@ private Mono> updateTagsWithResponseAsync( private Mono updateTagsAsync( String resourceGroupName, String mobileNetworkName, String sliceName, TagsObject parameters) { return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, sliceName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Update slice tags. + * Updates slice tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to update mobile network slice tags. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to update network slice tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1027,12 +1013,12 @@ public SliceInner updateTags( } /** - * Update slice tags. + * Updates slice tags. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. - * @param parameters Parameters supplied to update mobile network slice tags. + * @param sliceName The name of the network slice. + * @param parameters Parameters supplied to update network slice tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1054,8 +1040,8 @@ public Response updateTagsWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return response for network slice API service call along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByMobileNetworkSinglePageAsync( @@ -1114,8 +1100,8 @@ private Mono> listByMobileNetworkSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return response for network slice API service call along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByMobileNetworkSinglePageAsync( @@ -1170,7 +1156,7 @@ private Mono> listByMobileNetworkSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call as paginated response with {@link PagedFlux}. + * @return response for network slice API service call as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByMobileNetworkAsync(String resourceGroupName, String mobileNetworkName) { @@ -1188,7 +1174,7 @@ private PagedFlux listByMobileNetworkAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call as paginated response with {@link PagedFlux}. + * @return response for network slice API service call as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByMobileNetworkAsync( @@ -1206,7 +1192,7 @@ private PagedFlux listByMobileNetworkAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call as paginated response with {@link PagedIterable}. + * @return response for network slice API service call as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName) { @@ -1222,7 +1208,7 @@ public PagedIterable listByMobileNetwork(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call as paginated response with {@link PagedIterable}. + * @return response for network slice API service call as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByMobileNetwork( @@ -1237,8 +1223,8 @@ public PagedIterable listByMobileNetwork( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return response for network slice API service call along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByMobileNetworkNextSinglePageAsync(String nextLink) { @@ -1275,8 +1261,8 @@ private Mono> listByMobileNetworkNextSinglePageAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return response for network slice API service call along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByMobileNetworkNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SupportedPacketCoreControlPlaneVersionResultImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SupportedPacketCoreControlPlaneVersionResultImpl.java new file mode 100644 index 0000000000000..ce8437a263ec4 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SupportedPacketCoreControlPlaneVersionResultImpl.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.implementation; + +import com.azure.resourcemanager.mobilenetwork.fluent.models.SupportedPacketCoreControlPlaneVersionResultInner; +import com.azure.resourcemanager.mobilenetwork.models.SupportedPacketCoreControlPlaneVersionResult; +import java.util.Collections; +import java.util.List; + +public final class SupportedPacketCoreControlPlaneVersionResultImpl + implements SupportedPacketCoreControlPlaneVersionResult { + private SupportedPacketCoreControlPlaneVersionResultInner innerObject; + + private final com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager; + + SupportedPacketCoreControlPlaneVersionResultImpl( + SupportedPacketCoreControlPlaneVersionResultInner innerObject, + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public List supportedVersions() { + List inner = this.innerModel().supportedVersions(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public String recommendedVersion() { + return this.innerModel().recommendedVersion(); + } + + public SupportedPacketCoreControlPlaneVersionResultInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Ambr.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Ambr.java index 081b27ce19517..e25d9c5fe341e 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Ambr.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Ambr.java @@ -8,7 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Aggregate Maximum Bit Rate. */ +/** Aggregate maximum bit rate. */ @Fluent public final class Ambr { /* diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetwork.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetwork.java index 1729c860a9716..3c97b511b38ee 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetwork.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetwork.java @@ -55,37 +55,45 @@ public interface AttachedDataNetwork { ProvisioningState provisioningState(); /** - * Gets the userPlaneDataInterface property: The user plane interface on the data network. In 5G networks this is - * called as N6 interface whereas in 4G networks this is called as SGi interface. + * Gets the userPlaneDataInterface property: The user plane interface on the data network. For 5G networks, this is + * the N6 interface. For 4G networks, this is the SGi interface. * * @return the userPlaneDataInterface value. */ InterfaceProperties userPlaneDataInterface(); /** - * Gets the naptConfiguration property: The Network Address and Port Translation configuration. If not specified the - * attached data network uses a default NAPT configuration with NAPT enabled. + * Gets the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. + * + * @return the dnsAddresses value. + */ + List dnsAddresses(); + + /** + * Gets the naptConfiguration property: The network address and port translation (NAPT) configuration. If this is + * not specified, the attached data network will use a default NAPT configuration with NAPT enabled. * * @return the naptConfiguration value. */ NaptConfiguration naptConfiguration(); /** - * Gets the userEquipmentAddressPoolPrefix property: The user equipment address pool prefixes for the attached data - * network that are dynamically assigned by the core to UEs when they set up a PDU session. At least one of - * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined then - * they must be the same size. + * Gets the userEquipmentAddressPoolPrefix property: The user equipment (UE) address pool prefixes for the attached + * data network from which the packet core instance will dynamically assign IP addresses to UEs. The packet core + * instance assigns an IP address to a UE when the UE sets up a PDU session. You must define at least one of + * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix. If you define both, they must be of the + * same size. * * @return the userEquipmentAddressPoolPrefix value. */ List userEquipmentAddressPoolPrefix(); /** - * Gets the userEquipmentStaticAddressPoolPrefix property: The user equipment address pool prefixes for the attached - * data network that are statically assigned by the core to UEs when they set up a PDU session. The mapping of - * static IP to sim is configured in staticIpConfiguration on the sim resource. At least one of - * userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined then - * they must be the same size. + * Gets the userEquipmentStaticAddressPoolPrefix property: The user equipment (UE) address pool prefixes for the + * attached data network from which the packet core instance will assign static IP addresses to UEs. The packet core + * instance assigns an IP address to a UE when the UE sets up a PDU session. The static IP address for a specific UE + * is set in StaticIPConfiguration on the corresponding SIM resource. At least one of userEquipmentAddressPoolPrefix + * and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined, they must be of the same size. * * @return the userEquipmentStaticAddressPoolPrefix value. */ @@ -105,6 +113,13 @@ public interface AttachedDataNetwork { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.AttachedDataNetworkInner object. * @@ -159,11 +174,11 @@ WithUserPlaneDataInterface withExistingPacketCoreDataPlane( /** The stage of the AttachedDataNetwork definition allowing to specify userPlaneDataInterface. */ interface WithUserPlaneDataInterface { /** - * Specifies the userPlaneDataInterface property: The user plane interface on the data network. In 5G - * networks this is called as N6 interface whereas in 4G networks this is called as SGi interface.. + * Specifies the userPlaneDataInterface property: The user plane interface on the data network. For 5G + * networks, this is the N6 interface. For 4G networks, this is the SGi interface.. * - * @param userPlaneDataInterface The user plane interface on the data network. In 5G networks this is called - * as N6 interface whereas in 4G networks this is called as SGi interface. + * @param userPlaneDataInterface The user plane interface on the data network. For 5G networks, this is the + * N6 interface. For 4G networks, this is the SGi interface. * @return the next definition stage. */ WithCreate withUserPlaneDataInterface(InterfaceProperties userPlaneDataInterface); @@ -174,6 +189,7 @@ interface WithUserPlaneDataInterface { */ interface WithCreate extends DefinitionStages.WithTags, + DefinitionStages.WithDnsAddresses, DefinitionStages.WithNaptConfiguration, DefinitionStages.WithUserEquipmentAddressPoolPrefix, DefinitionStages.WithUserEquipmentStaticAddressPoolPrefix { @@ -202,14 +218,26 @@ interface WithTags { */ WithCreate withTags(Map tags); } + /** The stage of the AttachedDataNetwork definition allowing to specify dnsAddresses. */ + interface WithDnsAddresses { + /** + * Specifies the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data + * network.. + * + * @param dnsAddresses The DNS servers to signal to UEs to use for this attached data network. + * @return the next definition stage. + */ + WithCreate withDnsAddresses(List dnsAddresses); + } /** The stage of the AttachedDataNetwork definition allowing to specify naptConfiguration. */ interface WithNaptConfiguration { /** - * Specifies the naptConfiguration property: The Network Address and Port Translation configuration. If not - * specified the attached data network uses a default NAPT configuration with NAPT enabled.. + * Specifies the naptConfiguration property: The network address and port translation (NAPT) configuration. + * If this is not specified, the attached data network will use a default NAPT configuration with NAPT + * enabled.. * - * @param naptConfiguration The Network Address and Port Translation configuration. If not specified the - * attached data network uses a default NAPT configuration with NAPT enabled. + * @param naptConfiguration The network address and port translation (NAPT) configuration. If this is not + * specified, the attached data network will use a default NAPT configuration with NAPT enabled. * @return the next definition stage. */ WithCreate withNaptConfiguration(NaptConfiguration naptConfiguration); @@ -217,15 +245,17 @@ interface WithNaptConfiguration { /** The stage of the AttachedDataNetwork definition allowing to specify userEquipmentAddressPoolPrefix. */ interface WithUserEquipmentAddressPoolPrefix { /** - * Specifies the userEquipmentAddressPoolPrefix property: The user equipment address pool prefixes for the - * attached data network that are dynamically assigned by the core to UEs when they set up a PDU session. At - * least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If - * both are defined then they must be the same size.. + * Specifies the userEquipmentAddressPoolPrefix property: The user equipment (UE) address pool prefixes for + * the attached data network from which the packet core instance will dynamically assign IP addresses to + * UEs. The packet core instance assigns an IP address to a UE when the UE sets up a PDU session. You must + * define at least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix. If you + * define both, they must be of the same size.. * - * @param userEquipmentAddressPoolPrefix The user equipment address pool prefixes for the attached data - * network that are dynamically assigned by the core to UEs when they set up a PDU session. At least one - * of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both - * are defined then they must be the same size. + * @param userEquipmentAddressPoolPrefix The user equipment (UE) address pool prefixes for the attached data + * network from which the packet core instance will dynamically assign IP addresses to UEs. The packet + * core instance assigns an IP address to a UE when the UE sets up a PDU session. You must define at + * least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix. If you define + * both, they must be of the same size. * @return the next definition stage. */ WithCreate withUserEquipmentAddressPoolPrefix(List userEquipmentAddressPoolPrefix); @@ -233,17 +263,19 @@ interface WithUserEquipmentAddressPoolPrefix { /** The stage of the AttachedDataNetwork definition allowing to specify userEquipmentStaticAddressPoolPrefix. */ interface WithUserEquipmentStaticAddressPoolPrefix { /** - * Specifies the userEquipmentStaticAddressPoolPrefix property: The user equipment address pool prefixes for - * the attached data network that are statically assigned by the core to UEs when they set up a PDU session. - * The mapping of static IP to sim is configured in staticIpConfiguration on the sim resource. At least one - * of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are - * defined then they must be the same size.. + * Specifies the userEquipmentStaticAddressPoolPrefix property: The user equipment (UE) address pool + * prefixes for the attached data network from which the packet core instance will assign static IP + * addresses to UEs. The packet core instance assigns an IP address to a UE when the UE sets up a PDU + * session. The static IP address for a specific UE is set in StaticIPConfiguration on the corresponding SIM + * resource. At least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be + * defined. If both are defined, they must be of the same size.. * - * @param userEquipmentStaticAddressPoolPrefix The user equipment address pool prefixes for the attached - * data network that are statically assigned by the core to UEs when they set up a PDU session. The - * mapping of static IP to sim is configured in staticIpConfiguration on the sim resource. At least one - * of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both - * are defined then they must be the same size. + * @param userEquipmentStaticAddressPoolPrefix The user equipment (UE) address pool prefixes for the + * attached data network from which the packet core instance will assign static IP addresses to UEs. The + * packet core instance assigns an IP address to a UE when the UE sets up a PDU session. The static IP + * address for a specific UE is set in StaticIPConfiguration on the corresponding SIM resource. At least + * one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If + * both are defined, they must be of the same size. * @return the next definition stage. */ WithCreate withUserEquipmentStaticAddressPoolPrefix(List userEquipmentStaticAddressPoolPrefix); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkResourceId.java index 4222b78c66575..0b88fe53b59a7 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkResourceId.java @@ -8,17 +8,17 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Reference to an Attached Data Network resource. */ +/** Reference to an attached data network resource. */ @Fluent public final class AttachedDataNetworkResourceId { /* - * Attached Data Network resource ID. + * Attached data network resource ID. */ @JsonProperty(value = "id", required = true) private String id; /** - * Get the id property: Attached Data Network resource ID. + * Get the id property: Attached data network resource ID. * * @return the id value. */ @@ -27,7 +27,7 @@ public String id() { } /** - * Set the id property: Attached Data Network resource ID. + * Set the id property: Attached data network resource ID. * * @param id the id value to set. * @return the AttachedDataNetworkResourceId object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworks.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworks.java index 4edd2930d76ae..37cc7be7efa4e 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworks.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworks.java @@ -85,7 +85,7 @@ Response getWithResponse( Context context); /** - * Gets all the data networks associated with a packet core data plane. + * Gets all the attached data networks associated with a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -93,14 +93,14 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the data networks associated with a packet core data plane as paginated response with {@link + * @return all the attached data networks associated with a packet core data plane as paginated response with {@link * PagedIterable}. */ PagedIterable listByPacketCoreDataPlane( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName); /** - * Gets all the data networks associated with a packet core data plane. + * Gets all the attached data networks associated with a packet core data plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -109,7 +109,7 @@ PagedIterable listByPacketCoreDataPlane( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the data networks associated with a packet core data plane as paginated response with {@link + * @return all the attached data networks associated with a packet core data plane as paginated response with {@link * PagedIterable}. */ PagedIterable listByPacketCoreDataPlane( diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AzureStackEdgeDeviceResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AzureStackEdgeDeviceResourceId.java new file mode 100644 index 0000000000000..7a784b4cb56b4 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AzureStackEdgeDeviceResourceId.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Reference to an Azure Arc custom location resource. */ +@Fluent +public final class AzureStackEdgeDeviceResourceId { + /* + * Azure Stack Edge device resource ID. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** + * Get the id property: Azure Stack Edge device resource ID. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Azure Stack Edge device resource ID. + * + * @param id the id value to set. + * @return the AzureStackEdgeDeviceResourceId object itself. + */ + public AzureStackEdgeDeviceResourceId withId(String id) { + this.id = id; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (id() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property id in model AzureStackEdgeDeviceResourceId")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AzureStackEdgeDeviceResourceId.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/BillingSku.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/BillingSku.java new file mode 100644 index 0000000000000..bc246bf13ddb5 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/BillingSku.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for BillingSku. */ +public final class BillingSku extends ExpandableStringEnum { + /** Static value EvaluationPackage for BillingSku. */ + public static final BillingSku EVALUATION_PACKAGE = fromString("EvaluationPackage"); + + /** Static value FlagshipStarterPackage for BillingSku. */ + public static final BillingSku FLAGSHIP_STARTER_PACKAGE = fromString("FlagshipStarterPackage"); + + /** Static value EdgeSite2GBPS for BillingSku. */ + public static final BillingSku EDGE_SITE2GBPS = fromString("EdgeSite2GBPS"); + + /** Static value EdgeSite3GBPS for BillingSku. */ + public static final BillingSku EDGE_SITE3GBPS = fromString("EdgeSite3GBPS"); + + /** Static value EdgeSite4GBPS for BillingSku. */ + public static final BillingSku EDGE_SITE4GBPS = fromString("EdgeSite4GBPS"); + + /** Static value MediumPackage for BillingSku. */ + public static final BillingSku MEDIUM_PACKAGE = fromString("MediumPackage"); + + /** Static value LargePackage for BillingSku. */ + public static final BillingSku LARGE_PACKAGE = fromString("LargePackage"); + + /** + * Creates or finds a BillingSku from its string representation. + * + * @param name a name to look for. + * @return the corresponding BillingSku. + */ + @JsonCreator + public static BillingSku fromString(String name) { + return fromString(name, BillingSku.class); + } + + /** + * Gets known BillingSku values. + * + * @return known BillingSku values. + */ + public static Collection values() { + return values(BillingSku.class); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ConnectedClusterResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ConnectedClusterResourceId.java new file mode 100644 index 0000000000000..471e65ec81b5d --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ConnectedClusterResourceId.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Reference to an Azure Arc custom location resource. */ +@Fluent +public final class ConnectedClusterResourceId { + /* + * Azure Arc connected cluster resource ID. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** + * Get the id property: Azure Arc connected cluster resource ID. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Azure Arc connected cluster resource ID. + * + * @param id the id value to set. + * @return the ConnectedClusterResourceId object itself. + */ + public ConnectedClusterResourceId withId(String id) { + this.id = id; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (id() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property id in model ConnectedClusterResourceId")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ConnectedClusterResourceId.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CoreNetworkType.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CoreNetworkType.java index 2a6d8b75d3139..d1b60835f4c42 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CoreNetworkType.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CoreNetworkType.java @@ -27,7 +27,11 @@ public static CoreNetworkType fromString(String name) { return fromString(name, CoreNetworkType.class); } - /** @return known CoreNetworkType values. */ + /** + * Gets known CoreNetworkType values. + * + * @return known CoreNetworkType values. + */ public static Collection values() { return values(CoreNetworkType.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CustomLocationResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CustomLocationResourceId.java index 86a0c22344602..39a99aa543707 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CustomLocationResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CustomLocationResourceId.java @@ -8,17 +8,17 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Reference to an Azure ARC custom location resource. */ +/** Reference to an Azure Arc custom location resource. */ @Fluent public final class CustomLocationResourceId { /* - * Azure ARC custom location resource ID. + * Azure Arc custom location resource ID. */ @JsonProperty(value = "id", required = true) private String id; /** - * Get the id property: Azure ARC custom location resource ID. + * Get the id property: Azure Arc custom location resource ID. * * @return the id value. */ @@ -27,7 +27,7 @@ public String id() { } /** - * Set the id property: Azure ARC custom location resource ID. + * Set the id property: Azure Arc custom location resource ID. * * @param id the id value to set. * @return the CustomLocationResourceId object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetwork.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetwork.java index f972bc2175f54..7afe0bec806f1 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetwork.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetwork.java @@ -82,6 +82,13 @@ public interface DataNetwork { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.DataNetworkInner object. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkConfiguration.java index 6b45ee982c206..51e89883b9c24 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkConfiguration.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkConfiguration.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Settings controlling Data Network use. */ +/** Settings controlling data network use. */ @Fluent public final class DataNetworkConfiguration { /* - * A reference to the Data Network that these settings apply to + * A reference to the data network that these settings apply to */ @JsonProperty(value = "dataNetwork", required = true) private DataNetworkResourceId dataNetwork; @@ -27,13 +27,13 @@ public final class DataNetworkConfiguration { private Ambr sessionAmbr; /* - * Default QoS Flow 5G QoS Indicator value. The 5QI identifies a specific + * Default QoS Flow 5G QoS Indicator value. The 5QI identifies a specific * QoS forwarding treatment to be provided to a flow. This must not be a - * standardized 5QI value selecting a GBR (Guaranteed Bit Rate) QoS. The - * illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, - * 76, 82, 83, 84, and 85. See 3GPP TS23.501 section 5.7.2.1 for a full - * description of the 5Qi parameter, and table 5.7.4-1 for the definition - * of which are the GBR 5QI values. + * standardized 5QI value corresponding to a GBR (guaranteed bit rate) QoS + * Flow. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, + * 73, 74, 75, 76, 82, 83, 84, and 85. See 3GPP TS23.501 section 5.7.2.1 + * for a full description of the 5QI parameter, and table 5.7.4-1 for the + * definition of which are the GBR 5QI values. */ @JsonProperty(value = "5qi") private Integer fiveQi; @@ -50,7 +50,7 @@ public final class DataNetworkConfiguration { private Integer allocationAndRetentionPriorityLevel; /* - * Default QoS Flow preemption capability. The Preemption Capability of a + * Default QoS Flow preemption capability. The preemption capability of a * QoS Flow controls whether it can preempt another QoS Flow with a lower * priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description * of the ARP parameters. @@ -59,8 +59,8 @@ public final class DataNetworkConfiguration { private PreemptionCapability preemptionCapability; /* - * Default QoS Flow preemption vulnerability. The Preemption Vulnerability - * of a QoS Flow controls whether it can be preempted by QoS Flow with a + * Default QoS Flow preemption vulnerability. The preemption vulnerability + * of a QoS Flow controls whether it can be preempted by a QoS Flow with a * higher priority level. See 3GPP TS23.501 section 5.7.2.2 for a full * description of the ARP parameters. */ @@ -75,21 +75,21 @@ public final class DataNetworkConfiguration { private PduSessionType defaultSessionType; /* - * Allowed session types in addition to the default session type. Must not + * Allowed session types in addition to the default session type. Must not * duplicate the default session type. */ @JsonProperty(value = "additionalAllowedSessionTypes") private List additionalAllowedSessionTypes; /* - * List of Services that can be used as part of this Sim Policy. The list + * List of services that can be used as part of this SIM policy. The list * must not contain duplicate items and must contain at least one item. */ @JsonProperty(value = "allowedServices", required = true) private List allowedServices; /** - * Get the dataNetwork property: A reference to the Data Network that these settings apply to. + * Get the dataNetwork property: A reference to the data network that these settings apply to. * * @return the dataNetwork value. */ @@ -98,7 +98,7 @@ public DataNetworkResourceId dataNetwork() { } /** - * Set the dataNetwork property: A reference to the Data Network that these settings apply to. + * Set the dataNetwork property: A reference to the data network that these settings apply to. * * @param dataNetwork the dataNetwork value to set. * @return the DataNetworkConfiguration object itself. @@ -132,9 +132,9 @@ public DataNetworkConfiguration withSessionAmbr(Ambr sessionAmbr) { /** * Get the fiveQi property: Default QoS Flow 5G QoS Indicator value. The 5QI identifies a specific QoS forwarding - * treatment to be provided to a flow. This must not be a standardized 5QI value selecting a GBR (Guaranteed Bit - * Rate) QoS. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85. - * See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5Qi parameter, and table 5.7.4-1 for the + * treatment to be provided to a flow. This must not be a standardized 5QI value corresponding to a GBR (guaranteed + * bit rate) QoS Flow. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, + * and 85. See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the * definition of which are the GBR 5QI values. * * @return the fiveQi value. @@ -145,9 +145,9 @@ public Integer fiveQi() { /** * Set the fiveQi property: Default QoS Flow 5G QoS Indicator value. The 5QI identifies a specific QoS forwarding - * treatment to be provided to a flow. This must not be a standardized 5QI value selecting a GBR (Guaranteed Bit - * Rate) QoS. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85. - * See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5Qi parameter, and table 5.7.4-1 for the + * treatment to be provided to a flow. This must not be a standardized 5QI value corresponding to a GBR (guaranteed + * bit rate) QoS Flow. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, + * and 85. See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the * definition of which are the GBR 5QI values. * * @param fiveQi the fiveQi value to set. @@ -188,7 +188,7 @@ public DataNetworkConfiguration withAllocationAndRetentionPriorityLevel( } /** - * Get the preemptionCapability property: Default QoS Flow preemption capability. The Preemption Capability of a QoS + * Get the preemptionCapability property: Default QoS Flow preemption capability. The preemption capability of a QoS * Flow controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section * 5.7.2.2 for a full description of the ARP parameters. * @@ -199,7 +199,7 @@ public PreemptionCapability preemptionCapability() { } /** - * Set the preemptionCapability property: Default QoS Flow preemption capability. The Preemption Capability of a QoS + * Set the preemptionCapability property: Default QoS Flow preemption capability. The preemption capability of a QoS * Flow controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section * 5.7.2.2 for a full description of the ARP parameters. * @@ -212,8 +212,8 @@ public DataNetworkConfiguration withPreemptionCapability(PreemptionCapability pr } /** - * Get the preemptionVulnerability property: Default QoS Flow preemption vulnerability. The Preemption Vulnerability - * of a QoS Flow controls whether it can be preempted by QoS Flow with a higher priority level. See 3GPP TS23.501 + * Get the preemptionVulnerability property: Default QoS Flow preemption vulnerability. The preemption vulnerability + * of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 * section 5.7.2.2 for a full description of the ARP parameters. * * @return the preemptionVulnerability value. @@ -223,8 +223,8 @@ public PreemptionVulnerability preemptionVulnerability() { } /** - * Set the preemptionVulnerability property: Default QoS Flow preemption vulnerability. The Preemption Vulnerability - * of a QoS Flow controls whether it can be preempted by QoS Flow with a higher priority level. See 3GPP TS23.501 + * Set the preemptionVulnerability property: Default QoS Flow preemption vulnerability. The preemption vulnerability + * of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 * section 5.7.2.2 for a full description of the ARP parameters. * * @param preemptionVulnerability the preemptionVulnerability value to set. @@ -281,7 +281,7 @@ public DataNetworkConfiguration withAdditionalAllowedSessionTypes( } /** - * Get the allowedServices property: List of Services that can be used as part of this Sim Policy. The list must not + * Get the allowedServices property: List of services that can be used as part of this SIM policy. The list must not * contain duplicate items and must contain at least one item. * * @return the allowedServices value. @@ -291,7 +291,7 @@ public List allowedServices() { } /** - * Set the allowedServices property: List of Services that can be used as part of this Sim Policy. The list must not + * Set the allowedServices property: List of services that can be used as part of this SIM policy. The list must not * contain duplicate items and must contain at least one item. * * @param allowedServices the allowedServices value to set. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkListResult.java index 5b92564d0863b..6cb96840a86c6 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkListResult.java @@ -13,7 +13,7 @@ @Fluent public final class DataNetworkListResult { /* - * A list of data networks in a resource group. + * A list of data networks. */ @JsonProperty(value = "value") private List value; @@ -25,7 +25,7 @@ public final class DataNetworkListResult { private String nextLink; /** - * Get the value property: A list of data networks in a resource group. + * Get the value property: A list of data networks. * * @return the value value. */ @@ -34,7 +34,7 @@ public List value() { } /** - * Set the value property: A list of data networks in a resource group. + * Set the value property: A list of data networks. * * @param value the value value to set. * @return the DataNetworkListResult object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkResourceId.java index 011d64b470b82..d05eb44673978 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworkResourceId.java @@ -8,17 +8,17 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Reference to a Data Network resource. */ +/** Reference to a data network resource. */ @Fluent public final class DataNetworkResourceId { /* - * Data Network resource ID. + * Data network resource ID. */ @JsonProperty(value = "id", required = true) private String id; /** - * Get the id property: Data Network resource ID. + * Get the id property: Data network resource ID. * * @return the id value. */ @@ -27,7 +27,7 @@ public String id() { } /** - * Set the id property: Data Network resource ID. + * Set the id property: Data network resource ID. * * @param id the id value to set. * @return the DataNetworkResourceId object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworks.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworks.java index 8c575ddc4807b..29af6a3d27bf4 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworks.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/DataNetworks.java @@ -11,11 +11,11 @@ /** Resource collection API of DataNetworks. */ public interface DataNetworks { /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -23,11 +23,11 @@ public interface DataNetworks { void delete(String resourceGroupName, String mobileNetworkName, String dataNetworkName); /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,35 +36,35 @@ public interface DataNetworks { void delete(String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context); /** - * Gets information about the specified mobile network dataNetwork. + * Gets information about the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network dataNetwork. + * @return information about the specified data network. */ DataNetwork get(String resourceGroupName, String mobileNetworkName, String dataNetworkName); /** - * Gets information about the specified mobile network dataNetwork. + * Gets information about the specified data network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param dataNetworkName The name of the mobile network dataNetwork. + * @param dataNetworkName The name of the data network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network dataNetwork along with {@link Response}. + * @return information about the specified data network along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context); /** - * Lists all dataNetworks in the mobile network. + * Lists all data networks in the mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -76,7 +76,7 @@ Response getWithResponse( PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName); /** - * Lists all dataNetworks in the mobile network. + * Lists all data networks in the mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -89,30 +89,30 @@ Response getWithResponse( PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName, Context context); /** - * Gets information about the specified mobile network dataNetwork. + * Gets information about the specified data network. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network dataNetwork along with {@link Response}. + * @return information about the specified data network along with {@link Response}. */ DataNetwork getById(String id); /** - * Gets information about the specified mobile network dataNetwork. + * Gets information about the specified data network. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network dataNetwork along with {@link Response}. + * @return information about the specified data network along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -122,7 +122,7 @@ Response getWithResponse( void deleteById(String id); /** - * Deletes the specified mobile network dataNetwork. + * Deletes the specified data network. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InterfaceProperties.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InterfaceProperties.java index 80ce35f1feb00..e93eadedf1d42 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InterfaceProperties.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InterfaceProperties.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.mobilenetwork.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; /** Interface properties. */ @@ -13,9 +12,9 @@ public final class InterfaceProperties { /* * The logical name for this interface. This should match one of the - * interfaces configured on your Azure Stack Edge machine. + * interfaces configured on your Azure Stack Edge device. */ - @JsonProperty(value = "name", required = true) + @JsonProperty(value = "name") private String name; /* @@ -38,7 +37,7 @@ public final class InterfaceProperties { /** * Get the name property: The logical name for this interface. This should match one of the interfaces configured on - * your Azure Stack Edge machine. + * your Azure Stack Edge device. * * @return the name value. */ @@ -48,7 +47,7 @@ public String name() { /** * Set the name property: The logical name for this interface. This should match one of the interfaces configured on - * your Azure Stack Edge machine. + * your Azure Stack Edge device. * * @param name the name value to set. * @return the InterfaceProperties object itself. @@ -124,12 +123,5 @@ public InterfaceProperties withIpv4Gateway(String ipv4Gateway) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (name() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property name in model InterfaceProperties")); - } } - - private static final ClientLogger LOGGER = new ClientLogger(InterfaceProperties.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/KeyVaultCertificate.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/KeyVaultCertificate.java new file mode 100644 index 0000000000000..d6c7b244d10dd --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/KeyVaultCertificate.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** An Azure key vault certificate. */ +@Fluent +public final class KeyVaultCertificate { + /* + * The certificate URL, unversioned. For example: + * https://contosovault.vault.azure.net/certificates/ingress. + */ + @JsonProperty(value = "certificateUrl") + private String certificateUrl; + + /** + * Get the certificateUrl property: The certificate URL, unversioned. For example: + * https://contosovault.vault.azure.net/certificates/ingress. + * + * @return the certificateUrl value. + */ + public String certificateUrl() { + return this.certificateUrl; + } + + /** + * Set the certificateUrl property: The certificate URL, unversioned. For example: + * https://contosovault.vault.azure.net/certificates/ingress. + * + * @param certificateUrl the certificateUrl value to set. + * @return the KeyVaultCertificate object itself. + */ + public KeyVaultCertificate withCertificateUrl(String certificateUrl) { + this.certificateUrl = certificateUrl; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/KeyVaultKey.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/KeyVaultKey.java new file mode 100644 index 0000000000000..30a7c3cc2e1ea --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/KeyVaultKey.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** An Azure key vault key. */ +@Fluent +public final class KeyVaultKey { + /* + * The key URL, unversioned. For example: + * https://contosovault.vault.azure.net/keys/azureKey. + */ + @JsonProperty(value = "keyUrl") + private String keyUrl; + + /** + * Get the keyUrl property: The key URL, unversioned. For example: + * https://contosovault.vault.azure.net/keys/azureKey. + * + * @return the keyUrl value. + */ + public String keyUrl() { + return this.keyUrl; + } + + /** + * Set the keyUrl property: The key URL, unversioned. For example: + * https://contosovault.vault.azure.net/keys/azureKey. + * + * @param keyUrl the keyUrl value to set. + * @return the KeyVaultKey object itself. + */ + public KeyVaultKey withKeyUrl(String keyUrl) { + this.keyUrl = keyUrl; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/LocalDiagnosticsAccessConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/LocalDiagnosticsAccessConfiguration.java new file mode 100644 index 0000000000000..b1e02544e33b5 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/LocalDiagnosticsAccessConfiguration.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The kubernetes ingress configuration to control access to packet core diagnostics over local APIs. */ +@Fluent +public final class LocalDiagnosticsAccessConfiguration { + /* + * The HTTPS server TLS certificate used to secure local access to + * diagnostics. + */ + @JsonProperty(value = "httpsServerCertificate") + private KeyVaultCertificate httpsServerCertificate; + + /** + * Get the httpsServerCertificate property: The HTTPS server TLS certificate used to secure local access to + * diagnostics. + * + * @return the httpsServerCertificate value. + */ + public KeyVaultCertificate httpsServerCertificate() { + return this.httpsServerCertificate; + } + + /** + * Set the httpsServerCertificate property: The HTTPS server TLS certificate used to secure local access to + * diagnostics. + * + * @param httpsServerCertificate the httpsServerCertificate value to set. + * @return the LocalDiagnosticsAccessConfiguration object itself. + */ + public LocalDiagnosticsAccessConfiguration withHttpsServerCertificate(KeyVaultCertificate httpsServerCertificate) { + this.httpsServerCertificate = httpsServerCertificate; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (httpsServerCertificate() != null) { + httpsServerCertificate().validate(); + } + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ManagedServiceIdentity.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ManagedServiceIdentity.java new file mode 100644 index 0000000000000..8ea776ec784cb --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ManagedServiceIdentity.java @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; +import java.util.UUID; + +/** Managed service identity (system assigned and/or user assigned identities). */ +@Fluent +public class ManagedServiceIdentity { + /* + * The service principal ID of the system assigned identity. This property + * will only be provided for a system assigned identity. + */ + @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) + private UUID principalId; + + /* + * The tenant ID of the system assigned identity. This property will only + * be provided for a system assigned identity. + */ + @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) + private UUID tenantId; + + /* + * Type of managed service identity (where both SystemAssigned and + * UserAssigned types are allowed). + */ + @JsonProperty(value = "type", required = true) + private ManagedServiceIdentityType type; + + /* + * The set of user assigned identities associated with the resource. The + * userAssignedIdentities dictionary keys will be ARM resource ids in the + * form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + * The dictionary values can be empty objects ({}) in requests. + */ + @JsonProperty(value = "userAssignedIdentities") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map userAssignedIdentities; + + /** + * Get the principalId property: The service principal ID of the system assigned identity. This property will only + * be provided for a system assigned identity. + * + * @return the principalId value. + */ + public UUID principalId() { + return this.principalId; + } + + /** + * Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for + * a system assigned identity. + * + * @return the tenantId value. + */ + public UUID tenantId() { + return this.tenantId; + } + + /** + * Get the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are + * allowed). + * + * @return the type value. + */ + public ManagedServiceIdentityType type() { + return this.type; + } + + /** + * Set the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are + * allowed). + * + * @param type the type value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withType(ManagedServiceIdentityType type) { + this.type = type; + return this; + } + + /** + * Get the userAssignedIdentities property: The set of user assigned identities associated with the resource. The + * userAssignedIdentities dictionary keys will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + * The dictionary values can be empty objects ({}) in requests. + * + * @return the userAssignedIdentities value. + */ + public Map userAssignedIdentities() { + return this.userAssignedIdentities; + } + + /** + * Set the userAssignedIdentities property: The set of user assigned identities associated with the resource. The + * userAssignedIdentities dictionary keys will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + * The dictionary values can be empty objects ({}) in requests. + * + * @param userAssignedIdentities the userAssignedIdentities value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withUserAssignedIdentities(Map userAssignedIdentities) { + this.userAssignedIdentities = userAssignedIdentities; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (type() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property type in model ManagedServiceIdentity")); + } + if (userAssignedIdentities() != null) { + userAssignedIdentities() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ManagedServiceIdentity.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ManagedServiceIdentityType.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ManagedServiceIdentityType.java new file mode 100644 index 0000000000000..9c48e82494834 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ManagedServiceIdentityType.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for ManagedServiceIdentityType. */ +public final class ManagedServiceIdentityType extends ExpandableStringEnum { + /** Static value None for ManagedServiceIdentityType. */ + public static final ManagedServiceIdentityType NONE = fromString("None"); + + /** Static value SystemAssigned for ManagedServiceIdentityType. */ + public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); + + /** Static value UserAssigned for ManagedServiceIdentityType. */ + public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned"); + + /** Static value SystemAssigned,UserAssigned for ManagedServiceIdentityType. */ + public static final ManagedServiceIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED = + fromString("SystemAssigned,UserAssigned"); + + /** + * Creates or finds a ManagedServiceIdentityType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ManagedServiceIdentityType. + */ + @JsonCreator + public static ManagedServiceIdentityType fromString(String name) { + return fromString(name, ManagedServiceIdentityType.class); + } + + /** + * Gets known ManagedServiceIdentityType values. + * + * @return known ManagedServiceIdentityType values. + */ + public static Collection values() { + return values(ManagedServiceIdentityType.class); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetwork.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetwork.java index 78e2815df31f0..88f21c33ae96c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetwork.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetwork.java @@ -63,7 +63,7 @@ public interface MobileNetwork { /** * Gets the publicLandMobileNetworkIdentifier property: 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 + * 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. * @@ -92,6 +92,13 @@ public interface MobileNetwork { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.MobileNetworkInner object. * @@ -144,12 +151,12 @@ interface WithResourceGroup { interface WithPublicLandMobileNetworkIdentifier { /** * Specifies the publicLandMobileNetworkIdentifier property: The unique public land mobile network - * identifier for the network. This is made up of the Mobile Country Code and Mobile Network Code, as + * 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.. * * @param publicLandMobileNetworkIdentifier 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 + * 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. * @return the next definition stage. @@ -240,22 +247,22 @@ interface WithTags { MobileNetwork refresh(Context context); /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call. + * @return response for list SIM IDs API service call. */ SimIdListResult listSimIds(); /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call. + * @return response for list SIM IDs API service call. */ SimIdListResult listSimIds(Context context); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkResourceId.java index 8ec1ab816a486..9cf8a416d9994 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkResourceId.java @@ -8,17 +8,17 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Reference to a Mobile Network resource. */ +/** Reference to a mobile network resource. */ @Fluent public final class MobileNetworkResourceId { /* - * Mobile Network resource ID. + * Mobile network resource ID. */ @JsonProperty(value = "id", required = true) private String id; /** - * Get the id property: Mobile Network resource ID. + * Get the id property: Mobile network resource ID. * * @return the id value. */ @@ -27,7 +27,7 @@ public String id() { } /** - * Set the id property: Mobile Network resource ID. + * Set the id property: Mobile network resource ID. * * @param id the id value to set. * @return the MobileNetworkResourceId object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworks.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworks.java index 2fde8a0481827..8e3d109ca7bc0 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworks.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworks.java @@ -103,19 +103,19 @@ Response getByResourceGroupWithResponse( PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call. + * @return response for list SIM IDs API service call. */ SimIdListResult listSimIds(String resourceGroupName, String mobileNetworkName); /** - * List sim ids under a mobile network. + * Lists the IDs of all provisioned SIMs in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -123,7 +123,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list sim ids API service call. + * @return response for list SIM IDs API service call. */ SimIdListResult listSimIds(String resourceGroupName, String mobileNetworkName, Context context); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptConfiguration.java index ae00fe35cb87c..d8b51f8b6c676 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptConfiguration.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptConfiguration.java @@ -7,11 +7,11 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The Network Address and Port Translation settings to use for the attached data network. */ +/** The network address and port translation settings to use for the attached data network. */ @Fluent public final class NaptConfiguration { /* - * Whether NAPT is enabled for connections to this attachedDataNetwork. + * Whether NAPT is enabled for connections to this attached data network. */ @JsonProperty(value = "enabled") private NaptEnabled enabled; @@ -20,8 +20,10 @@ public final class NaptConfiguration { * Range of port numbers to use as translated ports on each translated * address. * If not specified and NAPT is enabled, this range defaults to 1,024 - - * 65,535. (Ports under 1,024 should not be used because these are special - * purpose ports reserved by IANA.) + * 49,999. + * (Ports under 1,024 should not be used because these are special purpose + * ports reserved by IANA. Ports 50,000 and above are reserved for non-NAPT + * use.) */ @JsonProperty(value = "portRange") private PortRange portRange; @@ -36,7 +38,8 @@ public final class NaptConfiguration { /* * Maximum number of UDP and TCP pinholes that can be open simultaneously - * on the core interface. + * on the core interface. For 5G networks, this is the N6 interface. For 4G + * networks, this is the SGi interface. */ @JsonProperty(value = "pinholeLimits") private Integer pinholeLimits; @@ -49,7 +52,7 @@ public final class NaptConfiguration { private PinholeTimeouts pinholeTimeouts; /** - * Get the enabled property: Whether NAPT is enabled for connections to this attachedDataNetwork. + * Get the enabled property: Whether NAPT is enabled for connections to this attached data network. * * @return the enabled value. */ @@ -58,7 +61,7 @@ public NaptEnabled enabled() { } /** - * Set the enabled property: Whether NAPT is enabled for connections to this attachedDataNetwork. + * Set the enabled property: Whether NAPT is enabled for connections to this attached data network. * * @param enabled the enabled value to set. * @return the NaptConfiguration object itself. @@ -70,8 +73,8 @@ public NaptConfiguration withEnabled(NaptEnabled enabled) { /** * Get the portRange property: Range of port numbers to use as translated ports on each translated address. If not - * specified and NAPT is enabled, this range defaults to 1,024 - 65,535. (Ports under 1,024 should not be used - * because these are special purpose ports reserved by IANA.). + * specified and NAPT is enabled, this range defaults to 1,024 - 49,999. (Ports under 1,024 should not be used + * because these are special purpose ports reserved by IANA. Ports 50,000 and above are reserved for non-NAPT use.). * * @return the portRange value. */ @@ -81,8 +84,8 @@ public PortRange portRange() { /** * Set the portRange property: Range of port numbers to use as translated ports on each translated address. If not - * specified and NAPT is enabled, this range defaults to 1,024 - 65,535. (Ports under 1,024 should not be used - * because these are special purpose ports reserved by IANA.). + * specified and NAPT is enabled, this range defaults to 1,024 - 49,999. (Ports under 1,024 should not be used + * because these are special purpose ports reserved by IANA. Ports 50,000 and above are reserved for non-NAPT use.). * * @param portRange the portRange value to set. * @return the NaptConfiguration object itself. @@ -116,7 +119,7 @@ public NaptConfiguration withPortReuseHoldTime(PortReuseHoldTimes portReuseHoldT /** * Get the pinholeLimits property: Maximum number of UDP and TCP pinholes that can be open simultaneously on the - * core interface. + * core interface. For 5G networks, this is the N6 interface. For 4G networks, this is the SGi interface. * * @return the pinholeLimits value. */ @@ -126,7 +129,7 @@ public Integer pinholeLimits() { /** * Set the pinholeLimits property: Maximum number of UDP and TCP pinholes that can be open simultaneously on the - * core interface. + * core interface. For 5G networks, this is the N6 interface. For 4G networks, this is the SGi interface. * * @param pinholeLimits the pinholeLimits value to set. * @return the NaptConfiguration object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptEnabled.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptEnabled.java index b4e56304f7475..dc6b52414cff5 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptEnabled.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/NaptEnabled.java @@ -27,7 +27,11 @@ public static NaptEnabled fromString(String name) { return fromString(name, NaptEnabled.class); } - /** @return known NaptEnabled values. */ + /** + * Gets known NaptEnabled values. + * + * @return known NaptEnabled values. + */ public static Collection values() { return values(NaptEnabled.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlane.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlane.java index 0207fedc1d784..588e64cbd3ced 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlane.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlane.java @@ -47,6 +47,13 @@ public interface PacketCoreControlPlane { */ Map tags(); + /** + * Gets the identity property: The identity used to retrieve the ingress certificate from Azure key vault. + * + * @return the identity value. + */ + ManagedServiceIdentity identity(); + /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * @@ -62,21 +69,21 @@ public interface PacketCoreControlPlane { ProvisioningState provisioningState(); /** - * Gets the mobileNetwork property: Mobile network that this packet core control plane belongs to. + * Gets the mobileNetwork property: Mobile network in which this packet core control plane is deployed. * * @return the mobileNetwork value. */ MobileNetworkResourceId mobileNetwork(); /** - * Gets the customLocation property: Azure ARC custom location where the packet core is deployed. + * Gets the platform property: The platform where the packet core is deployed. * - * @return the customLocation value. + * @return the platform value. */ - CustomLocationResourceId customLocation(); + PlatformConfiguration platform(); /** - * Gets the coreNetworkTechnology property: The core network technology generation. + * Gets the coreNetworkTechnology property: The core network technology generation (5G core or EPC / 4G core). * * @return the coreNetworkTechnology value. */ @@ -90,13 +97,37 @@ public interface PacketCoreControlPlane { String version(); /** - * Gets the controlPlaneAccessInterface property: The control plane interface on the access network. In 5G networks - * this is called as N2 interface whereas in 4G networks this is called as S1-MME interface. + * Gets the controlPlaneAccessInterface property: The control plane interface on the access network. For 5G + * networks, this is the N2 interface. For 4G networks, this is the S1-MME interface. * * @return the controlPlaneAccessInterface value. */ InterfaceProperties controlPlaneAccessInterface(); + /** + * Gets the sku property: The SKU defining the throughput and SIM allowances for this packet core control plane + * deployment. + * + * @return the sku value. + */ + BillingSku sku(); + + /** + * Gets the localDiagnosticsAccess property: The kubernetes ingress configuration to control access to packet core + * diagnostics over local APIs. + * + * @return the localDiagnosticsAccess value. + */ + LocalDiagnosticsAccessConfiguration localDiagnosticsAccess(); + + /** + * Gets the interopSettings property: Settings to allow interoperability with third party components e.g. RANs and + * UEs. + * + * @return the interopSettings value. + */ + Object interopSettings(); + /** * Gets the region of the resource. * @@ -111,6 +142,13 @@ public interface PacketCoreControlPlane { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreControlPlaneInner object. * @@ -125,6 +163,7 @@ interface Definition DefinitionStages.WithResourceGroup, DefinitionStages.WithMobileNetwork, DefinitionStages.WithControlPlaneAccessInterface, + DefinitionStages.WithSku, DefinitionStages.WithCreate { } /** The PacketCoreControlPlane definition stages. */ @@ -163,9 +202,10 @@ interface WithResourceGroup { /** The stage of the PacketCoreControlPlane definition allowing to specify mobileNetwork. */ interface WithMobileNetwork { /** - * Specifies the mobileNetwork property: Mobile network that this packet core control plane belongs to. + * Specifies the mobileNetwork property: Mobile network in which this packet core control plane is + * deployed.. * - * @param mobileNetwork Mobile network that this packet core control plane belongs to. + * @param mobileNetwork Mobile network in which this packet core control plane is deployed. * @return the next definition stage. */ WithControlPlaneAccessInterface withMobileNetwork(MobileNetworkResourceId mobileNetwork); @@ -173,14 +213,26 @@ interface WithMobileNetwork { /** The stage of the PacketCoreControlPlane definition allowing to specify controlPlaneAccessInterface. */ interface WithControlPlaneAccessInterface { /** - * Specifies the controlPlaneAccessInterface property: The control plane interface on the access network. In - * 5G networks this is called as N2 interface whereas in 4G networks this is called as S1-MME interface.. + * Specifies the controlPlaneAccessInterface property: The control plane interface on the access network. + * For 5G networks, this is the N2 interface. For 4G networks, this is the S1-MME interface.. * - * @param controlPlaneAccessInterface The control plane interface on the access network. In 5G networks this - * is called as N2 interface whereas in 4G networks this is called as S1-MME interface. + * @param controlPlaneAccessInterface The control plane interface on the access network. For 5G networks, + * this is the N2 interface. For 4G networks, this is the S1-MME interface. * @return the next definition stage. */ - WithCreate withControlPlaneAccessInterface(InterfaceProperties controlPlaneAccessInterface); + WithSku withControlPlaneAccessInterface(InterfaceProperties controlPlaneAccessInterface); + } + /** The stage of the PacketCoreControlPlane definition allowing to specify sku. */ + interface WithSku { + /** + * Specifies the sku property: The SKU defining the throughput and SIM allowances for this packet core + * control plane deployment.. + * + * @param sku The SKU defining the throughput and SIM allowances for this packet core control plane + * deployment. + * @return the next definition stage. + */ + WithCreate withSku(BillingSku sku); } /** * The stage of the PacketCoreControlPlane definition which contains all the minimum required properties for the @@ -188,9 +240,12 @@ interface WithControlPlaneAccessInterface { */ interface WithCreate extends DefinitionStages.WithTags, - DefinitionStages.WithCustomLocation, + DefinitionStages.WithIdentity, + DefinitionStages.WithPlatform, DefinitionStages.WithCoreNetworkTechnology, - DefinitionStages.WithVersion { + DefinitionStages.WithVersion, + DefinitionStages.WithLocalDiagnosticsAccess, + DefinitionStages.WithInteropSettings { /** * Executes the create request. * @@ -216,22 +271,34 @@ interface WithTags { */ WithCreate withTags(Map tags); } - /** The stage of the PacketCoreControlPlane definition allowing to specify customLocation. */ - interface WithCustomLocation { + /** The stage of the PacketCoreControlPlane definition allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: The identity used to retrieve the ingress certificate from Azure key + * vault.. + * + * @param identity The identity used to retrieve the ingress certificate from Azure key vault. + * @return the next definition stage. + */ + WithCreate withIdentity(ManagedServiceIdentity identity); + } + /** The stage of the PacketCoreControlPlane definition allowing to specify platform. */ + interface WithPlatform { /** - * Specifies the customLocation property: Azure ARC custom location where the packet core is deployed.. + * Specifies the platform property: The platform where the packet core is deployed.. * - * @param customLocation Azure ARC custom location where the packet core is deployed. + * @param platform The platform where the packet core is deployed. * @return the next definition stage. */ - WithCreate withCustomLocation(CustomLocationResourceId customLocation); + WithCreate withPlatform(PlatformConfiguration platform); } /** The stage of the PacketCoreControlPlane definition allowing to specify coreNetworkTechnology. */ interface WithCoreNetworkTechnology { /** - * Specifies the coreNetworkTechnology property: The core network technology generation.. + * Specifies the coreNetworkTechnology property: The core network technology generation (5G core or EPC / 4G + * core).. * - * @param coreNetworkTechnology The core network technology generation. + * @param coreNetworkTechnology The core network technology generation (5G core or EPC / 4G core). * @return the next definition stage. */ WithCreate withCoreNetworkTechnology(CoreNetworkType coreNetworkTechnology); @@ -246,6 +313,29 @@ interface WithVersion { */ WithCreate withVersion(String version); } + /** The stage of the PacketCoreControlPlane definition allowing to specify localDiagnosticsAccess. */ + interface WithLocalDiagnosticsAccess { + /** + * Specifies the localDiagnosticsAccess property: The kubernetes ingress configuration to control access to + * packet core diagnostics over local APIs.. + * + * @param localDiagnosticsAccess The kubernetes ingress configuration to control access to packet core + * diagnostics over local APIs. + * @return the next definition stage. + */ + WithCreate withLocalDiagnosticsAccess(LocalDiagnosticsAccessConfiguration localDiagnosticsAccess); + } + /** The stage of the PacketCoreControlPlane definition allowing to specify interopSettings. */ + interface WithInteropSettings { + /** + * Specifies the interopSettings property: Settings to allow interoperability with third party components + * e.g. RANs and UEs.. + * + * @param interopSettings Settings to allow interoperability with third party components e.g. RANs and UEs. + * @return the next definition stage. + */ + WithCreate withInteropSettings(Object interopSettings); + } } /** * Begins update for the PacketCoreControlPlane resource. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlanes.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlanes.java index c915532d83afb..87e48db5c6944 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlanes.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlanes.java @@ -60,7 +60,7 @@ Response getByResourceGroupWithResponse( String resourceGroupName, String packetCoreControlPlaneName, Context context); /** - * Lists all the packetCoreControlPlanes in a subscription. + * Lists all the packet core control planes in a subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -70,7 +70,7 @@ Response getByResourceGroupWithResponse( PagedIterable list(); /** - * Lists all the packetCoreControlPlanes in a subscription. + * Lists all the packet core control planes in a subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -82,7 +82,7 @@ Response getByResourceGroupWithResponse( PagedIterable list(Context context); /** - * Lists all the packetCoreControlPlanes in a resource group. + * Lists all the packet core control planes in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -94,7 +94,7 @@ Response getByResourceGroupWithResponse( PagedIterable listByResourceGroup(String resourceGroupName); /** - * Lists all the packetCoreControlPlanes in a resource group. + * Lists all the packet core control planes in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -106,6 +106,30 @@ Response getByResourceGroupWithResponse( */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); + /** + * Get the set of packet core control plane versions that are currently supported. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the set of packet core control plane versions that are currently supported. + */ + SupportedPacketCoreControlPlaneVersionResult supportedVersions(String resourceGroupName); + + /** + * Get the set of packet core control plane versions that are currently supported. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the set of packet core control plane versions that are currently supported along with {@link Response}. + */ + Response supportedVersionsWithResponse( + String resourceGroupName, Context context); + /** * Gets information about the specified packet core control plane. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlane.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlane.java index 831f1be922745..448ec3b9edd09 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlane.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlane.java @@ -62,8 +62,8 @@ public interface PacketCoreDataPlane { ProvisioningState provisioningState(); /** - * Gets the userPlaneAccessInterface property: The user plane interface on the access network. In 5G networks this - * is called as N3 interface whereas in 4G networks this is called the S1-U interface. + * Gets the userPlaneAccessInterface property: The user plane interface on the access network. For 5G networks, this + * is the N3 interface. For 4G networks, this is the S1-U interface. * * @return the userPlaneAccessInterface value. */ @@ -83,6 +83,13 @@ public interface PacketCoreDataPlane { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreDataPlaneInner object. * @@ -136,11 +143,11 @@ WithUserPlaneAccessInterface withExistingPacketCoreControlPlane( /** The stage of the PacketCoreDataPlane definition allowing to specify userPlaneAccessInterface. */ interface WithUserPlaneAccessInterface { /** - * Specifies the userPlaneAccessInterface property: The user plane interface on the access network. In 5G - * networks this is called as N3 interface whereas in 4G networks this is called the S1-U interface.. + * Specifies the userPlaneAccessInterface property: The user plane interface on the access network. For 5G + * networks, this is the N3 interface. For 4G networks, this is the S1-U interface.. * - * @param userPlaneAccessInterface The user plane interface on the access network. In 5G networks this is - * called as N3 interface whereas in 4G networks this is called the S1-U interface. + * @param userPlaneAccessInterface The user plane interface on the access network. For 5G networks, this is + * the N3 interface. For 4G networks, this is the S1-U interface. * @return the next definition stage. */ WithCreate withUserPlaneAccessInterface(InterfaceProperties userPlaneAccessInterface); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlanes.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlanes.java index a2932d11b513a..3ab38250412a5 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlanes.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlanes.java @@ -66,7 +66,7 @@ Response getWithResponse( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, Context context); /** - * Lists all the packetCoreDataPlanes associated with a packetCoreControlPlane. + * Lists all the packet core data planes associated with a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. @@ -79,7 +79,7 @@ PagedIterable listByPacketCoreControlPlane( String resourceGroupName, String packetCoreControlPlaneName); /** - * Lists all the packetCoreDataPlanes associated with a packetCoreControlPlane. + * Lists all the packet core data planes associated with a packet core control plane. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleConfiguration.java index d33ecb1024216..8518b68820b35 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleConfiguration.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleConfiguration.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** PCC rule configuration. */ +/** Data flow policy rule configuration. */ @Fluent public final class PccRuleConfiguration { /* - * The name of the rule. This must be unique within the parent Service. You + * The name of the rule. This must be unique within the parent service. You * must not use any of the following reserved strings - `default`, * `requested` or `service`. */ @@ -21,35 +21,36 @@ public final class PccRuleConfiguration { private String ruleName; /* - * A precedence value that is used to decide between PCC Rules when - * identifying the QoS values to use for a particular Sim. A lower value - * means a higher priority. This value should be unique among all PCC Rules - * configured in the Mobile Network. + * A precedence value that is used to decide between data flow policy rules + * when identifying the QoS values to use for a particular SIM. A lower + * value means a higher priority. This value should be unique among all + * data flow policy rules configured in the mobile network. */ @JsonProperty(value = "rulePrecedence", required = true) private int rulePrecedence; /* * The QoS policy to use for packets matching this rule. If this field is - * null then the Service will define the QoS settings. + * null then the parent service will define the QoS settings. */ @JsonProperty(value = "ruleQosPolicy") private PccRuleQosPolicy ruleQosPolicy; /* - * Determines whether flows that match this PCC Rule are permitted. + * Determines whether flows that match this data flow policy rule are + * permitted. */ @JsonProperty(value = "trafficControl") private TrafficControlPermission trafficControl; /* - * The set of service data flow templates to use for this PCC Rule. + * The set of data flow templates to use for this data flow policy rule. */ @JsonProperty(value = "serviceDataFlowTemplates", required = true) private List serviceDataFlowTemplates; /** - * Get the ruleName property: The name of the rule. This must be unique within the parent Service. You must not use + * Get the ruleName property: The name of the rule. This must be unique within the parent service. You must not use * any of the following reserved strings - `default`, `requested` or `service`. * * @return the ruleName value. @@ -59,7 +60,7 @@ public String ruleName() { } /** - * Set the ruleName property: The name of the rule. This must be unique within the parent Service. You must not use + * Set the ruleName property: The name of the rule. This must be unique within the parent service. You must not use * any of the following reserved strings - `default`, `requested` or `service`. * * @param ruleName the ruleName value to set. @@ -71,9 +72,9 @@ public PccRuleConfiguration withRuleName(String ruleName) { } /** - * Get the rulePrecedence property: A precedence value that is used to decide between PCC Rules when identifying the - * QoS values to use for a particular Sim. A lower value means a higher priority. This value should be unique among - * all PCC Rules configured in the Mobile Network. + * Get the rulePrecedence property: A precedence value that is used to decide between data flow policy rules when + * identifying the QoS values to use for a particular SIM. A lower value means a higher priority. This value should + * be unique among all data flow policy rules configured in the mobile network. * * @return the rulePrecedence value. */ @@ -82,9 +83,9 @@ public int rulePrecedence() { } /** - * Set the rulePrecedence property: A precedence value that is used to decide between PCC Rules when identifying the - * QoS values to use for a particular Sim. A lower value means a higher priority. This value should be unique among - * all PCC Rules configured in the Mobile Network. + * Set the rulePrecedence property: A precedence value that is used to decide between data flow policy rules when + * identifying the QoS values to use for a particular SIM. A lower value means a higher priority. This value should + * be unique among all data flow policy rules configured in the mobile network. * * @param rulePrecedence the rulePrecedence value to set. * @return the PccRuleConfiguration object itself. @@ -96,7 +97,7 @@ public PccRuleConfiguration withRulePrecedence(int rulePrecedence) { /** * Get the ruleQosPolicy property: The QoS policy to use for packets matching this rule. If this field is null then - * the Service will define the QoS settings. + * the parent service will define the QoS settings. * * @return the ruleQosPolicy value. */ @@ -106,7 +107,7 @@ public PccRuleQosPolicy ruleQosPolicy() { /** * Set the ruleQosPolicy property: The QoS policy to use for packets matching this rule. If this field is null then - * the Service will define the QoS settings. + * the parent service will define the QoS settings. * * @param ruleQosPolicy the ruleQosPolicy value to set. * @return the PccRuleConfiguration object itself. @@ -117,7 +118,7 @@ public PccRuleConfiguration withRuleQosPolicy(PccRuleQosPolicy ruleQosPolicy) { } /** - * Get the trafficControl property: Determines whether flows that match this PCC Rule are permitted. + * Get the trafficControl property: Determines whether flows that match this data flow policy rule are permitted. * * @return the trafficControl value. */ @@ -126,7 +127,7 @@ public TrafficControlPermission trafficControl() { } /** - * Set the trafficControl property: Determines whether flows that match this PCC Rule are permitted. + * Set the trafficControl property: Determines whether flows that match this data flow policy rule are permitted. * * @param trafficControl the trafficControl value to set. * @return the PccRuleConfiguration object itself. @@ -137,7 +138,7 @@ public PccRuleConfiguration withTrafficControl(TrafficControlPermission trafficC } /** - * Get the serviceDataFlowTemplates property: The set of service data flow templates to use for this PCC Rule. + * Get the serviceDataFlowTemplates property: The set of data flow templates to use for this data flow policy rule. * * @return the serviceDataFlowTemplates value. */ @@ -146,7 +147,7 @@ public List serviceDataFlowTemplates() { } /** - * Set the serviceDataFlowTemplates property: The set of service data flow templates to use for this PCC Rule. + * Set the serviceDataFlowTemplates property: The set of data flow templates to use for this data flow policy rule. * * @param serviceDataFlowTemplates the serviceDataFlowTemplates value to set. * @return the PccRuleConfiguration object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleQosPolicy.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleQosPolicy.java index d7d0d049e2f08..fd91f99aa23c4 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleQosPolicy.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PccRuleQosPolicy.java @@ -7,21 +7,22 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** PCC rule QoS policy. */ +/** Data flow policy rule QoS policy. */ @Fluent public final class PccRuleQosPolicy extends QosPolicy { /* - * The Guaranteed Bit Rate (GBR) for all service data flows that use this - * PCC Rule. This is an optional setting. If you do not provide a value, - * there will be no GBR set for the PCC Rule that uses this QoS definition. + * The guaranteed bit rate (GBR) for all service data flows that use this + * data flow policy rule. This is an optional setting. If you do not + * provide a value, there will be no GBR set for the data flow policy rule + * that uses this QoS definition. */ @JsonProperty(value = "guaranteedBitRate") private Ambr guaranteedBitRate; /** - * Get the guaranteedBitRate property: The Guaranteed Bit Rate (GBR) for all service data flows that use this PCC - * Rule. This is an optional setting. If you do not provide a value, there will be no GBR set for the PCC Rule that - * uses this QoS definition. + * Get the guaranteedBitRate property: The guaranteed bit rate (GBR) for all service data flows that use this data + * flow policy rule. This is an optional setting. If you do not provide a value, there will be no GBR set for the + * data flow policy rule that uses this QoS definition. * * @return the guaranteedBitRate value. */ @@ -30,9 +31,9 @@ public Ambr guaranteedBitRate() { } /** - * Set the guaranteedBitRate property: The Guaranteed Bit Rate (GBR) for all service data flows that use this PCC - * Rule. This is an optional setting. If you do not provide a value, there will be no GBR set for the PCC Rule that - * uses this QoS definition. + * Set the guaranteedBitRate property: The guaranteed bit rate (GBR) for all service data flows that use this data + * flow policy rule. This is an optional setting. If you do not provide a value, there will be no GBR set for the + * data flow policy rule that uses this QoS definition. * * @param guaranteedBitRate the guaranteedBitRate value to set. * @return the PccRuleQosPolicy object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PduSessionType.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PduSessionType.java index a11e2f1f5b64d..c9f0ece4d23cd 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PduSessionType.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PduSessionType.java @@ -27,7 +27,11 @@ public static PduSessionType fromString(String name) { return fromString(name, PduSessionType.class); } - /** @return known PduSessionType values. */ + /** + * Gets known PduSessionType values. + * + * @return known PduSessionType values. + */ public static Collection values() { return values(PduSessionType.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PinholeTimeouts.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PinholeTimeouts.java index 2b55d28d0cd39..f5414afbb84dc 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PinholeTimeouts.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PinholeTimeouts.java @@ -12,28 +12,28 @@ public final class PinholeTimeouts { /* * Pinhole timeout for TCP pinholes in seconds. Default for TCP is 2 hours - * 4 minutes per RFC 5382 section 5. + * 4 minutes, as per RFC 5382 section 5. */ @JsonProperty(value = "tcp") private Integer tcp; /* * Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 - * minutes per RFC 4787 section 4.3. + * minutes, as per RFC 4787 section 4.3. */ @JsonProperty(value = "udp") private Integer udp; /* * Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is - * 60 seconds per RFC 5508 section 3.2. + * 60 seconds, as per RFC 5508 section 3.2. */ @JsonProperty(value = "icmp") private Integer icmp; /** - * Get the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 2 hours 4 minutes per RFC - * 5382 section 5. + * Get the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 2 hours 4 minutes, as per + * RFC 5382 section 5. * * @return the tcp value. */ @@ -42,8 +42,8 @@ public Integer tcp() { } /** - * Set the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 2 hours 4 minutes per RFC - * 5382 section 5. + * Set the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 2 hours 4 minutes, as per + * RFC 5382 section 5. * * @param tcp the tcp value to set. * @return the PinholeTimeouts object itself. @@ -54,7 +54,7 @@ public PinholeTimeouts withTcp(Integer tcp) { } /** - * Get the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 minutes per RFC 4787 + * Get the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 minutes, as per RFC 4787 * section 4.3. * * @return the udp value. @@ -64,7 +64,7 @@ public Integer udp() { } /** - * Set the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 minutes per RFC 4787 + * Set the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 minutes, as per RFC 4787 * section 4.3. * * @param udp the udp value to set. @@ -76,8 +76,8 @@ public PinholeTimeouts withUdp(Integer udp) { } /** - * Get the icmp property: Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 60 seconds per RFC - * 5508 section 3.2. + * Get the icmp property: Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 60 seconds, as per + * RFC 5508 section 3.2. * * @return the icmp value. */ @@ -86,8 +86,8 @@ public Integer icmp() { } /** - * Set the icmp property: Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 60 seconds per RFC - * 5508 section 3.2. + * Set the icmp property: Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 60 seconds, as per + * RFC 5508 section 3.2. * * @param icmp the icmp value to set. * @return the PinholeTimeouts object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlatformConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlatformConfiguration.java new file mode 100644 index 0000000000000..1ed221baef30a --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlatformConfiguration.java @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The platform where the packet core is deployed. */ +@Fluent +public final class PlatformConfiguration { + /* + * The platform type where packet core is deployed. + */ + @JsonProperty(value = "type", required = true) + private PlatformType type; + + /* + * The Azure Stack Edge device where where the packet core is deployed. If + * the device is part of a fault tolerant pair, either device in the pair + * can be specified. + */ + @JsonProperty(value = "azureStackEdgeDevice") + private AzureStackEdgeDeviceResourceId azureStackEdgeDevice; + + /* + * Azure Arc connected cluster where the packet core is deployed. + */ + @JsonProperty(value = "connectedCluster") + private ConnectedClusterResourceId connectedCluster; + + /* + * Azure Arc custom location where the packet core is deployed. + */ + @JsonProperty(value = "customLocation") + private CustomLocationResourceId customLocation; + + /** + * Get the type property: The platform type where packet core is deployed. + * + * @return the type value. + */ + public PlatformType type() { + return this.type; + } + + /** + * Set the type property: The platform type where packet core is deployed. + * + * @param type the type value to set. + * @return the PlatformConfiguration object itself. + */ + public PlatformConfiguration withType(PlatformType type) { + this.type = type; + return this; + } + + /** + * Get the azureStackEdgeDevice property: The Azure Stack Edge device where where the packet core is deployed. If + * the device is part of a fault tolerant pair, either device in the pair can be specified. + * + * @return the azureStackEdgeDevice value. + */ + public AzureStackEdgeDeviceResourceId azureStackEdgeDevice() { + return this.azureStackEdgeDevice; + } + + /** + * Set the azureStackEdgeDevice property: The Azure Stack Edge device where where the packet core is deployed. If + * the device is part of a fault tolerant pair, either device in the pair can be specified. + * + * @param azureStackEdgeDevice the azureStackEdgeDevice value to set. + * @return the PlatformConfiguration object itself. + */ + public PlatformConfiguration withAzureStackEdgeDevice(AzureStackEdgeDeviceResourceId azureStackEdgeDevice) { + this.azureStackEdgeDevice = azureStackEdgeDevice; + return this; + } + + /** + * Get the connectedCluster property: Azure Arc connected cluster where the packet core is deployed. + * + * @return the connectedCluster value. + */ + public ConnectedClusterResourceId connectedCluster() { + return this.connectedCluster; + } + + /** + * Set the connectedCluster property: Azure Arc connected cluster where the packet core is deployed. + * + * @param connectedCluster the connectedCluster value to set. + * @return the PlatformConfiguration object itself. + */ + public PlatformConfiguration withConnectedCluster(ConnectedClusterResourceId connectedCluster) { + this.connectedCluster = connectedCluster; + return this; + } + + /** + * Get the customLocation property: Azure Arc custom location where the packet core is deployed. + * + * @return the customLocation value. + */ + public CustomLocationResourceId customLocation() { + return this.customLocation; + } + + /** + * Set the customLocation property: Azure Arc custom location where the packet core is deployed. + * + * @param customLocation the customLocation value to set. + * @return the PlatformConfiguration object itself. + */ + public PlatformConfiguration withCustomLocation(CustomLocationResourceId customLocation) { + this.customLocation = customLocation; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (type() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property type in model PlatformConfiguration")); + } + if (azureStackEdgeDevice() != null) { + azureStackEdgeDevice().validate(); + } + if (connectedCluster() != null) { + connectedCluster().validate(); + } + if (customLocation() != null) { + customLocation().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(PlatformConfiguration.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlatformType.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlatformType.java new file mode 100644 index 0000000000000..0a1cd365636d6 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlatformType.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for PlatformType. */ +public final class PlatformType extends ExpandableStringEnum { + /** Static value AKS-HCI for PlatformType. */ + public static final PlatformType AKS_HCI = fromString("AKS-HCI"); + + /** Static value BaseVM for PlatformType. */ + public static final PlatformType BASE_VM = fromString("BaseVM"); + + /** + * Creates or finds a PlatformType from its string representation. + * + * @param name a name to look for. + * @return the corresponding PlatformType. + */ + @JsonCreator + public static PlatformType fromString(String name) { + return fromString(name, PlatformType.class); + } + + /** + * Gets known PlatformType values. + * + * @return known PlatformType values. + */ + public static Collection values() { + return values(PlatformType.class); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlmnId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlmnId.java index a06aaa304bf4d..30f1938e6f64b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlmnId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlmnId.java @@ -8,23 +8,23 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Public Land Mobile Network (PLMN) ID. */ +/** Public land mobile network (PLMN) ID. */ @Fluent public final class PlmnId { /* - * Mobile Country Code (MCC). + * Mobile country code (MCC). */ @JsonProperty(value = "mcc", required = true) private String mcc; /* - * Mobile Network Code (MNC). + * Mobile network code (MNC). */ @JsonProperty(value = "mnc", required = true) private String mnc; /** - * Get the mcc property: Mobile Country Code (MCC). + * Get the mcc property: Mobile country code (MCC). * * @return the mcc value. */ @@ -33,7 +33,7 @@ public String mcc() { } /** - * Set the mcc property: Mobile Country Code (MCC). + * Set the mcc property: Mobile country code (MCC). * * @param mcc the mcc value to set. * @return the PlmnId object itself. @@ -44,7 +44,7 @@ public PlmnId withMcc(String mcc) { } /** - * Get the mnc property: Mobile Network Code (MNC). + * Get the mnc property: Mobile network code (MNC). * * @return the mnc value. */ @@ -53,7 +53,7 @@ public String mnc() { } /** - * Set the mnc property: Mobile Network Code (MNC). + * Set the mnc property: Mobile network code (MNC). * * @param mnc the mnc value to set. * @return the PlmnId object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortRange.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortRange.java index 7fd5fa3968af2..6435d6dcfc974 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortRange.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortRange.java @@ -9,8 +9,8 @@ /** * Range of port numbers to use as translated ports on each translated address. If not specified and NAPT is enabled, - * this range defaults to 1,024 - 65,535. (Ports under 1,024 should not be used because these are special purpose ports - * reserved by IANA.). + * this range defaults to 1,024 - 49,999. (Ports under 1,024 should not be used because these are special purpose ports + * reserved by IANA. Ports 50,000 and above are reserved for non-NAPT use.). */ @Fluent public final class PortRange { diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PreemptionCapability.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PreemptionCapability.java index 27bdb6fcda3bf..a36b13d426a6d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PreemptionCapability.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PreemptionCapability.java @@ -27,7 +27,11 @@ public static PreemptionCapability fromString(String name) { return fromString(name, PreemptionCapability.class); } - /** @return known PreemptionCapability values. */ + /** + * Gets known PreemptionCapability values. + * + * @return known PreemptionCapability values. + */ public static Collection values() { return values(PreemptionCapability.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PreemptionVulnerability.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PreemptionVulnerability.java index 8465b3eb68f82..4322aaf1151ca 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PreemptionVulnerability.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PreemptionVulnerability.java @@ -27,7 +27,11 @@ public static PreemptionVulnerability fromString(String name) { return fromString(name, PreemptionVulnerability.class); } - /** @return known PreemptionVulnerability values. */ + /** + * Gets known PreemptionVulnerability values. + * + * @return known PreemptionVulnerability values. + */ public static Collection values() { return values(PreemptionVulnerability.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ProvisioningState.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ProvisioningState.java index 63c39b43bcfbb..698725792e4a3 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ProvisioningState.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ProvisioningState.java @@ -42,7 +42,11 @@ public static ProvisioningState fromString(String name) { return fromString(name, ProvisioningState.class); } - /** @return known ProvisioningState values. */ + /** + * Gets known ProvisioningState values. + * + * @return known ProvisioningState values. + */ public static Collection values() { return values(ProvisioningState.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/QosPolicy.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/QosPolicy.java index f51cb5eb34725..87bf788c5e639 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/QosPolicy.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/QosPolicy.java @@ -12,13 +12,13 @@ @Fluent public class QosPolicy { /* - * QoS Flow 5G QoS Indicator value. The 5QI identifies a specific QoS + * QoS Flow 5G QoS Indicator value. The 5QI identifies a specific QoS * forwarding treatment to be provided to a flow. This must not be a - * standardized 5QI value selecting a GBR (Guaranteed Bit Rate) QoS. The - * illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, - * 76, 82, 83, 84, and 85. See 3GPP TS23.501 section 5.7.2.1 for a full - * description of the 5Qi parameter, and table 5.7.4-1 for the definition - * of which are the GBR 5QI values. + * standardized 5QI value corresponding to a GBR (guaranteed bit rate) QoS + * Flow. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, + * 73, 74, 75, 76, 82, 83, 84, and 85. See 3GPP TS23.501 section 5.7.2.1 + * for a full description of the 5QI parameter, and table 5.7.4-1 for the + * definition of which are the GBR 5QI values. */ @JsonProperty(value = "5qi") private Integer fiveQi; @@ -35,7 +35,7 @@ public class QosPolicy { private Integer allocationAndRetentionPriorityLevel; /* - * QoS Flow preemption capability. The Preemption Capability of a QoS Flow + * QoS Flow preemption capability. The preemption capability of a QoS Flow * controls whether it can preempt another QoS Flow with a lower priority * level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the * ARP parameters. @@ -44,8 +44,8 @@ public class QosPolicy { private PreemptionCapability preemptionCapability; /* - * QoS Flow preemption vulnerability. The Preemption Vulnerability of a - * QoS Flow controls whether it can be preempted by QoS Flow with a higher + * QoS Flow preemption vulnerability. The preemption vulnerability of a QoS + * Flow controls whether it can be preempted by a QoS Flow with a higher * priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description * of the ARP parameters. */ @@ -53,18 +53,18 @@ public class QosPolicy { private PreemptionVulnerability preemptionVulnerability; /* - * The Maximum Bit Rate (MBR) for all service data flows that use this PCC - * Rule or Service. + * The maximum bit rate (MBR) for all service data flows that use this data + * flow policy rule or service. */ @JsonProperty(value = "maximumBitRate", required = true) private Ambr maximumBitRate; /** * Get the fiveQi property: QoS Flow 5G QoS Indicator value. The 5QI identifies a specific QoS forwarding treatment - * to be provided to a flow. This must not be a standardized 5QI value selecting a GBR (Guaranteed Bit Rate) QoS. - * The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85. See 3GPP - * TS23.501 section 5.7.2.1 for a full description of the 5Qi parameter, and table 5.7.4-1 for the definition of - * which are the GBR 5QI values. + * to be provided to a flow. This must not be a standardized 5QI value corresponding to a GBR (guaranteed bit rate) + * QoS Flow. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85. See + * 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition + * of which are the GBR 5QI values. * * @return the fiveQi value. */ @@ -74,10 +74,10 @@ public Integer fiveQi() { /** * Set the fiveQi property: QoS Flow 5G QoS Indicator value. The 5QI identifies a specific QoS forwarding treatment - * to be provided to a flow. This must not be a standardized 5QI value selecting a GBR (Guaranteed Bit Rate) QoS. - * The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85. See 3GPP - * TS23.501 section 5.7.2.1 for a full description of the 5Qi parameter, and table 5.7.4-1 for the definition of - * which are the GBR 5QI values. + * to be provided to a flow. This must not be a standardized 5QI value corresponding to a GBR (guaranteed bit rate) + * QoS Flow. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85. See + * 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition + * of which are the GBR 5QI values. * * @param fiveQi the fiveQi value to set. * @return the QosPolicy object itself. @@ -114,7 +114,7 @@ public QosPolicy withAllocationAndRetentionPriorityLevel(Integer allocationAndRe } /** - * Get the preemptionCapability property: QoS Flow preemption capability. The Preemption Capability of a QoS Flow + * Get the preemptionCapability property: QoS Flow preemption capability. The preemption capability of a QoS Flow * controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section 5.7.2.2 * for a full description of the ARP parameters. * @@ -125,7 +125,7 @@ public PreemptionCapability preemptionCapability() { } /** - * Set the preemptionCapability property: QoS Flow preemption capability. The Preemption Capability of a QoS Flow + * Set the preemptionCapability property: QoS Flow preemption capability. The preemption capability of a QoS Flow * controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section 5.7.2.2 * for a full description of the ARP parameters. * @@ -138,9 +138,9 @@ public QosPolicy withPreemptionCapability(PreemptionCapability preemptionCapabil } /** - * Get the preemptionVulnerability property: QoS Flow preemption vulnerability. The Preemption Vulnerability of a - * QoS Flow controls whether it can be preempted by QoS Flow with a higher priority level. See 3GPP TS23.501 section - * 5.7.2.2 for a full description of the ARP parameters. + * Get the preemptionVulnerability property: QoS Flow preemption vulnerability. The preemption vulnerability of a + * QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 + * section 5.7.2.2 for a full description of the ARP parameters. * * @return the preemptionVulnerability value. */ @@ -149,9 +149,9 @@ public PreemptionVulnerability preemptionVulnerability() { } /** - * Set the preemptionVulnerability property: QoS Flow preemption vulnerability. The Preemption Vulnerability of a - * QoS Flow controls whether it can be preempted by QoS Flow with a higher priority level. See 3GPP TS23.501 section - * 5.7.2.2 for a full description of the ARP parameters. + * Set the preemptionVulnerability property: QoS Flow preemption vulnerability. The preemption vulnerability of a + * QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 + * section 5.7.2.2 for a full description of the ARP parameters. * * @param preemptionVulnerability the preemptionVulnerability value to set. * @return the QosPolicy object itself. @@ -162,8 +162,8 @@ public QosPolicy withPreemptionVulnerability(PreemptionVulnerability preemptionV } /** - * Get the maximumBitRate property: The Maximum Bit Rate (MBR) for all service data flows that use this PCC Rule or - * Service. + * Get the maximumBitRate property: The maximum bit rate (MBR) for all service data flows that use this data flow + * policy rule or service. * * @return the maximumBitRate value. */ @@ -172,8 +172,8 @@ public Ambr maximumBitRate() { } /** - * Set the maximumBitRate property: The Maximum Bit Rate (MBR) for all service data flows that use this PCC Rule or - * Service. + * Set the maximumBitRate property: The maximum bit rate (MBR) for all service data flows that use this data flow + * policy rule or service. * * @param maximumBitRate the maximumBitRate value to set. * @return the QosPolicy object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SdfDirection.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SdfDirection.java index f6de69f3e3933..bd2dabec2249b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SdfDirection.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SdfDirection.java @@ -30,7 +30,11 @@ public static SdfDirection fromString(String name) { return fromString(name, SdfDirection.class); } - /** @return known SdfDirection values. */ + /** + * Gets known SdfDirection values. + * + * @return known SdfDirection values. + */ public static Collection values() { return values(SdfDirection.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Service.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Service.java index 11b38d69c3617..832024387969b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Service.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Service.java @@ -64,8 +64,8 @@ public interface Service { /** * Gets the servicePrecedence property: A precedence value that is used to decide between services when identifying - * the QoS values to use for a particular Sim. A lower value means a higher priority. This value should be unique - * among all services configured in the Mobile Network. + * the QoS values to use for a particular SIM. A lower value means a higher priority. This value should be unique + * among all services configured in the mobile network. * * @return the servicePrecedence value. */ @@ -74,14 +74,14 @@ public interface Service { /** * Gets the serviceQosPolicy property: The QoS policy to use for packets matching this service. This can be * overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null - * then the UE's simPolicy will define the QoS settings. + * then the UE's SIM policy will define the QoS settings. * * @return the serviceQosPolicy value. */ QosPolicy serviceQosPolicy(); /** - * Gets the pccRules property: The set of PCC Rules that make up this service. + * Gets the pccRules property: The set of data flow policy rules that make up this service. * * @return the pccRules value. */ @@ -101,6 +101,13 @@ public interface Service { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.ServiceInner object. * @@ -155,12 +162,12 @@ interface WithParentResource { interface WithServicePrecedence { /** * Specifies the servicePrecedence property: A precedence value that is used to decide between services when - * identifying the QoS values to use for a particular Sim. A lower value means a higher priority. This value - * should be unique among all services configured in the Mobile Network.. + * identifying the QoS values to use for a particular SIM. A lower value means a higher priority. This value + * should be unique among all services configured in the mobile network.. * * @param servicePrecedence A precedence value that is used to decide between services when identifying the - * QoS values to use for a particular Sim. A lower value means a higher priority. This value should be - * unique among all services configured in the Mobile Network. + * QoS values to use for a particular SIM. A lower value means a higher priority. This value should be + * unique among all services configured in the mobile network. * @return the next definition stage. */ WithPccRules withServicePrecedence(int servicePrecedence); @@ -168,9 +175,9 @@ interface WithServicePrecedence { /** The stage of the Service definition allowing to specify pccRules. */ interface WithPccRules { /** - * Specifies the pccRules property: The set of PCC Rules that make up this service.. + * Specifies the pccRules property: The set of data flow policy rules that make up this service.. * - * @param pccRules The set of PCC Rules that make up this service. + * @param pccRules The set of data flow policy rules that make up this service. * @return the next definition stage. */ WithCreate withPccRules(List pccRules); @@ -210,11 +217,11 @@ interface WithServiceQosPolicy { /** * Specifies the serviceQosPolicy property: The QoS policy to use for packets matching this service. This * can be overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this - * field is null then the UE's simPolicy will define the QoS settings.. + * field is null then the UE's SIM policy will define the QoS settings.. * * @param serviceQosPolicy The QoS policy to use for packets matching this service. This can be overridden * for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null - * then the UE's simPolicy will define the QoS settings. + * then the UE's SIM policy will define the QoS settings. * @return the next definition stage. */ WithCreate withServiceQosPolicy(QosPolicy serviceQosPolicy); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceDataFlowTemplate.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceDataFlowTemplate.java index 2f0bfb0ad161d..304a395cbbd44 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceDataFlowTemplate.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceDataFlowTemplate.java @@ -9,13 +9,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Service data flow (SDF) template. */ +/** Data flow template. */ @Fluent public final class ServiceDataFlowTemplate { /* - * The name of the SDF template. This must be unique within the parent - * PccRuleConfiguration. You must not use any of the following reserved - * strings - `default`, `requested` or `service`. + * The name of the data flow template. This must be unique within the + * parent data flow policy rule. You must not use any of the following + * reserved strings - `default`, `requested` or `service`. */ @JsonProperty(value = "templateName", required = true) private String templateName; @@ -42,9 +42,10 @@ public final class ServiceDataFlowTemplate { /* * The remote IP address(es) to which UEs will connect for this flow. If * you want to allow connections on any IP address, use the value `any`. - * Otherwise, you must provide each of the remote IP addresses to which - * Fusion Core will connect for this flow. You must provide each IP address - * in CIDR notation, including the netmask (for example, 192.0.2.54/24). + * Otherwise, you must provide each of the remote IP addresses to which the + * packet core instance will connect for this flow. You must provide each + * IP address in CIDR notation, including the netmask (for example, + * 192.0.2.54/24). */ @JsonProperty(value = "remoteIpList", required = true) private List remoteIpList; @@ -61,9 +62,8 @@ public final class ServiceDataFlowTemplate { private List ports; /** - * Get the templateName property: The name of the SDF template. This must be unique within the parent - * PccRuleConfiguration. You must not use any of the following reserved strings - `default`, `requested` or - * `service`. + * Get the templateName property: The name of the data flow template. This must be unique within the parent data + * flow policy rule. You must not use any of the following reserved strings - `default`, `requested` or `service`. * * @return the templateName value. */ @@ -72,9 +72,8 @@ public String templateName() { } /** - * Set the templateName property: The name of the SDF template. This must be unique within the parent - * PccRuleConfiguration. You must not use any of the following reserved strings - `default`, `requested` or - * `service`. + * Set the templateName property: The name of the data flow template. This must be unique within the parent data + * flow policy rule. You must not use any of the following reserved strings - `default`, `requested` or `service`. * * @param templateName the templateName value to set. * @return the ServiceDataFlowTemplate object itself. @@ -135,8 +134,8 @@ public ServiceDataFlowTemplate withProtocol(List protocol) { /** * Get the remoteIpList property: The remote IP address(es) to which UEs will connect for this flow. If you want to * allow connections on any IP address, use the value `any`. Otherwise, you must provide each of the remote IP - * addresses to which Fusion Core will connect for this flow. You must provide each IP address in CIDR notation, - * including the netmask (for example, 192.0.2.54/24). + * addresses to which the packet core instance will connect for this flow. You must provide each IP address in CIDR + * notation, including the netmask (for example, 192.0.2.54/24). * * @return the remoteIpList value. */ @@ -147,8 +146,8 @@ public List remoteIpList() { /** * Set the remoteIpList property: The remote IP address(es) to which UEs will connect for this flow. If you want to * allow connections on any IP address, use the value `any`. Otherwise, you must provide each of the remote IP - * addresses to which Fusion Core will connect for this flow. You must provide each IP address in CIDR notation, - * including the netmask (for example, 192.0.2.54/24). + * addresses to which the packet core instance will connect for this flow. You must provide each IP address in CIDR + * notation, including the netmask (for example, 192.0.2.54/24). * * @param remoteIpList the remoteIpList value to set. * @return the ServiceDataFlowTemplate object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceListResult.java index 687abf6f6fd3a..8e571daa131ae 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceListResult.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Response for Services API service call. */ +/** Response for services API service call. */ @Fluent public final class ServiceListResult { /* - * A list of Services. + * A list of services. */ @JsonProperty(value = "value") private List value; @@ -25,7 +25,7 @@ public final class ServiceListResult { private String nextLink; /** - * Get the value property: A list of Services. + * Get the value property: A list of services. * * @return the value value. */ @@ -34,7 +34,7 @@ public List value() { } /** - * Set the value property: A list of Services. + * Set the value property: A list of services. * * @param value the value value to set. * @return the ServiceListResult object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceResourceId.java index dbd77cf042f58..7603bca66f488 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ServiceResourceId.java @@ -8,7 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Reference to a Service resource. */ +/** Reference to a service resource. */ @Fluent public final class ServiceResourceId { /* diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sim.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sim.java index d28c3247b2387..33c3feba5ad0b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sim.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sim.java @@ -4,12 +4,9 @@ package com.azure.resourcemanager.mobilenetwork.models; -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.mobilenetwork.fluent.models.SimInner; import java.util.List; -import java.util.Map; /** An immutable client-side representation of Sim. */ public interface Sim { @@ -35,79 +32,51 @@ public interface Sim { String type(); /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the provisioningState property: The provisioning state of the sim resource. + * Gets the provisioningState property: The provisioning state of the SIM resource. * * @return the provisioningState value. */ ProvisioningState provisioningState(); /** - * Gets the simState property: The state of the sim resource. + * Gets the simState property: The state of the SIM resource. * * @return the simState value. */ SimState simState(); /** - * Gets the internationalMobileSubscriberIdentity property: The International Mobile Subscriber Identity (IMSI) for - * the sim. + * Gets the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for + * the SIM. * * @return the internationalMobileSubscriberIdentity value. */ String internationalMobileSubscriberIdentity(); /** - * Gets the integratedCircuitCardIdentifier property: The Integrated Circuit Card ID (ICC Id) for the sim. + * Gets the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. * * @return the integratedCircuitCardIdentifier value. */ String integratedCircuitCardIdentifier(); /** - * Gets the authenticationKey property: The ki value for the sim. + * Gets the authenticationKey property: The Ki value for the SIM. * * @return the authenticationKey value. */ String authenticationKey(); /** - * Gets the operatorKeyCode property: The Opc value for the sim. + * Gets the operatorKeyCode property: The Opc value for the SIM. * * @return the operatorKeyCode value. */ String operatorKeyCode(); - /** - * Gets the mobileNetwork property: Mobile network that this sim belongs to. - * - * @return the mobileNetwork value. - */ - MobileNetworkResourceId mobileNetwork(); - /** * Gets the deviceType property: An optional free-form text field that can be used to record the device type this - * sim is associated with, for example 'Video camera'. The Azure portal allows Sims to be grouped and filtered based + * SIM is associated with, for example 'Video camera'. The Azure portal allows SIMs to be grouped and filtered based * on this value. * * @return the deviceType value. @@ -115,14 +84,14 @@ public interface Sim { String deviceType(); /** - * Gets the simPolicy property: The simPolicy used by this sim. + * Gets the simPolicy property: The SIM policy used by this SIM. * * @return the simPolicy value. */ SimPolicyResourceId simPolicy(); /** - * Gets the staticIpConfiguration property: A list of static IP addresses assigned to this sim. Each address is + * Gets the staticIpConfiguration property: A list of static IP addresses assigned to this SIM. Each address is * assigned at a defined network scope, made up of {attached data network, slice}. * * @return the staticIpConfiguration value. @@ -130,18 +99,11 @@ public interface Sim { List staticIpConfiguration(); /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. + * Gets the name of the resource group. * - * @return the name of the resource region. + * @return the name of the resource group. */ - String regionName(); + String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.SimInner object. @@ -153,52 +115,35 @@ public interface Sim { /** The entirety of the Sim definition. */ interface Definition extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, + DefinitionStages.WithParentResource, DefinitionStages.WithInternationalMobileSubscriberIdentity, DefinitionStages.WithCreate { } /** The Sim definition stages. */ interface DefinitionStages { /** The first stage of the Sim definition. */ - interface Blank extends WithLocation { - } - /** The stage of the Sim definition allowing to specify location. */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(String location); + interface Blank extends WithParentResource { } /** The stage of the Sim definition allowing to specify parent resource. */ - interface WithResourceGroup { + interface WithParentResource { /** - * Specifies resourceGroupName. + * Specifies resourceGroupName, simGroupName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @return the next definition stage. */ - WithInternationalMobileSubscriberIdentity withExistingResourceGroup(String resourceGroupName); + WithInternationalMobileSubscriberIdentity withExistingSimGroup( + String resourceGroupName, String simGroupName); } /** The stage of the Sim definition allowing to specify internationalMobileSubscriberIdentity. */ interface WithInternationalMobileSubscriberIdentity { /** - * Specifies the internationalMobileSubscriberIdentity property: The International Mobile Subscriber - * Identity (IMSI) for the sim.. + * Specifies the internationalMobileSubscriberIdentity property: The international mobile subscriber + * identity (IMSI) for the SIM.. * - * @param internationalMobileSubscriberIdentity The International Mobile Subscriber Identity (IMSI) for the - * sim. + * @param internationalMobileSubscriberIdentity The international mobile subscriber identity (IMSI) for the + * SIM. * @return the next definition stage. */ WithCreate withInternationalMobileSubscriberIdentity(String internationalMobileSubscriberIdentity); @@ -208,11 +153,9 @@ interface WithInternationalMobileSubscriberIdentity { * created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithTags, - DefinitionStages.WithIntegratedCircuitCardIdentifier, + extends DefinitionStages.WithIntegratedCircuitCardIdentifier, DefinitionStages.WithAuthenticationKey, DefinitionStages.WithOperatorKeyCode, - DefinitionStages.WithMobileNetwork, DefinitionStages.WithDeviceType, DefinitionStages.WithSimPolicy, DefinitionStages.WithStaticIpConfiguration { @@ -231,23 +174,13 @@ interface WithCreate */ Sim create(Context context); } - /** The stage of the Sim definition allowing to specify tags. */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } /** The stage of the Sim definition allowing to specify integratedCircuitCardIdentifier. */ interface WithIntegratedCircuitCardIdentifier { /** - * Specifies the integratedCircuitCardIdentifier property: The Integrated Circuit Card ID (ICC Id) for the - * sim.. + * Specifies the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the + * SIM.. * - * @param integratedCircuitCardIdentifier The Integrated Circuit Card ID (ICC Id) for the sim. + * @param integratedCircuitCardIdentifier The integrated circuit card ID (ICCID) for the SIM. * @return the next definition stage. */ WithCreate withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier); @@ -255,9 +188,9 @@ interface WithIntegratedCircuitCardIdentifier { /** The stage of the Sim definition allowing to specify authenticationKey. */ interface WithAuthenticationKey { /** - * Specifies the authenticationKey property: The ki value for the sim.. + * Specifies the authenticationKey property: The Ki value for the SIM.. * - * @param authenticationKey The ki value for the sim. + * @param authenticationKey The Ki value for the SIM. * @return the next definition stage. */ WithCreate withAuthenticationKey(String authenticationKey); @@ -265,32 +198,22 @@ interface WithAuthenticationKey { /** The stage of the Sim definition allowing to specify operatorKeyCode. */ interface WithOperatorKeyCode { /** - * Specifies the operatorKeyCode property: The Opc value for the sim.. + * Specifies the operatorKeyCode property: The Opc value for the SIM.. * - * @param operatorKeyCode The Opc value for the sim. + * @param operatorKeyCode The Opc value for the SIM. * @return the next definition stage. */ WithCreate withOperatorKeyCode(String operatorKeyCode); } - /** The stage of the Sim definition allowing to specify mobileNetwork. */ - interface WithMobileNetwork { - /** - * Specifies the mobileNetwork property: Mobile network that this sim belongs to. - * - * @param mobileNetwork Mobile network that this sim belongs to. - * @return the next definition stage. - */ - WithCreate withMobileNetwork(MobileNetworkResourceId mobileNetwork); - } /** The stage of the Sim definition allowing to specify deviceType. */ interface WithDeviceType { /** * Specifies the deviceType property: An optional free-form text field that can be used to record the device - * type this sim is associated with, for example 'Video camera'. The Azure portal allows Sims to be grouped + * type this SIM is associated with, for example 'Video camera'. The Azure portal allows SIMs to be grouped * and filtered based on this value.. * - * @param deviceType An optional free-form text field that can be used to record the device type this sim is - * associated with, for example 'Video camera'. The Azure portal allows Sims to be grouped and filtered + * @param deviceType An optional free-form text field that can be used to record the device type this SIM is + * associated with, for example 'Video camera'. The Azure portal allows SIMs to be grouped and filtered * based on this value. * @return the next definition stage. */ @@ -299,9 +222,9 @@ interface WithDeviceType { /** The stage of the Sim definition allowing to specify simPolicy. */ interface WithSimPolicy { /** - * Specifies the simPolicy property: The simPolicy used by this sim.. + * Specifies the simPolicy property: The SIM policy used by this SIM.. * - * @param simPolicy The simPolicy used by this sim. + * @param simPolicy The SIM policy used by this SIM. * @return the next definition stage. */ WithCreate withSimPolicy(SimPolicyResourceId simPolicy); @@ -309,10 +232,10 @@ interface WithSimPolicy { /** The stage of the Sim definition allowing to specify staticIpConfiguration. */ interface WithStaticIpConfiguration { /** - * Specifies the staticIpConfiguration property: A list of static IP addresses assigned to this sim. Each + * Specifies the staticIpConfiguration property: A list of static IP addresses assigned to this SIM. Each * address is assigned at a defined network scope, made up of {attached data network, slice}.. * - * @param staticIpConfiguration A list of static IP addresses assigned to this sim. Each address is assigned + * @param staticIpConfiguration A list of static IP addresses assigned to this SIM. Each address is assigned * at a defined network scope, made up of {attached data network, slice}. * @return the next definition stage. */ @@ -327,7 +250,13 @@ interface WithStaticIpConfiguration { Sim.Update update(); /** The template for Sim update. */ - interface Update extends UpdateStages.WithTags { + interface Update + extends UpdateStages.WithIntegratedCircuitCardIdentifier, + UpdateStages.WithAuthenticationKey, + UpdateStages.WithOperatorKeyCode, + UpdateStages.WithDeviceType, + UpdateStages.WithSimPolicy, + UpdateStages.WithStaticIpConfiguration { /** * Executes the update request. * @@ -345,15 +274,72 @@ interface Update extends UpdateStages.WithTags { } /** The Sim update stages. */ interface UpdateStages { - /** The stage of the Sim update allowing to specify tags. */ - interface WithTags { + /** The stage of the Sim update allowing to specify integratedCircuitCardIdentifier. */ + interface WithIntegratedCircuitCardIdentifier { + /** + * Specifies the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the + * SIM.. + * + * @param integratedCircuitCardIdentifier The integrated circuit card ID (ICCID) for the SIM. + * @return the next definition stage. + */ + Update withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier); + } + /** The stage of the Sim update allowing to specify authenticationKey. */ + interface WithAuthenticationKey { + /** + * Specifies the authenticationKey property: The Ki value for the SIM.. + * + * @param authenticationKey The Ki value for the SIM. + * @return the next definition stage. + */ + Update withAuthenticationKey(String authenticationKey); + } + /** The stage of the Sim update allowing to specify operatorKeyCode. */ + interface WithOperatorKeyCode { + /** + * Specifies the operatorKeyCode property: The Opc value for the SIM.. + * + * @param operatorKeyCode The Opc value for the SIM. + * @return the next definition stage. + */ + Update withOperatorKeyCode(String operatorKeyCode); + } + /** The stage of the Sim update allowing to specify deviceType. */ + interface WithDeviceType { /** - * Specifies the tags property: Resource tags.. + * Specifies the deviceType property: An optional free-form text field that can be used to record the device + * type this SIM is associated with, for example 'Video camera'. The Azure portal allows SIMs to be grouped + * and filtered based on this value.. * - * @param tags Resource tags. + * @param deviceType An optional free-form text field that can be used to record the device type this SIM is + * associated with, for example 'Video camera'. The Azure portal allows SIMs to be grouped and filtered + * based on this value. + * @return the next definition stage. + */ + Update withDeviceType(String deviceType); + } + /** The stage of the Sim update allowing to specify simPolicy. */ + interface WithSimPolicy { + /** + * Specifies the simPolicy property: The SIM policy used by this SIM.. + * + * @param simPolicy The SIM policy used by this SIM. + * @return the next definition stage. + */ + Update withSimPolicy(SimPolicyResourceId simPolicy); + } + /** The stage of the Sim update allowing to specify staticIpConfiguration. */ + interface WithStaticIpConfiguration { + /** + * Specifies the staticIpConfiguration property: A list of static IP addresses assigned to this SIM. Each + * address is assigned at a defined network scope, made up of {attached data network, slice}.. + * + * @param staticIpConfiguration A list of static IP addresses assigned to this SIM. Each address is assigned + * at a defined network scope, made up of {attached data network, slice}. * @return the next definition stage. */ - Update withTags(Map tags); + Update withStaticIpConfiguration(List staticIpConfiguration); } } /** diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimGroup.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimGroup.java new file mode 100644 index 0000000000000..53b71bab078c1 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimGroup.java @@ -0,0 +1,269 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.mobilenetwork.fluent.models.SimGroupInner; +import java.util.Map; + +/** An immutable client-side representation of SimGroup. */ +public interface SimGroup { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the identity property: The identity used to retrieve the encryption key from Azure key vault. + * + * @return the identity value. + */ + ManagedServiceIdentity identity(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the provisioningState property: The provisioning state of the SIM group resource. + * + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * Gets the encryptionKey property: A key to encrypt the SIM data that belongs to this SIM group. + * + * @return the encryptionKey value. + */ + KeyVaultKey encryptionKey(); + + /** + * Gets the mobileNetwork property: Mobile network that this SIM belongs to. + * + * @return the mobileNetwork value. + */ + MobileNetworkResourceId mobileNetwork(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.SimGroupInner object. + * + * @return the inner object. + */ + SimGroupInner innerModel(); + + /** The entirety of the SimGroup definition. */ + interface Definition + extends DefinitionStages.Blank, + DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, + DefinitionStages.WithCreate { + } + /** The SimGroup definition stages. */ + interface DefinitionStages { + /** The first stage of the SimGroup definition. */ + interface Blank extends WithLocation { + } + /** The stage of the SimGroup definition allowing to specify location. */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(String location); + } + /** The stage of the SimGroup definition allowing to specify parent resource. */ + interface WithResourceGroup { + /** + * Specifies resourceGroupName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @return the next definition stage. + */ + WithCreate withExistingResourceGroup(String resourceGroupName); + } + /** + * The stage of the SimGroup definition which contains all the minimum required properties for the resource to + * be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate + extends DefinitionStages.WithTags, + DefinitionStages.WithIdentity, + DefinitionStages.WithEncryptionKey, + DefinitionStages.WithMobileNetwork { + /** + * Executes the create request. + * + * @return the created resource. + */ + SimGroup create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + SimGroup create(Context context); + } + /** The stage of the SimGroup definition allowing to specify tags. */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + /** The stage of the SimGroup definition allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: The identity used to retrieve the encryption key from Azure key vault.. + * + * @param identity The identity used to retrieve the encryption key from Azure key vault. + * @return the next definition stage. + */ + WithCreate withIdentity(ManagedServiceIdentity identity); + } + /** The stage of the SimGroup definition allowing to specify encryptionKey. */ + interface WithEncryptionKey { + /** + * Specifies the encryptionKey property: A key to encrypt the SIM data that belongs to this SIM group.. + * + * @param encryptionKey A key to encrypt the SIM data that belongs to this SIM group. + * @return the next definition stage. + */ + WithCreate withEncryptionKey(KeyVaultKey encryptionKey); + } + /** The stage of the SimGroup definition allowing to specify mobileNetwork. */ + interface WithMobileNetwork { + /** + * Specifies the mobileNetwork property: Mobile network that this SIM belongs to. + * + * @param mobileNetwork Mobile network that this SIM belongs to. + * @return the next definition stage. + */ + WithCreate withMobileNetwork(MobileNetworkResourceId mobileNetwork); + } + } + /** + * Begins update for the SimGroup resource. + * + * @return the stage of resource update. + */ + SimGroup.Update update(); + + /** The template for SimGroup update. */ + interface Update extends UpdateStages.WithTags { + /** + * Executes the update request. + * + * @return the updated resource. + */ + SimGroup apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + SimGroup apply(Context context); + } + /** The SimGroup update stages. */ + interface UpdateStages { + /** The stage of the SimGroup update allowing to specify tags. */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + } + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + SimGroup refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + SimGroup refresh(Context context); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimGroupListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimGroupListResult.java new file mode 100644 index 0000000000000..45ebce9bf7870 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimGroupListResult.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.mobilenetwork.fluent.models.SimGroupInner; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Response for list SIM groups API service call. */ +@Fluent +public final class SimGroupListResult { + /* + * A list of SIM groups in a resource group. + */ + @JsonProperty(value = "value") + private List value; + + /* + * The URL to get the next set of results. + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + + /** + * Get the value property: A list of SIM groups in a resource group. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: A list of SIM groups in a resource group. + * + * @param value the value value to set. + * @return the SimGroupListResult object itself. + */ + public SimGroupListResult withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: The URL to get the next set of results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimGroups.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimGroups.java new file mode 100644 index 0000000000000..6797d8c3e1bd8 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimGroups.java @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** Resource collection API of SimGroups. */ +public interface SimGroups { + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByResourceGroup(String resourceGroupName, String simGroupName); + + /** + * Deletes the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String simGroupName, Context context); + + /** + * Gets information about the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified SIM group. + */ + SimGroup getByResourceGroup(String resourceGroupName, String simGroupName); + + /** + * Gets information about the specified SIM group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified SIM group along with {@link Response}. + */ + Response getByResourceGroupWithResponse(String resourceGroupName, String simGroupName, Context context); + + /** + * Gets all the SIM groups in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a subscription as paginated response with {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * Gets all the SIM groups in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a subscription as paginated response with {@link PagedIterable}. + */ + PagedIterable list(Context context); + + /** + * Gets all the SIM groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a resource group as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Gets all the SIM groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the SIM groups in a resource group as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets information about the specified SIM group. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified SIM group along with {@link Response}. + */ + SimGroup getById(String id); + + /** + * Gets information about the specified SIM group. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified SIM group along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes the specified SIM group. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Deletes the specified SIM group. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new SimGroup resource. + * + * @param name resource name. + * @return the first stage of the new SimGroup definition. + */ + SimGroup.DefinitionStages.Blank define(String name); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimIdListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimIdListResult.java index 1e7bb14c86aa6..26289ef123228 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimIdListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimIdListResult.java @@ -11,7 +11,7 @@ /** An immutable client-side representation of SimIdListResult. */ public interface SimIdListResult { /** - * Gets the value property: A list of sim profile ids in a resource group. + * Gets the value property: A list of SIM IDs. * * @return the value value. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimListResult.java index 825f976d436ce..91de9e599937e 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimListResult.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Response for list Sims API service call. */ +/** Response for list SIMs API service call. */ @Fluent public final class SimListResult { /* - * A list of Sims in a resource group. + * A list of SIMs in a resource group. */ @JsonProperty(value = "value") private List value; @@ -25,7 +25,7 @@ public final class SimListResult { private String nextLink; /** - * Get the value property: A list of Sims in a resource group. + * Get the value property: A list of SIMs in a resource group. * * @return the value value. */ @@ -34,7 +34,7 @@ public List value() { } /** - * Set the value property: A list of Sims in a resource group. + * Set the value property: A list of SIMs in a resource group. * * @param value the value value to set. * @return the SimListResult object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicies.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicies.java index 38a47f3fd121e..c90383e3e988b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicies.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicies.java @@ -11,7 +11,7 @@ /** Resource collection API of SimPolicies. */ public interface SimPolicies { /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -23,7 +23,7 @@ public interface SimPolicies { void delete(String resourceGroupName, String mobileNetworkName, String simPolicyName); /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -36,7 +36,7 @@ public interface SimPolicies { void delete(String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context); /** - * Gets information about the specified sim policy. + * Gets information about the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -44,12 +44,12 @@ public interface SimPolicies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim policy. + * @return information about the specified SIM policy. */ SimPolicy get(String resourceGroupName, String mobileNetworkName, String simPolicyName); /** - * Gets information about the specified sim policy. + * Gets information about the specified SIM policy. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -58,25 +58,25 @@ public interface SimPolicies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim policy along with {@link Response}. + * @return information about the specified SIM policy along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context); /** - * Gets all the simPolicies in a mobile network. + * Gets all the SIM policies in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the simPolicies in a mobile network as paginated response with {@link PagedIterable}. + * @return all the SIM policies in a mobile network as paginated response with {@link PagedIterable}. */ PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName); /** - * Gets all the simPolicies in a mobile network. + * Gets all the SIM policies in a mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -84,35 +84,35 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the simPolicies in a mobile network as paginated response with {@link PagedIterable}. + * @return all the SIM policies in a mobile network as paginated response with {@link PagedIterable}. */ PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName, Context context); /** - * Gets information about the specified sim policy. + * Gets information about the specified SIM policy. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim policy along with {@link Response}. + * @return information about the specified SIM policy along with {@link Response}. */ SimPolicy getById(String id); /** - * Gets information about the specified sim policy. + * Gets information about the specified SIM policy. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim policy along with {@link Response}. + * @return information about the specified SIM policy along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -122,7 +122,7 @@ Response getWithResponse( void deleteById(String id); /** - * Deletes the specified sim policy. + * Deletes the specified SIM policy. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicy.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicy.java index 86b4432625206..4f0c330b3a330 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicy.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicy.java @@ -56,7 +56,7 @@ public interface SimPolicy { SystemData systemData(); /** - * Gets the provisioningState property: The provisioning state of the sim policy resource. + * Gets the provisioningState property: The provisioning state of the SIM policy resource. * * @return the provisioningState value. */ @@ -115,6 +115,13 @@ public interface SimPolicy { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.SimPolicyInner object. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyListResult.java index 56dbeeb7a1e50..14b4d30027f68 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyListResult.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Response for SimPolicies API service call. */ +/** Response for SIM policies API service call. */ @Fluent public final class SimPolicyListResult { /* - * A list of SimPolicies. + * A list of SIM policies. */ @JsonProperty(value = "value") private List value; @@ -25,7 +25,7 @@ public final class SimPolicyListResult { private String nextLink; /** - * Get the value property: A list of SimPolicies. + * Get the value property: A list of SIM policies. * * @return the value value. */ @@ -34,7 +34,7 @@ public List value() { } /** - * Set the value property: A list of SimPolicies. + * Set the value property: A list of SIM policies. * * @param value the value value to set. * @return the SimPolicyListResult object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyResourceId.java index 1aeddd8cabc13..fa5b17123d6a7 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimPolicyResourceId.java @@ -8,17 +8,17 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Reference to a SIM Policy resource. */ +/** Reference to a SIM policy resource. */ @Fluent public final class SimPolicyResourceId { /* - * SIM Policy resource ID. + * SIM policy resource ID. */ @JsonProperty(value = "id", required = true) private String id; /** - * Get the id property: SIM Policy resource ID. + * Get the id property: SIM policy resource ID. * * @return the id value. */ @@ -27,7 +27,7 @@ public String id() { } /** - * Set the id property: SIM Policy resource ID. + * Set the id property: SIM policy resource ID. * * @param id the id value to set. * @return the SimPolicyResourceId object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimState.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimState.java index 0eb68ada6cc7b..2cfe2613cca86 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimState.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimState.java @@ -30,7 +30,11 @@ public static SimState fromString(String name) { return fromString(name, SimState.class); } - /** @return known SimState values. */ + /** + * Gets known SimState values. + * + * @return known SimState values. + */ public static Collection values() { return values(SimState.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpProperties.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpProperties.java index 473c786ece85f..f6d2eeb68c3af 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpProperties.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpProperties.java @@ -7,12 +7,12 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Static IP configuration for a sim, scoped to a particular attached data network and slice. */ +/** Static IP configuration for a SIM, scoped to a particular attached data network and slice. */ @Fluent public final class SimStaticIpProperties { /* * The attached data network on which the static IP address will be used. - * The combination of attachedDataNetwork and slice defines the network + * The combination of attached data network and slice defines the network * scope of the IP address. */ @JsonProperty(value = "attachedDataNetwork") @@ -20,14 +20,14 @@ public final class SimStaticIpProperties { /* * The network slice on which the static IP address will be used. The - * combination of attachedDataNetwork and slice defines the network scope + * combination of attached data network and slice defines the network scope * of the IP address. */ @JsonProperty(value = "slice") private SliceResourceId slice; /* - * The static IP configuration for the sim to use at the defined network + * The static IP configuration for the SIM to use at the defined network * scope. */ @JsonProperty(value = "staticIp") @@ -35,7 +35,7 @@ public final class SimStaticIpProperties { /** * Get the attachedDataNetwork property: The attached data network on which the static IP address will be used. The - * combination of attachedDataNetwork and slice defines the network scope of the IP address. + * combination of attached data network and slice defines the network scope of the IP address. * * @return the attachedDataNetwork value. */ @@ -45,7 +45,7 @@ public AttachedDataNetworkResourceId attachedDataNetwork() { /** * Set the attachedDataNetwork property: The attached data network on which the static IP address will be used. The - * combination of attachedDataNetwork and slice defines the network scope of the IP address. + * combination of attached data network and slice defines the network scope of the IP address. * * @param attachedDataNetwork the attachedDataNetwork value to set. * @return the SimStaticIpProperties object itself. @@ -57,7 +57,7 @@ public SimStaticIpProperties withAttachedDataNetwork(AttachedDataNetworkResource /** * Get the slice property: The network slice on which the static IP address will be used. The combination of - * attachedDataNetwork and slice defines the network scope of the IP address. + * attached data network and slice defines the network scope of the IP address. * * @return the slice value. */ @@ -67,7 +67,7 @@ public SliceResourceId slice() { /** * Set the slice property: The network slice on which the static IP address will be used. The combination of - * attachedDataNetwork and slice defines the network scope of the IP address. + * attached data network and slice defines the network scope of the IP address. * * @param slice the slice value to set. * @return the SimStaticIpProperties object itself. @@ -78,7 +78,7 @@ public SimStaticIpProperties withSlice(SliceResourceId slice) { } /** - * Get the staticIp property: The static IP configuration for the sim to use at the defined network scope. + * Get the staticIp property: The static IP configuration for the SIM to use at the defined network scope. * * @return the staticIp value. */ @@ -87,7 +87,7 @@ public SimStaticIpPropertiesStaticIp staticIp() { } /** - * Set the staticIp property: The static IP configuration for the sim to use at the defined network scope. + * Set the staticIp property: The static IP configuration for the SIM to use at the defined network scope. * * @param staticIp the staticIp value to set. * @return the SimStaticIpProperties object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpPropertiesStaticIp.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpPropertiesStaticIp.java index 307abadeb5e2b..269b14d98de88 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpPropertiesStaticIp.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimStaticIpPropertiesStaticIp.java @@ -7,20 +7,20 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The static IP configuration for the sim to use at the defined network scope. */ +/** The static IP configuration for the SIM to use at the defined network scope. */ @Fluent public final class SimStaticIpPropertiesStaticIp { /* - * The IPv4 address assigned to the sim at this network scope. This address + * The IPv4 address assigned to the SIM at this network scope. This address * must be in the userEquipmentStaticAddressPoolPrefix defined in the - * attachedDataNetwork. + * attached data network. */ @JsonProperty(value = "ipv4Address") private String ipv4Address; /** - * Get the ipv4Address property: The IPv4 address assigned to the sim at this network scope. This address must be in - * the userEquipmentStaticAddressPoolPrefix defined in the attachedDataNetwork. + * Get the ipv4Address property: The IPv4 address assigned to the SIM at this network scope. This address must be in + * the userEquipmentStaticAddressPoolPrefix defined in the attached data network. * * @return the ipv4Address value. */ @@ -29,8 +29,8 @@ public String ipv4Address() { } /** - * Set the ipv4Address property: The IPv4 address assigned to the sim at this network scope. This address must be in - * the userEquipmentStaticAddressPoolPrefix defined in the attachedDataNetwork. + * Set the ipv4Address property: The IPv4 address assigned to the SIM at this network scope. This address must be in + * the userEquipmentStaticAddressPoolPrefix defined in the attached data network. * * @param ipv4Address the ipv4Address value to set. * @return the SimStaticIpPropertiesStaticIp object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sims.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sims.java index 29d8d6e1d5b55..a86c46e36b286 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sims.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sims.java @@ -11,121 +11,107 @@ /** Resource collection API of Sims. */ public interface Sims { /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deleteByResourceGroup(String resourceGroupName, String simName); + void delete(String resourceGroupName, String simGroupName, String simName); /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String simName, Context context); + void delete(String resourceGroupName, String simGroupName, String simName, Context context); /** - * Gets information about the specified sim. + * Gets information about the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim. + * @return information about the specified SIM. */ - Sim getByResourceGroup(String resourceGroupName, String simName); + Sim get(String resourceGroupName, String simGroupName, String simName); /** - * Gets information about the specified sim. + * Gets information about the specified SIM. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param simName The name of the SIM. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim along with {@link Response}. + * @return information about the specified SIM along with {@link Response}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String simName, Context context); + Response getWithResponse(String resourceGroupName, String simGroupName, String simName, Context context); /** - * Gets all the sims in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the sims in a subscription as paginated response with {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * Gets all the sims in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the sims in a subscription as paginated response with {@link PagedIterable}. - */ - PagedIterable list(Context context); - - /** - * Gets all the Sims in a subscription. + * Gets all the SIMs in a SIM group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Sims in a subscription as paginated response with {@link PagedIterable}. + * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + PagedIterable listBySimGroup(String resourceGroupName, String simGroupName); /** - * Gets all the Sims in a subscription. + * Gets all the SIMs in a SIM group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param simGroupName The name of the SIM Group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Sims in a subscription as paginated response with {@link PagedIterable}. + * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + PagedIterable listBySimGroup(String resourceGroupName, String simGroupName, Context context); /** - * Gets information about the specified sim. + * Gets information about the specified SIM. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim along with {@link Response}. + * @return information about the specified SIM along with {@link Response}. */ Sim getById(String id); /** - * Gets information about the specified sim. + * Gets information about the specified SIM. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified sim along with {@link Response}. + * @return information about the specified SIM along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -135,7 +121,7 @@ public interface Sims { void deleteById(String id); /** - * Deletes the specified sim. + * Deletes the specified SIM. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Site.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Site.java index 32b281789b207..1f81920d5e377 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Site.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Site.java @@ -57,15 +57,14 @@ public interface Site { SystemData systemData(); /** - * Gets the provisioningState property: The provisioning state of the site resource. **TODO**: Confirm if this is - * needed. + * Gets the provisioningState property: The provisioning state of the site resource. * * @return the provisioningState value. */ ProvisioningState provisioningState(); /** - * Gets the networkFunctions property: An array of ids of the network functions deployed on the site, maintained by + * Gets the networkFunctions property: An array of IDs of the network functions deployed on the site, maintained by * the user. * * @return the networkFunctions value. @@ -86,6 +85,13 @@ public interface Site { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.SiteInner object. * @@ -167,10 +173,10 @@ interface WithTags { /** The stage of the Site definition allowing to specify networkFunctions. */ interface WithNetworkFunctions { /** - * Specifies the networkFunctions property: An array of ids of the network functions deployed on the site, + * Specifies the networkFunctions property: An array of IDs of the network functions deployed on the site, * maintained by the user.. * - * @param networkFunctions An array of ids of the network functions deployed on the site, maintained by the + * @param networkFunctions An array of IDs of the network functions deployed on the site, maintained by the * user. * @return the next definition stage. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteListResult.java index e61f0b3f76d02..fd356e2c53fd2 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteListResult.java @@ -13,7 +13,7 @@ @Fluent public final class SiteListResult { /* - * A list of sites in a resource group. + * A list of sites in a mobile network. */ @JsonProperty(value = "value") private List value; @@ -25,7 +25,7 @@ public final class SiteListResult { private String nextLink; /** - * Get the value property: A list of sites in a resource group. + * Get the value property: A list of sites in a mobile network. * * @return the value value. */ @@ -34,7 +34,7 @@ public List value() { } /** - * Set the value property: A list of sites in a resource group. + * Set the value property: A list of sites in a mobile network. * * @param value the value value to set. * @return the SiteListResult object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Slice.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Slice.java index 11f349c86f5c9..0a9452e002adf 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Slice.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Slice.java @@ -62,8 +62,8 @@ public interface Slice { ProvisioningState provisioningState(); /** - * Gets the snssai property: The S-NSSAI (single network slice selection assistance information). Unique at the - * scope of a MobileNetwork. + * Gets the snssai property: Single-network slice selection assistance information (S-NSSAI). Unique at the scope of + * a mobile network. * * @return the snssai value. */ @@ -90,6 +90,13 @@ public interface Slice { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.SliceInner object. * @@ -142,11 +149,11 @@ interface WithParentResource { /** The stage of the Slice definition allowing to specify snssai. */ interface WithSnssai { /** - * Specifies the snssai property: The S-NSSAI (single network slice selection assistance information). - * Unique at the scope of a MobileNetwork.. + * Specifies the snssai property: Single-network slice selection assistance information (S-NSSAI). Unique at + * the scope of a mobile network.. * - * @param snssai The S-NSSAI (single network slice selection assistance information). Unique at the scope of - * a MobileNetwork. + * @param snssai Single-network slice selection assistance information (S-NSSAI). Unique at the scope of a + * mobile network. * @return the next definition stage. */ WithCreate withSnssai(Snssai snssai); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceConfiguration.java index b5891ea542a8d..c8e222270b01f 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceConfiguration.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceConfiguration.java @@ -13,14 +13,14 @@ @Fluent public final class SliceConfiguration { /* - * A reference to the Slice that these settings apply to + * A reference to the slice that these settings apply to */ @JsonProperty(value = "slice", required = true) private SliceResourceId slice; /* * The default data network to use if the UE does not explicitly specify - * it. Configuration for this object must exist in the + * it. Configuration for this object must exist in the * `dataNetworkConfigurations` map. */ @JsonProperty(value = "defaultDataNetwork", required = true) @@ -34,7 +34,7 @@ public final class SliceConfiguration { private List dataNetworkConfigurations; /** - * Get the slice property: A reference to the Slice that these settings apply to. + * Get the slice property: A reference to the slice that these settings apply to. * * @return the slice value. */ @@ -43,7 +43,7 @@ public SliceResourceId slice() { } /** - * Set the slice property: A reference to the Slice that these settings apply to. + * Set the slice property: A reference to the slice that these settings apply to. * * @param slice the slice value to set. * @return the SliceConfiguration object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceListResult.java index 41d74d372d02f..826e7b22abf95 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceListResult.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Response for attached data network API service call. */ +/** Response for network slice API service call. */ @Fluent public final class SliceListResult { /* - * A list of data networks in a resource group. + * A list of network slices in a mobile network. */ @JsonProperty(value = "value") private List value; @@ -25,7 +25,7 @@ public final class SliceListResult { private String nextLink; /** - * Get the value property: A list of data networks in a resource group. + * Get the value property: A list of network slices in a mobile network. * * @return the value value. */ @@ -34,7 +34,7 @@ public List value() { } /** - * Set the value property: A list of data networks in a resource group. + * Set the value property: A list of network slices in a mobile network. * * @param value the value value to set. * @return the SliceListResult object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceResourceId.java index afa590815a6fc..5437c7ad1c0f0 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceResourceId.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceResourceId.java @@ -8,7 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Reference to a Slice resource. */ +/** Reference to a slice resource. */ @Fluent public final class SliceResourceId { /* diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Slices.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Slices.java index 3894a9fd90bd8..de6618e2428b8 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Slices.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Slices.java @@ -11,11 +11,11 @@ /** Resource collection API of Slices. */ public interface Slices { /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -23,11 +23,11 @@ public interface Slices { void delete(String resourceGroupName, String mobileNetworkName, String sliceName); /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,29 +36,29 @@ public interface Slices { void delete(String resourceGroupName, String mobileNetworkName, String sliceName, Context context); /** - * Gets information about the specified mobile network slice. + * Gets information about the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network slice. + * @return information about the specified network slice. */ Slice get(String resourceGroupName, String mobileNetworkName, String sliceName); /** - * Gets information about the specified mobile network slice. + * Gets information about the specified network slice. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. - * @param sliceName The name of the mobile network slice. + * @param sliceName The name of the network slice. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network slice along with {@link Response}. + * @return information about the specified network slice along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String mobileNetworkName, String sliceName, Context context); @@ -71,7 +71,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call as paginated response with {@link PagedIterable}. + * @return response for network slice API service call as paginated response with {@link PagedIterable}. */ PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName); @@ -84,35 +84,35 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for attached data network API service call as paginated response with {@link PagedIterable}. + * @return response for network slice API service call as paginated response with {@link PagedIterable}. */ PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName, Context context); /** - * Gets information about the specified mobile network slice. + * Gets information about the specified network slice. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network slice along with {@link Response}. + * @return information about the specified network slice along with {@link Response}. */ Slice getById(String id); /** - * Gets information about the specified mobile network slice. + * Gets information about the specified network slice. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified mobile network slice along with {@link Response}. + * @return information about the specified network slice along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -122,7 +122,7 @@ Response getWithResponse( void deleteById(String id); /** - * Deletes the specified mobile network slice. + * Deletes the specified network slice. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Snssai.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Snssai.java index 594d25c200aeb..961d4c68aba88 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Snssai.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Snssai.java @@ -7,23 +7,23 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Single-Network Slice Selection Assistance Information (S-NSSAI). */ +/** Single-network slice selection assistance information (S-NSSAI). */ @Fluent public final class Snssai { /* - * Slice/Service Type (SST). + * Slice/service type (SST). */ @JsonProperty(value = "sst", required = true) private int sst; /* - * Slice Differentiator (SD). + * Slice differentiator (SD). */ @JsonProperty(value = "sd") private String sd; /** - * Get the sst property: Slice/Service Type (SST). + * Get the sst property: Slice/service type (SST). * * @return the sst value. */ @@ -32,7 +32,7 @@ public int sst() { } /** - * Set the sst property: Slice/Service Type (SST). + * Set the sst property: Slice/service type (SST). * * @param sst the sst value to set. * @return the Snssai object itself. @@ -43,7 +43,7 @@ public Snssai withSst(int sst) { } /** - * Get the sd property: Slice Differentiator (SD). + * Get the sd property: Slice differentiator (SD). * * @return the sd value. */ @@ -52,7 +52,7 @@ public String sd() { } /** - * Set the sd property: Slice Differentiator (SD). + * Set the sd property: Slice differentiator (SD). * * @param sd the sd value to set. * @return the Snssai object itself. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SupportedPacketCoreControlPlaneVersionResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SupportedPacketCoreControlPlaneVersionResult.java new file mode 100644 index 0000000000000..012e249ddd7f8 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SupportedPacketCoreControlPlaneVersionResult.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.resourcemanager.mobilenetwork.fluent.models.SupportedPacketCoreControlPlaneVersionResultInner; +import java.util.List; + +/** An immutable client-side representation of SupportedPacketCoreControlPlaneVersionResult. */ +public interface SupportedPacketCoreControlPlaneVersionResult { + /** + * Gets the supportedVersions property: The supported packet core control plane versions. + * + * @return the supportedVersions value. + */ + List supportedVersions(); + + /** + * Gets the recommendedVersion property: The recommended version to use for new packet core control plane + * deployments. + * + * @return the recommendedVersion value. + */ + String recommendedVersion(); + + /** + * Gets the inner + * com.azure.resourcemanager.mobilenetwork.fluent.models.SupportedPacketCoreControlPlaneVersionResultInner object. + * + * @return the inner object. + */ + SupportedPacketCoreControlPlaneVersionResultInner innerModel(); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TrafficControlPermission.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TrafficControlPermission.java index 9fa6bff8989cc..df816760aad49 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TrafficControlPermission.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TrafficControlPermission.java @@ -27,7 +27,11 @@ public static TrafficControlPermission fromString(String name) { return fromString(name, TrafficControlPermission.class); } - /** @return known TrafficControlPermission values. */ + /** + * Gets known TrafficControlPermission values. + * + * @return known TrafficControlPermission values. + */ public static Collection values() { return values(TrafficControlPermission.class); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/UserAssignedIdentity.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/UserAssignedIdentity.java new file mode 100644 index 0000000000000..a9bcdf96016c9 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/UserAssignedIdentity.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.UUID; + +/** User assigned identity properties. */ +@Immutable +public class UserAssignedIdentity { + /* + * The principal ID of the assigned identity. + */ + @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) + private UUID principalId; + + /* + * The client ID of the assigned identity. + */ + @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) + private UUID clientId; + + /** + * Get the principalId property: The principal ID of the assigned identity. + * + * @return the principalId value. + */ + public UUID principalId() { + return this.principalId; + } + + /** + * Get the clientId property: The client ID of the assigned identity. + * + * @return the clientId value. + */ + public UUID clientId() { + return this.clientId; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksCreateOrUpdateSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksCreateOrUpdateSamples.java index 6b41e324a2b67..87013312839d0 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksCreateOrUpdateSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ /** Samples for AttachedDataNetworks CreateOrUpdate. */ public final class AttachedDataNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/AttachedDataNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/AttachedDataNetworkCreate.json */ /** * Sample code: Create attached data network. @@ -29,13 +29,14 @@ public static void createAttachedDataNetwork(com.azure.resourcemanager.mobilenet .withRegion("eastus") .withExistingPacketCoreDataPlane("rg1", "TestPacketCoreCP", "TestPacketCoreDP") .withUserPlaneDataInterface(new InterfaceProperties().withName("N6")) + .withDnsAddresses(Arrays.asList("1.1.1.1")) .withNaptConfiguration( new NaptConfiguration() .withEnabled(NaptEnabled.ENABLED) - .withPortRange(new PortRange().withMinPort(1024).withMaxPort(65535)) + .withPortRange(new PortRange().withMinPort(1024).withMaxPort(49999)) .withPortReuseHoldTime(new PortReuseHoldTimes().withTcp(120).withUdp(60)) .withPinholeLimits(65536) - .withPinholeTimeouts(new PinholeTimeouts().withTcp(7440).withUdp(300).withIcmp(60))) + .withPinholeTimeouts(new PinholeTimeouts().withTcp(180).withUdp(30).withIcmp(30))) .withUserEquipmentAddressPoolPrefix(Arrays.asList("2.2.0.0/16")) .withUserEquipmentStaticAddressPoolPrefix(Arrays.asList("2.4.0.0/16")) .create(); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksDeleteSamples.java index bb366280b3630..03470357e115c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksDeleteSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for AttachedDataNetworks Delete. */ public final class AttachedDataNetworksDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/AttachedDataNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/AttachedDataNetworkDelete.json */ /** * Sample code: Delete attached data network resource. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksGetSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksGetSamples.java index 28d7c81898e2c..de21352b33d13 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksGetSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksGetSamples.java @@ -9,7 +9,7 @@ /** Samples for AttachedDataNetworks Get. */ public final class AttachedDataNetworksGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/AttachedDataNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/AttachedDataNetworkGet.json */ /** * Sample code: Get attached data network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksListByPacketCoreDataPlaneSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksListByPacketCoreDataPlaneSamples.java index e100b95a41f5d..ad08eec17d7c4 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksListByPacketCoreDataPlaneSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksListByPacketCoreDataPlaneSamples.java @@ -9,7 +9,7 @@ /** Samples for AttachedDataNetworks ListByPacketCoreDataPlane. */ public final class AttachedDataNetworksListByPacketCoreDataPlaneSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/AttachedDataNetworkListByPacketCoreDataPlane.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/AttachedDataNetworkListByPacketCoreDataPlane.json */ /** * Sample code: List attached data networks in a data plane. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksUpdateTagsSamples.java index 4dbb43546cbb7..679707da94893 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksUpdateTagsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/AttachedDataNetworksUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** Samples for AttachedDataNetworks UpdateTags. */ public final class AttachedDataNetworksUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/AttachedDataNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/AttachedDataNetworkUpdateTags.json */ /** * Sample code: Update attached data network tags. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksCreateOrUpdateSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksCreateOrUpdateSamples.java index 9d15d18b63564..50a6ad0adfb09 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksCreateOrUpdateSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksCreateOrUpdateSamples.java @@ -7,15 +7,14 @@ /** Samples for DataNetworks CreateOrUpdate. */ public final class DataNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/DataNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkCreate.json */ /** - * Sample code: Create mobile network dataNetwork. + * Sample code: Create data network. * * @param manager Entry point to MobileNetworkManager. */ - public static void createMobileNetworkDataNetwork( - com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void createDataNetwork(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager .dataNetworks() .define("testDataNetwork") diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksDeleteSamples.java index c6b224488551c..be07457ce5d45 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksDeleteSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksDeleteSamples.java @@ -9,15 +9,14 @@ /** Samples for DataNetworks Delete. */ public final class DataNetworksDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/DataNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkDelete.json */ /** - * Sample code: Delete mobile network dataNetwork. + * Sample code: Delete data network. * * @param manager Entry point to MobileNetworkManager. */ - public static void deleteMobileNetworkDataNetwork( - com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void deleteDataNetwork(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.dataNetworks().delete("rg1", "testMobileNetwork", "testDataNetwork", Context.NONE); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksGetSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksGetSamples.java index 4be175ad1c78a..17281b151775a 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksGetSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksGetSamples.java @@ -9,15 +9,14 @@ /** Samples for DataNetworks Get. */ public final class DataNetworksGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/DataNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkGet.json */ /** - * Sample code: Get mobile network dataNetwork. + * Sample code: Get data network. * * @param manager Entry point to MobileNetworkManager. */ - public static void getMobileNetworkDataNetwork( - com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void getDataNetwork(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.dataNetworks().getWithResponse("rg1", "testMobileNetwork", "testDataNetwork", Context.NONE); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksListByMobileNetworkSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksListByMobileNetworkSamples.java index 5e5c0aa9cc97d..1dc058fb9b406 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksListByMobileNetworkSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksListByMobileNetworkSamples.java @@ -9,14 +9,14 @@ /** Samples for DataNetworks ListByMobileNetwork. */ public final class DataNetworksListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/DataNetworkListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkListByMobileNetwork.json */ /** - * Sample code: List mobile network dataNetworks in a mobile network. + * Sample code: List data networks in a mobile network. * * @param manager Entry point to MobileNetworkManager. */ - public static void listMobileNetworkDataNetworksInAMobileNetwork( + public static void listDataNetworksInAMobileNetwork( com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.dataNetworks().listByMobileNetwork("rg1", "testMobileNetwork", Context.NONE); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksUpdateTagsSamples.java index f61d114be40fc..fec7de8881fc2 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksUpdateTagsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/DataNetworksUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** Samples for DataNetworks UpdateTags. */ public final class DataNetworksUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/DataNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkUpdateTags.json */ /** * Sample code: Update data network tags. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksCreateOrUpdateSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksCreateOrUpdateSamples.java index 1091f075c5e1d..6caa897e50c3b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksCreateOrUpdateSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ /** Samples for MobileNetworks CreateOrUpdate. */ public final class MobileNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkCreate.json */ /** * Sample code: Create mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksDeleteSamples.java index 6cabe3e946821..8ee47e4f8de9b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksDeleteSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for MobileNetworks Delete. */ public final class MobileNetworksDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkDelete.json */ /** * Sample code: Delete mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksGetByResourceGroupSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksGetByResourceGroupSamples.java index f2e4297884849..95a15cd282242 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksGetByResourceGroupSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for MobileNetworks GetByResourceGroup. */ public final class MobileNetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkGet.json */ /** * Sample code: Get mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListByResourceGroupSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListByResourceGroupSamples.java index 7d96869463876..1701fc400b255 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListByResourceGroupSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for MobileNetworks ListByResourceGroup. */ public final class MobileNetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkListByResourceGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkListByResourceGroup.json */ /** * Sample code: List mobile networks in resource group. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListSamples.java index 0de3dee9183af..ba988d6257ad4 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListSamples.java @@ -9,7 +9,7 @@ /** Samples for MobileNetworks List. */ public final class MobileNetworksListSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkListBySubscription.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkListBySubscription.json */ /** * Sample code: List mobile networks in a subscription. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListSimIdsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListSimIdsSamples.java index 8d147214380d2..3d8c4366ecb7b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListSimIdsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListSimIdsSamples.java @@ -9,14 +9,14 @@ /** Samples for MobileNetworks ListSimIds. */ public final class MobileNetworksListSimIdsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimIdListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimIdListByMobileNetwork.json */ /** - * Sample code: List sim profile ids by network. + * Sample code: List the IDs of all provisioned SIMs in a mobile network. * * @param manager Entry point to MobileNetworkManager. */ - public static void listSimProfileIdsByNetwork( + public static void listTheIDsOfAllProvisionedSIMsInAMobileNetwork( com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.mobileNetworks().listSimIds("rg", "testMobileNetworkName", Context.NONE); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksUpdateTagsSamples.java index ecafb1f93da67..b3b16fb8beb4d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksUpdateTagsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** Samples for MobileNetworks UpdateTags. */ public final class MobileNetworksUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/MobileNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/MobileNetworkUpdateTags.json */ /** * Sample code: Update mobile network tags. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/OperationsListSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/OperationsListSamples.java index 3cbb02c9e1094..db8befa74e68a 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/OperationsListSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/OperationList.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/OperationList.json */ /** * Sample code: Get Registration Operations. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesCreateOrUpdateSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesCreateOrUpdateSamples.java index 8789680a1994f..925eab5736bb3 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesCreateOrUpdateSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesCreateOrUpdateSamples.java @@ -4,15 +4,22 @@ package com.azure.resourcemanager.mobilenetwork.generated; +import com.azure.resourcemanager.mobilenetwork.models.AzureStackEdgeDeviceResourceId; +import com.azure.resourcemanager.mobilenetwork.models.BillingSku; +import com.azure.resourcemanager.mobilenetwork.models.ConnectedClusterResourceId; import com.azure.resourcemanager.mobilenetwork.models.CoreNetworkType; import com.azure.resourcemanager.mobilenetwork.models.CustomLocationResourceId; import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties; +import com.azure.resourcemanager.mobilenetwork.models.KeyVaultCertificate; +import com.azure.resourcemanager.mobilenetwork.models.LocalDiagnosticsAccessConfiguration; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.PlatformConfiguration; +import com.azure.resourcemanager.mobilenetwork.models.PlatformType; /** Samples for PacketCoreControlPlanes CreateOrUpdate. */ public final class PacketCoreControlPlanesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneCreate.json */ /** * Sample code: Create packet core control plane. @@ -31,12 +38,29 @@ public static void createPacketCoreControlPlane( .withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork")) .withControlPlaneAccessInterface(new InterfaceProperties().withName("N2")) - .withCustomLocation( - new CustomLocationResourceId() - .withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/TestCustomLocation")) + .withSku(BillingSku.fromString("testSku")) + .withPlatform( + new PlatformConfiguration() + .withType(PlatformType.AKS_HCI) + .withAzureStackEdgeDevice( + new AzureStackEdgeDeviceResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/TestAzureStackEdgeDevice")) + .withConnectedCluster( + new ConnectedClusterResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/TestConnectedCluster")) + .withCustomLocation( + new CustomLocationResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/TestCustomLocation"))) .withCoreNetworkTechnology(CoreNetworkType.FIVE_GC) .withVersion("0.2.0") + .withLocalDiagnosticsAccess( + new LocalDiagnosticsAccessConfiguration() + .withHttpsServerCertificate( + new KeyVaultCertificate() + .withCertificateUrl("https://contosovault.vault.azure.net/certificates/ingress"))) .create(); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesDeleteSamples.java index 2cbda045ca602..c9d5a51ee8c41 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesDeleteSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for PacketCoreControlPlanes Delete. */ public final class PacketCoreControlPlanesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneDelete.json */ /** * Sample code: Delete packet core control plane. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesGetByResourceGroupSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesGetByResourceGroupSamples.java index bd5cac2346a7e..79d24d79c11ba 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesGetByResourceGroupSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for PacketCoreControlPlanes GetByResourceGroup. */ public final class PacketCoreControlPlanesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneGet.json */ /** * Sample code: Get packet core control plane. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesListByResourceGroupSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesListByResourceGroupSamples.java index ef31518745842..43a0c4289c8a1 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesListByResourceGroupSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for PacketCoreControlPlanes ListByResourceGroup. */ public final class PacketCoreControlPlanesListByResourceGroupSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneListByResourceGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneListByResourceGroup.json */ /** * Sample code: List packet core control planes in resource group. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesListSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesListSamples.java index d90ff28873b35..404b8ac695aaa 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesListSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesListSamples.java @@ -9,7 +9,7 @@ /** Samples for PacketCoreControlPlanes List. */ public final class PacketCoreControlPlanesListSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneListBySubscription.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneListBySubscription.json */ /** * Sample code: List packet core control planes in a subscription. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesSupportedVersionsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesSupportedVersionsSamples.java new file mode 100644 index 0000000000000..fe42120f79341 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesSupportedVersionsSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.generated; + +import com.azure.core.util.Context; + +/** Samples for PacketCoreControlPlanes SupportedVersions. */ +public final class PacketCoreControlPlanesSupportedVersionsSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SupportedPacketCoreControlPlaneVersions.json + */ + /** + * Sample code: Get supported packet core control plane versions. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void getSupportedPacketCoreControlPlaneVersions( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.packetCoreControlPlanes().supportedVersionsWithResponse("rg", Context.NONE); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesUpdateTagsSamples.java index ec346534acfd6..801abe221ac27 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesUpdateTagsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** Samples for PacketCoreControlPlanes UpdateTags. */ public final class PacketCoreControlPlanesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreControlPlaneUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneUpdateTags.json */ /** * Sample code: Update packet core control plane tags. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesCreateOrUpdateSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesCreateOrUpdateSamples.java index 4efd1240de26b..4f814e727e48c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesCreateOrUpdateSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ /** Samples for PacketCoreDataPlanes CreateOrUpdate. */ public final class PacketCoreDataPlanesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreDataPlaneCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreDataPlaneCreate.json */ /** * Sample code: Create packet core data plane. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesDeleteSamples.java index 0f12ab37de8be..c65a825a4ddcd 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesDeleteSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for PacketCoreDataPlanes Delete. */ public final class PacketCoreDataPlanesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreDataPlaneDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreDataPlaneDelete.json */ /** * Sample code: Delete packet core data plane. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesGetSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesGetSamples.java index 2a9841401b878..0ee55297cd8c8 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesGetSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for PacketCoreDataPlanes Get. */ public final class PacketCoreDataPlanesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreDataPlaneGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreDataPlaneGet.json */ /** * Sample code: Get packet core data plane. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesListByPacketCoreControlPlaneSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesListByPacketCoreControlPlaneSamples.java index d9de6bdb96aff..99fefcb05416d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesListByPacketCoreControlPlaneSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesListByPacketCoreControlPlaneSamples.java @@ -9,7 +9,7 @@ /** Samples for PacketCoreDataPlanes ListByPacketCoreControlPlane. */ public final class PacketCoreDataPlanesListByPacketCoreControlPlaneSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json */ /** * Sample code: List packet core data planes in a control plane. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesUpdateTagsSamples.java index 7a3828480c705..472cb3c34992d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesUpdateTagsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreDataPlanesUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** Samples for PacketCoreDataPlanes UpdateTags. */ public final class PacketCoreDataPlanesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/PacketCoreDataPlaneUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreDataPlaneUpdateTags.json */ /** * Sample code: Update packet core data plane tags. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesCreateOrUpdateSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesCreateOrUpdateSamples.java index fc63ebdc68a22..b9cb6f289f83c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesCreateOrUpdateSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesCreateOrUpdateSamples.java @@ -18,7 +18,7 @@ /** Samples for Services CreateOrUpdate. */ public final class ServicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/ServiceCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/ServiceCreate.json */ /** * Sample code: Create service. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesDeleteSamples.java index 5b500aa1cb096..8cc61956c114e 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesDeleteSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Services Delete. */ public final class ServicesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/ServiceDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/ServiceDelete.json */ /** * Sample code: Delete service. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesGetSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesGetSamples.java index 8f0749dc66304..a0451c478b5aa 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesGetSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Services Get. */ public final class ServicesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/ServiceGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/ServiceGet.json */ /** * Sample code: Get service. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesListByMobileNetworkSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesListByMobileNetworkSamples.java index 156d81dc48fc3..f4064ea252dcd 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesListByMobileNetworkSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesListByMobileNetworkSamples.java @@ -9,7 +9,7 @@ /** Samples for Services ListByMobileNetwork. */ public final class ServicesListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/ServiceListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/ServiceListByMobileNetwork.json */ /** * Sample code: List services in a mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesUpdateTagsSamples.java index 63cad299902cb..fd5373b876d65 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesUpdateTagsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/ServicesUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** Samples for Services UpdateTags. */ public final class ServicesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/ServiceUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/ServiceUpdateTags.json */ /** * Sample code: Update service tags. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsCreateOrUpdateSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..be98113aa283b --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsCreateOrUpdateSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.generated; + +import com.azure.resourcemanager.mobilenetwork.models.KeyVaultKey; +import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; + +/** Samples for SimGroups CreateOrUpdate. */ +public final class SimGroupsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupCreate.json + */ + /** + * Sample code: Create SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void createSIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager + .simGroups() + .define("testSimGroup") + .withRegion("eastus") + .withExistingResourceGroup("rg1") + .withEncryptionKey(new KeyVaultKey().withKeyUrl("https://contosovault.vault.azure.net/keys/azureKey")) + .withMobileNetwork( + new MobileNetworkResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork")) + .create(); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsListSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsDeleteSamples.java similarity index 50% rename from sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsListSamples.java rename to sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsDeleteSamples.java index 82ad2c0a3f6a3..d46bb24a511c5 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsListSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsDeleteSamples.java @@ -6,17 +6,17 @@ import com.azure.core.util.Context; -/** Samples for Sims List. */ -public final class SimsListSamples { +/** Samples for SimGroups Delete. */ +public final class SimGroupsDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimListBySubscription.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupDelete.json */ /** - * Sample code: List sims in a subscription. + * Sample code: Delete SIM group. * * @param manager Entry point to MobileNetworkManager. */ - public static void listSimsInASubscription(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.sims().list(Context.NONE); + public static void deleteSIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.simGroups().delete("testResourceGroupName", "testSimGroup", Context.NONE); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsGetByResourceGroupSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsGetByResourceGroupSamples.java new file mode 100644 index 0000000000000..944855ca058ad --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsGetByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.generated; + +import com.azure.core.util.Context; + +/** Samples for SimGroups GetByResourceGroup. */ +public final class SimGroupsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupGet.json + */ + /** + * Sample code: Get SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void getSIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.simGroups().getByResourceGroupWithResponse("testResourceGroupName", "testSimGroupName", Context.NONE); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsListByResourceGroupSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsListByResourceGroupSamples.java new file mode 100644 index 0000000000000..16bdf5c069071 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.generated; + +import com.azure.core.util.Context; + +/** Samples for SimGroups ListByResourceGroup. */ +public final class SimGroupsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupListByResourceGroup.json + */ + /** + * Sample code: List SIM groups in a resource group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void listSIMGroupsInAResourceGroup( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.simGroups().listByResourceGroup("rg1", Context.NONE); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsListSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsListSamples.java new file mode 100644 index 0000000000000..be486d383e7c5 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.generated; + +import com.azure.core.util.Context; + +/** Samples for SimGroups List. */ +public final class SimGroupsListSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupListBySubscription.json + */ + /** + * Sample code: List SIM groups in a subscription. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void listSIMGroupsInASubscription( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.simGroups().list(Context.NONE); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsUpdateTagsSamples.java similarity index 62% rename from sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsUpdateTagsSamples.java rename to sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsUpdateTagsSamples.java index 6e38aed463fdb..c752125f223b9 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsUpdateTagsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsUpdateTagsSamples.java @@ -5,22 +5,23 @@ package com.azure.resourcemanager.mobilenetwork.generated; import com.azure.core.util.Context; -import com.azure.resourcemanager.mobilenetwork.models.Sim; +import com.azure.resourcemanager.mobilenetwork.models.SimGroup; import java.util.HashMap; import java.util.Map; -/** Samples for Sims UpdateTags. */ -public final class SimsUpdateTagsSamples { +/** Samples for SimGroups UpdateTags. */ +public final class SimGroupsUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGroupUpdateTags.json */ /** - * Sample code: Update sim tags. + * Sample code: Update SIM group tags. * * @param manager Entry point to MobileNetworkManager. */ - public static void updateSimTags(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - Sim resource = manager.sims().getByResourceGroupWithResponse("rg1", "testSim", Context.NONE).getValue(); + public static void updateSIMGroupTags(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + SimGroup resource = + manager.simGroups().getByResourceGroupWithResponse("rg1", "testSimGroup", Context.NONE).getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesCreateOrUpdateSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesCreateOrUpdateSamples.java index f7924dc34ef02..1cbe6d6f47a93 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesCreateOrUpdateSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesCreateOrUpdateSamples.java @@ -18,14 +18,14 @@ /** Samples for SimPolicies CreateOrUpdate. */ public final class SimPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimPolicyCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyCreate.json */ /** - * Sample code: Create sim policy. + * Sample code: Create SIM policy. * * @param manager Entry point to MobileNetworkManager. */ - public static void createSimPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void createSIMPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager .simPolicies() .define("testPolicy") diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesDeleteSamples.java index eaa458a903a38..9e37ac992377d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesDeleteSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesDeleteSamples.java @@ -9,14 +9,14 @@ /** Samples for SimPolicies Delete. */ public final class SimPoliciesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimPolicyDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyDelete.json */ /** - * Sample code: Delete sim policy. + * Sample code: Delete SIM policy. * * @param manager Entry point to MobileNetworkManager. */ - public static void deleteSimPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void deleteSIMPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.simPolicies().delete("rg1", "testMobileNetwork", "testPolicy", Context.NONE); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesGetSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesGetSamples.java index ee4586496118c..aed2014d112d5 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesGetSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesGetSamples.java @@ -9,14 +9,14 @@ /** Samples for SimPolicies Get. */ public final class SimPoliciesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimPolicyGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyGet.json */ /** - * Sample code: Get sim policy. + * Sample code: Get SIM policy. * * @param manager Entry point to MobileNetworkManager. */ - public static void getSimPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void getSIMPolicy(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.simPolicies().getWithResponse("rg1", "testMobileNetwork", "testPolicy", Context.NONE); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesListByMobileNetworkSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesListByMobileNetworkSamples.java index 9f2476d1a7f32..d2a0de2858173 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesListByMobileNetworkSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesListByMobileNetworkSamples.java @@ -9,14 +9,14 @@ /** Samples for SimPolicies ListByMobileNetwork. */ public final class SimPoliciesListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimPolicyListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyListByMobileNetwork.json */ /** - * Sample code: List sim policies in a mobile network. + * Sample code: List SIM policies in a mobile network. * * @param manager Entry point to MobileNetworkManager. */ - public static void listSimPoliciesInAMobileNetwork( + public static void listSIMPoliciesInAMobileNetwork( com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.simPolicies().listByMobileNetwork("testResourceGroupName", "testMobileNetwork", Context.NONE); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesUpdateTagsSamples.java index 1ef08f52fc455..8fcbc7a047553 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesUpdateTagsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimPoliciesUpdateTagsSamples.java @@ -12,14 +12,14 @@ /** Samples for SimPolicies UpdateTags. */ public final class SimPoliciesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimPolicyUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyUpdateTags.json */ /** - * Sample code: Update sim policy tags. + * Sample code: Update SIM policy tags. * * @param manager Entry point to MobileNetworkManager. */ - public static void updateSimPolicyTags(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void updateSIMPolicyTags(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { SimPolicy resource = manager.simPolicies().getWithResponse("rg1", "testMobileNetwork", "testPolicy", Context.NONE).getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsCreateOrUpdateSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsCreateOrUpdateSamples.java index a6d6cc9b0381b..fb1510c2a2676 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsCreateOrUpdateSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsCreateOrUpdateSamples.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.mobilenetwork.generated; import com.azure.resourcemanager.mobilenetwork.models.AttachedDataNetworkResourceId; -import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties; import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpPropertiesStaticIp; @@ -15,27 +14,22 @@ /** Samples for Sims CreateOrUpdate. */ public final class SimsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimCreate.json */ /** - * Sample code: Create sim. + * Sample code: Create SIM. * * @param manager Entry point to MobileNetworkManager. */ - public static void createSim(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void createSIM(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager .sims() .define("testSim") - .withRegion("testLocation") - .withExistingResourceGroup("rg1") + .withExistingSimGroup("rg1", "testSimGroup") .withInternationalMobileSubscriberIdentity("00000") .withIntegratedCircuitCardIdentifier("8900000000000000000") .withAuthenticationKey("00000000000000000000000000000000") .withOperatorKeyCode("00000000000000000000000000000000") - .withMobileNetwork( - new MobileNetworkResourceId() - .withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork")) .withDeviceType("Video camera") .withSimPolicy( new SimPolicyResourceId() diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsDeleteSamples.java index f00ae356ea990..6bf170dc8c08a 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsDeleteSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsDeleteSamples.java @@ -9,14 +9,14 @@ /** Samples for Sims Delete. */ public final class SimsDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimDelete.json */ /** - * Sample code: Delete sim. + * Sample code: Delete SIM. * * @param manager Entry point to MobileNetworkManager. */ - public static void deleteSim(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.sims().delete("testResourceGroupName", "testSim", Context.NONE); + public static void deleteSIM(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.sims().delete("testResourceGroupName", "testSimGroup", "testSim", Context.NONE); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsGetByResourceGroupSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsGetSamples.java similarity index 56% rename from sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsGetByResourceGroupSamples.java rename to sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsGetSamples.java index fb429f0fcaff4..c4c003b09e457 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsGetByResourceGroupSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsGetSamples.java @@ -6,17 +6,17 @@ import com.azure.core.util.Context; -/** Samples for Sims GetByResourceGroup. */ -public final class SimsGetByResourceGroupSamples { +/** Samples for Sims Get. */ +public final class SimsGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGet.json */ /** - * Sample code: Get sim. + * Sample code: Get SIM. * * @param manager Entry point to MobileNetworkManager. */ - public static void getSim(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.sims().getByResourceGroupWithResponse("testResourceGroupName", "testSimName", Context.NONE); + public static void getSIM(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.sims().getWithResponse("testResourceGroupName", "testSimGroup", "testSimName", Context.NONE); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsListByResourceGroupSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsListByResourceGroupSamples.java deleted file mode 100644 index 3414c7dc2ee1d..0000000000000 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsListByResourceGroupSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.mobilenetwork.generated; - -import com.azure.core.util.Context; - -/** Samples for Sims ListByResourceGroup. */ -public final class SimsListByResourceGroupSamples { - /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SimListByResourceGroup.json - */ - /** - * Sample code: List sims in a resource group. - * - * @param manager Entry point to MobileNetworkManager. - */ - public static void listSimsInAResourceGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.sims().listByResourceGroup("rg1", Context.NONE); - } -} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsListBySimGroupSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsListBySimGroupSamples.java new file mode 100644 index 0000000000000..62547fbc7b344 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsListBySimGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mobilenetwork.generated; + +import com.azure.core.util.Context; + +/** Samples for Sims ListBySimGroup. */ +public final class SimsListBySimGroupSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimListBySimGroup.json + */ + /** + * Sample code: List SIMs in a SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void listSIMsInASIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.sims().listBySimGroup("rg1", "testSimGroup", Context.NONE); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesCreateOrUpdateSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesCreateOrUpdateSamples.java index abe44d114a023..1a19cb812e3be 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesCreateOrUpdateSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesCreateOrUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for Sites CreateOrUpdate. */ public final class SitesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SiteCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteCreate.json */ /** * Sample code: Create mobile network site. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesDeleteSamples.java index 5413948b3a708..f7aa94569f289 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesDeleteSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Sites Delete. */ public final class SitesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SiteDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteDelete.json */ /** * Sample code: Delete mobile network site. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesGetSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesGetSamples.java index 6bb8ecab95f6d..116fe814101be 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesGetSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Sites Get. */ public final class SitesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SiteGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteGet.json */ /** * Sample code: Get mobile network site. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesListByMobileNetworkSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesListByMobileNetworkSamples.java index 2bae2ccb9e519..97ca5d9a7ff90 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesListByMobileNetworkSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesListByMobileNetworkSamples.java @@ -9,7 +9,7 @@ /** Samples for Sites ListByMobileNetwork. */ public final class SitesListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SiteListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteListByMobileNetwork.json */ /** * Sample code: List mobile network sites in a mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesUpdateTagsSamples.java index 277ca4c468442..5cec26ef48dff 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesUpdateTagsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SitesUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** Samples for Sites UpdateTags. */ public final class SitesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SiteUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteUpdateTags.json */ /** * Sample code: Update mobile network site tags. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesCreateOrUpdateSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesCreateOrUpdateSamples.java index c18fd50c10a83..6eb181131474c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesCreateOrUpdateSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesCreateOrUpdateSamples.java @@ -9,14 +9,14 @@ /** Samples for Slices CreateOrUpdate. */ public final class SlicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SliceCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceCreate.json */ /** - * Sample code: Create mobile network slice. + * Sample code: Create network slice. * * @param manager Entry point to MobileNetworkManager. */ - public static void createMobileNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void createNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager .slices() .define("testSlice") diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesDeleteSamples.java index 24036fabaf867..eb60084ef56e8 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesDeleteSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesDeleteSamples.java @@ -9,14 +9,14 @@ /** Samples for Slices Delete. */ public final class SlicesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SliceDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceDelete.json */ /** - * Sample code: Delete mobile network slice. + * Sample code: Delete network slice. * * @param manager Entry point to MobileNetworkManager. */ - public static void deleteMobileNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void deleteNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.slices().delete("rg1", "testMobileNetwork", "testSlice", Context.NONE); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesGetSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesGetSamples.java index 0fb90100c6eeb..d57bf54d37671 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesGetSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesGetSamples.java @@ -9,14 +9,14 @@ /** Samples for Slices Get. */ public final class SlicesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SliceGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceGet.json */ /** - * Sample code: Get mobile network slice. + * Sample code: Get network slice. * * @param manager Entry point to MobileNetworkManager. */ - public static void getMobileNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void getNetworkSlice(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.slices().getWithResponse("rg1", "testMobileNetwork", "testSlice", Context.NONE); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesListByMobileNetworkSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesListByMobileNetworkSamples.java index 716962dabfc9f..0fd7837fd33dd 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesListByMobileNetworkSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesListByMobileNetworkSamples.java @@ -9,14 +9,14 @@ /** Samples for Slices ListByMobileNetwork. */ public final class SlicesListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SliceListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceListByMobileNetwork.json */ /** - * Sample code: List mobile network slices in a mobile network. + * Sample code: List network slices in a mobile network. * * @param manager Entry point to MobileNetworkManager. */ - public static void listMobileNetworkSlicesInAMobileNetwork( + public static void listNetworkSlicesInAMobileNetwork( com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { manager.slices().listByMobileNetwork("rg1", "testMobileNetwork", Context.NONE); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesUpdateTagsSamples.java index 7daff2fefb75c..770af0e3406f2 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesUpdateTagsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SlicesUpdateTagsSamples.java @@ -12,15 +12,14 @@ /** Samples for Slices UpdateTags. */ public final class SlicesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-03-01-preview/examples/SliceUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceUpdateTags.json */ /** - * Sample code: Update mobile network slice tags. + * Sample code: Update network slice tags. * * @param manager Entry point to MobileNetworkManager. */ - public static void updateMobileNetworkSliceTags( - com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + public static void updateNetworkSliceTags(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { Slice resource = manager.slices().getWithResponse("rg1", "testMobileNetwork", "testSlice", Context.NONE).getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();