From 3dc946e2e0c2c451b63ef243f4876feb2af558a5 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 21 Dec 2022 04:02:53 -0500 Subject: [PATCH] [Automation] Generate Fluent Lite from mobilenetwork#package-2022-11-01 (#32673) --- .../CHANGELOG.md | 179 +++- .../README.md | 27 +- .../SAMPLE.md | 531 +++++++--- .../pom.xml | 2 +- .../mobilenetwork/MobileNetworkManager.java | 121 ++- .../fluent/AttachedDataNetworksClient.java | 44 +- .../fluent/DataNetworksClient.java | 42 +- .../fluent/MobileNetworkManagementClient.java | 56 +- .../fluent/MobileNetworksClient.java | 81 +- ...acketCoreControlPlaneOperationsClient.java | 214 ++++ .../PacketCoreControlPlaneVersionsClient.java | 14 +- .../fluent/PacketCoreControlPlanesClient.java | 26 +- .../fluent/PacketCoreDataPlanesClient.java | 42 +- .../mobilenetwork/fluent/ServicesClient.java | 34 +- .../mobilenetwork/fluent/SimGroupsClient.java | 24 +- .../fluent/SimOperationsClient.java | 202 ++++ .../fluent/SimPoliciesClient.java | 42 +- .../mobilenetwork/fluent/SimsClient.java | 14 +- .../mobilenetwork/fluent/SitesClient.java | 44 +- .../mobilenetwork/fluent/SlicesClient.java | 32 +- .../models/AsyncOperationStatusInner.java | 269 +++++ .../models/AttachedDataNetworkInner.java | 32 +- .../AttachedDataNetworkPropertiesFormat.java | 56 +- .../fluent/models/DataNetworkInner.java | 9 +- .../models/DataNetworkPropertiesFormat.java | 4 + .../models/EncryptedSimPropertiesFormat.java | 92 ++ .../fluent/models/MobileNetworkInner.java | 7 +- .../models/MobileNetworkPropertiesFormat.java | 12 +- .../fluent/models/OperationInner.java | 4 + .../models/PacketCoreControlPlaneInner.java | 78 +- ...acketCoreControlPlanePropertiesFormat.java | 137 ++- .../PacketCoreControlPlaneVersionInner.java | 52 +- ...reControlPlaneVersionPropertiesFormat.java | 63 +- .../models/PacketCoreDataPlaneInner.java | 9 +- .../PacketCoreDataPlanePropertiesFormat.java | 8 +- .../fluent/models/ServiceInner.java | 9 +- .../models/ServicePropertiesFormat.java | 18 +- .../fluent/models/SimGroupInner.java | 13 +- .../models/SimGroupPropertiesFormat.java | 12 +- .../fluent/models/SimIdListResultInner.java | 63 -- .../mobilenetwork/fluent/models/SimInner.java | 148 ++- .../fluent/models/SimPolicyInner.java | 22 +- .../models/SimPolicyPropertiesFormat.java | 47 +- .../fluent/models/SimPropertiesFormat.java | 200 +--- .../fluent/models/SiteInner.java | 28 +- .../fluent/models/SitePropertiesFormat.java | 30 +- .../fluent/models/SliceInner.java | 9 +- .../fluent/models/SlicePropertiesFormat.java | 7 +- .../fluent/models/package-info.java | 6 +- .../mobilenetwork/fluent/package-info.java | 2 +- .../AsyncOperationStatusImpl.java | 67 ++ .../AttachedDataNetworkImpl.java | 15 +- .../AttachedDataNetworksClientImpl.java | 94 +- .../AttachedDataNetworksImpl.java | 32 +- .../DataNetworksClientImpl.java | 73 +- .../implementation/DataNetworksImpl.java | 18 +- .../implementation/MobileNetworkImpl.java | 9 - .../MobileNetworkManagementClientBuilder.java | 34 +- .../MobileNetworkManagementClientImpl.java | 108 +- .../MobileNetworksClientImpl.java | 308 +----- .../implementation/MobileNetworksImpl.java | 38 +- .../implementation/OperationsClientImpl.java | 8 +- .../PacketCoreControlPlaneImpl.java | 50 +- ...tCoreControlPlaneOperationsClientImpl.java | 964 ++++++++++++++++++ .../PacketCoreControlPlaneOperationsImpl.java | 104 ++ .../PacketCoreControlPlaneVersionImpl.java | 18 +- ...ketCoreControlPlaneVersionsClientImpl.java | 65 +- .../PacketCoreControlPlaneVersionsImpl.java | 26 +- .../PacketCoreControlPlanesClientImpl.java | 49 +- .../PacketCoreControlPlanesImpl.java | 20 +- .../PacketCoreDataPlanesClientImpl.java | 84 +- .../PacketCoreDataPlanesImpl.java | 22 +- .../implementation/ServicesClientImpl.java | 73 +- .../implementation/ServicesImpl.java | 18 +- .../implementation/SimGroupsClientImpl.java | 46 +- .../implementation/SimGroupsImpl.java | 18 +- .../implementation/SimIdListResultImpl.java | 44 - .../mobilenetwork/implementation/SimImpl.java | 50 +- .../SimOperationsClientImpl.java | 930 +++++++++++++++++ .../implementation/SimOperationsImpl.java | 99 ++ .../implementation/SimPoliciesClientImpl.java | 73 +- .../implementation/SimPoliciesImpl.java | 18 +- .../implementation/SimPolicyImpl.java | 10 + .../implementation/SimsClientImpl.java | 64 +- .../implementation/SimsImpl.java | 26 +- .../implementation/SiteImpl.java | 5 - .../implementation/SitesClientImpl.java | 93 +- .../implementation/SitesImpl.java | 18 +- .../implementation/SlicesClientImpl.java | 65 +- .../implementation/SlicesImpl.java | 18 +- .../implementation/package-info.java | 2 +- .../mobilenetwork/models/Ambr.java | 4 + .../models/AsyncOperationId.java | 58 ++ .../models/AsyncOperationStatus.java | 82 ++ .../models/AttachedDataNetwork.java | 39 +- .../models/AttachedDataNetworkListResult.java | 4 + .../models/AttachedDataNetworkResourceId.java | 4 + .../models/AttachedDataNetworks.java | 16 +- .../models/AuthenticationType.java | 38 + .../AzureStackEdgeDeviceResourceId.java | 6 +- .../AzureStackHciClusterResourceId.java | 59 ++ .../mobilenetwork/models/BillingSku.java | 33 +- .../models/CertificateProvisioning.java | 54 + .../models/CertificateProvisioningState.java | 41 + .../models/CommonSimPropertiesFormat.java | 263 +++++ .../models/ConnectedClusterResourceId.java | 4 + .../mobilenetwork/models/CoreNetworkType.java | 53 +- .../models/CustomLocationResourceId.java | 4 + .../models/DataNetworkConfiguration.java | 104 +- .../models/DataNetworkListResult.java | 4 + .../models/DataNetworkResourceId.java | 4 + .../mobilenetwork/models/DataNetworks.java | 12 +- .../models/EncryptedSimUploadList.java | 216 ++++ .../models/HttpsServerCertificate.java | 79 ++ .../mobilenetwork/models/Installation.java | 79 ++ .../models/InstallationState.java | 59 ++ .../models/InterfaceProperties.java | 8 +- .../models/KeyVaultCertificate.java | 49 - .../mobilenetwork/models/KeyVaultKey.java | 7 +- .../LocalDiagnosticsAccessConfiguration.java | 49 +- .../models/ManagedServiceIdentity.java | 20 +- .../models/ManagedServiceIdentityType.java | 2 +- .../mobilenetwork/models/MobileNetwork.java | 20 - .../models/MobileNetworkListResult.java | 4 + .../models/MobileNetworkResourceId.java | 4 + .../mobilenetwork/models/MobileNetworks.java | 37 +- .../models/NaptConfiguration.java | 32 +- .../mobilenetwork/models/NaptEnabled.java | 2 +- .../mobilenetwork/models/ObsoleteVersion.java | 38 + .../models/OperationDisplay.java | 7 +- .../mobilenetwork/models/OperationList.java | 4 + .../models/PacketCoreControlPlane.java | 104 +- ...ControlPlaneCollectDiagnosticsPackage.java | 60 ++ .../PacketCoreControlPlaneListResult.java | 4 + .../PacketCoreControlPlaneOperations.java | 100 ++ .../models/PacketCoreControlPlaneVersion.java | 15 +- ...cketCoreControlPlaneVersionListResult.java | 4 + .../PacketCoreControlPlaneVersions.java | 14 +- .../models/PacketCoreControlPlanes.java | 12 +- .../models/PacketCoreDataPlaneListResult.java | 4 + .../models/PacketCoreDataPlanes.java | 14 +- .../models/PccRuleConfiguration.java | 23 +- .../models/PccRuleQosPolicy.java | 11 +- .../mobilenetwork/models/PduSessionType.java | 2 +- .../mobilenetwork/models/PinholeTimeouts.java | 31 +- .../mobilenetwork/models/Platform.java | 184 ++++ .../models/PlatformConfiguration.java | 67 +- .../mobilenetwork/models/PlatformType.java | 6 +- .../mobilenetwork/models/PlmnId.java | 4 + .../mobilenetwork/models/PortRange.java | 4 + .../models/PortReuseHoldTimes.java | 12 +- .../models/PreemptionCapability.java | 2 +- .../models/PreemptionVulnerability.java | 2 +- .../models/ProvisioningState.java | 2 +- .../mobilenetwork/models/QosPolicy.java | 41 +- .../models/RecommendedVersion.java | 2 +- .../mobilenetwork/models/SdfDirection.java | 2 +- .../models/ServiceDataFlowTemplate.java | 42 +- .../models/ServiceListResult.java | 4 + .../models/ServiceResourceId.java | 4 + .../mobilenetwork/models/Services.java | 12 +- .../mobilenetwork/models/Sim.java | 125 ++- .../mobilenetwork/models/SimDeleteList.java | 59 ++ .../mobilenetwork/models/SimGroup.java | 9 +- .../models/SimGroupListResult.java | 4 + .../mobilenetwork/models/SimGroups.java | 10 +- .../mobilenetwork/models/SimIdListResult.java | 33 - .../mobilenetwork/models/SimListResult.java | 4 + .../models/SimNameAndEncryptedProperties.java | 280 +++++ .../models/SimNameAndProperties.java | 302 ++++++ .../mobilenetwork/models/SimOperations.java | 95 ++ .../mobilenetwork/models/SimPolicies.java | 12 +- .../mobilenetwork/models/SimPolicy.java | 15 +- .../models/SimPolicyListResult.java | 4 + .../models/SimPolicyResourceId.java | 4 + .../mobilenetwork/models/SimState.java | 2 +- .../models/SimStaticIpProperties.java | 30 +- .../models/SimStaticIpPropertiesStaticIp.java | 9 +- .../mobilenetwork/models/SimUploadList.java | 61 ++ .../mobilenetwork/models/Sims.java | 14 +- .../mobilenetwork/models/Site.java | 18 +- .../mobilenetwork/models/SiteListResult.java | 4 + .../models/SiteProvisioningState.java | 50 + .../mobilenetwork/models/SiteResourceId.java | 58 ++ .../mobilenetwork/models/Sites.java | 24 +- .../models/SliceConfiguration.java | 27 +- .../mobilenetwork/models/SliceListResult.java | 4 + .../mobilenetwork/models/SliceResourceId.java | 4 + .../mobilenetwork/models/Slices.java | 12 +- .../mobilenetwork/models/Snssai.java | 4 + .../mobilenetwork/models/TagsObject.java | 4 + .../models/TrafficControlPermission.java | 2 +- .../models/UserAssignedIdentity.java | 4 + .../mobilenetwork/models/VersionState.java | 2 +- .../mobilenetwork/models/package-info.java | 5 +- .../mobilenetwork/package-info.java | 2 +- ...chedDataNetworksCreateOrUpdateSamples.java | 2 +- .../AttachedDataNetworksDeleteSamples.java | 2 +- .../AttachedDataNetworksGetSamples.java | 2 +- ...worksListByPacketCoreDataPlaneSamples.java | 2 +- ...AttachedDataNetworksUpdateTagsSamples.java | 2 +- .../DataNetworksCreateOrUpdateSamples.java | 2 +- .../generated/DataNetworksDeleteSamples.java | 2 +- .../generated/DataNetworksGetSamples.java | 2 +- ...ataNetworksListByMobileNetworkSamples.java | 2 +- .../DataNetworksUpdateTagsSamples.java | 2 +- .../MobileNetworksCreateOrUpdateSamples.java | 2 +- .../MobileNetworksDeleteSamples.java | 2 +- ...bileNetworksGetByResourceGroupSamples.java | 2 +- ...ileNetworksListByResourceGroupSamples.java | 2 +- .../generated/MobileNetworksListSamples.java | 2 +- .../MobileNetworksUpdateTagsSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- ...ationCollectDiagnosticsPackageSamples.java | 32 + ...ControlPlaneOperationReinstallSamples.java | 23 + ...ControlPlaneOperationRollbackSamples.java} | 12 +- ...ketCoreControlPlaneVersionsGetSamples.java | 2 +- ...tCoreControlPlaneVersionsListSamples.java} | 8 +- ...oreControlPlanesCreateOrUpdateSamples.java | 30 +- .../PacketCoreControlPlanesDeleteSamples.java | 2 +- ...ontrolPlanesGetByResourceGroupSamples.java | 2 +- ...ntrolPlanesListByResourceGroupSamples.java | 2 +- .../PacketCoreControlPlanesListSamples.java | 2 +- ...ketCoreControlPlanesUpdateTagsSamples.java | 2 +- ...etCoreDataPlanesCreateOrUpdateSamples.java | 2 +- .../PacketCoreDataPlanesDeleteSamples.java | 2 +- .../PacketCoreDataPlanesGetSamples.java | 2 +- ...esListByPacketCoreControlPlaneSamples.java | 2 +- ...PacketCoreDataPlanesUpdateTagsSamples.java | 2 +- .../ServicesCreateOrUpdateSamples.java | 2 +- .../generated/ServicesDeleteSamples.java | 2 +- .../generated/ServicesGetSamples.java | 2 +- .../ServicesListByMobileNetworkSamples.java | 2 +- .../generated/ServicesUpdateTagsSamples.java | 2 +- .../SimGroupsCreateOrUpdateSamples.java | 27 +- .../generated/SimGroupsDeleteSamples.java | 2 +- .../SimGroupsGetByResourceGroupSamples.java | 2 +- .../SimGroupsListByResourceGroupSamples.java | 2 +- .../generated/SimGroupsListSamples.java | 2 +- .../generated/SimGroupsUpdateTagsSamples.java | 2 +- .../SimOperationBulkDeleteSamples.java | 31 + ...imOperationBulkUploadEncryptedSamples.java | 95 ++ .../SimOperationBulkUploadSamples.java | 91 ++ .../SimPoliciesCreateOrUpdateSamples.java | 5 +- .../generated/SimPoliciesDeleteSamples.java | 2 +- .../generated/SimPoliciesGetSamples.java | 2 +- ...SimPoliciesListByMobileNetworkSamples.java | 2 +- .../SimPoliciesUpdateTagsSamples.java | 2 +- .../generated/SimsCreateOrUpdateSamples.java | 4 +- .../generated/SimsDeleteSamples.java | 2 +- .../generated/SimsGetSamples.java | 2 +- ...mples.java => SimsListByGroupSamples.java} | 8 +- .../generated/SitesCreateOrUpdateSamples.java | 11 +- .../generated/SitesDeleteSamples.java | 2 +- .../generated/SitesGetSamples.java | 2 +- .../SitesListByMobileNetworkSamples.java | 2 +- .../generated/SitesUpdateTagsSamples.java | 2 +- .../SlicesCreateOrUpdateSamples.java | 2 +- .../generated/SlicesDeleteSamples.java | 2 +- .../generated/SlicesGetSamples.java | 2 +- .../SlicesListByMobileNetworkSamples.java | 2 +- .../generated/SlicesUpdateTagsSamples.java | 2 +- 262 files changed, 8682 insertions(+), 2580 deletions(-) create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreControlPlaneOperationsClient.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimOperationsClient.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AsyncOperationStatusInner.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/EncryptedSimPropertiesFormat.java delete mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimIdListResultInner.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AsyncOperationStatusImpl.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneOperationsClientImpl.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneOperationsImpl.java delete mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimIdListResultImpl.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimOperationsClientImpl.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimOperationsImpl.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AsyncOperationId.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AsyncOperationStatus.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AuthenticationType.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AzureStackHciClusterResourceId.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CertificateProvisioning.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CertificateProvisioningState.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CommonSimPropertiesFormat.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/EncryptedSimUploadList.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/HttpsServerCertificate.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Installation.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InstallationState.java delete mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/KeyVaultCertificate.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ObsoleteVersion.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneCollectDiagnosticsPackage.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneOperations.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Platform.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimDeleteList.java delete mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimIdListResult.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimNameAndEncryptedProperties.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimNameAndProperties.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimOperations.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimUploadList.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteProvisioningState.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteResourceId.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneOperationCollectDiagnosticsPackageSamples.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneOperationReinstallSamples.java rename sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/{MobileNetworksListSimIdsSamples.java => PacketCoreControlPlaneOperationRollbackSamples.java} (53%) rename sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/{PacketCoreControlPlaneVersionsListByResourceGroupSamples.java => PacketCoreControlPlaneVersionsListSamples.java} (64%) create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkDeleteSamples.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkUploadEncryptedSamples.java create mode 100644 sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkUploadSamples.java rename sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/{SimsListBySimGroupSamples.java => SimsListByGroupSamples.java} (69%) diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md index da38579dbb8e9..64e74af8ebfe7 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md @@ -1,14 +1,185 @@ # Release History -## 1.0.0-beta.4 (Unreleased) +## 1.0.0-beta.4 (2022-12-21) -### Features Added +- Azure Resource Manager MobileNetwork client library for Java. This package contains Microsoft Azure SDK for MobileNetwork Management SDK. The resources in this API specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance. Package tag package-2022-11-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +* `models.SimIdListResult` was removed + +* `models.KeyVaultCertificate` was removed + +#### `models.AttachedDataNetwork$DefinitionStages` was modified + +* Stage 4 was added + +#### `models.PacketCoreControlPlane$DefinitionStages` was modified + +* `withMobileNetwork(models.MobileNetworkResourceId)` was removed in stage 3 +* `withControlPlaneAccessInterface(models.InterfaceProperties)` was removed in stage 4 +* `withSku(models.BillingSku)` was removed in stage 5 +* Stage 6, 7 was added + +#### `models.PacketCoreControlPlaneVersions` was modified + +* `listByResourceGroup(com.azure.core.util.Context)` was removed +* `listByResourceGroup()` was removed + +#### `models.PacketCoreControlPlaneVersion` was modified + +* `versionState()` was removed +* `recommendedVersion()` was removed + +#### `models.PacketCoreControlPlane` was modified + +* `mobileNetwork()` was removed + +#### `models.Sims` was modified + +* `listBySimGroup(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed +* `listBySimGroup(java.lang.String,java.lang.String)` was removed + +#### `models.Site$Definition` was modified + +* `withNetworkFunctions(java.util.List)` was removed + +#### `models.LocalDiagnosticsAccessConfiguration` was modified + +* `models.KeyVaultCertificate httpsServerCertificate()` -> `models.HttpsServerCertificate httpsServerCertificate()` +* `withHttpsServerCertificate(models.KeyVaultCertificate)` was removed + +#### `models.MobileNetwork` was modified + +* `listSimIds(com.azure.core.util.Context)` was removed +* `listSimIds()` was removed + +#### `models.MobileNetworks` was modified + +* `listSimIds(java.lang.String,java.lang.String)` was removed +* `listSimIds(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed + +#### `models.CoreNetworkType` was modified + +* `java.util.Collection values()` -> `models.CoreNetworkType[] values()` + +#### `models.PacketCoreControlPlane$Definition` was modified + +* `withMobileNetwork(models.MobileNetworkResourceId)` was removed + +### Features Added + +* `models.CertificateProvisioning` was added + +* `models.PacketCoreControlPlaneOperations` was added + +* `models.AuthenticationType` was added + +* `models.PacketCoreControlPlaneCollectDiagnosticsPackage` was added + +* `models.SimUploadList` was added + +* `models.SimDeleteList` was added + +* `models.SiteProvisioningState` was added + +* `models.CertificateProvisioningState` was added + +* `models.SimOperations` was added + +* `models.HttpsServerCertificate` was added + +* `models.AsyncOperationId` was added + +* `models.SiteResourceId` was added + +* `models.InstallationState` was added + +* `models.ObsoleteVersion` was added + +* `models.Installation` was added + +* `models.Platform` was added + +* `models.EncryptedSimUploadList` was added + +* `models.CommonSimPropertiesFormat` was added + +* `models.SimNameAndEncryptedProperties` was added + +* `models.AzureStackHciClusterResourceId` was added + +* `models.SimNameAndProperties` was added + +* `models.AsyncOperationStatus` was added + +#### `models.PacketCoreControlPlaneVersions` was modified + +* `list(com.azure.core.util.Context)` was added +* `list()` was added + +#### `models.DataNetworkConfiguration` was modified + +* `maximumNumberOfBufferedPackets()` was added +* `withMaximumNumberOfBufferedPackets(java.lang.Integer)` was added + +#### `models.PacketCoreControlPlaneVersion` was modified + +* `platforms()` was added + +#### `models.PacketCoreControlPlane` was modified + +* `installation()` was added +* `rollbackVersion()` was added +* `ueMtu()` was added +* `sites()` was added + +#### `models.Sim` was modified + +* `siteProvisioningState()` was added +* `vendorKeyFingerprint()` was added +* `systemData()` was added +* `vendorName()` was added + +#### `models.Sims` was modified + +* `listByGroup(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `listByGroup(java.lang.String,java.lang.String)` was added + +#### `models.LocalDiagnosticsAccessConfiguration` was modified + +* `authenticationType()` was added +* `withAuthenticationType(models.AuthenticationType)` was added +* `withHttpsServerCertificate(models.HttpsServerCertificate)` was added + +#### `models.SimPolicy` was modified + +* `siteProvisioningState()` was added + +#### `models.PlatformConfiguration` was modified + +* `withAzureStackHciCluster(models.AzureStackHciClusterResourceId)` was added +* `azureStackEdgeDevices()` was added +* `azureStackHciCluster()` was added + +#### `models.AttachedDataNetwork` was modified + +* `systemData()` was added + +#### `models.CoreNetworkType` was modified + +* `valueOf(java.lang.String)` was added +* `toString()` was added + +#### `MobileNetworkManager` was modified + +* `simOperations()` was added +* `packetCoreControlPlaneOperations()` was added + +#### `models.PacketCoreControlPlane$Definition` was modified -### Other Changes +* `withUeMtu(java.lang.Integer)` was added +* `withSites(java.util.List)` was added ## 1.0.0-beta.3 (2022-07-25) diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/README.md b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/README.md index 98afa22107795..c4379516b6bf1 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-04-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 API specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance. Package tag package-2022-11-01. 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.3 + 1.0.0-beta.4 ``` [//]: # ({x-version-update-end}) @@ -41,19 +41,19 @@ Various documentation is available to help you get started Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client. -[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation. +[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation. ### Authentication -By default, Azure Active Directory token authentication depends on correct configure of following environment variables. +By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables. - `AZURE_CLIENT_ID` for Azure client ID. - `AZURE_TENANT_ID` for Azure tenant ID. - `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. -In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`. +In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -With above configuration, `azure` client can be authenticated by following code: +With above configuration, `azure` client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -83,13 +83,13 @@ See [API design][design] for general introduction on design and key concepts on ## Contributing -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). +For details on contributing to this repository, see the [contributing guide][cg]. -1. Fork it -1. Create your feature branch (`git checkout -b my-new-feature`) -1. Commit your changes (`git commit -am 'Add some feature'`) -1. Push to the branch (`git push origin my-new-feature`) -1. Create new Pull Request +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments. [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS @@ -100,3 +100,6 @@ For details on contributing to this repository, see the [contributing guide](htt [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md +[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/SAMPLE.md b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/SAMPLE.md index 861a60ef05592..3b844e2f2093c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/SAMPLE.md +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/SAMPLE.md @@ -24,17 +24,22 @@ - [GetByResourceGroup](#mobilenetworks_getbyresourcegroup) - [List](#mobilenetworks_list) - [ListByResourceGroup](#mobilenetworks_listbyresourcegroup) -- [ListSimIds](#mobilenetworks_listsimids) - [UpdateTags](#mobilenetworks_updatetags) ## Operations - [List](#operations_list) +## PacketCoreControlPlaneOperation + +- [CollectDiagnosticsPackage](#packetcorecontrolplaneoperation_collectdiagnosticspackage) +- [Reinstall](#packetcorecontrolplaneoperation_reinstall) +- [Rollback](#packetcorecontrolplaneoperation_rollback) + ## PacketCoreControlPlaneVersions - [Get](#packetcorecontrolplaneversions_get) -- [ListByResourceGroup](#packetcorecontrolplaneversions_listbyresourcegroup) +- [List](#packetcorecontrolplaneversions_list) ## PacketCoreControlPlanes @@ -70,6 +75,12 @@ - [ListByResourceGroup](#simgroups_listbyresourcegroup) - [UpdateTags](#simgroups_updatetags) +## SimOperation + +- [BulkDelete](#simoperation_bulkdelete) +- [BulkUpload](#simoperation_bulkupload) +- [BulkUploadEncrypted](#simoperation_bulkuploadencrypted) + ## SimPolicies - [CreateOrUpdate](#simpolicies_createorupdate) @@ -83,7 +94,7 @@ - [CreateOrUpdate](#sims_createorupdate) - [Delete](#sims_delete) - [Get](#sims_get) -- [ListBySimGroup](#sims_listbysimgroup) +- [ListByGroup](#sims_listbygroup) ## Sites @@ -114,7 +125,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-04-01-preview/examples/AttachedDataNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/AttachedDataNetworkCreate.json */ /** * Sample code: Create attached data network. @@ -151,7 +162,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-04-01-preview/examples/AttachedDataNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/AttachedDataNetworkDelete.json */ /** * Sample code: Delete attached data network resource. @@ -175,7 +186,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-04-01-preview/examples/AttachedDataNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/AttachedDataNetworkGet.json */ /** * Sample code: Get attached data network. @@ -198,7 +209,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-04-01-preview/examples/AttachedDataNetworkListByPacketCoreDataPlane.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/AttachedDataNetworkListByPacketCoreDataPlane.json */ /** * Sample code: List attached data networks in a data plane. @@ -225,7 +236,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-04-01-preview/examples/AttachedDataNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/AttachedDataNetworkUpdateTags.json */ /** * Sample code: Update attached data network tags. @@ -261,7 +272,7 @@ public final class AttachedDataNetworksUpdateTagsSamples { /** Samples for DataNetworks CreateOrUpdate. */ public final class DataNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/DataNetworkCreate.json */ /** * Sample code: Create data network. @@ -288,7 +299,7 @@ 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-04-01-preview/examples/DataNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/DataNetworkDelete.json */ /** * Sample code: Delete data network. @@ -309,7 +320,7 @@ 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-04-01-preview/examples/DataNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/DataNetworkGet.json */ /** * Sample code: Get data network. @@ -330,7 +341,7 @@ 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-04-01-preview/examples/DataNetworkListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/DataNetworkListByMobileNetwork.json */ /** * Sample code: List data networks in a mobile network. @@ -355,7 +366,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-04-01-preview/examples/DataNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/DataNetworkUpdateTags.json */ /** * Sample code: Update data network tags. @@ -392,7 +403,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-04-01-preview/examples/MobileNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/MobileNetworkCreate.json */ /** * Sample code: Create mobile network. @@ -419,7 +430,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-04-01-preview/examples/MobileNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/MobileNetworkDelete.json */ /** * Sample code: Delete mobile network. @@ -440,7 +451,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-04-01-preview/examples/MobileNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/MobileNetworkGet.json */ /** * Sample code: Get mobile network. @@ -461,7 +472,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-04-01-preview/examples/MobileNetworkListBySubscription.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/MobileNetworkListBySubscription.json */ /** * Sample code: List mobile networks in a subscription. @@ -483,7 +494,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-04-01-preview/examples/MobileNetworkListByResourceGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/MobileNetworkListByResourceGroup.json */ /** * Sample code: List mobile networks in resource group. @@ -497,28 +508,6 @@ public final class MobileNetworksListByResourceGroupSamples { } ``` -### MobileNetworks_ListSimIds - -```java -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-04-01-preview/examples/SimIdListByMobileNetwork.json - */ - /** - * Sample code: List the IDs of all provisioned SIMs in a mobile network. - * - * @param manager Entry point to MobileNetworkManager. - */ - public static void listTheIDsOfAllProvisionedSIMsInAMobileNetwork( - com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.mobileNetworks().listSimIds("rg", "testMobileNetworkName", Context.NONE); - } -} -``` - ### MobileNetworks_UpdateTags ```java @@ -530,7 +519,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-04-01-preview/examples/MobileNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/MobileNetworkUpdateTags.json */ /** * Sample code: Update mobile network tags. @@ -567,7 +556,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-04-01-preview/examples/OperationList.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/OperationList.json */ /** * Sample code: Get Registration Operations. @@ -580,6 +569,81 @@ public final class OperationsListSamples { } ``` +### PacketCoreControlPlaneOperation_CollectDiagnosticsPackage + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlaneCollectDiagnosticsPackage; + +/** Samples for PacketCoreControlPlaneOperation CollectDiagnosticsPackage. */ +public final class PacketCoreControlPlaneOperationCollectDiagnosticsPackageSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneCollectDiagnosticsPackage.json + */ + /** + * Sample code: Collect diagnostics package from packet core control plane. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void collectDiagnosticsPackageFromPacketCoreControlPlane( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager + .packetCoreControlPlaneOperations() + .collectDiagnosticsPackage( + "rg1", + "TestPacketCoreCP", + new PacketCoreControlPlaneCollectDiagnosticsPackage() + .withStorageAccountBlobUrl( + "https://contosoaccount.blob.core.windows.net/container/diagnosticsPackage.zip"), + Context.NONE); + } +} +``` + +### PacketCoreControlPlaneOperation_Reinstall + +```java +import com.azure.core.util.Context; + +/** Samples for PacketCoreControlPlaneOperation Reinstall. */ +public final class PacketCoreControlPlaneOperationReinstallSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneReinstall.json + */ + /** + * Sample code: Reinstall packet core control plane. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void reinstallPacketCoreControlPlane( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.packetCoreControlPlaneOperations().reinstall("rg1", "TestPacketCoreCP", Context.NONE); + } +} +``` + +### PacketCoreControlPlaneOperation_Rollback + +```java +import com.azure.core.util.Context; + +/** Samples for PacketCoreControlPlaneOperation Rollback. */ +public final class PacketCoreControlPlaneOperationRollbackSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneRollback.json + */ + /** + * Sample code: Rollback packet core control plane. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void rollbackPacketCoreControlPlane( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.packetCoreControlPlaneOperations().rollback("rg1", "TestPacketCoreCP", Context.NONE); + } +} +``` + ### PacketCoreControlPlaneVersions_Get ```java @@ -588,7 +652,7 @@ import com.azure.core.util.Context; /** Samples for PacketCoreControlPlaneVersions Get. */ public final class PacketCoreControlPlaneVersionsGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneVersionGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneVersionGet.json */ /** * Sample code: Get packet core control plane version. @@ -602,15 +666,15 @@ public final class PacketCoreControlPlaneVersionsGetSamples { } ``` -### PacketCoreControlPlaneVersions_ListByResourceGroup +### PacketCoreControlPlaneVersions_List ```java import com.azure.core.util.Context; -/** Samples for PacketCoreControlPlaneVersions ListByResourceGroup. */ -public final class PacketCoreControlPlaneVersionsListByResourceGroupSamples { +/** Samples for PacketCoreControlPlaneVersions List. */ +public final class PacketCoreControlPlaneVersionsListSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneVersionListByResourceGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneVersionList.json */ /** * Sample code: Get supported packet core control plane versions. @@ -619,7 +683,7 @@ public final class PacketCoreControlPlaneVersionsListByResourceGroupSamples { */ public static void getSupportedPacketCoreControlPlaneVersions( com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.packetCoreControlPlaneVersions().listByResourceGroup(Context.NONE); + manager.packetCoreControlPlaneVersions().list(Context.NONE); } } ``` @@ -627,22 +691,24 @@ public final class PacketCoreControlPlaneVersionsListByResourceGroupSamples { ### PacketCoreControlPlanes_CreateOrUpdate ```java +import com.azure.resourcemanager.mobilenetwork.models.AuthenticationType; 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.HttpsServerCertificate; 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; +import com.azure.resourcemanager.mobilenetwork.models.SiteResourceId; +import java.util.Arrays; /** Samples for PacketCoreControlPlanes CreateOrUpdate. */ public final class PacketCoreControlPlanesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneCreate.json */ /** * Sample code: Create packet core control plane. @@ -656,12 +722,12 @@ public final class PacketCoreControlPlanesCreateOrUpdateSamples { .define("TestPacketCoreCP") .withRegion("eastus") .withExistingResourceGroup("rg1") - .withMobileNetwork( - new MobileNetworkResourceId() - .withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork")) - .withControlPlaneAccessInterface(new InterfaceProperties().withName("N2")) - .withSku(BillingSku.fromString("testSku")) + .withSites( + Arrays + .asList( + new SiteResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/sites/testSite"))) .withPlatform( new PlatformConfiguration() .withType(PlatformType.AKS_HCI) @@ -677,13 +743,17 @@ public final class PacketCoreControlPlanesCreateOrUpdateSamples { new CustomLocationResourceId() .withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/TestCustomLocation"))) - .withCoreNetworkTechnology(CoreNetworkType.FIVE_GC) - .withVersion("0.2.0") + .withControlPlaneAccessInterface(new InterfaceProperties().withName("N2")) + .withSku(BillingSku.G0) .withLocalDiagnosticsAccess( new LocalDiagnosticsAccessConfiguration() + .withAuthenticationType(AuthenticationType.AAD) .withHttpsServerCertificate( - new KeyVaultCertificate() + new HttpsServerCertificate() .withCertificateUrl("https://contosovault.vault.azure.net/certificates/ingress"))) + .withCoreNetworkTechnology(CoreNetworkType.FIVE_GC) + .withVersion("0.2.0") + .withUeMtu(1600) .create(); } } @@ -697,7 +767,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-04-01-preview/examples/PacketCoreControlPlaneDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneDelete.json */ /** * Sample code: Delete packet core control plane. @@ -719,7 +789,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-04-01-preview/examples/PacketCoreControlPlaneGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneGet.json */ /** * Sample code: Get packet core control plane. @@ -740,7 +810,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-04-01-preview/examples/PacketCoreControlPlaneListBySubscription.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneListBySubscription.json */ /** * Sample code: List packet core control planes in a subscription. @@ -762,7 +832,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-04-01-preview/examples/PacketCoreControlPlaneListByResourceGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneListByResourceGroup.json */ /** * Sample code: List packet core control planes in resource group. @@ -787,7 +857,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-04-01-preview/examples/PacketCoreControlPlaneUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneUpdateTags.json */ /** * Sample code: Update packet core control plane tags. @@ -825,7 +895,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-04-01-preview/examples/PacketCoreDataPlaneCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreDataPlaneCreate.json */ /** * Sample code: Create packet core data plane. @@ -852,7 +922,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-04-01-preview/examples/PacketCoreDataPlaneDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreDataPlaneDelete.json */ /** * Sample code: Delete packet core data plane. @@ -873,7 +943,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-04-01-preview/examples/PacketCoreDataPlaneGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreDataPlaneGet.json */ /** * Sample code: Get packet core data plane. @@ -894,7 +964,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-04-01-preview/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json */ /** * Sample code: List packet core data planes in a control plane. @@ -919,7 +989,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-04-01-preview/examples/PacketCoreDataPlaneUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreDataPlaneUpdateTags.json */ /** * Sample code: Update packet core data plane tags. @@ -966,7 +1036,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-04-01-preview/examples/ServiceCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/ServiceCreate.json */ /** * Sample code: Create service. @@ -1023,7 +1093,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-04-01-preview/examples/ServiceDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/ServiceDelete.json */ /** * Sample code: Delete service. @@ -1044,7 +1114,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-04-01-preview/examples/ServiceGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/ServiceGet.json */ /** * Sample code: Get service. @@ -1065,7 +1135,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-04-01-preview/examples/ServiceListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/ServiceListByMobileNetwork.json */ /** * Sample code: List services in a mobile network. @@ -1090,7 +1160,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-04-01-preview/examples/ServiceUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/ServiceUpdateTags.json */ /** * Sample code: Update service tags. @@ -1120,12 +1190,17 @@ public final class ServicesUpdateTagsSamples { ```java import com.azure.resourcemanager.mobilenetwork.models.KeyVaultKey; +import com.azure.resourcemanager.mobilenetwork.models.ManagedServiceIdentity; +import com.azure.resourcemanager.mobilenetwork.models.ManagedServiceIdentityType; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.UserAssignedIdentity; +import java.util.HashMap; +import java.util.Map; /** 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupCreate.json */ /** * Sample code: Create SIM group. @@ -1138,13 +1213,31 @@ public final class SimGroupsCreateOrUpdateSamples { .define("testSimGroup") .withRegion("eastus") .withExistingResourceGroup("rg1") - .withEncryptionKey(new KeyVaultKey().withKeyUrl("https://contosovault.vault.azure.net/keys/azureKey")) + .withIdentity( + new ManagedServiceIdentity() + .withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities( + mapOf( + "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUserAssignedManagedIdentity", + new UserAssignedIdentity()))) + .withEncryptionKey(new KeyVaultKey().withKeyUrl("fakeTokenPlaceholder")) .withMobileNetwork( new MobileNetworkResourceId() .withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork")) .create(); } + + @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; + } } ``` @@ -1156,7 +1249,7 @@ 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupDelete.json */ /** * Sample code: Delete SIM group. @@ -1177,7 +1270,7 @@ 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupGet.json */ /** * Sample code: Get SIM group. @@ -1198,7 +1291,7 @@ 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupListBySubscription.json */ /** * Sample code: List SIM groups in a subscription. @@ -1220,7 +1313,7 @@ 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupListByResourceGroup.json */ /** * Sample code: List SIM groups in a resource group. @@ -1245,7 +1338,7 @@ 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupUpdateTags.json */ /** * Sample code: Update SIM group tags. @@ -1271,6 +1364,220 @@ public final class SimGroupsUpdateTagsSamples { } ``` +### SimOperation_BulkDelete + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.mobilenetwork.models.SimDeleteList; +import java.util.Arrays; + +/** Samples for SimOperation BulkDelete. */ +public final class SimOperationBulkDeleteSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimBulkDelete.json + */ + /** + * Sample code: Bulk delete SIMs from a SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void bulkDeleteSIMsFromASIMGroup( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager + .simOperations() + .bulkDelete( + "testResourceGroupName", + "testSimGroup", + new SimDeleteList().withSims(Arrays.asList("testSim", "testSim2")), + Context.NONE); + } +} +``` + +### SimOperation_BulkUpload + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.mobilenetwork.models.AttachedDataNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.SimNameAndProperties; +import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; +import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties; +import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpPropertiesStaticIp; +import com.azure.resourcemanager.mobilenetwork.models.SimUploadList; +import com.azure.resourcemanager.mobilenetwork.models.SliceResourceId; +import java.util.Arrays; + +/** Samples for SimOperation BulkUpload. */ +public final class SimOperationBulkUploadSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimBulkUpload.json + */ + /** + * Sample code: Bulk upload SIMs in a SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void bulkUploadSIMsInASIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager + .simOperations() + .bulkUpload( + "rg1", + "testSimGroup", + new SimUploadList() + .withSims( + Arrays + .asList( + new SimNameAndProperties() + .withName("testSim") + .withAuthenticationKey("fakeTokenPlaceholder") + .withOperatorKeyCode("fakeTokenPlaceholder") + .withInternationalMobileSubscriberIdentity("00000") + .withIntegratedCircuitCardIdentifier("8900000000000000000") + .withDeviceType("Video camera") + .withSimPolicy( + new SimPolicyResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy")) + .withStaticIpConfiguration( + Arrays + .asList( + new SimStaticIpProperties() + .withAttachedDataNetwork( + new AttachedDataNetworkResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork")) + .withSlice( + new SliceResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice")) + .withStaticIp( + new SimStaticIpPropertiesStaticIp() + .withIpv4Address("2.4.0.1")))), + new SimNameAndProperties() + .withName("testSim2") + .withAuthenticationKey("fakeTokenPlaceholder") + .withOperatorKeyCode("fakeTokenPlaceholder") + .withInternationalMobileSubscriberIdentity("00000") + .withIntegratedCircuitCardIdentifier("8900000000000000001") + .withDeviceType("Video camera") + .withSimPolicy( + new SimPolicyResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy")) + .withStaticIpConfiguration( + Arrays + .asList( + new SimStaticIpProperties() + .withAttachedDataNetwork( + new AttachedDataNetworkResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork")) + .withSlice( + new SliceResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice")) + .withStaticIp( + new SimStaticIpPropertiesStaticIp() + .withIpv4Address("2.4.0.2")))))), + Context.NONE); + } +} +``` + +### SimOperation_BulkUploadEncrypted + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.mobilenetwork.models.AttachedDataNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.EncryptedSimUploadList; +import com.azure.resourcemanager.mobilenetwork.models.SimNameAndEncryptedProperties; +import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; +import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties; +import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpPropertiesStaticIp; +import com.azure.resourcemanager.mobilenetwork.models.SliceResourceId; +import java.util.Arrays; + +/** Samples for SimOperation BulkUploadEncrypted. */ +public final class SimOperationBulkUploadEncryptedSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimBulkUploadEncrypted.json + */ + /** + * Sample code: Bulk upload encrypted SIMs to a SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void bulkUploadEncryptedSIMsToASIMGroup( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager + .simOperations() + .bulkUploadEncrypted( + "rg1", + "testSimGroup", + new EncryptedSimUploadList() + .withVersion(1) + .withAzureKeyIdentifier(1) + .withVendorKeyFingerprint("fakeTokenPlaceholder") + .withEncryptedTransportKey("fakeTokenPlaceholder") + .withSignedTransportKey("fakeTokenPlaceholder") + .withSims( + Arrays + .asList( + new SimNameAndEncryptedProperties() + .withName("testSim") + .withEncryptedCredentials("fakeTokenPlaceholder") + .withInternationalMobileSubscriberIdentity("00000") + .withIntegratedCircuitCardIdentifier("8900000000000000000") + .withDeviceType("Video camera") + .withSimPolicy( + new SimPolicyResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy")) + .withStaticIpConfiguration( + Arrays + .asList( + new SimStaticIpProperties() + .withAttachedDataNetwork( + new AttachedDataNetworkResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork")) + .withSlice( + new SliceResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice")) + .withStaticIp( + new SimStaticIpPropertiesStaticIp() + .withIpv4Address("2.4.0.1")))), + new SimNameAndEncryptedProperties() + .withName("testSim2") + .withEncryptedCredentials("fakeTokenPlaceholder") + .withInternationalMobileSubscriberIdentity("00000") + .withIntegratedCircuitCardIdentifier("8900000000000000001") + .withDeviceType("Video camera") + .withSimPolicy( + new SimPolicyResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy")) + .withStaticIpConfiguration( + Arrays + .asList( + new SimStaticIpProperties() + .withAttachedDataNetwork( + new AttachedDataNetworkResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork")) + .withSlice( + new SliceResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice")) + .withStaticIp( + new SimStaticIpPropertiesStaticIp() + .withIpv4Address("2.4.0.2")))))), + Context.NONE); + } +} +``` + ### SimPolicies_CreateOrUpdate ```java @@ -1288,7 +1595,7 @@ import java.util.Arrays; /** Samples for SimPolicies CreateOrUpdate. */ public final class SimPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimPolicyCreate.json */ /** * Sample code: Create SIM policy. @@ -1338,7 +1645,8 @@ public final class SimPoliciesCreateOrUpdateSamples { .asList( new ServiceResourceId() .withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/services/testService"))))))) + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/services/testService"))) + .withMaximumNumberOfBufferedPackets(200))))) .withRegistrationTimer(3240) .create(); } @@ -1353,7 +1661,7 @@ 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-04-01-preview/examples/SimPolicyDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimPolicyDelete.json */ /** * Sample code: Delete SIM policy. @@ -1374,7 +1682,7 @@ 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-04-01-preview/examples/SimPolicyGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimPolicyGet.json */ /** * Sample code: Get SIM policy. @@ -1395,7 +1703,7 @@ 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-04-01-preview/examples/SimPolicyListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimPolicyListByMobileNetwork.json */ /** * Sample code: List SIM policies in a mobile network. @@ -1420,7 +1728,7 @@ import java.util.Map; /** Samples for SimPolicies UpdateTags. */ public final class SimPoliciesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimPolicyUpdateTags.json */ /** * Sample code: Update SIM policy tags. @@ -1459,7 +1767,7 @@ import java.util.Arrays; /** Samples for Sims CreateOrUpdate. */ public final class SimsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimCreate.json */ /** * Sample code: Create SIM. @@ -1472,9 +1780,9 @@ public final class SimsCreateOrUpdateSamples { .define("testSim") .withExistingSimGroup("rg1", "testSimGroup") .withInternationalMobileSubscriberIdentity("00000") - .withIntegratedCircuitCardIdentifier("8900000000000000000") .withAuthenticationKey("00000000000000000000000000000000") .withOperatorKeyCode("00000000000000000000000000000000") + .withIntegratedCircuitCardIdentifier("8900000000000000000") .withDeviceType("Video camera") .withSimPolicy( new SimPolicyResourceId() @@ -1506,7 +1814,7 @@ 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-04-01-preview/examples/SimDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimDelete.json */ /** * Sample code: Delete SIM. @@ -1527,7 +1835,7 @@ import com.azure.core.util.Context; /** Samples for Sims Get. */ public final class SimsGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGet.json */ /** * Sample code: Get SIM. @@ -1540,15 +1848,15 @@ public final class SimsGetSamples { } ``` -### Sims_ListBySimGroup +### Sims_ListByGroup ```java import com.azure.core.util.Context; -/** Samples for Sims ListBySimGroup. */ -public final class SimsListBySimGroupSamples { +/** Samples for Sims ListByGroup. */ +public final class SimsListByGroupSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimListBySimGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimListBySimGroup.json */ /** * Sample code: List SIMs in a SIM group. @@ -1556,7 +1864,7 @@ public final class SimsListBySimGroupSamples { * @param manager Entry point to MobileNetworkManager. */ public static void listSIMsInASIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.sims().listBySimGroup("rg1", "testSimGroup", Context.NONE); + manager.sims().listByGroup("rg1", "testSimGroup", Context.NONE); } } ``` @@ -1564,13 +1872,10 @@ public final class SimsListBySimGroupSamples { ### Sites_CreateOrUpdate ```java -import com.azure.core.management.SubResource; -import java.util.Arrays; - /** Samples for Sites CreateOrUpdate. */ public final class SitesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SiteCreate.json */ /** * Sample code: Create mobile network site. @@ -1583,12 +1888,6 @@ public final class SitesCreateOrUpdateSamples { .define("testSite") .withRegion("testLocation") .withExistingMobileNetwork("rg1", "testMobileNetwork") - .withNetworkFunctions( - Arrays - .asList( - new SubResource() - .withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HybridNetwork/networkFunctions/testNf"))) .create(); } } @@ -1602,7 +1901,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-04-01-preview/examples/SiteDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SiteDelete.json */ /** * Sample code: Delete mobile network site. @@ -1623,7 +1922,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-04-01-preview/examples/SiteGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SiteGet.json */ /** * Sample code: Get mobile network site. @@ -1644,7 +1943,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-04-01-preview/examples/SiteListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SiteListByMobileNetwork.json */ /** * Sample code: List mobile network sites in a mobile network. @@ -1669,7 +1968,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-04-01-preview/examples/SiteUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SiteUpdateTags.json */ /** * Sample code: Update mobile network site tags. @@ -1704,7 +2003,7 @@ 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-04-01-preview/examples/SliceCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SliceCreate.json */ /** * Sample code: Create network slice. @@ -1732,7 +2031,7 @@ 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-04-01-preview/examples/SliceDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SliceDelete.json */ /** * Sample code: Delete network slice. @@ -1753,7 +2052,7 @@ 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-04-01-preview/examples/SliceGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SliceGet.json */ /** * Sample code: Get network slice. @@ -1774,7 +2073,7 @@ 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-04-01-preview/examples/SliceListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SliceListByMobileNetwork.json */ /** * Sample code: List network slices in a mobile network. @@ -1799,7 +2098,7 @@ import java.util.Map; /** Samples for Slices UpdateTags. */ public final class SlicesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SliceUpdateTags.json */ /** * Sample code: Update network slice tags. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/pom.xml b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/pom.xml index 5497b05c880be..97f20ffe7c615 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-04-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 API specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance. Package tag package-2022-11-01. 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 f35f405fdce6d..4c5acb5602765 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 @@ -29,11 +29,13 @@ import com.azure.resourcemanager.mobilenetwork.implementation.MobileNetworkManagementClientBuilder; import com.azure.resourcemanager.mobilenetwork.implementation.MobileNetworksImpl; import com.azure.resourcemanager.mobilenetwork.implementation.OperationsImpl; +import com.azure.resourcemanager.mobilenetwork.implementation.PacketCoreControlPlaneOperationsImpl; import com.azure.resourcemanager.mobilenetwork.implementation.PacketCoreControlPlaneVersionsImpl; 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.SimOperationsImpl; import com.azure.resourcemanager.mobilenetwork.implementation.SimPoliciesImpl; import com.azure.resourcemanager.mobilenetwork.implementation.SimsImpl; import com.azure.resourcemanager.mobilenetwork.implementation.SitesImpl; @@ -42,11 +44,13 @@ import com.azure.resourcemanager.mobilenetwork.models.DataNetworks; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworks; import com.azure.resourcemanager.mobilenetwork.models.Operations; +import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlaneOperations; import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlaneVersions; 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.SimOperations; import com.azure.resourcemanager.mobilenetwork.models.SimPolicies; import com.azure.resourcemanager.mobilenetwork.models.Sims; import com.azure.resourcemanager.mobilenetwork.models.Sites; @@ -59,7 +63,7 @@ import java.util.stream.Collectors; /** - * Entry point to MobileNetworkManager. The resources in this swagger specification will be used to manage attached data + * Entry point to MobileNetworkManager. The resources in this API specification will be used to manage attached data * network resources in mobile network attached to a particular packet core instance. */ public final class MobileNetworkManager { @@ -69,24 +73,28 @@ public final class MobileNetworkManager { private MobileNetworks mobileNetworks; - private Sites sites; - - private SimGroups simGroups; - - private Sims sims; - private Operations operations; private PacketCoreControlPlanes packetCoreControlPlanes; + private PacketCoreControlPlaneOperations packetCoreControlPlaneOperations; + private PacketCoreControlPlaneVersions packetCoreControlPlaneVersions; private PacketCoreDataPlanes packetCoreDataPlanes; private Services services; + private Sims sims; + + private SimOperations simOperations; + + private SimGroups simGroups; + private SimPolicies simPolicies; + private Sites sites; + private Slices slices; private final MobileNetworkManagementClient clientObject; @@ -254,7 +262,7 @@ public MobileNetworkManager authenticate(TokenCredential credential, AzureProfil .append("-") .append("com.azure.resourcemanager.mobilenetwork") .append("/") - .append("1.0.0-beta.3"); + .append("1.0.0-beta.4"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -347,42 +355,6 @@ public MobileNetworks mobileNetworks() { return mobileNetworks; } - /** - * 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); - } - return sites; - } - - /** - * 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); - } - return sims; - } - /** * Gets the resource collection API of Operations. * @@ -408,6 +380,19 @@ public PacketCoreControlPlanes packetCoreControlPlanes() { return packetCoreControlPlanes; } + /** + * Gets the resource collection API of PacketCoreControlPlaneOperations. + * + * @return Resource collection API of PacketCoreControlPlaneOperations. + */ + public PacketCoreControlPlaneOperations packetCoreControlPlaneOperations() { + if (this.packetCoreControlPlaneOperations == null) { + this.packetCoreControlPlaneOperations = + new PacketCoreControlPlaneOperationsImpl(clientObject.getPacketCoreControlPlaneOperations(), this); + } + return packetCoreControlPlaneOperations; + } + /** * Gets the resource collection API of PacketCoreControlPlaneVersions. * @@ -445,6 +430,42 @@ public Services services() { return services; } + /** + * 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); + } + return sims; + } + + /** + * Gets the resource collection API of SimOperations. + * + * @return Resource collection API of SimOperations. + */ + public SimOperations simOperations() { + if (this.simOperations == null) { + this.simOperations = new SimOperationsImpl(clientObject.getSimOperations(), this); + } + return simOperations; + } + + /** + * 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 SimPolicies. It manages SimPolicy. * @@ -457,6 +478,18 @@ public SimPolicies simPolicies() { return simPolicies; } + /** + * 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); + } + return sites; + } + /** * Gets the resource collection API of Slices. It manages Slice. * 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 6395b174cc721..4daa6d05ff5f3 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 @@ -101,17 +101,19 @@ void delete( * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. * @param attachedDataNetworkName The name of the attached 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 attached data network. + * @return information about the specified attached data network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AttachedDataNetworkInner get( + Response getWithResponse( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, - String attachedDataNetworkName); + String attachedDataNetworkName, + Context context); /** * Gets information about the specified attached data network. @@ -120,22 +122,21 @@ AttachedDataNetworkInner get( * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. * @param attachedDataNetworkName The name of the attached 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 attached data network along with {@link Response}. + * @return information about the specified attached data network. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + AttachedDataNetworkInner get( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, - String attachedDataNetworkName, - Context context); + String attachedDataNetworkName); /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -156,7 +157,8 @@ SyncPoller, AttachedDataNetworkInner> begin AttachedDataNetworkInner parameters); /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -179,7 +181,8 @@ SyncPoller, AttachedDataNetworkInner> begin Context context); /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -200,7 +203,8 @@ AttachedDataNetworkInner createOrUpdate( AttachedDataNetworkInner parameters); /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -230,18 +234,20 @@ AttachedDataNetworkInner createOrUpdate( * @param packetCoreDataPlaneName The name of the packet core data plane. * @param attachedDataNetworkName The name of the attached data network. * @param parameters Parameters supplied to update attached data network 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 attached data network resource. + * @return attached data network resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AttachedDataNetworkInner updateTags( + Response updateTagsWithResponse( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, String attachedDataNetworkName, - TagsObject parameters); + TagsObject parameters, + Context context); /** * Updates an attached data network tags. @@ -251,20 +257,18 @@ AttachedDataNetworkInner updateTags( * @param packetCoreDataPlaneName The name of the packet core data plane. * @param attachedDataNetworkName The name of the attached data network. * @param parameters Parameters supplied to update attached data network 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 attached data network resource along with {@link Response}. + * @return attached data network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse( + AttachedDataNetworkInner updateTags( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, String attachedDataNetworkName, - TagsObject parameters, - Context context); + TagsObject parameters); /** * Gets all the attached data networks associated with a packet core data plane. 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 e35722a8ff75c..f11264eb54147 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 @@ -80,13 +80,15 @@ SyncPoller, Void> beginDelete( * @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 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 data network. + * @return information about the specified data network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataNetworkInner get(String resourceGroupName, String mobileNetworkName, String dataNetworkName); + Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context); /** * Gets information about the specified data network. @@ -94,18 +96,16 @@ SyncPoller, Void> beginDelete( * @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 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 data network along with {@link Response}. + * @return information about the specified data network. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context); + DataNetworkInner get(String resourceGroupName, String mobileNetworkName, String dataNetworkName); /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -121,7 +121,7 @@ SyncPoller, DataNetworkInner> beginCreateOrUpdate( String resourceGroupName, String mobileNetworkName, String dataNetworkName, DataNetworkInner parameters); /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -142,7 +142,7 @@ SyncPoller, DataNetworkInner> beginCreateOrUpdate( Context context); /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -158,7 +158,7 @@ DataNetworkInner createOrUpdate( String resourceGroupName, String mobileNetworkName, String dataNetworkName, DataNetworkInner parameters); /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -185,14 +185,19 @@ DataNetworkInner createOrUpdate( * @param mobileNetworkName The name of the mobile network. * @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. * @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 data network resource. + * @return data network resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataNetworkInner updateTags( - String resourceGroupName, String mobileNetworkName, String dataNetworkName, TagsObject parameters); + Response updateTagsWithResponse( + String resourceGroupName, + String mobileNetworkName, + String dataNetworkName, + TagsObject parameters, + Context context); /** * Updates data network tags. @@ -201,19 +206,14 @@ DataNetworkInner updateTags( * @param mobileNetworkName The name of the mobile network. * @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. * @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 data network resource along with {@link Response}. + * @return data network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse( - String resourceGroupName, - String mobileNetworkName, - String dataNetworkName, - TagsObject parameters, - Context context); + DataNetworkInner updateTags( + String resourceGroupName, String mobileNetworkName, String dataNetworkName, TagsObject parameters); /** * Lists all data networks in 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 3e16ad20a4298..e9667d014884d 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 @@ -65,27 +65,6 @@ public interface MobileNetworkManagementClient { */ MobileNetworksClient getMobileNetworks(); - /** - * Gets the SitesClient object to access its operations. - * - * @return the SitesClient object. - */ - SitesClient getSites(); - - /** - * Gets the SimGroupsClient object to access its operations. - * - * @return the SimGroupsClient object. - */ - SimGroupsClient getSimGroups(); - - /** - * Gets the SimsClient object to access its operations. - * - * @return the SimsClient object. - */ - SimsClient getSims(); - /** * Gets the OperationsClient object to access its operations. * @@ -100,6 +79,13 @@ public interface MobileNetworkManagementClient { */ PacketCoreControlPlanesClient getPacketCoreControlPlanes(); + /** + * Gets the PacketCoreControlPlaneOperationsClient object to access its operations. + * + * @return the PacketCoreControlPlaneOperationsClient object. + */ + PacketCoreControlPlaneOperationsClient getPacketCoreControlPlaneOperations(); + /** * Gets the PacketCoreControlPlaneVersionsClient object to access its operations. * @@ -121,6 +107,27 @@ public interface MobileNetworkManagementClient { */ ServicesClient getServices(); + /** + * Gets the SimsClient object to access its operations. + * + * @return the SimsClient object. + */ + SimsClient getSims(); + + /** + * Gets the SimOperationsClient object to access its operations. + * + * @return the SimOperationsClient object. + */ + SimOperationsClient getSimOperations(); + + /** + * Gets the SimGroupsClient object to access its operations. + * + * @return the SimGroupsClient object. + */ + SimGroupsClient getSimGroups(); + /** * Gets the SimPoliciesClient object to access its operations. * @@ -128,6 +135,13 @@ public interface MobileNetworkManagementClient { */ SimPoliciesClient getSimPolicies(); + /** + * Gets the SitesClient object to access its operations. + * + * @return the SitesClient object. + */ + SitesClient getSites(); + /** * Gets the SlicesClient 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 d6f37b90024d4..62743246b2088 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 @@ -12,7 +12,6 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.models.MobileNetworkInner; -import com.azure.resourcemanager.mobilenetwork.fluent.models.SimIdListResultInner; import com.azure.resourcemanager.mobilenetwork.models.TagsObject; /** An instance of this class provides access to all the operations defined in MobileNetworksClient. */ @@ -74,28 +73,28 @@ public interface MobileNetworksClient { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the 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 information about the specified mobile network. + * @return information about the specified mobile network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MobileNetworkInner getByResourceGroup(String resourceGroupName, String mobileNetworkName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String mobileNetworkName, Context context); /** * Gets information about the specified mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the 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 information about the specified mobile network along with {@link Response}. + * @return information about the specified mobile network. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String mobileNetworkName, Context context); + MobileNetworkInner getByResourceGroup(String resourceGroupName, String mobileNetworkName); /** * Creates or updates a mobile network. @@ -165,13 +164,15 @@ MobileNetworkInner createOrUpdate( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param parameters Parameters supplied to update mobile network 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 mobile network resource. + * @return mobile network resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MobileNetworkInner updateTags(String resourceGroupName, String mobileNetworkName, TagsObject parameters); + Response updateTagsWithResponse( + String resourceGroupName, String mobileNetworkName, TagsObject parameters, Context context); /** * Updates mobile network tags. @@ -179,15 +180,13 @@ MobileNetworkInner createOrUpdate( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param parameters Parameters supplied to update mobile network 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 mobile network resource along with {@link Response}. + * @return mobile network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse( - String resourceGroupName, String mobileNetworkName, TagsObject parameters, Context context); + MobileNetworkInner updateTags(String resourceGroupName, String mobileNetworkName, TagsObject parameters); /** * Lists all the mobile networks in a subscription. @@ -235,60 +234,4 @@ Response updateTagsWithResponse( */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * 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. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SimIdListResultInner> beginListSimIds( - String resourceGroupName, String mobileNetworkName); - - /** - * 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. - * @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 response for list SIM IDs API service call. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SimIdListResultInner> beginListSimIds( - String resourceGroupName, String mobileNetworkName, Context context); - - /** - * 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SimIdListResultInner listSimIds(String resourceGroupName, String mobileNetworkName); - - /** - * 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. - * @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. - */ - @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/PacketCoreControlPlaneOperationsClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreControlPlaneOperationsClient.java new file mode 100644 index 0000000000000..0a7bdde51351a --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreControlPlaneOperationsClient.java @@ -0,0 +1,214 @@ +// 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.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.mobilenetwork.fluent.models.AsyncOperationStatusInner; +import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlaneCollectDiagnosticsPackage; + +/** + * An instance of this class provides access to all the operations defined in PacketCoreControlPlaneOperationsClient. + */ +public interface PacketCoreControlPlaneOperationsClient { + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginRollback( + String resourceGroupName, String packetCoreControlPlaneName); + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginRollback( + String resourceGroupName, String packetCoreControlPlaneName, Context context); + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner rollback(String resourceGroupName, String packetCoreControlPlaneName); + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner rollback(String resourceGroupName, String packetCoreControlPlaneName, Context context); + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginReinstall( + String resourceGroupName, String packetCoreControlPlaneName); + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginReinstall( + String resourceGroupName, String packetCoreControlPlaneName, Context context); + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner reinstall(String resourceGroupName, String packetCoreControlPlaneName); + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner reinstall(String resourceGroupName, String packetCoreControlPlaneName, Context context); + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginCollectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters); + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginCollectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters, + Context context); + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner collectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters); + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner collectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters, + Context context); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreControlPlaneVersionsClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreControlPlaneVersionsClient.java index 3cc406132834f..eaa31e396900b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreControlPlaneVersionsClient.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/PacketCoreControlPlaneVersionsClient.java @@ -17,26 +17,26 @@ public interface PacketCoreControlPlaneVersionsClient { * Gets information about the specified packet core control plane version. * * @param versionName The name of the packet core control plane version. + * @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 packet core control plane version. + * @return information about the specified packet core control plane version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PacketCoreControlPlaneVersionInner get(String versionName); + Response getWithResponse(String versionName, Context context); /** * Gets information about the specified packet core control plane version. * * @param versionName The name of the packet core control plane version. - * @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 packet core control plane version along with {@link Response}. + * @return information about the specified packet core control plane version. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String versionName, Context context); + PacketCoreControlPlaneVersionInner get(String versionName); /** * Lists all supported packet core control planes versions. @@ -47,7 +47,7 @@ public interface PacketCoreControlPlaneVersionsClient { * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(); + PagedIterable list(); /** * Lists all supported packet core control planes versions. @@ -60,5 +60,5 @@ public interface PacketCoreControlPlaneVersionsClient { * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(Context context); + PagedIterable list(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 2c7e0cdb93be7..ff1d25a674850 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 @@ -74,28 +74,28 @@ SyncPoller, Void> beginDelete( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 packet core control plane. + * @return information about the specified packet core control plane along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PacketCoreControlPlaneInner getByResourceGroup(String resourceGroupName, String packetCoreControlPlaneName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String packetCoreControlPlaneName, Context context); /** * Gets information about the specified 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. - * @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 packet core control plane along with {@link Response}. + * @return information about the specified packet core control plane. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String packetCoreControlPlaneName, Context context); + PacketCoreControlPlaneInner getByResourceGroup(String resourceGroupName, String packetCoreControlPlaneName); /** * Creates or updates a packet core control plane. @@ -171,14 +171,15 @@ PacketCoreControlPlaneInner createOrUpdate( * @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 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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return packet core control plane resource. + * @return packet core control plane resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PacketCoreControlPlaneInner updateTags( - String resourceGroupName, String packetCoreControlPlaneName, TagsObject parameters); + Response updateTagsWithResponse( + String resourceGroupName, String packetCoreControlPlaneName, TagsObject parameters, Context context); /** * Updates packet core control planes tags. @@ -186,15 +187,14 @@ PacketCoreControlPlaneInner updateTags( * @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 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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return packet core control plane resource along with {@link Response}. + * @return packet core control plane resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse( - String resourceGroupName, String packetCoreControlPlaneName, TagsObject parameters, Context context); + PacketCoreControlPlaneInner updateTags( + String resourceGroupName, String packetCoreControlPlaneName, TagsObject parameters); /** * Lists all the packet core control planes in a subscription. 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 ffac817c04319..a10e26848f585 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 @@ -81,14 +81,15 @@ void delete( * @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 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 packet core data plane. + * @return information about the specified packet core data plane along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PacketCoreDataPlaneInner get( - String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName); + Response getWithResponse( + String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, Context context); /** * Gets information about the specified packet core data plane. @@ -96,18 +97,18 @@ PacketCoreDataPlaneInner get( * @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 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 packet core data plane along with {@link Response}. + * @return information about the specified packet core data plane. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, Context context); + PacketCoreDataPlaneInner get( + String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName); /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -126,7 +127,8 @@ SyncPoller, PacketCoreDataPlaneInner> begin PacketCoreDataPlaneInner parameters); /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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 +149,8 @@ SyncPoller, PacketCoreDataPlaneInner> begin Context context); /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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,7 +169,8 @@ PacketCoreDataPlaneInner createOrUpdate( PacketCoreDataPlaneInner parameters); /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -193,17 +197,19 @@ PacketCoreDataPlaneInner createOrUpdate( * @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 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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return packet core data plane resource. + * @return packet core data plane resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PacketCoreDataPlaneInner updateTags( + Response updateTagsWithResponse( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, - TagsObject parameters); + TagsObject parameters, + Context context); /** * Updates packet core data planes tags. @@ -212,19 +218,17 @@ PacketCoreDataPlaneInner updateTags( * @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 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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return packet core data plane resource along with {@link Response}. + * @return packet core data plane resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse( + PacketCoreDataPlaneInner updateTags( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, - TagsObject parameters, - Context context); + TagsObject parameters); /** * Lists all the packet core data planes associated with a 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 22995550263aa..fec9f99fccf72 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 @@ -85,13 +85,15 @@ SyncPoller, Void> beginDelete( * @param mobileNetworkName The name of the mobile network. * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, * `requested` or `service`. + * @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 service. + * @return information about the specified service along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServiceInner get(String resourceGroupName, String mobileNetworkName, String serviceName); + Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String serviceName, Context context); /** * Gets information about the specified service. @@ -100,18 +102,16 @@ SyncPoller, Void> beginDelete( * @param mobileNetworkName The name of the mobile network. * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, * `requested` or `service`. - * @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 service along with {@link Response}. + * @return information about the specified service. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String serviceName, Context context); + ServiceInner get(String resourceGroupName, String mobileNetworkName, String serviceName); /** - * Creates or updates a service. + * Creates or updates a service. Must be created in the same location as its parent mobile network. * * @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. Must be created in the same location as its parent mobile network. * * @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. Must be created in the same location as its parent mobile network. * * @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. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -196,14 +196,15 @@ ServiceInner createOrUpdate( * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, * `requested` or `service`. * @param parameters Parameters supplied to update service 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 service resource. + * @return service resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServiceInner updateTags( - String resourceGroupName, String mobileNetworkName, String serviceName, TagsObject parameters); + Response updateTagsWithResponse( + String resourceGroupName, String mobileNetworkName, String serviceName, TagsObject parameters, Context context); /** * Updates service tags. @@ -213,15 +214,14 @@ ServiceInner updateTags( * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, * `requested` or `service`. * @param parameters Parameters supplied to update service 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 service resource along with {@link Response}. + * @return service resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse( - String resourceGroupName, String mobileNetworkName, String serviceName, TagsObject parameters, Context context); + ServiceInner updateTags( + String resourceGroupName, String mobileNetworkName, String serviceName, TagsObject parameters); /** * Gets all the services in a 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 index 25d5bfd75d1f6..e16286f165c36 100644 --- 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 @@ -73,28 +73,28 @@ public interface SimGroupsClient { * * @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. + * @return information about the specified SIM group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SimGroupInner getByResourceGroup(String resourceGroupName, String simGroupName); + Response getByResourceGroupWithResponse( + 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. - * @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}. + * @return information about the specified SIM group. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String simGroupName, Context context); + SimGroupInner getByResourceGroup(String resourceGroupName, String simGroupName); /** * Creates or updates a SIM group. @@ -163,13 +163,15 @@ SimGroupInner createOrUpdate( * @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. + * @return sIM group resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SimGroupInner updateTags(String resourceGroupName, String simGroupName, TagsObject parameters); + Response updateTagsWithResponse( + String resourceGroupName, String simGroupName, TagsObject parameters, Context context); /** * Updates SIM group tags. @@ -177,15 +179,13 @@ SimGroupInner createOrUpdate( * @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}. + * @return sIM group resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse( - String resourceGroupName, String simGroupName, TagsObject parameters, Context context); + SimGroupInner updateTags(String resourceGroupName, String simGroupName, TagsObject parameters); /** * Gets all the SIM groups in a subscription. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimOperationsClient.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimOperationsClient.java new file mode 100644 index 0000000000000..bcae3e1beadae --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/SimOperationsClient.java @@ -0,0 +1,202 @@ +// 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.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.mobilenetwork.fluent.models.AsyncOperationStatusInner; +import com.azure.resourcemanager.mobilenetwork.models.EncryptedSimUploadList; +import com.azure.resourcemanager.mobilenetwork.models.SimDeleteList; +import com.azure.resourcemanager.mobilenetwork.models.SimUploadList; + +/** An instance of this class provides access to all the operations defined in SimOperationsClient. */ +public interface SimOperationsClient { + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginBulkUpload( + String resourceGroupName, String simGroupName, SimUploadList parameters); + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginBulkUpload( + String resourceGroupName, String simGroupName, SimUploadList parameters, Context context); + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner bulkUpload(String resourceGroupName, String simGroupName, SimUploadList parameters); + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner bulkUpload( + String resourceGroupName, String simGroupName, SimUploadList parameters, Context context); + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginBulkDelete( + String resourceGroupName, String simGroupName, SimDeleteList parameters); + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginBulkDelete( + String resourceGroupName, String simGroupName, SimDeleteList parameters, Context context); + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner bulkDelete(String resourceGroupName, String simGroupName, SimDeleteList parameters); + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner bulkDelete( + String resourceGroupName, String simGroupName, SimDeleteList parameters, Context context); + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginBulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters); + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AsyncOperationStatusInner> beginBulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters, Context context); + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner bulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters); + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationStatusInner bulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters, 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 c76e168d35de9..d14ddbe59abdc 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 @@ -80,13 +80,15 @@ SyncPoller, Void> beginDelete( * @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 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. + * @return information about the specified SIM policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SimPolicyInner get(String resourceGroupName, String mobileNetworkName, String simPolicyName); + Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context); /** * Gets information about the specified SIM policy. @@ -94,18 +96,16 @@ SyncPoller, Void> beginDelete( * @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 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. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context); + SimPolicyInner get(String resourceGroupName, String mobileNetworkName, String simPolicyName); /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -121,7 +121,7 @@ SyncPoller, SimPolicyInner> beginCreateOrUpdate( String resourceGroupName, String mobileNetworkName, String simPolicyName, SimPolicyInner parameters); /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -142,7 +142,7 @@ SyncPoller, SimPolicyInner> beginCreateOrUpdate( Context context); /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -158,7 +158,7 @@ SimPolicyInner createOrUpdate( String resourceGroupName, String mobileNetworkName, String simPolicyName, SimPolicyInner parameters); /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -185,14 +185,19 @@ SimPolicyInner createOrUpdate( * @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 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 along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SimPolicyInner updateTags( - String resourceGroupName, String mobileNetworkName, String simPolicyName, TagsObject parameters); + Response updateTagsWithResponse( + String resourceGroupName, + String mobileNetworkName, + String simPolicyName, + TagsObject parameters, + Context context); /** * Updates SIM policy tags. @@ -201,19 +206,14 @@ SimPolicyInner updateTags( * @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 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. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse( - String resourceGroupName, - String mobileNetworkName, - String simPolicyName, - TagsObject parameters, - Context context); + SimPolicyInner updateTags( + String resourceGroupName, String mobileNetworkName, String simPolicyName, TagsObject parameters); /** * Gets all the SIM policies in a mobile network. 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 dc1de80819a94..89e967da74c02 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 @@ -78,13 +78,14 @@ SyncPoller, Void> beginDelete( * @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. + * @return information about the specified SIM along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SimInner get(String resourceGroupName, String simGroupName, String simName); + Response getWithResponse(String resourceGroupName, String simGroupName, String simName, Context context); /** * Gets information about the specified SIM. @@ -92,14 +93,13 @@ SyncPoller, Void> beginDelete( * @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. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String simGroupName, String simName, Context context); + SimInner get(String resourceGroupName, String simGroupName, String simName); /** * Creates or updates a SIM. @@ -177,7 +177,7 @@ SimInner createOrUpdate( * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listBySimGroup(String resourceGroupName, String simGroupName); + PagedIterable listByGroup(String resourceGroupName, String simGroupName); /** * Gets all the SIMs in a SIM group. @@ -191,5 +191,5 @@ SimInner createOrUpdate( * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listBySimGroup(String resourceGroupName, String simGroupName, Context context); + PagedIterable listByGroup(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 c0b61e8ec0b09..11051a559ac99 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 @@ -17,7 +17,8 @@ /** An instance of this class provides access to all the operations defined in SitesClient. */ public interface SitesClient { /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -31,7 +32,8 @@ public interface SitesClient { SyncPoller, Void> beginDelete(String resourceGroupName, String mobileNetworkName, String siteName); /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -47,7 +49,8 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String mobileNetworkName, String siteName, Context context); /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -60,7 +63,8 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String mobileNetworkName, String siteName); /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -79,13 +83,15 @@ SyncPoller, Void> beginDelete( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param siteName The name of the mobile network site. + * @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 site. + * @return information about the specified mobile network site along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SiteInner get(String resourceGroupName, String mobileNetworkName, String siteName); + Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String siteName, Context context); /** * Gets information about the specified mobile network site. @@ -93,18 +99,16 @@ SyncPoller, Void> beginDelete( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param siteName The name of the mobile network site. - * @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 site along with {@link Response}. + * @return information about the specified mobile network site. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String siteName, Context context); + SiteInner get(String resourceGroupName, String mobileNetworkName, String siteName); /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -120,7 +124,7 @@ SyncPoller, SiteInner> beginCreateOrUpdate( String resourceGroupName, String mobileNetworkName, String siteName, SiteInner parameters); /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -137,7 +141,7 @@ SyncPoller, SiteInner> beginCreateOrUpdate( String resourceGroupName, String mobileNetworkName, String siteName, SiteInner parameters, Context context); /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -152,7 +156,7 @@ SyncPoller, SiteInner> beginCreateOrUpdate( SiteInner createOrUpdate(String resourceGroupName, String mobileNetworkName, String siteName, SiteInner parameters); /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -175,13 +179,15 @@ SiteInner createOrUpdate( * @param mobileNetworkName The name of the mobile network. * @param siteName The name of the mobile network site. * @param parameters Parameters supplied to update network site 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 site resource. + * @return site resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SiteInner updateTags(String resourceGroupName, String mobileNetworkName, String siteName, TagsObject parameters); + Response updateTagsWithResponse( + String resourceGroupName, String mobileNetworkName, String siteName, TagsObject parameters, Context context); /** * Updates site tags. @@ -190,15 +196,13 @@ SiteInner createOrUpdate( * @param mobileNetworkName The name of the mobile network. * @param siteName The name of the mobile network site. * @param parameters Parameters supplied to update network site 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 site resource along with {@link Response}. + * @return site resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse( - String resourceGroupName, String mobileNetworkName, String siteName, TagsObject parameters, Context context); + SiteInner updateTags(String resourceGroupName, String mobileNetworkName, String siteName, TagsObject parameters); /** * Lists all sites in 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 9ec5df50c691e..0fad1d899bbca 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 @@ -80,13 +80,15 @@ SyncPoller, Void> beginDelete( * @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 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 network slice. + * @return information about the specified network slice along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SliceInner get(String resourceGroupName, String mobileNetworkName, String sliceName); + Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String sliceName, Context context); /** * Gets information about the specified network slice. @@ -94,18 +96,16 @@ SyncPoller, Void> beginDelete( * @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 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 network slice along with {@link Response}. + * @return information about the specified network slice. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String sliceName, Context context); + SliceInner get(String resourceGroupName, String mobileNetworkName, String sliceName); /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -121,7 +121,7 @@ SyncPoller, SliceInner> beginCreateOrUpdate( String resourceGroupName, String mobileNetworkName, String sliceName, SliceInner parameters); /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -138,7 +138,7 @@ SyncPoller, SliceInner> beginCreateOrUpdate( String resourceGroupName, String mobileNetworkName, String sliceName, SliceInner parameters, Context context); /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -154,7 +154,7 @@ SliceInner createOrUpdate( String resourceGroupName, String mobileNetworkName, String sliceName, SliceInner parameters); /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -177,13 +177,15 @@ SliceInner createOrUpdate( * @param mobileNetworkName The name of the mobile network. * @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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network slice resource. + * @return network slice resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SliceInner updateTags(String resourceGroupName, String mobileNetworkName, String sliceName, TagsObject parameters); + Response updateTagsWithResponse( + String resourceGroupName, String mobileNetworkName, String sliceName, TagsObject parameters, Context context); /** * Updates slice tags. @@ -192,15 +194,13 @@ SliceInner createOrUpdate( * @param mobileNetworkName The name of the mobile network. * @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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network slice resource along with {@link Response}. + * @return network slice resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse( - String resourceGroupName, String mobileNetworkName, String sliceName, TagsObject parameters, Context context); + SliceInner updateTags(String resourceGroupName, String mobileNetworkName, String sliceName, TagsObject parameters); /** * Lists all slices in the mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AsyncOperationStatusInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AsyncOperationStatusInner.java new file mode 100644 index 0000000000000..c28654d049610 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AsyncOperationStatusInner.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.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.exception.ManagementError; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The current status of an async operation. */ +@Fluent +public final class AsyncOperationStatusInner { + /* + * Fully qualified ID for the async operation. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name of the async operation. + */ + @JsonProperty(value = "name") + private String name; + + /* + * The operation status. + */ + @JsonProperty(value = "status", required = true) + private String status; + + /* + * Fully qualified ID for the resource that this async operation status relates to. + */ + @JsonProperty(value = "resourceId") + private String resourceId; + + /* + * The start time of the operation. + */ + @JsonProperty(value = "startTime") + private OffsetDateTime startTime; + + /* + * The end time of the operation. + */ + @JsonProperty(value = "endTime") + private OffsetDateTime endTime; + + /* + * Percentage of the operation that is complete. + */ + @JsonProperty(value = "percentComplete") + private Double percentComplete; + + /* + * Properties returned by the resource provider on a successful operation + */ + @JsonProperty(value = "properties") + private Object properties; + + /* + * If present, details of the operation error. + */ + @JsonProperty(value = "error") + private ManagementError error; + + /** Creates an instance of AsyncOperationStatusInner class. */ + public AsyncOperationStatusInner() { + } + + /** + * Get the id property: Fully qualified ID for the async operation. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Fully qualified ID for the async operation. + * + * @param id the id value to set. + * @return the AsyncOperationStatusInner object itself. + */ + public AsyncOperationStatusInner withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name of the async operation. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of the async operation. + * + * @param name the name value to set. + * @return the AsyncOperationStatusInner object itself. + */ + public AsyncOperationStatusInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get the status property: The operation status. + * + * @return the status value. + */ + public String status() { + return this.status; + } + + /** + * Set the status property: The operation status. + * + * @param status the status value to set. + * @return the AsyncOperationStatusInner object itself. + */ + public AsyncOperationStatusInner withStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the resourceId property: Fully qualified ID for the resource that this async operation status relates to. + * + * @return the resourceId value. + */ + public String resourceId() { + return this.resourceId; + } + + /** + * Set the resourceId property: Fully qualified ID for the resource that this async operation status relates to. + * + * @param resourceId the resourceId value to set. + * @return the AsyncOperationStatusInner object itself. + */ + public AsyncOperationStatusInner withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Get the startTime property: The start time of the operation. + * + * @return the startTime value. + */ + public OffsetDateTime startTime() { + return this.startTime; + } + + /** + * Set the startTime property: The start time of the operation. + * + * @param startTime the startTime value to set. + * @return the AsyncOperationStatusInner object itself. + */ + public AsyncOperationStatusInner withStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get the endTime property: The end time of the operation. + * + * @return the endTime value. + */ + public OffsetDateTime endTime() { + return this.endTime; + } + + /** + * Set the endTime property: The end time of the operation. + * + * @param endTime the endTime value to set. + * @return the AsyncOperationStatusInner object itself. + */ + public AsyncOperationStatusInner withEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * Get the percentComplete property: Percentage of the operation that is complete. + * + * @return the percentComplete value. + */ + public Double percentComplete() { + return this.percentComplete; + } + + /** + * Set the percentComplete property: Percentage of the operation that is complete. + * + * @param percentComplete the percentComplete value to set. + * @return the AsyncOperationStatusInner object itself. + */ + public AsyncOperationStatusInner withPercentComplete(Double percentComplete) { + this.percentComplete = percentComplete; + return this; + } + + /** + * Get the properties property: Properties returned by the resource provider on a successful operation. + * + * @return the properties value. + */ + public Object properties() { + return this.properties; + } + + /** + * Set the properties property: Properties returned by the resource provider on a successful operation. + * + * @param properties the properties value to set. + * @return the AsyncOperationStatusInner object itself. + */ + public AsyncOperationStatusInner withProperties(Object properties) { + this.properties = properties; + return this; + } + + /** + * Get the error property: If present, details of the operation error. + * + * @return the error value. + */ + public ManagementError error() { + return this.error; + } + + /** + * Set the error property: If present, details of the operation error. + * + * @param error the error value to set. + * @return the AsyncOperationStatusInner object itself. + */ + public AsyncOperationStatusInner withError(ManagementError error) { + this.error = error; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (status() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property status in model AsyncOperationStatusInner")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AsyncOperationStatusInner.class); +} 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 29a007d32a60e..2350b81bf6814 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 @@ -6,6 +6,7 @@ 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.InterfaceProperties; import com.azure.resourcemanager.mobilenetwork.models.NaptConfiguration; @@ -14,17 +15,27 @@ import java.util.List; import java.util.Map; -/** Attached data network resource. */ +/** Attached data network resource. Must be created in the same location as its parent packet core data plane. */ @Fluent public final class AttachedDataNetworkInner extends Resource { /* - * Data network properties. + * Attached data network properties. */ @JsonProperty(value = "properties", required = true) private AttachedDataNetworkPropertiesFormat innerProperties = new AttachedDataNetworkPropertiesFormat(); + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /** Creates an instance of AttachedDataNetworkInner class. */ + public AttachedDataNetworkInner() { + } + /** - * Get the innerProperties property: Data network properties. + * Get the innerProperties property: Attached data network properties. * * @return the innerProperties value. */ @@ -32,6 +43,15 @@ private AttachedDataNetworkPropertiesFormat innerProperties() { return this.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 AttachedDataNetworkInner withLocation(String location) { @@ -81,7 +101,8 @@ public AttachedDataNetworkInner withUserPlaneDataInterface(InterfaceProperties u } /** - * Get the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. + * Get the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. This + * configuration is mandatory - if you don't want DNS servers, you must provide an empty array. * * @return the dnsAddresses value. */ @@ -90,7 +111,8 @@ public List dnsAddresses() { } /** - * Set the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. + * Set the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. This + * configuration is mandatory - if you don't want DNS servers, you must provide an empty array. * * @param dnsAddresses the dnsAddresses 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 fba5f8a9f0d9c..d2e3f88ed0e78 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,53 +22,51 @@ public final class AttachedDataNetworkPropertiesFormat { private ProvisioningState provisioningState; /* - * The user plane interface on the data network. For 5G networks, this is - * the N6 interface. For 4G networks, this is the 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 DNS servers to signal to UEs to use for this attached data network. + * The DNS servers to signal to UEs to use for this attached data network. This configuration is mandatory - if you + * don't want DNS servers, you must provide an empty array. */ - @JsonProperty(value = "dnsAddresses") + @JsonProperty(value = "dnsAddresses", required = true) 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. + * 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 (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. + * 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 (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. + * 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. */ @JsonProperty(value = "userEquipmentStaticAddressPoolPrefix") private List userEquipmentStaticAddressPoolPrefix; + /** Creates an instance of AttachedDataNetworkPropertiesFormat class. */ + public AttachedDataNetworkPropertiesFormat() { + } + /** * Get the provisioningState property: The provisioning state of the attached data network resource. * @@ -101,7 +99,8 @@ public AttachedDataNetworkPropertiesFormat withUserPlaneDataInterface(InterfaceP } /** - * Get the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. + * Get the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. This + * configuration is mandatory - if you don't want DNS servers, you must provide an empty array. * * @return the dnsAddresses value. */ @@ -110,7 +109,8 @@ public List dnsAddresses() { } /** - * Set the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. + * Set the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. This + * configuration is mandatory - if you don't want DNS servers, you must provide an empty array. * * @param dnsAddresses the dnsAddresses value to set. * @return the AttachedDataNetworkPropertiesFormat object itself. @@ -215,6 +215,12 @@ public void validate() { } else { userPlaneDataInterface().validate(); } + if (dnsAddresses() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property dnsAddresses in model AttachedDataNetworkPropertiesFormat")); + } if (naptConfiguration() != null) { naptConfiguration().validate(); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkInner.java index 4b95b6c5b7134..3524789b12004 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkInner.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Data network resource. */ +/** Data network resource. Must be created in the same location as its parent mobile network. */ @Fluent public final class DataNetworkInner extends Resource { /* @@ -21,12 +21,15 @@ public final class DataNetworkInner extends Resource { private DataNetworkPropertiesFormat innerProperties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of DataNetworkInner class. */ + public DataNetworkInner() { + } + /** * Get the innerProperties property: Data network properties. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkPropertiesFormat.java index 12f5fba9420e3..0b49db76fcd46 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkPropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkPropertiesFormat.java @@ -23,6 +23,10 @@ public final class DataNetworkPropertiesFormat { @JsonProperty(value = "description") private String description; + /** Creates an instance of DataNetworkPropertiesFormat class. */ + public DataNetworkPropertiesFormat() { + } + /** * Get the provisioningState property: The provisioning state of the data network resource. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/EncryptedSimPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/EncryptedSimPropertiesFormat.java new file mode 100644 index 0000000000000..2138fcb2beace --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/EncryptedSimPropertiesFormat.java @@ -0,0 +1,92 @@ +// 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.CommonSimPropertiesFormat; +import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; +import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Encrypted SIM properties. */ +@Fluent +public final class EncryptedSimPropertiesFormat extends CommonSimPropertiesFormat { + /* + * The encrypted SIM credentials. + */ + @JsonProperty(value = "encryptedCredentials") + private String encryptedCredentials; + + /** Creates an instance of EncryptedSimPropertiesFormat class. */ + public EncryptedSimPropertiesFormat() { + } + + /** + * Get the encryptedCredentials property: The encrypted SIM credentials. + * + * @return the encryptedCredentials value. + */ + public String encryptedCredentials() { + return this.encryptedCredentials; + } + + /** + * Set the encryptedCredentials property: The encrypted SIM credentials. + * + * @param encryptedCredentials the encryptedCredentials value to set. + * @return the EncryptedSimPropertiesFormat object itself. + */ + public EncryptedSimPropertiesFormat withEncryptedCredentials(String encryptedCredentials) { + this.encryptedCredentials = encryptedCredentials; + return this; + } + + /** {@inheritDoc} */ + @Override + public EncryptedSimPropertiesFormat withInternationalMobileSubscriberIdentity( + String internationalMobileSubscriberIdentity) { + super.withInternationalMobileSubscriberIdentity(internationalMobileSubscriberIdentity); + return this; + } + + /** {@inheritDoc} */ + @Override + public EncryptedSimPropertiesFormat withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier) { + super.withIntegratedCircuitCardIdentifier(integratedCircuitCardIdentifier); + return this; + } + + /** {@inheritDoc} */ + @Override + public EncryptedSimPropertiesFormat withDeviceType(String deviceType) { + super.withDeviceType(deviceType); + return this; + } + + /** {@inheritDoc} */ + @Override + public EncryptedSimPropertiesFormat withSimPolicy(SimPolicyResourceId simPolicy) { + super.withSimPolicy(simPolicy); + return this; + } + + /** {@inheritDoc} */ + @Override + public EncryptedSimPropertiesFormat withStaticIpConfiguration(List staticIpConfiguration) { + super.withStaticIpConfiguration(staticIpConfiguration); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + } +} 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 2a570b1a2e915..0f24753fae35e 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 @@ -23,12 +23,15 @@ public final class MobileNetworkInner extends Resource { private MobileNetworkPropertiesFormat innerProperties = new MobileNetworkPropertiesFormat(); /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of MobileNetworkInner class. */ + public MobileNetworkInner() { + } + /** * Get the innerProperties property: Mobile network properties. * 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 6ee6e648a4b40..faa33eec404ea 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 @@ -20,11 +20,9 @@ public final class MobileNetworkPropertiesFormat { private ProvisioningState provisioningState; /* - * The unique public land mobile network identifier for the network. This - * is made up of the mobile country code and mobile network code, as - * defined in https://www.itu.int/rec/T-REC-E.212. The values 001-01 and - * 001-001 can be used for testing and the values 999-99 and 999-999 can be - * used on internal private networks. + * The unique public land mobile network identifier for the network. This is made up of the mobile country code and + * mobile network code, as defined in https://www.itu.int/rec/T-REC-E.212. The values 001-01 and 001-001 can be + * used for testing and the values 999-99 and 999-999 can be used on internal private networks. */ @JsonProperty(value = "publicLandMobileNetworkIdentifier", required = true) private PlmnId publicLandMobileNetworkIdentifier; @@ -35,6 +33,10 @@ public final class MobileNetworkPropertiesFormat { @JsonProperty(value = "serviceKey", access = JsonProperty.Access.WRITE_ONLY) private String serviceKey; + /** Creates an instance of MobileNetworkPropertiesFormat class. */ + public MobileNetworkPropertiesFormat() { + } + /** * Get the provisioningState property: The provisioning state of the mobile network resource. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/OperationInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/OperationInner.java index 3650568d1e757..8408ffc83e97b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/OperationInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/OperationInner.java @@ -29,6 +29,10 @@ public final class OperationInner { @JsonProperty(value = "display", access = JsonProperty.Access.WRITE_ONLY) private OperationDisplay display; + /** Creates an instance of OperationInner class. */ + public OperationInner() { + } + /** * Get the isDataAction property: Indicates whether the operation applies to data-plane. * 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 dd9e71eb6831a..494ba161f1d6b 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 @@ -10,13 +10,15 @@ 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.Installation; 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.azure.resourcemanager.mobilenetwork.models.SiteResourceId; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; import java.util.Map; /** Packet core control plane resource. */ @@ -29,19 +31,21 @@ public final class PacketCoreControlPlaneInner extends Resource { private PacketCoreControlPlanePropertiesFormat innerProperties = new PacketCoreControlPlanePropertiesFormat(); /* - * The identity used to retrieve the ingress certificate from Azure key - * vault. + * 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. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of PacketCoreControlPlaneInner class. */ + public PacketCoreControlPlaneInner() { + } + /** * Get the innerProperties property: Packet core control plane Properties. * @@ -104,25 +108,36 @@ public ProvisioningState provisioningState() { } /** - * Get the mobileNetwork property: Mobile network in which this packet core control plane is deployed. + * Get the installation property: The installation state of the packet core control plane resource. + * + * @return the installation value. + */ + public Installation installation() { + return this.innerProperties() == null ? null : this.innerProperties().installation(); + } + + /** + * Get the sites property: Site(s) under which this packet core control plane should be deployed. The sites must be + * in the same location as the packet core control plane. * - * @return the mobileNetwork value. + * @return the sites value. */ - public MobileNetworkResourceId mobileNetwork() { - return this.innerProperties() == null ? null : this.innerProperties().mobileNetwork(); + public List sites() { + return this.innerProperties() == null ? null : this.innerProperties().sites(); } /** - * Set the mobileNetwork property: Mobile network in which this packet core control plane is deployed. + * Set the sites property: Site(s) under which this packet core control plane should be deployed. The sites must be + * in the same location as the packet core control plane. * - * @param mobileNetwork the mobileNetwork value to set. + * @param sites the sites value to set. * @return the PacketCoreControlPlaneInner object itself. */ - public PacketCoreControlPlaneInner withMobileNetwork(MobileNetworkResourceId mobileNetwork) { + public PacketCoreControlPlaneInner withSites(List sites) { if (this.innerProperties() == null) { this.innerProperties = new PacketCoreControlPlanePropertiesFormat(); } - this.innerProperties().withMobileNetwork(mobileNetwork); + this.innerProperties().withSites(sites); return this; } @@ -195,6 +210,16 @@ public PacketCoreControlPlaneInner withVersion(String version) { return this; } + /** + * Get the rollbackVersion property: The previous version of the packet core software that was deployed. Used when + * performing the rollback action. + * + * @return the rollbackVersion value. + */ + public String rollbackVersion() { + return this.innerProperties() == null ? null : this.innerProperties().rollbackVersion(); + } + /** * 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. @@ -246,6 +271,33 @@ public PacketCoreControlPlaneInner withSku(BillingSku sku) { return this; } + /** + * Get the ueMtu property: The MTU (in bytes) signaled to the UE. The same MTU is set on the user plane data links + * for all data networks. The MTU set on the user plane access link is calculated to be 60 bytes greater than this + * value to allow for GTP encapsulation. + * + * @return the ueMtu value. + */ + public Integer ueMtu() { + return this.innerProperties() == null ? null : this.innerProperties().ueMtu(); + } + + /** + * Set the ueMtu property: The MTU (in bytes) signaled to the UE. The same MTU is set on the user plane data links + * for all data networks. The MTU set on the user plane access link is calculated to be 60 bytes greater than this + * value to allow for GTP encapsulation. + * + * @param ueMtu the ueMtu value to set. + * @return the PacketCoreControlPlaneInner object itself. + */ + public PacketCoreControlPlaneInner withUeMtu(Integer ueMtu) { + if (this.innerProperties() == null) { + this.innerProperties = new PacketCoreControlPlanePropertiesFormat(); + } + this.innerProperties().withUeMtu(ueMtu); + return this; + } + /** * Get the localDiagnosticsAccess property: The kubernetes ingress configuration to control access to packet core * diagnostics over local APIs. 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 f6fbdbcaf0400..03ee6c4f8c4ba 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 @@ -8,12 +8,14 @@ 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.Installation; 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.azure.resourcemanager.mobilenetwork.models.SiteResourceId; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** Packet core control plane properties. */ @Fluent @@ -25,15 +27,22 @@ public final class PacketCoreControlPlanePropertiesFormat { private ProvisioningState provisioningState; /* - * Mobile network in which this packet core control plane is deployed. + * The installation state of the packet core control plane resource. */ - @JsonProperty(value = "mobileNetwork", required = true) - private MobileNetworkResourceId mobileNetwork; + @JsonProperty(value = "installation", access = JsonProperty.Access.WRITE_ONLY) + private Installation installation; + + /* + * Site(s) under which this packet core control plane should be deployed. The sites must be in the same location as + * the packet core control plane. + */ + @JsonProperty(value = "sites", required = true) + private List sites; /* * The platform where the packet core is deployed. */ - @JsonProperty(value = "platform") + @JsonProperty(value = "platform", required = true) private PlatformConfiguration platform; /* @@ -49,33 +58,48 @@ public final class PacketCoreControlPlanePropertiesFormat { private String version; /* - * 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. + * The previous version of the packet core software that was deployed. Used when performing the rollback action. + */ + @JsonProperty(value = "rollbackVersion", access = JsonProperty.Access.WRITE_ONLY) + private String rollbackVersion; + + /* + * 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. + * 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. + * The MTU (in bytes) signaled to the UE. The same MTU is set on the user plane data links for all data networks. + * The MTU set on the user plane access link is calculated to be 60 bytes greater than this value to allow for GTP + * encapsulation. */ - @JsonProperty(value = "localDiagnosticsAccess") + @JsonProperty(value = "ueMtu") + private Integer ueMtu; + + /* + * The kubernetes ingress configuration to control access to packet core diagnostics over local APIs. + */ + @JsonProperty(value = "localDiagnosticsAccess", required = true) private LocalDiagnosticsAccessConfiguration localDiagnosticsAccess; /* - * Settings to allow interoperability with third party components e.g. RANs - * and UEs. + * Settings to allow interoperability with third party components e.g. RANs and UEs. */ @JsonProperty(value = "interopSettings") private Object interopSettings; + /** Creates an instance of PacketCoreControlPlanePropertiesFormat class. */ + public PacketCoreControlPlanePropertiesFormat() { + } + /** * Get the provisioningState property: The provisioning state of the packet core control plane resource. * @@ -86,22 +110,33 @@ public ProvisioningState provisioningState() { } /** - * Get the mobileNetwork property: Mobile network in which this packet core control plane is deployed. + * Get the installation property: The installation state of the packet core control plane resource. + * + * @return the installation value. + */ + public Installation installation() { + return this.installation; + } + + /** + * Get the sites property: Site(s) under which this packet core control plane should be deployed. The sites must be + * in the same location as the packet core control plane. * - * @return the mobileNetwork value. + * @return the sites value. */ - public MobileNetworkResourceId mobileNetwork() { - return this.mobileNetwork; + public List sites() { + return this.sites; } /** - * Set the mobileNetwork property: Mobile network in which this packet core control plane is deployed. + * Set the sites property: Site(s) under which this packet core control plane should be deployed. The sites must be + * in the same location as the packet core control plane. * - * @param mobileNetwork the mobileNetwork value to set. + * @param sites the sites value to set. * @return the PacketCoreControlPlanePropertiesFormat object itself. */ - public PacketCoreControlPlanePropertiesFormat withMobileNetwork(MobileNetworkResourceId mobileNetwork) { - this.mobileNetwork = mobileNetwork; + public PacketCoreControlPlanePropertiesFormat withSites(List sites) { + this.sites = sites; return this; } @@ -165,6 +200,16 @@ public PacketCoreControlPlanePropertiesFormat withVersion(String version) { return this; } + /** + * Get the rollbackVersion property: The previous version of the packet core software that was deployed. Used when + * performing the rollback action. + * + * @return the rollbackVersion value. + */ + public String rollbackVersion() { + return this.rollbackVersion; + } + /** * 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. @@ -210,6 +255,30 @@ public PacketCoreControlPlanePropertiesFormat withSku(BillingSku sku) { return this; } + /** + * Get the ueMtu property: The MTU (in bytes) signaled to the UE. The same MTU is set on the user plane data links + * for all data networks. The MTU set on the user plane access link is calculated to be 60 bytes greater than this + * value to allow for GTP encapsulation. + * + * @return the ueMtu value. + */ + public Integer ueMtu() { + return this.ueMtu; + } + + /** + * Set the ueMtu property: The MTU (in bytes) signaled to the UE. The same MTU is set on the user plane data links + * for all data networks. The MTU set on the user plane access link is calculated to be 60 bytes greater than this + * value to allow for GTP encapsulation. + * + * @param ueMtu the ueMtu value to set. + * @return the PacketCoreControlPlanePropertiesFormat object itself. + */ + public PacketCoreControlPlanePropertiesFormat withUeMtu(Integer ueMtu) { + this.ueMtu = ueMtu; + return this; + } + /** * Get the localDiagnosticsAccess property: The kubernetes ingress configuration to control access to packet core * diagnostics over local APIs. @@ -261,15 +330,23 @@ public PacketCoreControlPlanePropertiesFormat withInteropSettings(Object interop * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (mobileNetwork() == null) { + if (installation() != null) { + installation().validate(); + } + if (sites() == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException( - "Missing required property mobileNetwork in model PacketCoreControlPlanePropertiesFormat")); + "Missing required property sites in model PacketCoreControlPlanePropertiesFormat")); } else { - mobileNetwork().validate(); + sites().forEach(e -> e.validate()); } - if (platform() != null) { + if (platform() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property platform in model PacketCoreControlPlanePropertiesFormat")); + } else { platform().validate(); } if (controlPlaneAccessInterface() == null) { @@ -287,7 +364,13 @@ public void validate() { new IllegalArgumentException( "Missing required property sku in model PacketCoreControlPlanePropertiesFormat")); } - if (localDiagnosticsAccess() != null) { + if (localDiagnosticsAccess() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property localDiagnosticsAccess in model" + + " PacketCoreControlPlanePropertiesFormat")); + } else { localDiagnosticsAccess().validate(); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneVersionInner.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneVersionInner.java index 5678c7e17c69b..ed6e014f5f6fd 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneVersionInner.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneVersionInner.java @@ -8,10 +8,10 @@ import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.mobilenetwork.models.Platform; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.azure.resourcemanager.mobilenetwork.models.RecommendedVersion; -import com.azure.resourcemanager.mobilenetwork.models.VersionState; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** Packet core control plane version resource. */ @Fluent @@ -24,12 +24,15 @@ public final class PacketCoreControlPlaneVersionInner extends ProxyResource { new PacketCoreControlPlaneVersionPropertiesFormat(); /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of PacketCoreControlPlaneVersionInner class. */ + public PacketCoreControlPlaneVersionInner() { + } + /** * Get the innerProperties property: Packet core control plane version properties. * @@ -58,50 +61,25 @@ public ProvisioningState provisioningState() { } /** - * Get the versionState property: The state of this packet core control plane version. - * - * @return the versionState value. - */ - public VersionState versionState() { - return this.innerProperties() == null ? null : this.innerProperties().versionState(); - } - - /** - * Set the versionState property: The state of this packet core control plane version. - * - * @param versionState the versionState value to set. - * @return the PacketCoreControlPlaneVersionInner object itself. - */ - public PacketCoreControlPlaneVersionInner withVersionState(VersionState versionState) { - if (this.innerProperties() == null) { - this.innerProperties = new PacketCoreControlPlaneVersionPropertiesFormat(); - } - this.innerProperties().withVersionState(versionState); - return this; - } - - /** - * Get the recommendedVersion property: Indicates whether this is the recommended version to use for new packet core - * control plane deployments. + * Get the platforms property: Platform specific packet core control plane version properties. * - * @return the recommendedVersion value. + * @return the platforms value. */ - public RecommendedVersion recommendedVersion() { - return this.innerProperties() == null ? null : this.innerProperties().recommendedVersion(); + public List platforms() { + return this.innerProperties() == null ? null : this.innerProperties().platforms(); } /** - * Set the recommendedVersion property: Indicates whether this is the recommended version to use for new packet core - * control plane deployments. + * Set the platforms property: Platform specific packet core control plane version properties. * - * @param recommendedVersion the recommendedVersion value to set. + * @param platforms the platforms value to set. * @return the PacketCoreControlPlaneVersionInner object itself. */ - public PacketCoreControlPlaneVersionInner withRecommendedVersion(RecommendedVersion recommendedVersion) { + public PacketCoreControlPlaneVersionInner withPlatforms(List platforms) { if (this.innerProperties() == null) { this.innerProperties = new PacketCoreControlPlaneVersionPropertiesFormat(); } - this.innerProperties().withRecommendedVersion(recommendedVersion); + this.innerProperties().withPlatforms(platforms); return this; } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneVersionPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneVersionPropertiesFormat.java index 8cd6280c7fe45..750ab5238437e 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneVersionPropertiesFormat.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/PacketCoreControlPlaneVersionPropertiesFormat.java @@ -5,33 +5,29 @@ package com.azure.resourcemanager.mobilenetwork.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.mobilenetwork.models.Platform; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.azure.resourcemanager.mobilenetwork.models.RecommendedVersion; -import com.azure.resourcemanager.mobilenetwork.models.VersionState; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** Packet core control plane version properties. */ @Fluent public final class PacketCoreControlPlaneVersionPropertiesFormat { /* - * The provisioning state of the packet core control plane version - * resource. + * The provisioning state of the packet core control plane version resource. */ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; /* - * The state of this packet core control plane version. + * Platform specific packet core control plane version properties. */ - @JsonProperty(value = "versionState") - private VersionState versionState; + @JsonProperty(value = "platforms") + private List platforms; - /* - * Indicates whether this is the recommended version to use for new packet - * core control plane deployments. - */ - @JsonProperty(value = "recommendedVersion") - private RecommendedVersion recommendedVersion; + /** Creates an instance of PacketCoreControlPlaneVersionPropertiesFormat class. */ + public PacketCoreControlPlaneVersionPropertiesFormat() { + } /** * Get the provisioningState property: The provisioning state of the packet core control plane version resource. @@ -43,44 +39,22 @@ public ProvisioningState provisioningState() { } /** - * Get the versionState property: The state of this packet core control plane version. - * - * @return the versionState value. - */ - public VersionState versionState() { - return this.versionState; - } - - /** - * Set the versionState property: The state of this packet core control plane version. - * - * @param versionState the versionState value to set. - * @return the PacketCoreControlPlaneVersionPropertiesFormat object itself. - */ - public PacketCoreControlPlaneVersionPropertiesFormat withVersionState(VersionState versionState) { - this.versionState = versionState; - return this; - } - - /** - * Get the recommendedVersion property: Indicates whether this is the recommended version to use for new packet core - * control plane deployments. + * Get the platforms property: Platform specific packet core control plane version properties. * - * @return the recommendedVersion value. + * @return the platforms value. */ - public RecommendedVersion recommendedVersion() { - return this.recommendedVersion; + public List platforms() { + return this.platforms; } /** - * Set the recommendedVersion property: Indicates whether this is the recommended version to use for new packet core - * control plane deployments. + * Set the platforms property: Platform specific packet core control plane version properties. * - * @param recommendedVersion the recommendedVersion value to set. + * @param platforms the platforms value to set. * @return the PacketCoreControlPlaneVersionPropertiesFormat object itself. */ - public PacketCoreControlPlaneVersionPropertiesFormat withRecommendedVersion(RecommendedVersion recommendedVersion) { - this.recommendedVersion = recommendedVersion; + public PacketCoreControlPlaneVersionPropertiesFormat withPlatforms(List platforms) { + this.platforms = platforms; return this; } @@ -90,5 +64,8 @@ public PacketCoreControlPlaneVersionPropertiesFormat withRecommendedVersion(Reco * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (platforms() != null) { + platforms().forEach(e -> e.validate()); + } } } 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 2977ef5298165..0c43bec509ff8 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 @@ -13,7 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Packet core data plane resource. */ +/** Packet core data plane resource. Must be created in the same location as its parent packet core control plane. */ @Fluent public final class PacketCoreDataPlaneInner extends Resource { /* @@ -23,12 +23,15 @@ public final class PacketCoreDataPlaneInner extends Resource { private PacketCoreDataPlanePropertiesFormat innerProperties = new PacketCoreDataPlanePropertiesFormat(); /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of PacketCoreDataPlaneInner class. */ + public PacketCoreDataPlaneInner() { + } + /** * Get the innerProperties property: Packet core data plane Properties. * 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 444ab67c700e0..70d6f4ffc7fcd 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 @@ -20,12 +20,16 @@ public final class PacketCoreDataPlanePropertiesFormat { private ProvisioningState provisioningState; /* - * 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. + * 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; + /** Creates an instance of PacketCoreDataPlanePropertiesFormat class. */ + public PacketCoreDataPlanePropertiesFormat() { + } + /** * Get the provisioningState property: The provisioning state of the packet core data plane resource. * 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 3072daa9c4754..6c90b2e68528f 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 @@ -15,7 +15,7 @@ import java.util.List; import java.util.Map; -/** Service resource. */ +/** Service resource. Must be created in the same location as its parent mobile network. */ @Fluent public final class ServiceInner extends Resource { /* @@ -25,12 +25,15 @@ public final class ServiceInner extends Resource { private ServicePropertiesFormat innerProperties = new ServicePropertiesFormat(); /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of ServiceInner class. */ + public ServiceInner() { + } + /** * Get the innerProperties property: Service Properties. * 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 bb8105fd5fbf7..654a4cc236114 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 @@ -22,19 +22,17 @@ public final class ServicePropertiesFormat { private ProvisioningState provisioningState; /* - * 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. + * 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. */ @JsonProperty(value = "servicePrecedence", required = true) private int servicePrecedence; /* - * 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 SIM policy - * will define the QoS settings. + * 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 SIM policy will define the + * QoS settings. */ @JsonProperty(value = "serviceQosPolicy") private QosPolicy serviceQosPolicy; @@ -45,6 +43,10 @@ public final class ServicePropertiesFormat { @JsonProperty(value = "pccRules", required = true) private List pccRules; + /** Creates an instance of ServicePropertiesFormat class. */ + public ServicePropertiesFormat() { + } + /** * Get the provisioningState property: The provisioning state of the service resource. * 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 index 5df0d2d887ada..7cac6a0e55210 100644 --- 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 @@ -31,12 +31,15 @@ public final class SimGroupInner extends Resource { private ManagedServiceIdentity identity; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of SimGroupInner class. */ + public SimGroupInner() { + } + /** * Get the innerProperties property: SIM group Properties. * @@ -122,7 +125,8 @@ public SimGroupInner withEncryptionKey(KeyVaultKey encryptionKey) { } /** - * Get the mobileNetwork property: Mobile network that this SIM belongs to. + * Get the mobileNetwork property: Mobile network that this SIM group belongs to. The mobile network must be in the + * same location as the SIM group. * * @return the mobileNetwork value. */ @@ -131,7 +135,8 @@ public MobileNetworkResourceId mobileNetwork() { } /** - * Set the mobileNetwork property: Mobile network that this SIM belongs to. + * Set the mobileNetwork property: Mobile network that this SIM group belongs to. The mobile network must be in the + * same location as the SIM group. * * @param mobileNetwork the mobileNetwork value to set. * @return the SimGroupInner object itself. 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 index 55ab698297c7e..d838802e973b5 100644 --- 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 @@ -26,11 +26,15 @@ public final class SimGroupPropertiesFormat { private KeyVaultKey encryptionKey; /* - * Mobile network that this SIM belongs to + * Mobile network that this SIM group belongs to. The mobile network must be in the same location as the SIM group. */ @JsonProperty(value = "mobileNetwork") private MobileNetworkResourceId mobileNetwork; + /** Creates an instance of SimGroupPropertiesFormat class. */ + public SimGroupPropertiesFormat() { + } + /** * Get the provisioningState property: The provisioning state of the SIM group resource. * @@ -61,7 +65,8 @@ public SimGroupPropertiesFormat withEncryptionKey(KeyVaultKey encryptionKey) { } /** - * Get the mobileNetwork property: Mobile network that this SIM belongs to. + * Get the mobileNetwork property: Mobile network that this SIM group belongs to. The mobile network must be in the + * same location as the SIM group. * * @return the mobileNetwork value. */ @@ -70,7 +75,8 @@ public MobileNetworkResourceId mobileNetwork() { } /** - * Set the mobileNetwork property: Mobile network that this SIM belongs to. + * Set the mobileNetwork property: Mobile network that this SIM group belongs to. The mobile network must be in the + * same location as the SIM group. * * @param mobileNetwork the mobileNetwork value to set. * @return the SimGroupPropertiesFormat object itself. 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 deleted file mode 100644 index e893078b2b029..0000000000000 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/SimIdListResultInner.java +++ /dev/null @@ -1,63 +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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Response for list SIM IDs API service call. */ -@Fluent -public final class SimIdListResultInner { - /* - * A list of SIM IDs. - */ - @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 IDs. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: A list of SIM IDs. - * - * @param value the value value to set. - * @return the SimIdListResultInner object itself. - */ - public SimIdListResultInner 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() { - } -} 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 97f3d996d7607..f22ec09be992d 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 @@ -6,13 +6,16 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; 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.azure.resourcemanager.mobilenetwork.models.SiteProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; +import java.util.Map; /** SIM resource. */ @Fluent @@ -23,6 +26,16 @@ public final class SimInner extends ProxyResource { @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; + + /** Creates an instance of SimInner class. */ + public SimInner() { + } + /** * Get the innerProperties property: SIM Properties. * @@ -32,6 +45,61 @@ private SimPropertiesFormat innerProperties() { return this.innerProperties; } + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the authenticationKey property: The Ki value for the SIM. + * + * @return the authenticationKey value. + */ + public String authenticationKey() { + return this.innerProperties() == null ? null : this.innerProperties().authenticationKey(); + } + + /** + * Set the authenticationKey property: The Ki value for the SIM. + * + * @param authenticationKey the authenticationKey value to set. + * @return the SimInner object itself. + */ + public SimInner withAuthenticationKey(String authenticationKey) { + if (this.innerProperties() == null) { + this.innerProperties = new SimPropertiesFormat(); + } + this.innerProperties().withAuthenticationKey(authenticationKey); + return this; + } + + /** + * Get the operatorKeyCode property: The Opc value for the SIM. + * + * @return the operatorKeyCode value. + */ + public String operatorKeyCode() { + return this.innerProperties() == null ? null : this.innerProperties().operatorKeyCode(); + } + + /** + * Set the operatorKeyCode property: The Opc value for the SIM. + * + * @param operatorKeyCode the operatorKeyCode value to set. + * @return the SimInner object itself. + */ + public SimInner withOperatorKeyCode(String operatorKeyCode) { + if (this.innerProperties() == null) { + this.innerProperties = new SimPropertiesFormat(); + } + this.innerProperties().withOperatorKeyCode(operatorKeyCode); + return this; + } + /** * Get the provisioningState property: The provisioning state of the SIM resource. * @@ -50,6 +118,15 @@ public SimState simState() { return this.innerProperties() == null ? null : this.innerProperties().simState(); } + /** + * Get the siteProvisioningState property: A dictionary of sites to the provisioning state of this SIM on that site. + * + * @return the siteProvisioningState value. + */ + public Map siteProvisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().siteProvisioningState(); + } + /** * Get the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for * the SIM. @@ -98,52 +175,6 @@ public SimInner withIntegratedCircuitCardIdentifier(String integratedCircuitCard return this; } - /** - * Get the authenticationKey property: The Ki value for the SIM. - * - * @return the authenticationKey value. - */ - public String authenticationKey() { - return this.innerProperties() == null ? null : this.innerProperties().authenticationKey(); - } - - /** - * Set the authenticationKey property: The Ki value for the SIM. - * - * @param authenticationKey the authenticationKey value to set. - * @return the SimInner object itself. - */ - public SimInner withAuthenticationKey(String authenticationKey) { - if (this.innerProperties() == null) { - this.innerProperties = new SimPropertiesFormat(); - } - this.innerProperties().withAuthenticationKey(authenticationKey); - return this; - } - - /** - * Get the operatorKeyCode property: The Opc value for the SIM. - * - * @return the operatorKeyCode value. - */ - public String operatorKeyCode() { - return this.innerProperties() == null ? null : this.innerProperties().operatorKeyCode(); - } - - /** - * Set the operatorKeyCode property: The Opc value for the SIM. - * - * @param operatorKeyCode the operatorKeyCode value to set. - * @return the SimInner object itself. - */ - public SimInner withOperatorKeyCode(String operatorKeyCode) { - if (this.innerProperties() == null) { - this.innerProperties = new SimPropertiesFormat(); - } - this.innerProperties().withOperatorKeyCode(operatorKeyCode); - 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 @@ -172,7 +203,8 @@ public SimInner withDeviceType(String deviceType) { } /** - * Get the simPolicy property: The SIM policy used by this SIM. + * Get the simPolicy property: The SIM policy used by this SIM. The SIM policy must be in the same location as the + * SIM. * * @return the simPolicy value. */ @@ -181,7 +213,8 @@ public SimPolicyResourceId simPolicy() { } /** - * Set the simPolicy property: The SIM policy used by this SIM. + * Set the simPolicy property: The SIM policy used by this SIM. The SIM policy must be in the same location as the + * SIM. * * @param simPolicy the simPolicy value to set. * @return the SimInner object itself. @@ -219,6 +252,25 @@ public SimInner withStaticIpConfiguration(List staticIpCo return this; } + /** + * Get the vendorName property: The name of the SIM vendor who provided this SIM, if any. + * + * @return the vendorName value. + */ + public String vendorName() { + return this.innerProperties() == null ? null : this.innerProperties().vendorName(); + } + + /** + * Get the vendorKeyFingerprint property: The public key fingerprint of the SIM vendor who provided this SIM, if + * any. + * + * @return the vendorKeyFingerprint value. + */ + public String vendorKeyFingerprint() { + return this.innerProperties() == null ? null : this.innerProperties().vendorKeyFingerprint(); + } + /** * Validates the instance. * 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 af33317efe230..5d503612b83be 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 @@ -10,6 +10,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.Ambr; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; +import com.azure.resourcemanager.mobilenetwork.models.SiteProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.SliceConfiguration; import com.azure.resourcemanager.mobilenetwork.models.SliceResourceId; import com.fasterxml.jackson.annotation.JsonProperty; @@ -26,12 +27,15 @@ public final class SimPolicyInner extends Resource { private SimPolicyPropertiesFormat innerProperties = new SimPolicyPropertiesFormat(); /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of SimPolicyInner class. */ + public SimPolicyInner() { + } + /** * Get the innerProperties property: SIM policy Properties. * @@ -73,6 +77,16 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } + /** + * Get the siteProvisioningState property: A dictionary of sites to the provisioning state of this SIM policy on + * that site. + * + * @return the siteProvisioningState value. + */ + public Map siteProvisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().siteProvisioningState(); + } + /** * Get the ueAmbr property: Aggregate maximum bit rate across all non-GBR QoS flows of all PDU sessions of a given * UE. See 3GPP TS23.501 section 5.7.2.6 for a full description of the UE-AMBR. @@ -100,7 +114,7 @@ public SimPolicyInner withUeAmbr(Ambr ueAmbr) { /** * Get the defaultSlice property: The default slice to use if the UE does not explicitly specify it. This slice must - * exist in the `sliceConfigurations` map. + * exist in the `sliceConfigurations` map. The slice must be in the same location as the SIM policy. * * @return the defaultSlice value. */ @@ -110,7 +124,7 @@ public SliceResourceId defaultSlice() { /** * Set the defaultSlice property: The default slice to use if the UE does not explicitly specify it. This slice must - * exist in the `sliceConfigurations` map. + * exist in the `sliceConfigurations` map. The slice must be in the same location as the SIM policy. * * @param defaultSlice the defaultSlice value to set. * @return the SimPolicyInner object itself. 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 b264e0f3316c4..d627970dc1ab4 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 @@ -8,12 +8,15 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.models.Ambr; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; +import com.azure.resourcemanager.mobilenetwork.models.SiteProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.SliceConfiguration; import com.azure.resourcemanager.mobilenetwork.models.SliceResourceId; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; +import java.util.Map; -/** SIM policy properties. */ +/** SIM policy properties. Must be created in the same location as its parent mobile network. */ @Fluent public final class SimPolicyPropertiesFormat { /* @@ -23,23 +26,29 @@ public final class SimPolicyPropertiesFormat { private ProvisioningState provisioningState; /* - * Aggregate maximum bit rate across all non-GBR QoS flows of all PDU - * sessions of a given UE. See 3GPP TS23.501 section 5.7.2.6 for a full - * description of the UE-AMBR. + * A dictionary of sites to the provisioning state of this SIM policy on that site. + */ + @JsonProperty(value = "siteProvisioningState", access = JsonProperty.Access.WRITE_ONLY) + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map siteProvisioningState; + + /* + * Aggregate maximum bit rate across all non-GBR QoS flows of all PDU sessions of a given UE. See 3GPP TS23.501 + * section 5.7.2.6 for a full description of the UE-AMBR. */ @JsonProperty(value = "ueAmbr", required = true) private Ambr ueAmbr; /* - * The default slice to use if the UE does not explicitly specify it. This - * slice must exist in the `sliceConfigurations` map. + * The default slice to use if the UE does not explicitly specify it. This slice must exist in the + * `sliceConfigurations` map. The slice must be in the same location as the SIM policy. */ @JsonProperty(value = "defaultSlice", required = true) private SliceResourceId defaultSlice; /* - * RAT/Frequency Selection Priority Index, defined in 3GPP TS 36.413. This - * is an optional setting and by default is unspecified. + * RAT/Frequency Selection Priority Index, defined in 3GPP TS 36.413. This is an optional setting and by default is + * unspecified. */ @JsonProperty(value = "rfspIndex") private Integer rfspIndex; @@ -51,12 +60,16 @@ public final class SimPolicyPropertiesFormat { private Integer registrationTimer; /* - * The allowed slices and the settings to use for them. The list must not - * contain duplicate items and must contain at least one item. + * The allowed slices and the settings to use for them. The list must not contain duplicate items and must contain + * at least one item. */ @JsonProperty(value = "sliceConfigurations", required = true) private List sliceConfigurations; + /** Creates an instance of SimPolicyPropertiesFormat class. */ + public SimPolicyPropertiesFormat() { + } + /** * Get the provisioningState property: The provisioning state of the SIM policy resource. * @@ -66,6 +79,16 @@ public ProvisioningState provisioningState() { return this.provisioningState; } + /** + * Get the siteProvisioningState property: A dictionary of sites to the provisioning state of this SIM policy on + * that site. + * + * @return the siteProvisioningState value. + */ + public Map siteProvisioningState() { + return this.siteProvisioningState; + } + /** * Get the ueAmbr property: Aggregate maximum bit rate across all non-GBR QoS flows of all PDU sessions of a given * UE. See 3GPP TS23.501 section 5.7.2.6 for a full description of the UE-AMBR. @@ -90,7 +113,7 @@ public SimPolicyPropertiesFormat withUeAmbr(Ambr ueAmbr) { /** * Get the defaultSlice property: The default slice to use if the UE does not explicitly specify it. This slice must - * exist in the `sliceConfigurations` map. + * exist in the `sliceConfigurations` map. The slice must be in the same location as the SIM policy. * * @return the defaultSlice value. */ @@ -100,7 +123,7 @@ public SliceResourceId defaultSlice() { /** * Set the defaultSlice property: The default slice to use if the UE does not explicitly specify it. This slice must - * exist in the `sliceConfigurations` map. + * exist in the `sliceConfigurations` map. The slice must be in the same location as the SIM policy. * * @param defaultSlice the defaultSlice value to set. * @return the SimPolicyPropertiesFormat object itself. 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 ee424209a1070..cee914dedcef4 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 @@ -5,41 +5,15 @@ package com.azure.resourcemanager.mobilenetwork.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; +import com.azure.resourcemanager.mobilenetwork.models.CommonSimPropertiesFormat; 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; /** SIM properties. */ @Fluent -public final class SimPropertiesFormat { - /* - * The provisioning state of the SIM resource. - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private ProvisioningState provisioningState; - - /* - * 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. - */ - @JsonProperty(value = "internationalMobileSubscriberIdentity", required = true) - private String internationalMobileSubscriberIdentity; - - /* - * The integrated circuit card ID (ICCID) for the SIM. - */ - @JsonProperty(value = "integratedCircuitCardIdentifier") - private String integratedCircuitCardIdentifier; - +public final class SimPropertiesFormat extends CommonSimPropertiesFormat { /* * The Ki value for the SIM. */ @@ -52,86 +26,8 @@ public final class SimPropertiesFormat { @JsonProperty(value = "operatorKeyCode") private String operatorKeyCode; - /* - * 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. - */ - @JsonProperty(value = "deviceType") - private String deviceType; - - /* - * 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 - * assigned at a defined network scope, made up of {attached data network, - * slice}. - */ - @JsonProperty(value = "staticIpConfiguration") - private List staticIpConfiguration; - - /** - * Get the provisioningState property: The provisioning state of the SIM resource. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the simState property: The state of the SIM resource. - * - * @return the simState value. - */ - public SimState simState() { - return this.simState; - } - - /** - * Get the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for - * the SIM. - * - * @return the internationalMobileSubscriberIdentity value. - */ - public String internationalMobileSubscriberIdentity() { - return this.internationalMobileSubscriberIdentity; - } - - /** - * 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. - */ - public SimPropertiesFormat withInternationalMobileSubscriberIdentity(String internationalMobileSubscriberIdentity) { - this.internationalMobileSubscriberIdentity = internationalMobileSubscriberIdentity; - return this; - } - - /** - * Get the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. - * - * @return the integratedCircuitCardIdentifier value. - */ - public String integratedCircuitCardIdentifier() { - return this.integratedCircuitCardIdentifier; - } - - /** - * 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. - */ - public SimPropertiesFormat withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier) { - this.integratedCircuitCardIdentifier = integratedCircuitCardIdentifier; - return this; + /** Creates an instance of SimPropertiesFormat class. */ + public SimPropertiesFormat() { } /** @@ -174,69 +70,38 @@ public SimPropertiesFormat withOperatorKeyCode(String operatorKeyCode) { 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 - * this value. - * - * @return the deviceType value. - */ - public String deviceType() { - return this.deviceType; + /** {@inheritDoc} */ + @Override + public SimPropertiesFormat withInternationalMobileSubscriberIdentity(String internationalMobileSubscriberIdentity) { + super.withInternationalMobileSubscriberIdentity(internationalMobileSubscriberIdentity); + return this; } - /** - * 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. - * @return the SimPropertiesFormat object itself. - */ - public SimPropertiesFormat withDeviceType(String deviceType) { - this.deviceType = deviceType; + /** {@inheritDoc} */ + @Override + public SimPropertiesFormat withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier) { + super.withIntegratedCircuitCardIdentifier(integratedCircuitCardIdentifier); return this; } - /** - * Get the simPolicy property: The SIM policy used by this SIM. - * - * @return the simPolicy value. - */ - public SimPolicyResourceId simPolicy() { - return this.simPolicy; + /** {@inheritDoc} */ + @Override + public SimPropertiesFormat withDeviceType(String deviceType) { + super.withDeviceType(deviceType); + return this; } - /** - * Set the simPolicy property: The SIM policy used by this SIM. - * - * @param simPolicy the simPolicy value to set. - * @return the SimPropertiesFormat object itself. - */ + /** {@inheritDoc} */ + @Override public SimPropertiesFormat withSimPolicy(SimPolicyResourceId simPolicy) { - this.simPolicy = simPolicy; + super.withSimPolicy(simPolicy); return this; } - /** - * 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. - */ - public List staticIpConfiguration() { - return this.staticIpConfiguration; - } - - /** - * 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. - * @return the SimPropertiesFormat object itself. - */ + /** {@inheritDoc} */ + @Override public SimPropertiesFormat withStaticIpConfiguration(List staticIpConfiguration) { - this.staticIpConfiguration = staticIpConfiguration; + super.withStaticIpConfiguration(staticIpConfiguration); return this; } @@ -245,21 +110,8 @@ public SimPropertiesFormat withStaticIpConfiguration(List * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { - if (internationalMobileSubscriberIdentity() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property internationalMobileSubscriberIdentity in model" - + " SimPropertiesFormat")); - } - if (simPolicy() != null) { - simPolicy().validate(); - } - if (staticIpConfiguration() != null) { - staticIpConfiguration().forEach(e -> e.validate()); - } + super.validate(); } - - private static final ClientLogger LOGGER = new ClientLogger(SimPropertiesFormat.class); } 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 91abeab93526a..2f23bcc491d66 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 @@ -13,7 +13,7 @@ import java.util.List; import java.util.Map; -/** Site resource. */ +/** Site resource. Must be created in the same location as its parent mobile network. */ @Fluent public final class SiteInner extends Resource { /* @@ -23,12 +23,15 @@ public final class SiteInner extends Resource { private SitePropertiesFormat innerProperties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of SiteInner class. */ + public SiteInner() { + } + /** * Get the innerProperties property: Site properties. * @@ -71,8 +74,8 @@ public ProvisioningState provisioningState() { } /** - * Get the networkFunctions property: An array of IDs of the network functions deployed on the site, maintained by - * the user. + * Get the networkFunctions property: An array of IDs of the network functions deployed in the site. Deleting the + * site will delete any network functions that are deployed in the site. * * @return the networkFunctions value. */ @@ -80,21 +83,6 @@ public List networkFunctions() { return this.innerProperties() == null ? null : this.innerProperties().networkFunctions(); } - /** - * 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. - * @return the SiteInner object itself. - */ - public SiteInner withNetworkFunctions(List networkFunctions) { - if (this.innerProperties() == null) { - this.innerProperties = new SitePropertiesFormat(); - } - this.innerProperties().withNetworkFunctions(networkFunctions); - return this; - } - /** * Validates the instance. * 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 22c8299de39a9..72744498a4e96 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 @@ -4,14 +4,14 @@ package com.azure.resourcemanager.mobilenetwork.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Site properties. */ -@Fluent +@Immutable public final class SitePropertiesFormat { /* * The provisioning state of the site resource. @@ -20,12 +20,16 @@ public final class SitePropertiesFormat { private ProvisioningState provisioningState; /* - * An array of IDs of the network functions deployed on the site, - * maintained by the user. + * An array of IDs of the network functions deployed in the site. Deleting the site will delete any network + * functions that are deployed in the site. */ - @JsonProperty(value = "networkFunctions") + @JsonProperty(value = "networkFunctions", access = JsonProperty.Access.WRITE_ONLY) private List networkFunctions; + /** Creates an instance of SitePropertiesFormat class. */ + public SitePropertiesFormat() { + } + /** * Get the provisioningState property: The provisioning state of the site resource. * @@ -36,8 +40,8 @@ public ProvisioningState provisioningState() { } /** - * Get the networkFunctions property: An array of IDs of the network functions deployed on the site, maintained by - * the user. + * Get the networkFunctions property: An array of IDs of the network functions deployed in the site. Deleting the + * site will delete any network functions that are deployed in the site. * * @return the networkFunctions value. */ @@ -45,18 +49,6 @@ public List networkFunctions() { return this.networkFunctions; } - /** - * 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. - * @return the SitePropertiesFormat object itself. - */ - public SitePropertiesFormat withNetworkFunctions(List networkFunctions) { - this.networkFunctions = networkFunctions; - return this; - } - /** * Validates the instance. * 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 34f03a806f234..e4a8cd69b7c12 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 @@ -13,7 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Network slice resource. */ +/** Network slice resource. Must be created in the same location as its parent mobile network. */ @Fluent public final class SliceInner extends Resource { /* @@ -23,12 +23,15 @@ public final class SliceInner extends Resource { private SlicePropertiesFormat innerProperties = new SlicePropertiesFormat(); /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of SliceInner class. */ + public SliceInner() { + } + /** * Get the innerProperties property: Slice properties. * 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 f9b78e2692d14..b33adc3b3f972 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,7 @@ public final class SlicePropertiesFormat { private ProvisioningState provisioningState; /* - * Single-network slice selection assistance information (S-NSSAI). Unique - * at the scope of a mobile network. + * Single-network slice selection assistance information (S-NSSAI). Unique at the scope of a mobile network. */ @JsonProperty(value = "snssai", required = true) private Snssai snssai; @@ -32,6 +31,10 @@ public final class SlicePropertiesFormat { @JsonProperty(value = "description") private String description; + /** Creates an instance of SlicePropertiesFormat class. */ + public SlicePropertiesFormat() { + } + /** * Get the provisioningState property: The provisioning state of the network slice resource. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/package-info.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/package-info.java index bc49da8533536..762580a15592a 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/package-info.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/package-info.java @@ -3,8 +3,8 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the inner data models for MobileNetworkManagementClient. 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 containing the inner data models for MobileNetworkManagementClient. The resources in this API specification + * will be used to manage attached data network resources in mobile network attached to a particular packet core + * instance. */ package com.azure.resourcemanager.mobilenetwork.fluent.models; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/package-info.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/package-info.java index a7beb7674680d..ccaa823e7a113 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/package-info.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the service clients for MobileNetworkManagementClient. The resources in this swagger specification + * Package containing the service clients for MobileNetworkManagementClient. The resources in this API specification * will be used to manage attached data network resources in mobile network attached to a particular packet core * instance. */ diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AsyncOperationStatusImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AsyncOperationStatusImpl.java new file mode 100644 index 0000000000000..482cb076415f9 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AsyncOperationStatusImpl.java @@ -0,0 +1,67 @@ +// 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.exception.ManagementError; +import com.azure.resourcemanager.mobilenetwork.fluent.models.AsyncOperationStatusInner; +import com.azure.resourcemanager.mobilenetwork.models.AsyncOperationStatus; +import java.time.OffsetDateTime; + +public final class AsyncOperationStatusImpl implements AsyncOperationStatus { + private AsyncOperationStatusInner innerObject; + + private final com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager; + + AsyncOperationStatusImpl( + AsyncOperationStatusInner innerObject, + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String status() { + return this.innerModel().status(); + } + + public String resourceId() { + return this.innerModel().resourceId(); + } + + public OffsetDateTime startTime() { + return this.innerModel().startTime(); + } + + public OffsetDateTime endTime() { + return this.innerModel().endTime(); + } + + public Double percentComplete() { + return this.innerModel().percentComplete(); + } + + public Object properties() { + return this.innerModel().properties(); + } + + public ManagementError error() { + return this.innerModel().error(); + } + + public AsyncOperationStatusInner 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/implementation/AttachedDataNetworkImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworkImpl.java index 74937c80cd74a..8ad6ffd456c1e 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 @@ -5,6 +5,7 @@ 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.AttachedDataNetworkInner; import com.azure.resourcemanager.mobilenetwork.models.AttachedDataNetwork; @@ -47,6 +48,10 @@ public Map tags() { } } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } @@ -253,6 +258,11 @@ public AttachedDataNetworkImpl withUserPlaneDataInterface(InterfaceProperties us return this; } + public AttachedDataNetworkImpl withDnsAddresses(List dnsAddresses) { + this.innerModel().withDnsAddresses(dnsAddresses); + return this; + } + public AttachedDataNetworkImpl withTags(Map tags) { if (isInCreateMode()) { this.innerModel().withTags(tags); @@ -263,11 +273,6 @@ 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 953f197f5cae9..9dc986b228f1b 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 @@ -66,7 +66,7 @@ public final class AttachedDataNetworksClientImpl implements AttachedDataNetwork */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface AttachedDataNetworksService { + public interface AttachedDataNetworksService { @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" @@ -686,18 +686,25 @@ private Mono getAsync( * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. * @param attachedDataNetworkName The name of the attached 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 attached data network. + * @return information about the specified attached data network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AttachedDataNetworkInner get( + public Response getWithResponse( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, - String attachedDataNetworkName) { - return getAsync(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, attachedDataNetworkName) + String attachedDataNetworkName, + Context context) { + return getWithResponseAsync( + resourceGroupName, + packetCoreControlPlaneName, + packetCoreDataPlaneName, + attachedDataNetworkName, + context) .block(); } @@ -708,30 +715,29 @@ public AttachedDataNetworkInner get( * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. * @param attachedDataNetworkName The name of the attached 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 attached data network along with {@link Response}. + * @return information about the specified attached data network. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public AttachedDataNetworkInner get( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, - String attachedDataNetworkName, - Context context) { - return getWithResponseAsync( + String attachedDataNetworkName) { + return getWithResponse( resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, attachedDataNetworkName, - context) - .block(); + Context.NONE) + .getValue(); } /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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 +813,8 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -882,7 +889,8 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -919,7 +927,8 @@ private PollerFlux, AttachedDataNetworkInne } /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -960,7 +969,8 @@ private PollerFlux, AttachedDataNetworkInne } /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -989,7 +999,8 @@ public SyncPoller, AttachedDataNetworkInner } /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -1021,7 +1032,8 @@ public SyncPoller, AttachedDataNetworkInner } /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -1051,7 +1063,8 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -1084,7 +1097,8 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -1113,7 +1127,8 @@ public AttachedDataNetworkInner createOrUpdate( } /** - * Creates or updates an attached data network. + * Creates or updates an attached data network. Must be created in the same location as its parent 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. @@ -1332,24 +1347,27 @@ private Mono updateTagsAsync( * @param packetCoreDataPlaneName The name of the packet core data plane. * @param attachedDataNetworkName The name of the attached data network. * @param parameters Parameters supplied to update attached data network 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 attached data network resource. + * @return attached data network resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AttachedDataNetworkInner updateTags( + public Response updateTagsWithResponse( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, String attachedDataNetworkName, - TagsObject parameters) { - return updateTagsAsync( + TagsObject parameters, + Context context) { + return updateTagsWithResponseAsync( resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, attachedDataNetworkName, - parameters) + parameters, + context) .block(); } @@ -1361,28 +1379,26 @@ public AttachedDataNetworkInner updateTags( * @param packetCoreDataPlaneName The name of the packet core data plane. * @param attachedDataNetworkName The name of the attached data network. * @param parameters Parameters supplied to update attached data network 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 attached data network resource along with {@link Response}. + * @return attached data network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse( + public AttachedDataNetworkInner updateTags( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, String attachedDataNetworkName, - TagsObject parameters, - Context context) { - return updateTagsWithResponseAsync( + TagsObject parameters) { + return updateTagsWithResponse( resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, attachedDataNetworkName, parameters, - context) - .block(); + Context.NONE) + .getValue(); } /** @@ -1607,7 +1623,8 @@ public PagedIterable listByPacketCoreDataPlane( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1645,7 +1662,8 @@ private Mono> listByPacketCoreDataPlaneN /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksImpl.java index 3682b00fbecdc..4f7ea67e7257a 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/AttachedDataNetworksImpl.java @@ -54,22 +54,6 @@ public void delete( context); } - public AttachedDataNetwork get( - String resourceGroupName, - String packetCoreControlPlaneName, - String packetCoreDataPlaneName, - String attachedDataNetworkName) { - AttachedDataNetworkInner inner = - this - .serviceClient() - .get(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, attachedDataNetworkName); - if (inner != null) { - return new AttachedDataNetworkImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String packetCoreControlPlaneName, @@ -96,6 +80,22 @@ public Response getWithResponse( } } + public AttachedDataNetwork get( + String resourceGroupName, + String packetCoreControlPlaneName, + String packetCoreDataPlaneName, + String attachedDataNetworkName) { + AttachedDataNetworkInner inner = + this + .serviceClient() + .get(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, attachedDataNetworkName); + if (inner != null) { + return new AttachedDataNetworkImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByPacketCoreDataPlane( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName) { PagedIterable inner = 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 e2dc1af14a87b..c4bf42919d617 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 @@ -65,7 +65,7 @@ public final class DataNetworksClientImpl implements DataNetworksClient { */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface DataNetworksService { + public interface DataNetworksService { @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" @@ -549,14 +549,16 @@ private Mono getAsync( * @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 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 data network. + * @return information about the specified data network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataNetworkInner get(String resourceGroupName, String mobileNetworkName, String dataNetworkName) { - return getAsync(resourceGroupName, mobileNetworkName, dataNetworkName).block(); + public Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context) { + return getWithResponseAsync(resourceGroupName, mobileNetworkName, dataNetworkName, context).block(); } /** @@ -565,20 +567,18 @@ public DataNetworkInner get(String resourceGroupName, String mobileNetworkName, * @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 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 data network along with {@link Response}. + * @return information about the specified data network. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context) { - return getWithResponseAsync(resourceGroupName, mobileNetworkName, dataNetworkName, context).block(); + public DataNetworkInner get(String resourceGroupName, String mobileNetworkName, String dataNetworkName) { + return getWithResponse(resourceGroupName, mobileNetworkName, dataNetworkName, Context.NONE).getValue(); } /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -640,7 +640,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -704,7 +704,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -731,7 +731,7 @@ private PollerFlux, DataNetworkInner> beginCreateOr } /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -760,7 +760,7 @@ private PollerFlux, DataNetworkInner> beginCreateOr } /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -779,7 +779,7 @@ public SyncPoller, DataNetworkInner> beginCreateOrU } /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -803,7 +803,7 @@ public SyncPoller, DataNetworkInner> beginCreateOrU } /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -823,7 +823,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -848,7 +848,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -866,7 +866,7 @@ public DataNetworkInner createOrUpdate( } /** - * Creates or updates a data network. + * Creates or updates a data network. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1040,15 +1040,21 @@ private Mono updateTagsAsync( * @param mobileNetworkName The name of the mobile network. * @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. * @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 data network resource. + * @return data network resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataNetworkInner updateTags( - String resourceGroupName, String mobileNetworkName, String dataNetworkName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, mobileNetworkName, dataNetworkName, parameters).block(); + public Response updateTagsWithResponse( + String resourceGroupName, + String mobileNetworkName, + String dataNetworkName, + TagsObject parameters, + Context context) { + return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, dataNetworkName, parameters, context) + .block(); } /** @@ -1058,21 +1064,16 @@ public DataNetworkInner updateTags( * @param mobileNetworkName The name of the mobile network. * @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. * @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 data network resource along with {@link Response}. + * @return data network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse( - String resourceGroupName, - String mobileNetworkName, - String dataNetworkName, - TagsObject parameters, - Context context) { - return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, dataNetworkName, parameters, context) - .block(); + public DataNetworkInner updateTags( + String resourceGroupName, String mobileNetworkName, String dataNetworkName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, mobileNetworkName, dataNetworkName, parameters, Context.NONE) + .getValue(); } /** @@ -1262,7 +1263,8 @@ public PagedIterable listByMobileNetwork( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1299,7 +1301,8 @@ private Mono> listByMobileNetworkNextSinglePageA /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksImpl.java index 83808f2fd4142..af59b942e0d3e 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/DataNetworksImpl.java @@ -35,15 +35,6 @@ public void delete(String resourceGroupName, String mobileNetworkName, String da this.serviceClient().delete(resourceGroupName, mobileNetworkName, dataNetworkName, context); } - public DataNetwork get(String resourceGroupName, String mobileNetworkName, String dataNetworkName) { - DataNetworkInner inner = this.serviceClient().get(resourceGroupName, mobileNetworkName, dataNetworkName); - if (inner != null) { - return new DataNetworkImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context) { Response inner = @@ -59,6 +50,15 @@ public Response getWithResponse( } } + public DataNetwork get(String resourceGroupName, String mobileNetworkName, String dataNetworkName) { + DataNetworkInner inner = this.serviceClient().get(resourceGroupName, mobileNetworkName, dataNetworkName); + if (inner != null) { + return new DataNetworkImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName) { PagedIterable inner = this.serviceClient().listByMobileNetwork(resourceGroupName, mobileNetworkName); 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 972783a471484..e9da6c24a48ae 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 @@ -11,7 +11,6 @@ import com.azure.resourcemanager.mobilenetwork.models.MobileNetwork; import com.azure.resourcemanager.mobilenetwork.models.PlmnId; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.azure.resourcemanager.mobilenetwork.models.SimIdListResult; import com.azure.resourcemanager.mobilenetwork.models.TagsObject; import java.util.Collections; import java.util.Map; @@ -170,14 +169,6 @@ public MobileNetwork refresh(Context context) { return this; } - public SimIdListResult listSimIds() { - return serviceManager.mobileNetworks().listSimIds(resourceGroupName, mobileNetworkName); - } - - public SimIdListResult listSimIds(Context context) { - return serviceManager.mobileNetworks().listSimIds(resourceGroupName, mobileNetworkName, context); - } - public MobileNetworkImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; 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 7425038f5243c..48e694955f561 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 @@ -119,24 +119,26 @@ public MobileNetworkManagementClientBuilder serializerAdapter(SerializerAdapter * @return an instance of MobileNetworkManagementClientImpl. */ public MobileNetworkManagementClientImpl buildClient() { - if (endpoint == null) { - this.endpoint = "https://management.azure.com"; - } - 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 (serializerAdapter == null) { - this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); - } + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = + (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval = + (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = + (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); MobileNetworkManagementClientImpl client = new MobileNetworkManagementClientImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + localPipeline, + localSerializerAdapter, + localDefaultPollInterval, + localEnvironment, + subscriptionId, + localEndpoint); return client; } } 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 96f9e74b94699..558e8ba55447a 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 @@ -27,11 +27,13 @@ import com.azure.resourcemanager.mobilenetwork.fluent.MobileNetworkManagementClient; import com.azure.resourcemanager.mobilenetwork.fluent.MobileNetworksClient; import com.azure.resourcemanager.mobilenetwork.fluent.OperationsClient; +import com.azure.resourcemanager.mobilenetwork.fluent.PacketCoreControlPlaneOperationsClient; import com.azure.resourcemanager.mobilenetwork.fluent.PacketCoreControlPlaneVersionsClient; 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.SimOperationsClient; import com.azure.resourcemanager.mobilenetwork.fluent.SimPoliciesClient; import com.azure.resourcemanager.mobilenetwork.fluent.SimsClient; import com.azure.resourcemanager.mobilenetwork.fluent.SitesClient; @@ -156,42 +158,6 @@ public MobileNetworksClient getMobileNetworks() { return this.mobileNetworks; } - /** The SitesClient object to access its operations. */ - private final SitesClient sites; - - /** - * Gets the SitesClient object to access its operations. - * - * @return the SitesClient object. - */ - 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; - - /** - * Gets the SimsClient object to access its operations. - * - * @return the SimsClient object. - */ - public SimsClient getSims() { - return this.sims; - } - /** The OperationsClient object to access its operations. */ private final OperationsClient operations; @@ -216,6 +182,18 @@ public PacketCoreControlPlanesClient getPacketCoreControlPlanes() { return this.packetCoreControlPlanes; } + /** The PacketCoreControlPlaneOperationsClient object to access its operations. */ + private final PacketCoreControlPlaneOperationsClient packetCoreControlPlaneOperations; + + /** + * Gets the PacketCoreControlPlaneOperationsClient object to access its operations. + * + * @return the PacketCoreControlPlaneOperationsClient object. + */ + public PacketCoreControlPlaneOperationsClient getPacketCoreControlPlaneOperations() { + return this.packetCoreControlPlaneOperations; + } + /** The PacketCoreControlPlaneVersionsClient object to access its operations. */ private final PacketCoreControlPlaneVersionsClient packetCoreControlPlaneVersions; @@ -252,6 +230,42 @@ public ServicesClient getServices() { return this.services; } + /** The SimsClient object to access its operations. */ + private final SimsClient sims; + + /** + * Gets the SimsClient object to access its operations. + * + * @return the SimsClient object. + */ + public SimsClient getSims() { + return this.sims; + } + + /** The SimOperationsClient object to access its operations. */ + private final SimOperationsClient simOperations; + + /** + * Gets the SimOperationsClient object to access its operations. + * + * @return the SimOperationsClient object. + */ + public SimOperationsClient getSimOperations() { + return this.simOperations; + } + + /** 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 SimPoliciesClient object to access its operations. */ private final SimPoliciesClient simPolicies; @@ -264,6 +278,18 @@ public SimPoliciesClient getSimPolicies() { return this.simPolicies; } + /** The SitesClient object to access its operations. */ + private final SitesClient sites; + + /** + * Gets the SitesClient object to access its operations. + * + * @return the SitesClient object. + */ + public SitesClient getSites() { + return this.sites; + } + /** The SlicesClient object to access its operations. */ private final SlicesClient slices; @@ -298,19 +324,21 @@ public SlicesClient getSlices() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2022-04-01-preview"; + this.apiVersion = "2022-11-01"; 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); + this.packetCoreControlPlaneOperations = new PacketCoreControlPlaneOperationsClientImpl(this); this.packetCoreControlPlaneVersions = new PacketCoreControlPlaneVersionsClientImpl(this); this.packetCoreDataPlanes = new PacketCoreDataPlanesClientImpl(this); this.services = new ServicesClientImpl(this); + this.sims = new SimsClientImpl(this); + this.simOperations = new SimOperationsClientImpl(this); + this.simGroups = new SimGroupsClientImpl(this); this.simPolicies = new SimPoliciesClientImpl(this); + this.sites = new SitesClientImpl(this); this.slices = new SlicesClientImpl(this); } 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 71b709af30b87..620b184300dbc 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 @@ -14,7 +14,6 @@ import com.azure.core.annotation.HostParam; import com.azure.core.annotation.Patch; import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; import com.azure.core.annotation.Put; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; @@ -35,7 +34,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mobilenetwork.fluent.MobileNetworksClient; import com.azure.resourcemanager.mobilenetwork.fluent.models.MobileNetworkInner; -import com.azure.resourcemanager.mobilenetwork.fluent.models.SimIdListResultInner; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkListResult; import com.azure.resourcemanager.mobilenetwork.models.TagsObject; import java.nio.ByteBuffer; @@ -67,7 +65,7 @@ public final class MobileNetworksClientImpl implements MobileNetworksClient { */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface MobileNetworksService { + public interface MobileNetworksService { @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" @@ -155,21 +153,6 @@ Mono> listByResourceGroup( @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" - + "/mobileNetworks/{mobileNetworkName}/listSimIds") - @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listSimIds( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @PathParam("mobileNetworkName") String mobileNetworkName, - @HeaderParam("Accept") String accept, - Context context); - @Headers({"Content-Type: application/json"}) @Get("{nextLink}") @ExpectedResponses({200}) @@ -542,14 +525,16 @@ private Mono getByResourceGroupAsync(String resourceGroupNam * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile 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. + * @return information about the specified mobile network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MobileNetworkInner getByResourceGroup(String resourceGroupName, String mobileNetworkName) { - return getByResourceGroupAsync(resourceGroupName, mobileNetworkName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String mobileNetworkName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, mobileNetworkName, context).block(); } /** @@ -557,16 +542,14 @@ public MobileNetworkInner getByResourceGroup(String resourceGroupName, String mo * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile 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 along with {@link Response}. + * @return information about the specified mobile network. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String mobileNetworkName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, mobileNetworkName, context).block(); + public MobileNetworkInner getByResourceGroup(String resourceGroupName, String mobileNetworkName) { + return getByResourceGroupWithResponse(resourceGroupName, mobileNetworkName, Context.NONE).getValue(); } /** @@ -972,14 +955,16 @@ private Mono updateTagsAsync( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param parameters Parameters supplied to update mobile network 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 mobile network resource. + * @return mobile network resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MobileNetworkInner updateTags(String resourceGroupName, String mobileNetworkName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, mobileNetworkName, parameters).block(); + public Response updateTagsWithResponse( + String resourceGroupName, String mobileNetworkName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, parameters, context).block(); } /** @@ -988,16 +973,14 @@ public MobileNetworkInner updateTags(String resourceGroupName, String mobileNetw * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param parameters Parameters supplied to update mobile network 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 mobile network resource along with {@link Response}. + * @return mobile network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse( - String resourceGroupName, String mobileNetworkName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, parameters, context).block(); + public MobileNetworkInner updateTags(String resourceGroupName, String mobileNetworkName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, mobileNetworkName, parameters, Context.NONE).getValue(); } /** @@ -1308,255 +1291,11 @@ public PagedIterable listByResourceGroup(String resourceGrou return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } - /** - * 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 - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listSimIdsWithResponseAsync( - String resourceGroupName, String mobileNetworkName) { - 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 (mobileNetworkName == null) { - return Mono - .error(new IllegalArgumentException("Parameter mobileNetworkName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listSimIds( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - this.client.getApiVersion(), - mobileNetworkName, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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. - * @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 IDs API service call along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listSimIdsWithResponseAsync( - String resourceGroupName, String mobileNetworkName, 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 (mobileNetworkName == null) { - return Mono - .error(new IllegalArgumentException("Parameter mobileNetworkName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listSimIds( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - this.client.getApiVersion(), - mobileNetworkName, - accept, - context); - } - - /** - * 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. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SimIdListResultInner> beginListSimIdsAsync( - String resourceGroupName, String mobileNetworkName) { - Mono>> mono = listSimIdsWithResponseAsync(resourceGroupName, mobileNetworkName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SimIdListResultInner.class, - SimIdListResultInner.class, - this.client.getContext()); - } - - /** - * 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. - * @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 response for list SIM IDs API service call. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SimIdListResultInner> beginListSimIdsAsync( - String resourceGroupName, String mobileNetworkName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - listSimIdsWithResponseAsync(resourceGroupName, mobileNetworkName, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SimIdListResultInner.class, SimIdListResultInner.class, context); - } - - /** - * 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. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SimIdListResultInner> beginListSimIds( - String resourceGroupName, String mobileNetworkName) { - return beginListSimIdsAsync(resourceGroupName, mobileNetworkName).getSyncPoller(); - } - - /** - * 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. - * @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 response for list SIM IDs API service call. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SimIdListResultInner> beginListSimIds( - String resourceGroupName, String mobileNetworkName, Context context) { - return beginListSimIdsAsync(resourceGroupName, mobileNetworkName, context).getSyncPoller(); - } - - /** - * 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}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listSimIdsAsync(String resourceGroupName, String mobileNetworkName) { - return beginListSimIdsAsync(resourceGroupName, mobileNetworkName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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. - * @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 IDs API service call on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listSimIdsAsync( - String resourceGroupName, String mobileNetworkName, Context context) { - return beginListSimIdsAsync(resourceGroupName, mobileNetworkName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SimIdListResultInner listSimIds(String resourceGroupName, String mobileNetworkName) { - return listSimIdsAsync(resourceGroupName, mobileNetworkName).block(); - } - - /** - * 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. - * @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 IDs API service call. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SimIdListResultInner listSimIds(String resourceGroupName, String mobileNetworkName, Context context) { - return listSimIdsAsync(resourceGroupName, mobileNetworkName, context).block(); - } - /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1593,7 +1332,8 @@ private Mono> listBySubscriptionNextSinglePage /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1631,7 +1371,8 @@ private Mono> listBySubscriptionNextSinglePage /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1668,7 +1409,8 @@ private Mono> listByResourceGroupNextSinglePag /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksImpl.java index 4dad51ec9ec79..f38d239ee364d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/MobileNetworksImpl.java @@ -11,10 +11,8 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mobilenetwork.fluent.MobileNetworksClient; import com.azure.resourcemanager.mobilenetwork.fluent.models.MobileNetworkInner; -import com.azure.resourcemanager.mobilenetwork.fluent.models.SimIdListResultInner; import com.azure.resourcemanager.mobilenetwork.models.MobileNetwork; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworks; -import com.azure.resourcemanager.mobilenetwork.models.SimIdListResult; public final class MobileNetworksImpl implements MobileNetworks { private static final ClientLogger LOGGER = new ClientLogger(MobileNetworksImpl.class); @@ -37,15 +35,6 @@ public void delete(String resourceGroupName, String mobileNetworkName, Context c this.serviceClient().delete(resourceGroupName, mobileNetworkName, context); } - public MobileNetwork getByResourceGroup(String resourceGroupName, String mobileNetworkName) { - MobileNetworkInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, mobileNetworkName); - if (inner != null) { - return new MobileNetworkImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String mobileNetworkName, Context context) { Response inner = @@ -61,6 +50,15 @@ public Response getByResourceGroupWithResponse( } } + public MobileNetwork getByResourceGroup(String resourceGroupName, String mobileNetworkName) { + MobileNetworkInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, mobileNetworkName); + if (inner != null) { + return new MobileNetworkImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); return Utils.mapPage(inner, inner1 -> new MobileNetworkImpl(inner1, this.manager())); @@ -81,24 +79,6 @@ public PagedIterable listByResourceGroup(String resourceGroupName return Utils.mapPage(inner, inner1 -> new MobileNetworkImpl(inner1, this.manager())); } - public SimIdListResult listSimIds(String resourceGroupName, String mobileNetworkName) { - SimIdListResultInner inner = this.serviceClient().listSimIds(resourceGroupName, mobileNetworkName); - if (inner != null) { - return new SimIdListResultImpl(inner, this.manager()); - } else { - return null; - } - } - - public SimIdListResult listSimIds(String resourceGroupName, String mobileNetworkName, Context context) { - SimIdListResultInner inner = this.serviceClient().listSimIds(resourceGroupName, mobileNetworkName, context); - if (inner != null) { - return new SimIdListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public MobileNetwork 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/OperationsClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/OperationsClientImpl.java index 44bd92217df5c..c5d9424f22b31 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/OperationsClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/OperationsClientImpl.java @@ -55,7 +55,7 @@ public final class OperationsClientImpl implements OperationsClient { */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface OperationsService { + public interface OperationsService { @Headers({"Content-Type: application/json"}) @Get("/providers/Microsoft.MobileNetwork/operations") @ExpectedResponses({200}) @@ -196,7 +196,8 @@ public PagedIterable list(Context context) { /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -231,7 +232,8 @@ private Mono> listNextSinglePageAsync(String nextL /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. 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 0627924ca9fac..eaaa37b38a5b0 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 @@ -10,15 +10,17 @@ 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.Installation; 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.SiteResourceId; import com.azure.resourcemanager.mobilenetwork.models.TagsObject; import java.util.Collections; +import java.util.List; import java.util.Map; public final class PacketCoreControlPlaneImpl @@ -64,8 +66,17 @@ public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } - public MobileNetworkResourceId mobileNetwork() { - return this.innerModel().mobileNetwork(); + public Installation installation() { + return this.innerModel().installation(); + } + + public List sites() { + List inner = this.innerModel().sites(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } } public PlatformConfiguration platform() { @@ -80,6 +91,10 @@ public String version() { return this.innerModel().version(); } + public String rollbackVersion() { + return this.innerModel().rollbackVersion(); + } + public InterfaceProperties controlPlaneAccessInterface() { return this.innerModel().controlPlaneAccessInterface(); } @@ -88,6 +103,10 @@ public BillingSku sku() { return this.innerModel().sku(); } + public Integer ueMtu() { + return this.innerModel().ueMtu(); + } + public LocalDiagnosticsAccessConfiguration localDiagnosticsAccess() { return this.innerModel().localDiagnosticsAccess(); } @@ -216,8 +235,13 @@ public PacketCoreControlPlaneImpl withRegion(String location) { return this; } - public PacketCoreControlPlaneImpl withMobileNetwork(MobileNetworkResourceId mobileNetwork) { - this.innerModel().withMobileNetwork(mobileNetwork); + public PacketCoreControlPlaneImpl withSites(List sites) { + this.innerModel().withSites(sites); + return this; + } + + public PacketCoreControlPlaneImpl withPlatform(PlatformConfiguration platform) { + this.innerModel().withPlatform(platform); return this; } @@ -231,6 +255,12 @@ public PacketCoreControlPlaneImpl withSku(BillingSku sku) { return this; } + public PacketCoreControlPlaneImpl withLocalDiagnosticsAccess( + LocalDiagnosticsAccessConfiguration localDiagnosticsAccess) { + this.innerModel().withLocalDiagnosticsAccess(localDiagnosticsAccess); + return this; + } + public PacketCoreControlPlaneImpl withTags(Map tags) { if (isInCreateMode()) { this.innerModel().withTags(tags); @@ -246,11 +276,6 @@ public PacketCoreControlPlaneImpl withIdentity(ManagedServiceIdentity identity) return this; } - public PacketCoreControlPlaneImpl withPlatform(PlatformConfiguration platform) { - this.innerModel().withPlatform(platform); - return this; - } - public PacketCoreControlPlaneImpl withCoreNetworkTechnology(CoreNetworkType coreNetworkTechnology) { this.innerModel().withCoreNetworkTechnology(coreNetworkTechnology); return this; @@ -261,9 +286,8 @@ public PacketCoreControlPlaneImpl withVersion(String version) { return this; } - public PacketCoreControlPlaneImpl withLocalDiagnosticsAccess( - LocalDiagnosticsAccessConfiguration localDiagnosticsAccess) { - this.innerModel().withLocalDiagnosticsAccess(localDiagnosticsAccess); + public PacketCoreControlPlaneImpl withUeMtu(Integer ueMtu) { + this.innerModel().withUeMtu(ueMtu); return this; } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneOperationsClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneOperationsClientImpl.java new file mode 100644 index 0000000000000..7afae43fba6aa --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneOperationsClientImpl.java @@ -0,0 +1,964 @@ +// 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.ExpectedResponses; +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.PathParam; +import com.azure.core.annotation.Post; +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.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.PacketCoreControlPlaneOperationsClient; +import com.azure.resourcemanager.mobilenetwork.fluent.models.AsyncOperationStatusInner; +import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlaneCollectDiagnosticsPackage; +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 PacketCoreControlPlaneOperationsClient. + */ +public final class PacketCoreControlPlaneOperationsClientImpl implements PacketCoreControlPlaneOperationsClient { + /** The proxy service used to perform REST calls. */ + private final PacketCoreControlPlaneOperationsService service; + + /** The service client containing this operation class. */ + private final MobileNetworkManagementClientImpl client; + + /** + * Initializes an instance of PacketCoreControlPlaneOperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + PacketCoreControlPlaneOperationsClientImpl(MobileNetworkManagementClientImpl client) { + this.service = + RestProxy + .create( + PacketCoreControlPlaneOperationsService.class, + client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for MobileNetworkManagementClientPacketCoreControlPlaneOperations to be + * used by the proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "MobileNetworkManagem") + public interface PacketCoreControlPlaneOperationsService { + @Headers({"Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/packetCoreControlPlanes/{packetCoreControlPlaneName}/rollback") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> rollback( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("packetCoreControlPlaneName") String packetCoreControlPlaneName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/packetCoreControlPlanes/{packetCoreControlPlaneName}/reinstall") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> reinstall( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("packetCoreControlPlaneName") String packetCoreControlPlaneName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/packetCoreControlPlanes/{packetCoreControlPlaneName}/collectDiagnosticsPackage") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> collectDiagnosticsPackage( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("packetCoreControlPlaneName") String packetCoreControlPlaneName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") PacketCoreControlPlaneCollectDiagnosticsPackage parameters, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> rollbackWithResponseAsync( + String resourceGroupName, String packetCoreControlPlaneName) { + 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 (packetCoreControlPlaneName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter packetCoreControlPlaneName 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 + .rollback( + this.client.getEndpoint(), + resourceGroupName, + packetCoreControlPlaneName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> rollbackWithResponseAsync( + String resourceGroupName, String packetCoreControlPlaneName, 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 (packetCoreControlPlaneName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter packetCoreControlPlaneName 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 + .rollback( + this.client.getEndpoint(), + resourceGroupName, + packetCoreControlPlaneName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + accept, + context); + } + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> beginRollbackAsync( + String resourceGroupName, String packetCoreControlPlaneName) { + Mono>> mono = + rollbackWithResponseAsync(resourceGroupName, packetCoreControlPlaneName); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + this.client.getContext()); + } + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> beginRollbackAsync( + String resourceGroupName, String packetCoreControlPlaneName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + rollbackWithResponseAsync(resourceGroupName, packetCoreControlPlaneName, context); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + context); + } + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginRollback( + String resourceGroupName, String packetCoreControlPlaneName) { + return beginRollbackAsync(resourceGroupName, packetCoreControlPlaneName).getSyncPoller(); + } + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginRollback( + String resourceGroupName, String packetCoreControlPlaneName, Context context) { + return beginRollbackAsync(resourceGroupName, packetCoreControlPlaneName, context).getSyncPoller(); + } + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono rollbackAsync(String resourceGroupName, String packetCoreControlPlaneName) { + return beginRollbackAsync(resourceGroupName, packetCoreControlPlaneName) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono rollbackAsync( + String resourceGroupName, String packetCoreControlPlaneName, Context context) { + return beginRollbackAsync(resourceGroupName, packetCoreControlPlaneName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner rollback(String resourceGroupName, String packetCoreControlPlaneName) { + return rollbackAsync(resourceGroupName, packetCoreControlPlaneName).block(); + } + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner rollback( + String resourceGroupName, String packetCoreControlPlaneName, Context context) { + return rollbackAsync(resourceGroupName, packetCoreControlPlaneName, context).block(); + } + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> reinstallWithResponseAsync( + String resourceGroupName, String packetCoreControlPlaneName) { + 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 (packetCoreControlPlaneName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter packetCoreControlPlaneName 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 + .reinstall( + this.client.getEndpoint(), + resourceGroupName, + packetCoreControlPlaneName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> reinstallWithResponseAsync( + String resourceGroupName, String packetCoreControlPlaneName, 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 (packetCoreControlPlaneName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter packetCoreControlPlaneName 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 + .reinstall( + this.client.getEndpoint(), + resourceGroupName, + packetCoreControlPlaneName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + accept, + context); + } + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> beginReinstallAsync( + String resourceGroupName, String packetCoreControlPlaneName) { + Mono>> mono = + reinstallWithResponseAsync(resourceGroupName, packetCoreControlPlaneName); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + this.client.getContext()); + } + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> beginReinstallAsync( + String resourceGroupName, String packetCoreControlPlaneName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + reinstallWithResponseAsync(resourceGroupName, packetCoreControlPlaneName, context); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + context); + } + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginReinstall( + String resourceGroupName, String packetCoreControlPlaneName) { + return beginReinstallAsync(resourceGroupName, packetCoreControlPlaneName).getSyncPoller(); + } + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginReinstall( + String resourceGroupName, String packetCoreControlPlaneName, Context context) { + return beginReinstallAsync(resourceGroupName, packetCoreControlPlaneName, context).getSyncPoller(); + } + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono reinstallAsync( + String resourceGroupName, String packetCoreControlPlaneName) { + return beginReinstallAsync(resourceGroupName, packetCoreControlPlaneName) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono reinstallAsync( + String resourceGroupName, String packetCoreControlPlaneName, Context context) { + return beginReinstallAsync(resourceGroupName, packetCoreControlPlaneName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner reinstall(String resourceGroupName, String packetCoreControlPlaneName) { + return reinstallAsync(resourceGroupName, packetCoreControlPlaneName).block(); + } + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner reinstall( + String resourceGroupName, String packetCoreControlPlaneName, Context context) { + return reinstallAsync(resourceGroupName, packetCoreControlPlaneName, context).block(); + } + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> collectDiagnosticsPackageWithResponseAsync( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters) { + 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 (packetCoreControlPlaneName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter packetCoreControlPlaneName 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 (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 + .collectDiagnosticsPackage( + this.client.getEndpoint(), + resourceGroupName, + packetCoreControlPlaneName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> collectDiagnosticsPackageWithResponseAsync( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters, + 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 (packetCoreControlPlaneName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter packetCoreControlPlaneName 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 (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 + .collectDiagnosticsPackage( + this.client.getEndpoint(), + resourceGroupName, + packetCoreControlPlaneName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + accept, + context); + } + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> + beginCollectDiagnosticsPackageAsync( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters) { + Mono>> mono = + collectDiagnosticsPackageWithResponseAsync(resourceGroupName, packetCoreControlPlaneName, parameters); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + this.client.getContext()); + } + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> + beginCollectDiagnosticsPackageAsync( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + collectDiagnosticsPackageWithResponseAsync( + resourceGroupName, packetCoreControlPlaneName, parameters, context); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + context); + } + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginCollectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters) { + return beginCollectDiagnosticsPackageAsync(resourceGroupName, packetCoreControlPlaneName, parameters) + .getSyncPoller(); + } + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginCollectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters, + Context context) { + return beginCollectDiagnosticsPackageAsync(resourceGroupName, packetCoreControlPlaneName, parameters, context) + .getSyncPoller(); + } + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono collectDiagnosticsPackageAsync( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters) { + return beginCollectDiagnosticsPackageAsync(resourceGroupName, packetCoreControlPlaneName, parameters) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono collectDiagnosticsPackageAsync( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters, + Context context) { + return beginCollectDiagnosticsPackageAsync(resourceGroupName, packetCoreControlPlaneName, parameters, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner collectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters) { + return collectDiagnosticsPackageAsync(resourceGroupName, packetCoreControlPlaneName, parameters).block(); + } + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner collectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters, + Context context) { + return collectDiagnosticsPackageAsync(resourceGroupName, packetCoreControlPlaneName, parameters, context) + .block(); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneOperationsImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneOperationsImpl.java new file mode 100644 index 0000000000000..fad3cbb9d72e6 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneOperationsImpl.java @@ -0,0 +1,104 @@ +// 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.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.mobilenetwork.fluent.PacketCoreControlPlaneOperationsClient; +import com.azure.resourcemanager.mobilenetwork.fluent.models.AsyncOperationStatusInner; +import com.azure.resourcemanager.mobilenetwork.models.AsyncOperationStatus; +import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlaneCollectDiagnosticsPackage; +import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlaneOperations; + +public final class PacketCoreControlPlaneOperationsImpl implements PacketCoreControlPlaneOperations { + private static final ClientLogger LOGGER = new ClientLogger(PacketCoreControlPlaneOperationsImpl.class); + + private final PacketCoreControlPlaneOperationsClient innerClient; + + private final com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager; + + public PacketCoreControlPlaneOperationsImpl( + PacketCoreControlPlaneOperationsClient innerClient, + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public AsyncOperationStatus rollback(String resourceGroupName, String packetCoreControlPlaneName) { + AsyncOperationStatusInner inner = this.serviceClient().rollback(resourceGroupName, packetCoreControlPlaneName); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + public AsyncOperationStatus rollback(String resourceGroupName, String packetCoreControlPlaneName, Context context) { + AsyncOperationStatusInner inner = + this.serviceClient().rollback(resourceGroupName, packetCoreControlPlaneName, context); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + public AsyncOperationStatus reinstall(String resourceGroupName, String packetCoreControlPlaneName) { + AsyncOperationStatusInner inner = this.serviceClient().reinstall(resourceGroupName, packetCoreControlPlaneName); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + public AsyncOperationStatus reinstall( + String resourceGroupName, String packetCoreControlPlaneName, Context context) { + AsyncOperationStatusInner inner = + this.serviceClient().reinstall(resourceGroupName, packetCoreControlPlaneName, context); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + public AsyncOperationStatus collectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters) { + AsyncOperationStatusInner inner = + this.serviceClient().collectDiagnosticsPackage(resourceGroupName, packetCoreControlPlaneName, parameters); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + public AsyncOperationStatus collectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters, + Context context) { + AsyncOperationStatusInner inner = + this + .serviceClient() + .collectDiagnosticsPackage(resourceGroupName, packetCoreControlPlaneName, parameters, context); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + private PacketCoreControlPlaneOperationsClient serviceClient() { + return this.innerClient; + } + + 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/implementation/PacketCoreControlPlaneVersionImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneVersionImpl.java index 0e6395b3ac69c..a84ff5b2c0d58 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneVersionImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneVersionImpl.java @@ -7,9 +7,10 @@ import com.azure.core.management.SystemData; import com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreControlPlaneVersionInner; import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlaneVersion; +import com.azure.resourcemanager.mobilenetwork.models.Platform; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; -import com.azure.resourcemanager.mobilenetwork.models.RecommendedVersion; -import com.azure.resourcemanager.mobilenetwork.models.VersionState; +import java.util.Collections; +import java.util.List; public final class PacketCoreControlPlaneVersionImpl implements PacketCoreControlPlaneVersion { private PacketCoreControlPlaneVersionInner innerObject; @@ -43,12 +44,13 @@ public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } - public VersionState versionState() { - return this.innerModel().versionState(); - } - - public RecommendedVersion recommendedVersion() { - return this.innerModel().recommendedVersion(); + public List platforms() { + List inner = this.innerModel().platforms(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } } public PacketCoreControlPlaneVersionInner innerModel() { diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneVersionsClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneVersionsClientImpl.java index 66e24259ce151..83d0934236a4f 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneVersionsClientImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneVersionsClientImpl.java @@ -59,7 +59,7 @@ public final class PacketCoreControlPlaneVersionsClientImpl implements PacketCor */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface PacketCoreControlPlaneVersionsService { + public interface PacketCoreControlPlaneVersionsService { @Headers({"Content-Type: application/json"}) @Get("/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/{versionName}") @ExpectedResponses({200}) @@ -75,7 +75,7 @@ Mono> get( @Get("/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( + Mono> list( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -85,7 +85,7 @@ Mono> listByResourceGroup( @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, @@ -168,29 +168,29 @@ private Mono getAsync(String versionName) { * Gets information about the specified packet core control plane version. * * @param versionName The name of the packet core control plane version. + * @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 packet core control plane version. + * @return information about the specified packet core control plane version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PacketCoreControlPlaneVersionInner get(String versionName) { - return getAsync(versionName).block(); + public Response getWithResponse(String versionName, Context context) { + return getWithResponseAsync(versionName, context).block(); } /** * Gets information about the specified packet core control plane version. * * @param versionName The name of the packet core control plane version. - * @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 packet core control plane version along with {@link Response}. + * @return information about the specified packet core control plane version. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String versionName, Context context) { - return getWithResponseAsync(versionName, context).block(); + public PacketCoreControlPlaneVersionInner get(String versionName) { + return getWithResponse(versionName, Context.NONE).getValue(); } /** @@ -202,7 +202,7 @@ public Response getWithResponse(String versi * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync() { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono .error( @@ -212,9 +212,7 @@ private Mono> listByResourceGr final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) .>map( res -> new PagedResponseBase<>( @@ -238,8 +236,7 @@ private Mono> listByResourceGr * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync( - Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -249,7 +246,7 @@ private Mono> listByResourceGr final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) .map( res -> new PagedResponseBase<>( @@ -270,9 +267,8 @@ private Mono> listByResourceGr * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync() { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(), nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** @@ -286,10 +282,9 @@ private PagedFlux listByResourceGroupAsync() * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(Context context) { + private PagedFlux listAsync(Context context) { return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** @@ -301,8 +296,8 @@ private PagedFlux listByResourceGroupAsync(C * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup() { - return new PagedIterable<>(listByResourceGroupAsync()); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** @@ -316,14 +311,15 @@ public PagedIterable listByResourceGroup() { * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(Context context) { - return new PagedIterable<>(listByResourceGroupAsync(context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -331,8 +327,7 @@ public PagedIterable listByResourceGroup(Con * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync( - String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -344,8 +339,7 @@ private Mono> listByResourceGr } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map( res -> new PagedResponseBase<>( @@ -361,7 +355,8 @@ private Mono> listByResourceGr /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -370,7 +365,7 @@ private Mono> listByResourceGr * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync( + private Mono> listNextSinglePageAsync( String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -384,7 +379,7 @@ private Mono> listByResourceGr final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .listNext(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/PacketCoreControlPlaneVersionsImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneVersionsImpl.java index cbd582dd2d570..4b9069ee4366d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneVersionsImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreControlPlaneVersionsImpl.java @@ -28,15 +28,6 @@ public PacketCoreControlPlaneVersionsImpl( this.serviceManager = serviceManager; } - public PacketCoreControlPlaneVersion get(String versionName) { - PacketCoreControlPlaneVersionInner inner = this.serviceClient().get(versionName); - if (inner != null) { - return new PacketCoreControlPlaneVersionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String versionName, Context context) { Response inner = this.serviceClient().getWithResponse(versionName, context); if (inner != null) { @@ -50,13 +41,22 @@ public Response getWithResponse(String versionNam } } - public PagedIterable listByResourceGroup() { - PagedIterable inner = this.serviceClient().listByResourceGroup(); + public PacketCoreControlPlaneVersion get(String versionName) { + PacketCoreControlPlaneVersionInner inner = this.serviceClient().get(versionName); + if (inner != null) { + return new PacketCoreControlPlaneVersionImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); return Utils.mapPage(inner, inner1 -> new PacketCoreControlPlaneVersionImpl(inner1, this.manager())); } - public PagedIterable listByResourceGroup(Context context) { - PagedIterable inner = this.serviceClient().listByResourceGroup(context); + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); return Utils.mapPage(inner, inner1 -> new PacketCoreControlPlaneVersionImpl(inner1, this.manager())); } 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 9badc69111fef..357872d66774e 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 @@ -66,7 +66,7 @@ public final class PacketCoreControlPlanesClientImpl implements PacketCoreContro */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface PacketCoreControlPlanesService { + public interface PacketCoreControlPlanesService { @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" @@ -537,14 +537,16 @@ private Mono getByResourceGroupAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 packet core control plane. + * @return information about the specified packet core control plane along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PacketCoreControlPlaneInner getByResourceGroup(String resourceGroupName, String packetCoreControlPlaneName) { - return getByResourceGroupAsync(resourceGroupName, packetCoreControlPlaneName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String packetCoreControlPlaneName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, packetCoreControlPlaneName, context).block(); } /** @@ -552,16 +554,14 @@ public PacketCoreControlPlaneInner getByResourceGroup(String resourceGroupName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. - * @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 packet core control plane along with {@link Response}. + * @return information about the specified packet core control plane. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String packetCoreControlPlaneName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, packetCoreControlPlaneName, context).block(); + public PacketCoreControlPlaneInner getByResourceGroup(String resourceGroupName, String packetCoreControlPlaneName) { + return getByResourceGroupWithResponse(resourceGroupName, packetCoreControlPlaneName, Context.NONE).getValue(); } /** @@ -995,15 +995,16 @@ private Mono updateTagsAsync( * @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 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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return packet core control plane resource. + * @return packet core control plane resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PacketCoreControlPlaneInner updateTags( - String resourceGroupName, String packetCoreControlPlaneName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, packetCoreControlPlaneName, parameters).block(); + public Response updateTagsWithResponse( + String resourceGroupName, String packetCoreControlPlaneName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, packetCoreControlPlaneName, parameters, context).block(); } /** @@ -1012,16 +1013,16 @@ public PacketCoreControlPlaneInner updateTags( * @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 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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return packet core control plane resource along with {@link Response}. + * @return packet core control plane resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse( - String resourceGroupName, String packetCoreControlPlaneName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, packetCoreControlPlaneName, parameters, context).block(); + public PacketCoreControlPlaneInner updateTags( + String resourceGroupName, String packetCoreControlPlaneName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, packetCoreControlPlaneName, parameters, Context.NONE) + .getValue(); } /** @@ -1340,7 +1341,8 @@ public PagedIterable listByResourceGroup(String res /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1377,7 +1379,8 @@ private Mono> listBySubscriptionNextS /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1415,7 +1418,8 @@ private Mono> listBySubscriptionNextS /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1452,7 +1456,8 @@ private Mono> listByResourceGroupNext /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. 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..73b28b2eb8e21 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 @@ -36,16 +36,6 @@ public void delete(String resourceGroupName, String packetCoreControlPlaneName, this.serviceClient().delete(resourceGroupName, packetCoreControlPlaneName, context); } - public PacketCoreControlPlane getByResourceGroup(String resourceGroupName, String packetCoreControlPlaneName) { - PacketCoreControlPlaneInner inner = - this.serviceClient().getByResourceGroup(resourceGroupName, packetCoreControlPlaneName); - if (inner != null) { - return new PacketCoreControlPlaneImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String packetCoreControlPlaneName, Context context) { Response inner = @@ -61,6 +51,16 @@ public Response getByResourceGroupWithResponse( } } + public PacketCoreControlPlane getByResourceGroup(String resourceGroupName, String packetCoreControlPlaneName) { + PacketCoreControlPlaneInner inner = + this.serviceClient().getByResourceGroup(resourceGroupName, packetCoreControlPlaneName); + if (inner != null) { + return new PacketCoreControlPlaneImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); return Utils.mapPage(inner, inner1 -> new PacketCoreControlPlaneImpl(inner1, this.manager())); 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 e42cce433fcae..8d686e0566c55 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 @@ -66,7 +66,7 @@ public final class PacketCoreDataPlanesClientImpl implements PacketCoreDataPlane */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface PacketCoreDataPlanesService { + public interface PacketCoreDataPlanesService { @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" @@ -569,15 +569,17 @@ private Mono getAsync( * @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 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 packet core data plane. + * @return information about the specified packet core data plane along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PacketCoreDataPlaneInner get( - String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName) { - return getAsync(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName).block(); + public Response getWithResponse( + String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, Context context) { + return getWithResponseAsync(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, context) + .block(); } /** @@ -586,21 +588,21 @@ public PacketCoreDataPlaneInner get( * @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 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 packet core data plane along with {@link Response}. + * @return information about the specified packet core data plane. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, Context context) { - return getWithResponseAsync(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, context) - .block(); + public PacketCoreDataPlaneInner get( + String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName) { + return getWithResponse(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, Context.NONE) + .getValue(); } /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -668,7 +670,8 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -735,7 +738,8 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -766,7 +770,8 @@ private PollerFlux, PacketCoreDataPlaneInne } /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -800,7 +805,8 @@ private PollerFlux, PacketCoreDataPlaneInne } /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -823,7 +829,8 @@ public SyncPoller, PacketCoreDataPlaneInner } /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -848,7 +855,8 @@ public SyncPoller, PacketCoreDataPlaneInner } /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -872,7 +880,8 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -898,7 +907,8 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -920,7 +930,8 @@ public PacketCoreDataPlaneInner createOrUpdate( } /** - * Creates or updates a packet core data plane. + * Creates or updates a packet core data plane. Must be created in the same location as its parent 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. @@ -1109,18 +1120,21 @@ private Mono updateTagsAsync( * @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 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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return packet core data plane resource. + * @return packet core data plane resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PacketCoreDataPlaneInner updateTags( + public Response updateTagsWithResponse( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, - TagsObject parameters) { - return updateTagsAsync(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, parameters) + TagsObject parameters, + Context context) { + return updateTagsWithResponseAsync( + resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, parameters, context) .block(); } @@ -1131,22 +1145,20 @@ public PacketCoreDataPlaneInner updateTags( * @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 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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return packet core data plane resource along with {@link Response}. + * @return packet core data plane resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse( + public PacketCoreDataPlaneInner updateTags( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, - TagsObject parameters, - Context context) { - return updateTagsWithResponseAsync( - resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, parameters, context) - .block(); + TagsObject parameters) { + return updateTagsWithResponse( + resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, parameters, Context.NONE) + .getValue(); } /** @@ -1343,7 +1355,8 @@ public PagedIterable listByPacketCoreControlPlane( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1382,7 +1395,8 @@ private Mono> listByPacketCoreControlPla /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesImpl.java index b8527487e6eee..6e5aba515def1 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/PacketCoreDataPlanesImpl.java @@ -37,17 +37,6 @@ public void delete( this.serviceClient().delete(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName, context); } - public PacketCoreDataPlane get( - String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName) { - PacketCoreDataPlaneInner inner = - this.serviceClient().get(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName); - if (inner != null) { - return new PacketCoreDataPlaneImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, Context context) { Response inner = @@ -65,6 +54,17 @@ public Response getWithResponse( } } + public PacketCoreDataPlane get( + String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName) { + PacketCoreDataPlaneInner inner = + this.serviceClient().get(resourceGroupName, packetCoreControlPlaneName, packetCoreDataPlaneName); + if (inner != null) { + return new PacketCoreDataPlaneImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByPacketCoreControlPlane( String resourceGroupName, String packetCoreControlPlaneName) { PagedIterable inner = 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 71b900830ac30..a828ba3461636 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 @@ -64,7 +64,7 @@ public final class ServicesClientImpl implements ServicesClient { */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface ServicesService { + public interface ServicesService { @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" @@ -557,14 +557,16 @@ private Mono getAsync(String resourceGroupName, String mobileNetwo * @param mobileNetworkName The name of the mobile network. * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, * `requested` or `service`. + * @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 service. + * @return information about the specified service along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServiceInner get(String resourceGroupName, String mobileNetworkName, String serviceName) { - return getAsync(resourceGroupName, mobileNetworkName, serviceName).block(); + public Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String serviceName, Context context) { + return getWithResponseAsync(resourceGroupName, mobileNetworkName, serviceName, context).block(); } /** @@ -574,20 +576,18 @@ public ServiceInner get(String resourceGroupName, String mobileNetworkName, Stri * @param mobileNetworkName The name of the mobile network. * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, * `requested` or `service`. - * @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 service along with {@link Response}. + * @return information about the specified service. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String serviceName, Context context) { - return getWithResponseAsync(resourceGroupName, mobileNetworkName, serviceName, context).block(); + public ServiceInner get(String resourceGroupName, String mobileNetworkName, String serviceName) { + return getWithResponse(resourceGroupName, mobileNetworkName, serviceName, Context.NONE).getValue(); } /** - * Creates or updates a service. + * Creates or updates a service. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -649,7 +649,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a service. + * Creates or updates a service. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -713,7 +713,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a service. + * Creates or updates a service. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -737,7 +737,7 @@ private PollerFlux, ServiceInner> beginCreateOrUpdateAs } /** - * Creates or updates a service. + * Creates or updates a service. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -767,7 +767,7 @@ private PollerFlux, ServiceInner> beginCreateOrUpdateAs } /** - * Creates or updates a service. + * Creates or updates a service. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -786,7 +786,7 @@ public SyncPoller, ServiceInner> beginCreateOrUpdate( } /** - * Creates or updates a service. + * Creates or updates a service. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -811,7 +811,7 @@ public SyncPoller, ServiceInner> beginCreateOrUpdate( } /** - * Creates or updates a service. + * Creates or updates a service. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -832,7 +832,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a service. + * Creates or updates a service. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -858,7 +858,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a service. + * Creates or updates a service. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -877,7 +877,7 @@ public ServiceInner createOrUpdate( } /** - * Creates or updates a service. + * Creates or updates a service. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1054,15 +1054,21 @@ private Mono updateTagsAsync( * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, * `requested` or `service`. * @param parameters Parameters supplied to update service 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 service resource. + * @return service resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServiceInner updateTags( - String resourceGroupName, String mobileNetworkName, String serviceName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, mobileNetworkName, serviceName, parameters).block(); + public Response updateTagsWithResponse( + String resourceGroupName, + String mobileNetworkName, + String serviceName, + TagsObject parameters, + Context context) { + return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, serviceName, parameters, context) + .block(); } /** @@ -1073,21 +1079,16 @@ public ServiceInner updateTags( * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, * `requested` or `service`. * @param parameters Parameters supplied to update service 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 service resource along with {@link Response}. + * @return service resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse( - String resourceGroupName, - String mobileNetworkName, - String serviceName, - TagsObject parameters, - Context context) { - return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, serviceName, parameters, context) - .block(); + public ServiceInner updateTags( + String resourceGroupName, String mobileNetworkName, String serviceName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, mobileNetworkName, serviceName, parameters, Context.NONE) + .getValue(); } /** @@ -1277,7 +1278,8 @@ public PagedIterable listByMobileNetwork( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1314,7 +1316,8 @@ private Mono> listByMobileNetworkNextSinglePageAsync /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesImpl.java index 3ae73a04aff12..bc5741ce8fb67 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/ServicesImpl.java @@ -35,15 +35,6 @@ public void delete(String resourceGroupName, String mobileNetworkName, String se this.serviceClient().delete(resourceGroupName, mobileNetworkName, serviceName, context); } - public Service get(String resourceGroupName, String mobileNetworkName, String serviceName) { - ServiceInner inner = this.serviceClient().get(resourceGroupName, mobileNetworkName, serviceName); - if (inner != null) { - return new ServiceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String mobileNetworkName, String serviceName, Context context) { Response inner = @@ -59,6 +50,15 @@ public Response getWithResponse( } } + public Service get(String resourceGroupName, String mobileNetworkName, String serviceName) { + ServiceInner inner = this.serviceClient().get(resourceGroupName, mobileNetworkName, serviceName); + if (inner != null) { + return new ServiceImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName) { PagedIterable inner = this.serviceClient().listByMobileNetwork(resourceGroupName, mobileNetworkName); 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 index 7182d51cd816e..5d61a9ffbf9c3 100644 --- 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 @@ -65,7 +65,7 @@ public final class SimGroupsClientImpl implements SimGroupsClient { */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface SimGroupsService { + public interface SimGroupsService { @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" @@ -518,14 +518,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName, St * * @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. + * @return information about the specified SIM group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SimGroupInner getByResourceGroup(String resourceGroupName, String simGroupName) { - return getByResourceGroupAsync(resourceGroupName, simGroupName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String simGroupName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, simGroupName, context).block(); } /** @@ -533,16 +535,14 @@ public SimGroupInner getByResourceGroup(String resourceGroupName, String simGrou * * @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}. + * @return information about the specified SIM group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String simGroupName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, simGroupName, context).block(); + public SimGroupInner getByResourceGroup(String resourceGroupName, String simGroupName) { + return getByResourceGroupWithResponse(resourceGroupName, simGroupName, Context.NONE).getValue(); } /** @@ -942,14 +942,16 @@ private Mono updateTagsAsync(String resourceGroupName, String sim * @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. + * @return sIM group resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SimGroupInner updateTags(String resourceGroupName, String simGroupName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, simGroupName, parameters).block(); + public Response updateTagsWithResponse( + String resourceGroupName, String simGroupName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, simGroupName, parameters, context).block(); } /** @@ -958,16 +960,14 @@ public SimGroupInner updateTags(String resourceGroupName, String simGroupName, T * @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}. + * @return sIM group resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse( - String resourceGroupName, String simGroupName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, simGroupName, parameters, context).block(); + public SimGroupInner updateTags(String resourceGroupName, String simGroupName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, simGroupName, parameters, Context.NONE).getValue(); } /** @@ -1281,7 +1281,8 @@ public PagedIterable listByResourceGroup(String resourceGroupName /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1318,7 +1319,8 @@ private Mono> listBySubscriptionNextSinglePageAsync /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1355,7 +1357,8 @@ private Mono> listBySubscriptionNextSinglePageAsync /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1392,7 +1395,8 @@ private Mono> listByResourceGroupNextSinglePageAsyn /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. 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 index 04004410e931c..841479709ba3d 100644 --- 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 @@ -35,15 +35,6 @@ public void delete(String resourceGroupName, String simGroupName, Context contex 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 = @@ -59,6 +50,15 @@ public Response getByResourceGroupWithResponse( } } + 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 PagedIterable list() { PagedIterable inner = this.serviceClient().list(); return Utils.mapPage(inner, inner1 -> new SimGroupImpl(inner1, this.manager())); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimIdListResultImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimIdListResultImpl.java deleted file mode 100644 index d13c6a02fd6b3..0000000000000 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimIdListResultImpl.java +++ /dev/null @@ -1,44 +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.implementation; - -import com.azure.core.management.SubResource; -import com.azure.resourcemanager.mobilenetwork.fluent.models.SimIdListResultInner; -import com.azure.resourcemanager.mobilenetwork.models.SimIdListResult; -import java.util.Collections; -import java.util.List; - -public final class SimIdListResultImpl implements SimIdListResult { - private SimIdListResultInner innerObject; - - private final com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager; - - SimIdListResultImpl( - SimIdListResultInner innerObject, com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public List value() { - List inner = this.innerModel().value(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public String nextLink() { - return this.innerModel().nextLink(); - } - - public SimIdListResultInner 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/implementation/SimImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimImpl.java index b1a461e48c204..43732cb8ecbd0 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,6 +4,7 @@ package com.azure.resourcemanager.mobilenetwork.implementation; +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.ProvisioningState; @@ -11,8 +12,10 @@ 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.SiteProvisioningState; 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; @@ -31,6 +34,18 @@ public String type() { return this.innerModel().type(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String authenticationKey() { + return this.innerModel().authenticationKey(); + } + + public String operatorKeyCode() { + return this.innerModel().operatorKeyCode(); + } + public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } @@ -39,6 +54,15 @@ public SimState simState() { return this.innerModel().simState(); } + public Map siteProvisioningState() { + Map inner = this.innerModel().siteProvisioningState(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + public String internationalMobileSubscriberIdentity() { return this.innerModel().internationalMobileSubscriberIdentity(); } @@ -47,14 +71,6 @@ public String integratedCircuitCardIdentifier() { return this.innerModel().integratedCircuitCardIdentifier(); } - public String authenticationKey() { - return this.innerModel().authenticationKey(); - } - - public String operatorKeyCode() { - return this.innerModel().operatorKeyCode(); - } - public String deviceType() { return this.innerModel().deviceType(); } @@ -72,6 +88,14 @@ public List staticIpConfiguration() { } } + public String vendorName() { + return this.innerModel().vendorName(); + } + + public String vendorKeyFingerprint() { + return this.innerModel().vendorKeyFingerprint(); + } + public String resourceGroupName() { return resourceGroupName; } @@ -175,11 +199,6 @@ public SimImpl withInternationalMobileSubscriberIdentity(String internationalMob return this; } - public SimImpl withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier) { - this.innerModel().withIntegratedCircuitCardIdentifier(integratedCircuitCardIdentifier); - return this; - } - public SimImpl withAuthenticationKey(String authenticationKey) { this.innerModel().withAuthenticationKey(authenticationKey); return this; @@ -190,6 +209,11 @@ public SimImpl withOperatorKeyCode(String operatorKeyCode) { return this; } + public SimImpl withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier) { + this.innerModel().withIntegratedCircuitCardIdentifier(integratedCircuitCardIdentifier); + return this; + } + public SimImpl withDeviceType(String deviceType) { this.innerModel().withDeviceType(deviceType); return this; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimOperationsClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimOperationsClientImpl.java new file mode 100644 index 0000000000000..000688eb1a442 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimOperationsClientImpl.java @@ -0,0 +1,930 @@ +// 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.ExpectedResponses; +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.PathParam; +import com.azure.core.annotation.Post; +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.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.SimOperationsClient; +import com.azure.resourcemanager.mobilenetwork.fluent.models.AsyncOperationStatusInner; +import com.azure.resourcemanager.mobilenetwork.models.EncryptedSimUploadList; +import com.azure.resourcemanager.mobilenetwork.models.SimDeleteList; +import com.azure.resourcemanager.mobilenetwork.models.SimUploadList; +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 SimOperationsClient. */ +public final class SimOperationsClientImpl implements SimOperationsClient { + /** The proxy service used to perform REST calls. */ + private final SimOperationsService service; + + /** The service client containing this operation class. */ + private final MobileNetworkManagementClientImpl client; + + /** + * Initializes an instance of SimOperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + SimOperationsClientImpl(MobileNetworkManagementClientImpl client) { + this.service = + RestProxy.create(SimOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for MobileNetworkManagementClientSimOperations to be used by the proxy + * service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "MobileNetworkManagem") + public interface SimOperationsService { + @Headers({"Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups/{simGroupName}/uploadSims") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> bulkUpload( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("simGroupName") String simGroupName, + @BodyParam("application/json") SimUploadList parameters, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups/{simGroupName}/deleteSims") + @ExpectedResponses({200, 202, 204}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> bulkDelete( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("simGroupName") String simGroupName, + @BodyParam("application/json") SimDeleteList parameters, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" + + "/simGroups/{simGroupName}/uploadEncryptedSims") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> bulkUploadEncrypted( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("simGroupName") String simGroupName, + @BodyParam("application/json") EncryptedSimUploadList parameters, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> bulkUploadWithResponseAsync( + String resourceGroupName, String simGroupName, SimUploadList parameters) { + 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.")); + } + 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 + .bulkUpload( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + simGroupName, + parameters, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> bulkUploadWithResponseAsync( + String resourceGroupName, String simGroupName, SimUploadList parameters, 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.")); + } + 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 + .bulkUpload( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + simGroupName, + parameters, + accept, + context); + } + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> beginBulkUploadAsync( + String resourceGroupName, String simGroupName, SimUploadList parameters) { + Mono>> mono = + bulkUploadWithResponseAsync(resourceGroupName, simGroupName, parameters); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + this.client.getContext()); + } + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> beginBulkUploadAsync( + String resourceGroupName, String simGroupName, SimUploadList parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + bulkUploadWithResponseAsync(resourceGroupName, simGroupName, parameters, context); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + context); + } + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginBulkUpload( + String resourceGroupName, String simGroupName, SimUploadList parameters) { + return beginBulkUploadAsync(resourceGroupName, simGroupName, parameters).getSyncPoller(); + } + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginBulkUpload( + String resourceGroupName, String simGroupName, SimUploadList parameters, Context context) { + return beginBulkUploadAsync(resourceGroupName, simGroupName, parameters, context).getSyncPoller(); + } + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono bulkUploadAsync( + String resourceGroupName, String simGroupName, SimUploadList parameters) { + return beginBulkUploadAsync(resourceGroupName, simGroupName, parameters) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono bulkUploadAsync( + String resourceGroupName, String simGroupName, SimUploadList parameters, Context context) { + return beginBulkUploadAsync(resourceGroupName, simGroupName, parameters, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner bulkUpload( + String resourceGroupName, String simGroupName, SimUploadList parameters) { + return bulkUploadAsync(resourceGroupName, simGroupName, parameters).block(); + } + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner bulkUpload( + String resourceGroupName, String simGroupName, SimUploadList parameters, Context context) { + return bulkUploadAsync(resourceGroupName, simGroupName, parameters, context).block(); + } + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> bulkDeleteWithResponseAsync( + String resourceGroupName, String simGroupName, SimDeleteList parameters) { + 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.")); + } + 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 + .bulkDelete( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + simGroupName, + parameters, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> bulkDeleteWithResponseAsync( + String resourceGroupName, String simGroupName, SimDeleteList parameters, 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.")); + } + 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 + .bulkDelete( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + simGroupName, + parameters, + accept, + context); + } + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> beginBulkDeleteAsync( + String resourceGroupName, String simGroupName, SimDeleteList parameters) { + Mono>> mono = + bulkDeleteWithResponseAsync(resourceGroupName, simGroupName, parameters); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + this.client.getContext()); + } + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> beginBulkDeleteAsync( + String resourceGroupName, String simGroupName, SimDeleteList parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + bulkDeleteWithResponseAsync(resourceGroupName, simGroupName, parameters, context); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + context); + } + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginBulkDelete( + String resourceGroupName, String simGroupName, SimDeleteList parameters) { + return beginBulkDeleteAsync(resourceGroupName, simGroupName, parameters).getSyncPoller(); + } + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginBulkDelete( + String resourceGroupName, String simGroupName, SimDeleteList parameters, Context context) { + return beginBulkDeleteAsync(resourceGroupName, simGroupName, parameters, context).getSyncPoller(); + } + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono bulkDeleteAsync( + String resourceGroupName, String simGroupName, SimDeleteList parameters) { + return beginBulkDeleteAsync(resourceGroupName, simGroupName, parameters) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono bulkDeleteAsync( + String resourceGroupName, String simGroupName, SimDeleteList parameters, Context context) { + return beginBulkDeleteAsync(resourceGroupName, simGroupName, parameters, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner bulkDelete( + String resourceGroupName, String simGroupName, SimDeleteList parameters) { + return bulkDeleteAsync(resourceGroupName, simGroupName, parameters).block(); + } + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner bulkDelete( + String resourceGroupName, String simGroupName, SimDeleteList parameters, Context context) { + return bulkDeleteAsync(resourceGroupName, simGroupName, parameters, context).block(); + } + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> bulkUploadEncryptedWithResponseAsync( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters) { + 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.")); + } + 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 + .bulkUploadEncrypted( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + simGroupName, + parameters, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 current status of an async operation along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> bulkUploadEncryptedWithResponseAsync( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters, 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.")); + } + 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 + .bulkUploadEncrypted( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + simGroupName, + parameters, + accept, + context); + } + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> beginBulkUploadEncryptedAsync( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters) { + Mono>> mono = + bulkUploadEncryptedWithResponseAsync(resourceGroupName, simGroupName, parameters); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + this.client.getContext()); + } + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AsyncOperationStatusInner> beginBulkUploadEncryptedAsync( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + bulkUploadEncryptedWithResponseAsync(resourceGroupName, simGroupName, parameters, context); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AsyncOperationStatusInner.class, + AsyncOperationStatusInner.class, + context); + } + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginBulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters) { + return beginBulkUploadEncryptedAsync(resourceGroupName, simGroupName, parameters).getSyncPoller(); + } + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AsyncOperationStatusInner> beginBulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters, Context context) { + return beginBulkUploadEncryptedAsync(resourceGroupName, simGroupName, parameters, context).getSyncPoller(); + } + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono bulkUploadEncryptedAsync( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters) { + return beginBulkUploadEncryptedAsync(resourceGroupName, simGroupName, parameters) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono bulkUploadEncryptedAsync( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters, Context context) { + return beginBulkUploadEncryptedAsync(resourceGroupName, simGroupName, parameters, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner bulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters) { + return bulkUploadEncryptedAsync(resourceGroupName, simGroupName, parameters).block(); + } + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationStatusInner bulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters, Context context) { + return bulkUploadEncryptedAsync(resourceGroupName, simGroupName, parameters, context).block(); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimOperationsImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimOperationsImpl.java new file mode 100644 index 0000000000000..b2a37f38c8433 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimOperationsImpl.java @@ -0,0 +1,99 @@ +// 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.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.mobilenetwork.fluent.SimOperationsClient; +import com.azure.resourcemanager.mobilenetwork.fluent.models.AsyncOperationStatusInner; +import com.azure.resourcemanager.mobilenetwork.models.AsyncOperationStatus; +import com.azure.resourcemanager.mobilenetwork.models.EncryptedSimUploadList; +import com.azure.resourcemanager.mobilenetwork.models.SimDeleteList; +import com.azure.resourcemanager.mobilenetwork.models.SimOperations; +import com.azure.resourcemanager.mobilenetwork.models.SimUploadList; + +public final class SimOperationsImpl implements SimOperations { + private static final ClientLogger LOGGER = new ClientLogger(SimOperationsImpl.class); + + private final SimOperationsClient innerClient; + + private final com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager; + + public SimOperationsImpl( + SimOperationsClient innerClient, com.azure.resourcemanager.mobilenetwork.MobileNetworkManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public AsyncOperationStatus bulkUpload(String resourceGroupName, String simGroupName, SimUploadList parameters) { + AsyncOperationStatusInner inner = this.serviceClient().bulkUpload(resourceGroupName, simGroupName, parameters); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + public AsyncOperationStatus bulkUpload( + String resourceGroupName, String simGroupName, SimUploadList parameters, Context context) { + AsyncOperationStatusInner inner = + this.serviceClient().bulkUpload(resourceGroupName, simGroupName, parameters, context); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + public AsyncOperationStatus bulkDelete(String resourceGroupName, String simGroupName, SimDeleteList parameters) { + AsyncOperationStatusInner inner = this.serviceClient().bulkDelete(resourceGroupName, simGroupName, parameters); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + public AsyncOperationStatus bulkDelete( + String resourceGroupName, String simGroupName, SimDeleteList parameters, Context context) { + AsyncOperationStatusInner inner = + this.serviceClient().bulkDelete(resourceGroupName, simGroupName, parameters, context); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + public AsyncOperationStatus bulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters) { + AsyncOperationStatusInner inner = + this.serviceClient().bulkUploadEncrypted(resourceGroupName, simGroupName, parameters); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + public AsyncOperationStatus bulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters, Context context) { + AsyncOperationStatusInner inner = + this.serviceClient().bulkUploadEncrypted(resourceGroupName, simGroupName, parameters, context); + if (inner != null) { + return new AsyncOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + private SimOperationsClient serviceClient() { + return this.innerClient; + } + + 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/implementation/SimPoliciesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesClientImpl.java index a56b6f0ed51cb..ecbfb62dc88a2 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 @@ -65,7 +65,7 @@ public final class SimPoliciesClientImpl implements SimPoliciesClient { */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface SimPoliciesService { + public interface SimPoliciesService { @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" @@ -544,14 +544,16 @@ private Mono getAsync(String resourceGroupName, String mobileNet * @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 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 policy. + * @return information about the specified SIM policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SimPolicyInner get(String resourceGroupName, String mobileNetworkName, String simPolicyName) { - return getAsync(resourceGroupName, mobileNetworkName, simPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context) { + return getWithResponseAsync(resourceGroupName, mobileNetworkName, simPolicyName, context).block(); } /** @@ -560,20 +562,18 @@ public SimPolicyInner get(String resourceGroupName, String mobileNetworkName, St * @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 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 policy along with {@link Response}. + * @return information about the specified SIM policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context) { - return getWithResponseAsync(resourceGroupName, mobileNetworkName, simPolicyName, context).block(); + public SimPolicyInner get(String resourceGroupName, String mobileNetworkName, String simPolicyName) { + return getWithResponse(resourceGroupName, mobileNetworkName, simPolicyName, Context.NONE).getValue(); } /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -634,7 +634,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -697,7 +697,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -724,7 +724,7 @@ private PollerFlux, SimPolicyInner> beginCreateOrUpda } /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -753,7 +753,7 @@ private PollerFlux, SimPolicyInner> beginCreateOrUpda } /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -772,7 +772,7 @@ public SyncPoller, SimPolicyInner> beginCreateOrUpdat } /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -796,7 +796,7 @@ public SyncPoller, SimPolicyInner> beginCreateOrUpdat } /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -816,7 +816,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -841,7 +841,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -859,7 +859,7 @@ public SimPolicyInner createOrUpdate( } /** - * Creates or updates a SIM policy. + * Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1031,15 +1031,21 @@ private Mono updateTagsAsync( * @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 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 along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SimPolicyInner updateTags( - String resourceGroupName, String mobileNetworkName, String simPolicyName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, mobileNetworkName, simPolicyName, parameters).block(); + public Response updateTagsWithResponse( + String resourceGroupName, + String mobileNetworkName, + String simPolicyName, + TagsObject parameters, + Context context) { + return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, simPolicyName, parameters, context) + .block(); } /** @@ -1049,21 +1055,16 @@ public SimPolicyInner updateTags( * @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 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. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse( - String resourceGroupName, - String mobileNetworkName, - String simPolicyName, - TagsObject parameters, - Context context) { - return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, simPolicyName, parameters, context) - .block(); + public SimPolicyInner updateTags( + String resourceGroupName, String mobileNetworkName, String simPolicyName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, mobileNetworkName, simPolicyName, parameters, Context.NONE) + .getValue(); } /** @@ -1253,7 +1254,8 @@ public PagedIterable listByMobileNetwork( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1290,7 +1292,8 @@ private Mono> listByMobileNetworkNextSinglePageAsy /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesImpl.java index a8c288e10a78f..a12aa3b2cf90b 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SimPoliciesImpl.java @@ -35,15 +35,6 @@ public void delete(String resourceGroupName, String mobileNetworkName, String si this.serviceClient().delete(resourceGroupName, mobileNetworkName, simPolicyName, context); } - public SimPolicy get(String resourceGroupName, String mobileNetworkName, String simPolicyName) { - SimPolicyInner inner = this.serviceClient().get(resourceGroupName, mobileNetworkName, simPolicyName); - if (inner != null) { - return new SimPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context) { Response inner = @@ -59,6 +50,15 @@ public Response getWithResponse( } } + public SimPolicy get(String resourceGroupName, String mobileNetworkName, String simPolicyName) { + SimPolicyInner inner = this.serviceClient().get(resourceGroupName, mobileNetworkName, simPolicyName); + if (inner != null) { + return new SimPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName) { PagedIterable inner = this.serviceClient().listByMobileNetwork(resourceGroupName, mobileNetworkName); 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 023edef1a1465..ffadd129c57c4 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 @@ -11,6 +11,7 @@ import com.azure.resourcemanager.mobilenetwork.models.Ambr; import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.SimPolicy; +import com.azure.resourcemanager.mobilenetwork.models.SiteProvisioningState; import com.azure.resourcemanager.mobilenetwork.models.SliceConfiguration; import com.azure.resourcemanager.mobilenetwork.models.SliceResourceId; import com.azure.resourcemanager.mobilenetwork.models.TagsObject; @@ -56,6 +57,15 @@ public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } + public Map siteProvisioningState() { + Map inner = this.innerModel().siteProvisioningState(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + public Ambr ueAmbr() { return this.innerModel().ueAmbr(); } 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 a003ae97a769b..24ef576560926 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 @@ -62,7 +62,7 @@ public final class SimsClientImpl implements SimsClient { */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface SimsService { + public interface SimsService { @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" @@ -118,7 +118,7 @@ Mono>> createOrUpdate( + "/simGroups/{simGroupName}/sims") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySimGroup( + Mono> listByGroup( @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @@ -131,7 +131,7 @@ Mono> listBySimGroup( @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySimGroupNext( + Mono> listByGroupNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, @@ -516,14 +516,16 @@ private Mono getAsync(String resourceGroupName, String simGroupName, S * @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. + * @return information about the specified SIM along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SimInner get(String resourceGroupName, String simGroupName, String simName) { - return getAsync(resourceGroupName, simGroupName, simName).block(); + public Response getWithResponse( + String resourceGroupName, String simGroupName, String simName, Context context) { + return getWithResponseAsync(resourceGroupName, simGroupName, simName, context).block(); } /** @@ -532,16 +534,14 @@ public SimInner get(String resourceGroupName, String simGroupName, String simNam * @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. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String simGroupName, String simName, Context context) { - return getWithResponseAsync(resourceGroupName, simGroupName, simName, context).block(); + public SimInner get(String resourceGroupName, String simGroupName, String simName) { + return getWithResponse(resourceGroupName, simGroupName, simName, Context.NONE).getValue(); } /** @@ -835,7 +835,7 @@ public SimInner createOrUpdate( * @return all the SIMs in a SIM group along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySimGroupSinglePageAsync(String resourceGroupName, String simGroupName) { + private Mono> listByGroupSinglePageAsync(String resourceGroupName, String simGroupName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -860,7 +860,7 @@ private Mono> listBySimGroupSinglePageAsync(String resou .withContext( context -> service - .listBySimGroup( + .listByGroup( this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), @@ -892,7 +892,7 @@ private Mono> listBySimGroupSinglePageAsync(String resou * @return all the SIMs in a SIM group along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySimGroupSinglePageAsync( + private Mono> listByGroupSinglePageAsync( String resourceGroupName, String simGroupName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -916,7 +916,7 @@ private Mono> listBySimGroupSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listBySimGroup( + .listByGroup( this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), @@ -946,10 +946,10 @@ private Mono> listBySimGroupSinglePageAsync( * @return all the SIMs in a SIM group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listBySimGroupAsync(String resourceGroupName, String simGroupName) { + private PagedFlux listByGroupAsync(String resourceGroupName, String simGroupName) { return new PagedFlux<>( - () -> listBySimGroupSinglePageAsync(resourceGroupName, simGroupName), - nextLink -> listBySimGroupNextSinglePageAsync(nextLink)); + () -> listByGroupSinglePageAsync(resourceGroupName, simGroupName), + nextLink -> listByGroupNextSinglePageAsync(nextLink)); } /** @@ -964,10 +964,10 @@ private PagedFlux listBySimGroupAsync(String resourceGroupName, String * @return all the SIMs in a SIM group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listBySimGroupAsync(String resourceGroupName, String simGroupName, Context context) { + private PagedFlux listByGroupAsync(String resourceGroupName, String simGroupName, Context context) { return new PagedFlux<>( - () -> listBySimGroupSinglePageAsync(resourceGroupName, simGroupName, context), - nextLink -> listBySimGroupNextSinglePageAsync(nextLink, context)); + () -> listByGroupSinglePageAsync(resourceGroupName, simGroupName, context), + nextLink -> listByGroupNextSinglePageAsync(nextLink, context)); } /** @@ -981,8 +981,8 @@ private PagedFlux listBySimGroupAsync(String resourceGroupName, String * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listBySimGroup(String resourceGroupName, String simGroupName) { - return new PagedIterable<>(listBySimGroupAsync(resourceGroupName, simGroupName)); + public PagedIterable listByGroup(String resourceGroupName, String simGroupName) { + return new PagedIterable<>(listByGroupAsync(resourceGroupName, simGroupName)); } /** @@ -997,14 +997,15 @@ public PagedIterable listBySimGroup(String resourceGroupName, String s * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listBySimGroup(String resourceGroupName, String simGroupName, Context context) { - return new PagedIterable<>(listBySimGroupAsync(resourceGroupName, simGroupName, context)); + public PagedIterable listByGroup(String resourceGroupName, String simGroupName, Context context) { + return new PagedIterable<>(listByGroupAsync(resourceGroupName, simGroupName, context)); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1012,7 +1013,7 @@ public PagedIterable listBySimGroup(String resourceGroupName, String s * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySimGroupNextSinglePageAsync(String nextLink) { + private Mono> listByGroupNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1024,7 +1025,7 @@ private Mono> listBySimGroupNextSinglePageAsync(String n } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listBySimGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .withContext(context -> service.listByGroupNext(nextLink, this.client.getEndpoint(), accept, context)) .>map( res -> new PagedResponseBase<>( @@ -1040,7 +1041,8 @@ private Mono> listBySimGroupNextSinglePageAsync(String n /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1049,7 +1051,7 @@ private Mono> listBySimGroupNextSinglePageAsync(String n * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySimGroupNextSinglePageAsync(String nextLink, Context context) { + private Mono> listByGroupNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1062,7 +1064,7 @@ private Mono> listBySimGroupNextSinglePageAsync(String n final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listBySimGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .listByGroupNext(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 e17788054f78e..2a6bca1096d21 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 @@ -35,15 +35,6 @@ public void delete(String resourceGroupName, String simGroupName, String simName this.serviceClient().delete(resourceGroupName, simGroupName, simName, context); } - 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 { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String simGroupName, String simName, Context context) { Response inner = @@ -59,13 +50,22 @@ public Response getWithResponse( } } - public PagedIterable listBySimGroup(String resourceGroupName, String simGroupName) { - PagedIterable inner = this.serviceClient().listBySimGroup(resourceGroupName, simGroupName); + 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 { + return null; + } + } + + public PagedIterable listByGroup(String resourceGroupName, String simGroupName) { + PagedIterable inner = this.serviceClient().listByGroup(resourceGroupName, simGroupName); return Utils.mapPage(inner, inner1 -> new SimImpl(inner1, this.manager())); } - public PagedIterable listBySimGroup(String resourceGroupName, String simGroupName, Context context) { - PagedIterable inner = this.serviceClient().listBySimGroup(resourceGroupName, simGroupName, context); + public PagedIterable listByGroup(String resourceGroupName, String simGroupName, Context context) { + PagedIterable inner = this.serviceClient().listByGroup(resourceGroupName, simGroupName, context); return Utils.mapPage(inner, inner1 -> new SimImpl(inner1, this.manager())); } 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 a6e3e40c4b1db..1daa8a3c7bc30 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 @@ -194,11 +194,6 @@ public SiteImpl withTags(Map tags) { } } - public SiteImpl withNetworkFunctions(List networkFunctions) { - this.innerModel().withNetworkFunctions(networkFunctions); - 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/SitesClientImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesClientImpl.java index 508fb1a7f4331..525a68dd28124 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 @@ -64,7 +64,7 @@ public final class SitesClientImpl implements SitesClient { */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface SitesService { + public interface SitesService { @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" @@ -158,7 +158,8 @@ Mono> listByMobileNetworkNext( } /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -212,7 +213,8 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -264,7 +266,8 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -285,7 +288,8 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -308,7 +312,8 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -325,7 +330,8 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -343,7 +349,8 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -361,7 +368,8 @@ private Mono deleteAsync(String resourceGroupName, String mobileNetworkNam } /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -381,7 +389,8 @@ private Mono deleteAsync( } /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -396,7 +405,8 @@ public void delete(String resourceGroupName, String mobileNetworkName, String si } /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -542,14 +552,16 @@ private Mono getAsync(String resourceGroupName, String mobileNetworkN * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param siteName The name of the mobile network site. + * @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 site. + * @return information about the specified mobile network site along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SiteInner get(String resourceGroupName, String mobileNetworkName, String siteName) { - return getAsync(resourceGroupName, mobileNetworkName, siteName).block(); + public Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String siteName, Context context) { + return getWithResponseAsync(resourceGroupName, mobileNetworkName, siteName, context).block(); } /** @@ -558,20 +570,18 @@ public SiteInner get(String resourceGroupName, String mobileNetworkName, String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param siteName The name of the mobile network site. - * @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 site along with {@link Response}. + * @return information about the specified mobile network site. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String siteName, Context context) { - return getWithResponseAsync(resourceGroupName, mobileNetworkName, siteName, context).block(); + public SiteInner get(String resourceGroupName, String mobileNetworkName, String siteName) { + return getWithResponse(resourceGroupName, mobileNetworkName, siteName, Context.NONE).getValue(); } /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -632,7 +642,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -691,7 +701,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -714,7 +724,7 @@ private PollerFlux, SiteInner> beginCreateOrUpdateAsync( } /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -739,7 +749,7 @@ private PollerFlux, SiteInner> beginCreateOrUpdateAsync( } /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -757,7 +767,7 @@ public SyncPoller, SiteInner> beginCreateOrUpdate( } /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -777,7 +787,7 @@ public SyncPoller, SiteInner> beginCreateOrUpdate( } /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -797,7 +807,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -818,7 +828,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -836,7 +846,7 @@ public SiteInner createOrUpdate( } /** - * Creates or updates a mobile network site. + * Creates or updates a mobile network site. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1000,15 +1010,16 @@ private Mono updateTagsAsync( * @param mobileNetworkName The name of the mobile network. * @param siteName The name of the mobile network site. * @param parameters Parameters supplied to update network site 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 site resource. + * @return site resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SiteInner updateTags( - String resourceGroupName, String mobileNetworkName, String siteName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, mobileNetworkName, siteName, parameters).block(); + public Response updateTagsWithResponse( + String resourceGroupName, String mobileNetworkName, String siteName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, siteName, parameters, context).block(); } /** @@ -1018,16 +1029,16 @@ public SiteInner updateTags( * @param mobileNetworkName The name of the mobile network. * @param siteName The name of the mobile network site. * @param parameters Parameters supplied to update network site 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 site resource along with {@link Response}. + * @return site resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse( - String resourceGroupName, String mobileNetworkName, String siteName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, siteName, parameters, context).block(); + public SiteInner updateTags( + String resourceGroupName, String mobileNetworkName, String siteName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, mobileNetworkName, siteName, parameters, Context.NONE) + .getValue(); } /** @@ -1217,7 +1228,8 @@ public PagedIterable listByMobileNetwork( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1254,7 +1266,8 @@ private Mono> listByMobileNetworkNextSinglePageAsync(St /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesImpl.java index 7de60750b384f..e58b923283253 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SitesImpl.java @@ -35,15 +35,6 @@ public void delete(String resourceGroupName, String mobileNetworkName, String si this.serviceClient().delete(resourceGroupName, mobileNetworkName, siteName, context); } - public Site get(String resourceGroupName, String mobileNetworkName, String siteName) { - SiteInner inner = this.serviceClient().get(resourceGroupName, mobileNetworkName, siteName); - if (inner != null) { - return new SiteImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String mobileNetworkName, String siteName, Context context) { Response inner = @@ -59,6 +50,15 @@ public Response getWithResponse( } } + public Site get(String resourceGroupName, String mobileNetworkName, String siteName) { + SiteInner inner = this.serviceClient().get(resourceGroupName, mobileNetworkName, siteName); + if (inner != null) { + return new SiteImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName) { PagedIterable inner = this.serviceClient().listByMobileNetwork(resourceGroupName, mobileNetworkName); return Utils.mapPage(inner, inner1 -> new SiteImpl(inner1, this.manager())); 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 91ec5bf547404..39560a0533458 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 @@ -64,7 +64,7 @@ public final class SlicesClientImpl implements SlicesClient { */ @Host("{$host}") @ServiceInterface(name = "MobileNetworkManagem") - private interface SlicesService { + public interface SlicesService { @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork" @@ -543,14 +543,16 @@ private Mono getAsync(String resourceGroupName, String mobileNetwork * @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 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 network slice. + * @return information about the specified network slice along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SliceInner get(String resourceGroupName, String mobileNetworkName, String sliceName) { - return getAsync(resourceGroupName, mobileNetworkName, sliceName).block(); + public Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String sliceName, Context context) { + return getWithResponseAsync(resourceGroupName, mobileNetworkName, sliceName, context).block(); } /** @@ -559,20 +561,18 @@ public SliceInner get(String resourceGroupName, String mobileNetworkName, String * @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 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 network slice along with {@link Response}. + * @return information about the specified network slice. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String sliceName, Context context) { - return getWithResponseAsync(resourceGroupName, mobileNetworkName, sliceName, context).block(); + public SliceInner get(String resourceGroupName, String mobileNetworkName, String sliceName) { + return getWithResponse(resourceGroupName, mobileNetworkName, sliceName, Context.NONE).getValue(); } /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -633,7 +633,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -692,7 +692,7 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -715,7 +715,7 @@ private PollerFlux, SliceInner> beginCreateOrUpdateAsync( } /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -740,7 +740,7 @@ private PollerFlux, SliceInner> beginCreateOrUpdateAsync( } /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -758,7 +758,7 @@ public SyncPoller, SliceInner> beginCreateOrUpdate( } /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -778,7 +778,7 @@ public SyncPoller, SliceInner> beginCreateOrUpdate( } /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -798,7 +798,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -819,7 +819,7 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -837,7 +837,7 @@ public SliceInner createOrUpdate( } /** - * Creates or updates a network slice. + * Creates or updates a network slice. Must be created in the same location as its parent mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -1001,15 +1001,17 @@ private Mono updateTagsAsync( * @param mobileNetworkName The name of the mobile network. * @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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network slice resource. + * @return network slice resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SliceInner updateTags( - String resourceGroupName, String mobileNetworkName, String sliceName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, mobileNetworkName, sliceName, parameters).block(); + public Response updateTagsWithResponse( + String resourceGroupName, String mobileNetworkName, String sliceName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, sliceName, parameters, context) + .block(); } /** @@ -1019,17 +1021,16 @@ public SliceInner updateTags( * @param mobileNetworkName The name of the mobile network. * @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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network slice resource along with {@link Response}. + * @return network slice resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse( - String resourceGroupName, String mobileNetworkName, String sliceName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, mobileNetworkName, sliceName, parameters, context) - .block(); + public SliceInner updateTags( + String resourceGroupName, String mobileNetworkName, String sliceName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, mobileNetworkName, sliceName, parameters, Context.NONE) + .getValue(); } /** @@ -1219,7 +1220,8 @@ public PagedIterable listByMobileNetwork( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. @@ -1256,7 +1258,8 @@ private Mono> listByMobileNetworkNextSinglePageAsync(S /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

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. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesImpl.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesImpl.java index 06845c7970b71..85b45de2775a0 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesImpl.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/SlicesImpl.java @@ -35,15 +35,6 @@ public void delete(String resourceGroupName, String mobileNetworkName, String sl this.serviceClient().delete(resourceGroupName, mobileNetworkName, sliceName, context); } - public Slice get(String resourceGroupName, String mobileNetworkName, String sliceName) { - SliceInner inner = this.serviceClient().get(resourceGroupName, mobileNetworkName, sliceName); - if (inner != null) { - return new SliceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String mobileNetworkName, String sliceName, Context context) { Response inner = @@ -59,6 +50,15 @@ public Response getWithResponse( } } + public Slice get(String resourceGroupName, String mobileNetworkName, String sliceName) { + SliceInner inner = this.serviceClient().get(resourceGroupName, mobileNetworkName, sliceName); + if (inner != null) { + return new SliceImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByMobileNetwork(String resourceGroupName, String mobileNetworkName) { PagedIterable inner = this.serviceClient().listByMobileNetwork(resourceGroupName, mobileNetworkName); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/package-info.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/package-info.java index 4b56f3388d670..c5a0e7f3b350f 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/package-info.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/implementation/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the implementations for MobileNetworkManagementClient. The resources in this swagger specification + * Package containing the implementations for MobileNetworkManagementClient. The resources in this API specification * will be used to manage attached data network resources in mobile network attached to a particular packet core * instance. */ 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 e25d9c5fe341e..5b997fe1c7671 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 @@ -23,6 +23,10 @@ public final class Ambr { @JsonProperty(value = "downlink", required = true) private String downlink; + /** Creates an instance of Ambr class. */ + public Ambr() { + } + /** * Get the uplink property: Uplink bit rate. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AsyncOperationId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AsyncOperationId.java new file mode 100644 index 0000000000000..b0420279bfb84 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AsyncOperationId.java @@ -0,0 +1,58 @@ +// 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 Async Operation ID. */ +@Fluent +public final class AsyncOperationId { + /* + * Azure Async Operation ID. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** Creates an instance of AsyncOperationId class. */ + public AsyncOperationId() { + } + + /** + * Get the id property: Azure Async Operation ID. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Azure Async Operation ID. + * + * @param id the id value to set. + * @return the AsyncOperationId object itself. + */ + public AsyncOperationId 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 AsyncOperationId")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AsyncOperationId.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AsyncOperationStatus.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AsyncOperationStatus.java new file mode 100644 index 0000000000000..262b0aefc1dbe --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AsyncOperationStatus.java @@ -0,0 +1,82 @@ +// 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.exception.ManagementError; +import com.azure.resourcemanager.mobilenetwork.fluent.models.AsyncOperationStatusInner; +import java.time.OffsetDateTime; + +/** An immutable client-side representation of AsyncOperationStatus. */ +public interface AsyncOperationStatus { + /** + * Gets the id property: Fully qualified ID for the async operation. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: Name of the async operation. + * + * @return the name value. + */ + String name(); + + /** + * Gets the status property: The operation status. + * + * @return the status value. + */ + String status(); + + /** + * Gets the resourceId property: Fully qualified ID for the resource that this async operation status relates to. + * + * @return the resourceId value. + */ + String resourceId(); + + /** + * Gets the startTime property: The start time of the operation. + * + * @return the startTime value. + */ + OffsetDateTime startTime(); + + /** + * Gets the endTime property: The end time of the operation. + * + * @return the endTime value. + */ + OffsetDateTime endTime(); + + /** + * Gets the percentComplete property: Percentage of the operation that is complete. + * + * @return the percentComplete value. + */ + Double percentComplete(); + + /** + * Gets the properties property: Properties returned by the resource provider on a successful operation. + * + * @return the properties value. + */ + Object properties(); + + /** + * Gets the error property: If present, details of the operation error. + * + * @return the error value. + */ + ManagementError error(); + + /** + * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.AsyncOperationStatusInner object. + * + * @return the inner object. + */ + AsyncOperationStatusInner innerModel(); +} 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 3c97b511b38ee..e444c1e75f442 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 @@ -5,6 +5,7 @@ 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.AttachedDataNetworkInner; import java.util.List; @@ -47,6 +48,13 @@ public interface AttachedDataNetwork { */ 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 attached data network resource. * @@ -63,7 +71,8 @@ public interface AttachedDataNetwork { InterfaceProperties userPlaneDataInterface(); /** - * Gets the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. + * Gets the dnsAddresses property: The DNS servers to signal to UEs to use for this attached data network. This + * configuration is mandatory - if you don't want DNS servers, you must provide an empty array. * * @return the dnsAddresses value. */ @@ -133,6 +142,7 @@ interface Definition DefinitionStages.WithLocation, DefinitionStages.WithParentResource, DefinitionStages.WithUserPlaneDataInterface, + DefinitionStages.WithDnsAddresses, DefinitionStages.WithCreate { } /** The AttachedDataNetwork definition stages. */ @@ -181,7 +191,20 @@ interface WithUserPlaneDataInterface { * N6 interface. For 4G networks, this is the SGi interface. * @return the next definition stage. */ - WithCreate withUserPlaneDataInterface(InterfaceProperties userPlaneDataInterface); + WithDnsAddresses withUserPlaneDataInterface(InterfaceProperties userPlaneDataInterface); + } + /** 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. This configuration is mandatory - if you don't want DNS servers, you must provide an empty + * array.. + * + * @param dnsAddresses The DNS servers to signal to UEs to use for this attached data network. This + * configuration is mandatory - if you don't want DNS servers, you must provide an empty array. + * @return the next definition stage. + */ + WithCreate withDnsAddresses(List dnsAddresses); } /** * The stage of the AttachedDataNetwork definition which contains all the minimum required properties for the @@ -189,7 +212,6 @@ interface WithUserPlaneDataInterface { */ interface WithCreate extends DefinitionStages.WithTags, - DefinitionStages.WithDnsAddresses, DefinitionStages.WithNaptConfiguration, DefinitionStages.WithUserEquipmentAddressPoolPrefix, DefinitionStages.WithUserEquipmentStaticAddressPoolPrefix { @@ -218,17 +240,6 @@ 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 { /** diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkListResult.java index dc3927510c0ec..f2375c4366743 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AttachedDataNetworkListResult.java @@ -24,6 +24,10 @@ public final class AttachedDataNetworkListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of AttachedDataNetworkListResult class. */ + public AttachedDataNetworkListResult() { + } + /** * Get the value property: A list of data networks in a resource group. * 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 0b88fe53b59a7..043d21f68f0b1 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 @@ -17,6 +17,10 @@ public final class AttachedDataNetworkResourceId { @JsonProperty(value = "id", required = true) private String id; + /** Creates an instance of AttachedDataNetworkResourceId class. */ + public AttachedDataNetworkResourceId() { + } + /** * Get the id property: Attached data network resource ID. * 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 37cc7be7efa4e..1707ab2e488f2 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 @@ -53,16 +53,18 @@ void delete( * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. * @param attachedDataNetworkName The name of the attached 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 attached data network. + * @return information about the specified attached data network along with {@link Response}. */ - AttachedDataNetwork get( + Response getWithResponse( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, - String attachedDataNetworkName); + String attachedDataNetworkName, + Context context); /** * Gets information about the specified attached data network. @@ -71,18 +73,16 @@ AttachedDataNetwork get( * @param packetCoreControlPlaneName The name of the packet core control plane. * @param packetCoreDataPlaneName The name of the packet core data plane. * @param attachedDataNetworkName The name of the attached 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 attached data network along with {@link Response}. + * @return information about the specified attached data network. */ - Response getWithResponse( + AttachedDataNetwork get( String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, - String attachedDataNetworkName, - Context context); + String attachedDataNetworkName); /** * Gets all the attached data networks associated with a packet core data plane. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AuthenticationType.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AuthenticationType.java new file mode 100644 index 0000000000000..056faff4be0d5 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AuthenticationType.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; + +/** How to authenticate users who access local diagnostics APIs. */ +public final class AuthenticationType extends ExpandableStringEnum { + /** Static value AAD for AuthenticationType. */ + public static final AuthenticationType AAD = fromString("AAD"); + + /** Static value Password for AuthenticationType. */ + public static final AuthenticationType PASSWORD = fromString("Password"); + + /** + * Creates or finds a AuthenticationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AuthenticationType. + */ + @JsonCreator + public static AuthenticationType fromString(String name) { + return fromString(name, AuthenticationType.class); + } + + /** + * Gets known AuthenticationType values. + * + * @return known AuthenticationType values. + */ + public static Collection values() { + return values(AuthenticationType.class); + } +} 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 index 7a784b4cb56b4..b143a49a2ba10 100644 --- 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 @@ -8,7 +8,7 @@ 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 Stack Edge device resource. */ @Fluent public final class AzureStackEdgeDeviceResourceId { /* @@ -17,6 +17,10 @@ public final class AzureStackEdgeDeviceResourceId { @JsonProperty(value = "id", required = true) private String id; + /** Creates an instance of AzureStackEdgeDeviceResourceId class. */ + public AzureStackEdgeDeviceResourceId() { + } + /** * Get the id property: Azure Stack Edge device resource ID. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AzureStackHciClusterResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AzureStackHciClusterResourceId.java new file mode 100644 index 0000000000000..d764dfafd44af --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/AzureStackHciClusterResourceId.java @@ -0,0 +1,59 @@ +// 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 Stack HCI cluster resource. */ +@Fluent +public final class AzureStackHciClusterResourceId { + /* + * Azure Stack HCI cluster resource ID. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** Creates an instance of AzureStackHciClusterResourceId class. */ + public AzureStackHciClusterResourceId() { + } + + /** + * Get the id property: Azure Stack HCI cluster resource ID. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Azure Stack HCI cluster resource ID. + * + * @param id the id value to set. + * @return the AzureStackHciClusterResourceId object itself. + */ + public AzureStackHciClusterResourceId 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 AzureStackHciClusterResourceId")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AzureStackHciClusterResourceId.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 index bc246bf13ddb5..051f4e8f32462 100644 --- 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 @@ -8,28 +8,31 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for BillingSku. */ +/** + * The SKU of the packet core control plane resource. The SKU list may change over time when a new SKU gets added or an + * exiting SKU gets removed. + */ public final class BillingSku extends ExpandableStringEnum { - /** Static value EvaluationPackage for BillingSku. */ - public static final BillingSku EVALUATION_PACKAGE = fromString("EvaluationPackage"); + /** Static value G0 for BillingSku. */ + public static final BillingSku G0 = fromString("G0"); - /** Static value FlagshipStarterPackage for BillingSku. */ - public static final BillingSku FLAGSHIP_STARTER_PACKAGE = fromString("FlagshipStarterPackage"); + /** Static value G1 for BillingSku. */ + public static final BillingSku G1 = fromString("G1"); - /** Static value EdgeSite2GBPS for BillingSku. */ - public static final BillingSku EDGE_SITE2GBPS = fromString("EdgeSite2GBPS"); + /** Static value G2 for BillingSku. */ + public static final BillingSku G2 = fromString("G2"); - /** Static value EdgeSite3GBPS for BillingSku. */ - public static final BillingSku EDGE_SITE3GBPS = fromString("EdgeSite3GBPS"); + /** Static value G3 for BillingSku. */ + public static final BillingSku G3 = fromString("G3"); - /** Static value EdgeSite4GBPS for BillingSku. */ - public static final BillingSku EDGE_SITE4GBPS = fromString("EdgeSite4GBPS"); + /** Static value G4 for BillingSku. */ + public static final BillingSku G4 = fromString("G4"); - /** Static value MediumPackage for BillingSku. */ - public static final BillingSku MEDIUM_PACKAGE = fromString("MediumPackage"); + /** Static value G5 for BillingSku. */ + public static final BillingSku G5 = fromString("G5"); - /** Static value LargePackage for BillingSku. */ - public static final BillingSku LARGE_PACKAGE = fromString("LargePackage"); + /** Static value G10 for BillingSku. */ + public static final BillingSku G10 = fromString("G10"); /** * Creates or finds a BillingSku from its string representation. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CertificateProvisioning.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CertificateProvisioning.java new file mode 100644 index 0000000000000..07bdc31561f93 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CertificateProvisioning.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.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Certificate provisioning state. */ +@Immutable +public final class CertificateProvisioning { + /* + * The certificate's provisioning state + */ + @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) + private CertificateProvisioningState state; + + /* + * Reason for certificate provisioning failure. + */ + @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY) + private String reason; + + /** Creates an instance of CertificateProvisioning class. */ + public CertificateProvisioning() { + } + + /** + * Get the state property: The certificate's provisioning state. + * + * @return the state value. + */ + public CertificateProvisioningState state() { + return this.state; + } + + /** + * Get the reason property: Reason for certificate provisioning failure. + * + * @return the reason value. + */ + public String reason() { + return this.reason; + } + + /** + * 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/CertificateProvisioningState.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CertificateProvisioningState.java new file mode 100644 index 0000000000000..bc9575a702b6a --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CertificateProvisioningState.java @@ -0,0 +1,41 @@ +// 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; + +/** The certificate's provisioning state. */ +public final class CertificateProvisioningState extends ExpandableStringEnum { + /** Static value NotProvisioned for CertificateProvisioningState. */ + public static final CertificateProvisioningState NOT_PROVISIONED = fromString("NotProvisioned"); + + /** Static value Provisioned for CertificateProvisioningState. */ + public static final CertificateProvisioningState PROVISIONED = fromString("Provisioned"); + + /** Static value Failed for CertificateProvisioningState. */ + public static final CertificateProvisioningState FAILED = fromString("Failed"); + + /** + * Creates or finds a CertificateProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding CertificateProvisioningState. + */ + @JsonCreator + public static CertificateProvisioningState fromString(String name) { + return fromString(name, CertificateProvisioningState.class); + } + + /** + * Gets known CertificateProvisioningState values. + * + * @return known CertificateProvisioningState values. + */ + public static Collection values() { + return values(CertificateProvisioningState.class); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CommonSimPropertiesFormat.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CommonSimPropertiesFormat.java new file mode 100644 index 0000000000000..3ea7ce98369ce --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/CommonSimPropertiesFormat.java @@ -0,0 +1,263 @@ +// 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.List; +import java.util.Map; + +/** Common SIM properties. */ +@Fluent +public class CommonSimPropertiesFormat { + /* + * The provisioning state of the SIM resource. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ProvisioningState provisioningState; + + /* + * The state of the SIM resource. + */ + @JsonProperty(value = "simState", access = JsonProperty.Access.WRITE_ONLY) + private SimState simState; + + /* + * A dictionary of sites to the provisioning state of this SIM on that site. + */ + @JsonProperty(value = "siteProvisioningState", access = JsonProperty.Access.WRITE_ONLY) + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map siteProvisioningState; + + /* + * The international mobile subscriber identity (IMSI) for the SIM. + */ + @JsonProperty(value = "internationalMobileSubscriberIdentity", required = true) + private String internationalMobileSubscriberIdentity; + + /* + * The integrated circuit card ID (ICCID) for the SIM. + */ + @JsonProperty(value = "integratedCircuitCardIdentifier") + private String integratedCircuitCardIdentifier; + + /* + * 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. + */ + @JsonProperty(value = "deviceType") + private String deviceType; + + /* + * The SIM policy used by this SIM. The SIM policy must be in the same location as the SIM. + */ + @JsonProperty(value = "simPolicy") + private SimPolicyResourceId simPolicy; + + /* + * 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}. + */ + @JsonProperty(value = "staticIpConfiguration") + private List staticIpConfiguration; + + /* + * The name of the SIM vendor who provided this SIM, if any. + */ + @JsonProperty(value = "vendorName", access = JsonProperty.Access.WRITE_ONLY) + private String vendorName; + + /* + * The public key fingerprint of the SIM vendor who provided this SIM, if any. + */ + @JsonProperty(value = "vendorKeyFingerprint", access = JsonProperty.Access.WRITE_ONLY) + private String vendorKeyFingerprint; + + /** Creates an instance of CommonSimPropertiesFormat class. */ + public CommonSimPropertiesFormat() { + } + + /** + * Get the provisioningState property: The provisioning state of the SIM resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the simState property: The state of the SIM resource. + * + * @return the simState value. + */ + public SimState simState() { + return this.simState; + } + + /** + * Get the siteProvisioningState property: A dictionary of sites to the provisioning state of this SIM on that site. + * + * @return the siteProvisioningState value. + */ + public Map siteProvisioningState() { + return this.siteProvisioningState; + } + + /** + * Get the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for + * the SIM. + * + * @return the internationalMobileSubscriberIdentity value. + */ + public String internationalMobileSubscriberIdentity() { + return this.internationalMobileSubscriberIdentity; + } + + /** + * Set the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for + * the SIM. + * + * @param internationalMobileSubscriberIdentity the internationalMobileSubscriberIdentity value to set. + * @return the CommonSimPropertiesFormat object itself. + */ + public CommonSimPropertiesFormat withInternationalMobileSubscriberIdentity( + String internationalMobileSubscriberIdentity) { + this.internationalMobileSubscriberIdentity = internationalMobileSubscriberIdentity; + return this; + } + + /** + * Get the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. + * + * @return the integratedCircuitCardIdentifier value. + */ + public String integratedCircuitCardIdentifier() { + return this.integratedCircuitCardIdentifier; + } + + /** + * Set the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. + * + * @param integratedCircuitCardIdentifier the integratedCircuitCardIdentifier value to set. + * @return the CommonSimPropertiesFormat object itself. + */ + public CommonSimPropertiesFormat withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier) { + this.integratedCircuitCardIdentifier = integratedCircuitCardIdentifier; + 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 + * this value. + * + * @return the deviceType value. + */ + public String deviceType() { + return this.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 + * this value. + * + * @param deviceType the deviceType value to set. + * @return the CommonSimPropertiesFormat object itself. + */ + public CommonSimPropertiesFormat withDeviceType(String deviceType) { + this.deviceType = deviceType; + return this; + } + + /** + * Get the simPolicy property: The SIM policy used by this SIM. The SIM policy must be in the same location as the + * SIM. + * + * @return the simPolicy value. + */ + public SimPolicyResourceId simPolicy() { + return this.simPolicy; + } + + /** + * Set the simPolicy property: The SIM policy used by this SIM. The SIM policy must be in the same location as the + * SIM. + * + * @param simPolicy the simPolicy value to set. + * @return the CommonSimPropertiesFormat object itself. + */ + public CommonSimPropertiesFormat withSimPolicy(SimPolicyResourceId simPolicy) { + this.simPolicy = simPolicy; + return this; + } + + /** + * 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. + */ + public List staticIpConfiguration() { + return this.staticIpConfiguration; + } + + /** + * 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. + * @return the CommonSimPropertiesFormat object itself. + */ + public CommonSimPropertiesFormat withStaticIpConfiguration(List staticIpConfiguration) { + this.staticIpConfiguration = staticIpConfiguration; + return this; + } + + /** + * Get the vendorName property: The name of the SIM vendor who provided this SIM, if any. + * + * @return the vendorName value. + */ + public String vendorName() { + return this.vendorName; + } + + /** + * Get the vendorKeyFingerprint property: The public key fingerprint of the SIM vendor who provided this SIM, if + * any. + * + * @return the vendorKeyFingerprint value. + */ + public String vendorKeyFingerprint() { + return this.vendorKeyFingerprint; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (internationalMobileSubscriberIdentity() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property internationalMobileSubscriberIdentity in model" + + " CommonSimPropertiesFormat")); + } + if (simPolicy() != null) { + simPolicy().validate(); + } + if (staticIpConfiguration() != null) { + staticIpConfiguration().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(CommonSimPropertiesFormat.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 index 471e65ec81b5d..e599da99a5194 100644 --- 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 @@ -17,6 +17,10 @@ public final class ConnectedClusterResourceId { @JsonProperty(value = "id", required = true) private String id; + /** Creates an instance of ConnectedClusterResourceId class. */ + public ConnectedClusterResourceId() { + } + /** * Get the id property: Azure Arc connected cluster resource ID. * 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 d1b60835f4c42..d9339eb3b760f 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 @@ -4,35 +4,48 @@ package com.azure.resourcemanager.mobilenetwork.models; -import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for CoreNetworkType. */ -public final class CoreNetworkType extends ExpandableStringEnum { - /** Static value 5GC for CoreNetworkType. */ - public static final CoreNetworkType FIVE_GC = fromString("5GC"); +/** The core network technology generation (5G core or EPC / 4G core). */ +public enum CoreNetworkType { + /** Enum value 5GC. */ + FIVE_GC("5GC"), - /** Static value EPC for CoreNetworkType. */ - public static final CoreNetworkType EPC = fromString("EPC"); + /** Enum value EPC. */ + EPC("EPC"); + + /** The actual serialized value for a CoreNetworkType instance. */ + private final String value; + + CoreNetworkType(String value) { + this.value = value; + } /** - * Creates or finds a CoreNetworkType from its string representation. + * Parses a serialized value to a CoreNetworkType instance. * - * @param name a name to look for. - * @return the corresponding CoreNetworkType. + * @param value the serialized value to parse. + * @return the parsed CoreNetworkType object, or null if unable to parse. */ @JsonCreator - public static CoreNetworkType fromString(String name) { - return fromString(name, CoreNetworkType.class); + public static CoreNetworkType fromString(String value) { + if (value == null) { + return null; + } + CoreNetworkType[] items = CoreNetworkType.values(); + for (CoreNetworkType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; } - /** - * Gets known CoreNetworkType values. - * - * @return known CoreNetworkType values. - */ - public static Collection values() { - return values(CoreNetworkType.class); + /** {@inheritDoc} */ + @JsonValue + @Override + public String toString() { + return this.value; } } 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 39a99aa543707..d691371242fbd 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 @@ -17,6 +17,10 @@ public final class CustomLocationResourceId { @JsonProperty(value = "id", required = true) private String id; + /** Creates an instance of CustomLocationResourceId class. */ + public CustomLocationResourceId() { + } + /** * Get the id property: Azure Arc custom location resource ID. * 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 51e89883b9c24..ef82f1c185678 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 @@ -13,83 +13,88 @@ @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. The data network must be in the same location as + * the SIM policy. */ @JsonProperty(value = "dataNetwork", required = true) private DataNetworkResourceId dataNetwork; /* - * Aggregate maximum bit rate across all non-GBR QoS flows of a given PDU - * session. See 3GPP TS23.501 section 5.7.2.6 for a full description of the - * Session-AMBR. + * Aggregate maximum bit rate across all non-GBR QoS flows of a given PDU session. See 3GPP TS23.501 section + * 5.7.2.6 for a full description of the Session-AMBR. */ @JsonProperty(value = "sessionAmbr", required = true) private Ambr sessionAmbr; /* - * 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 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. + * 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 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; /* - * Default QoS Flow allocation and retention priority (ARP) level. Flows - * with higher priority preempt flows with lower priority, if the settings - * of `preemptionCapability` and `preemptionVulnerability` allow it. 1 is - * the highest level of priority. If this field is not specified then `5qi` - * is used to derive the ARP value. See 3GPP TS23.501 section 5.7.2.2 for a - * full description of the ARP parameters. + * Default QoS Flow allocation and retention priority (ARP) level. Flows with higher priority preempt flows with + * lower priority, if the settings of `preemptionCapability` and `preemptionVulnerability` allow it. 1 is the + * highest level of priority. If this field is not specified then `5qi` is used to derive the ARP value. See 3GPP + * TS23.501 section 5.7.2.2 for a full description of the ARP parameters. */ @JsonProperty(value = "allocationAndRetentionPriorityLevel") private Integer allocationAndRetentionPriorityLevel; /* - * 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. + * 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. */ @JsonProperty(value = "preemptionCapability") private PreemptionCapability preemptionCapability; /* - * 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. + * 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. */ @JsonProperty(value = "preemptionVulnerability") private PreemptionVulnerability preemptionVulnerability; /* - * The default PDU session type, which is used if the UE does not request a - * specific session type. + * The default PDU session type, which is used if the UE does not request a specific session type. */ @JsonProperty(value = "defaultSessionType") private PduSessionType defaultSessionType; /* - * Allowed session types in addition to the default session type. Must not - * duplicate the default session type. + * 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 - * must not contain duplicate items and must contain at least one item. + * 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. The services must be in the same location as the SIM policy. */ @JsonProperty(value = "allowedServices", required = true) private List allowedServices; + /* + * The maximum number of downlink packets to buffer at the user plane for High Latency Communication - Extended + * Buffering. See 3GPP TS29.272 v15.10.0 section 7.3.188 for a full description. This maximum is not guaranteed + * because there is a internal limit on buffered packets across all PDU sessions. + */ + @JsonProperty(value = "maximumNumberOfBufferedPackets") + private Integer maximumNumberOfBufferedPackets; + + /** Creates an instance of DataNetworkConfiguration class. */ + public DataNetworkConfiguration() { + } + /** - * 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. The data network must + * be in the same location as the SIM policy. * * @return the dataNetwork value. */ @@ -98,7 +103,8 @@ 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. The data network must + * be in the same location as the SIM policy. * * @param dataNetwork the dataNetwork value to set. * @return the DataNetworkConfiguration object itself. @@ -282,7 +288,8 @@ public DataNetworkConfiguration withAdditionalAllowedSessionTypes( /** * 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. + * contain duplicate items and must contain at least one item. The services must be in the same location as the SIM + * policy. * * @return the allowedServices value. */ @@ -292,7 +299,8 @@ public List allowedServices() { /** * 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. + * contain duplicate items and must contain at least one item. The services must be in the same location as the SIM + * policy. * * @param allowedServices the allowedServices value to set. * @return the DataNetworkConfiguration object itself. @@ -302,6 +310,32 @@ public DataNetworkConfiguration withAllowedServices(List allo return this; } + /** + * Get the maximumNumberOfBufferedPackets property: The maximum number of downlink packets to buffer at the user + * plane for High Latency Communication - Extended Buffering. See 3GPP TS29.272 v15.10.0 section 7.3.188 for a full + * description. This maximum is not guaranteed because there is a internal limit on buffered packets across all PDU + * sessions. + * + * @return the maximumNumberOfBufferedPackets value. + */ + public Integer maximumNumberOfBufferedPackets() { + return this.maximumNumberOfBufferedPackets; + } + + /** + * Set the maximumNumberOfBufferedPackets property: The maximum number of downlink packets to buffer at the user + * plane for High Latency Communication - Extended Buffering. See 3GPP TS29.272 v15.10.0 section 7.3.188 for a full + * description. This maximum is not guaranteed because there is a internal limit on buffered packets across all PDU + * sessions. + * + * @param maximumNumberOfBufferedPackets the maximumNumberOfBufferedPackets value to set. + * @return the DataNetworkConfiguration object itself. + */ + public DataNetworkConfiguration withMaximumNumberOfBufferedPackets(Integer maximumNumberOfBufferedPackets) { + this.maximumNumberOfBufferedPackets = maximumNumberOfBufferedPackets; + return this; + } + /** * Validates the instance. * 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 6cb96840a86c6..35108f339966b 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 @@ -24,6 +24,10 @@ public final class DataNetworkListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of DataNetworkListResult class. */ + public DataNetworkListResult() { + } + /** * Get the value property: A list of data networks. * 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 d05eb44673978..5439c458542fb 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 @@ -17,6 +17,10 @@ public final class DataNetworkResourceId { @JsonProperty(value = "id", required = true) private String id; + /** Creates an instance of DataNetworkResourceId class. */ + public DataNetworkResourceId() { + } + /** * Get the id property: Data network resource ID. * 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 29af6a3d27bf4..04ca55f158dc7 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 @@ -41,12 +41,14 @@ public interface DataNetworks { * @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 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 data network. + * @return information about the specified data network along with {@link Response}. */ - DataNetwork get(String resourceGroupName, String mobileNetworkName, String dataNetworkName); + Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context); /** * Gets information about the specified data network. @@ -54,14 +56,12 @@ public interface DataNetworks { * @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 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 data network along with {@link Response}. + * @return information about the specified data network. */ - Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String dataNetworkName, Context context); + DataNetwork get(String resourceGroupName, String mobileNetworkName, String dataNetworkName); /** * Lists all data networks in the mobile network. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/EncryptedSimUploadList.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/EncryptedSimUploadList.java new file mode 100644 index 0000000000000..ec9c661480a0f --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/EncryptedSimUploadList.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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The SIMs to upload. The SIM credentials must be encrypted. */ +@Fluent +public final class EncryptedSimUploadList { + /* + * The upload file format version. + */ + @JsonProperty(value = "version", required = true) + private int version; + + /* + * An identifier for the Azure SIM onboarding public key used for encrypted upload. + */ + @JsonProperty(value = "azureKeyIdentifier", required = true) + private int azureKeyIdentifier; + + /* + * The fingerprint of the SIM vendor public key. The private counterpart is used for signing the encrypted + * transport key. + */ + @JsonProperty(value = "vendorKeyFingerprint", required = true) + private String vendorKeyFingerprint; + + /* + * The transport key used for encrypting SIM credentials, encrypted using the SIM onboarding public key. + */ + @JsonProperty(value = "encryptedTransportKey", required = true) + private String encryptedTransportKey; + + /* + * The encrypted transport key, signed using the SIM vendor private key. + */ + @JsonProperty(value = "signedTransportKey", required = true) + private String signedTransportKey; + + /* + * A list of SIMs to upload, with encrypted properties. + */ + @JsonProperty(value = "sims", required = true) + private List sims; + + /** Creates an instance of EncryptedSimUploadList class. */ + public EncryptedSimUploadList() { + } + + /** + * Get the version property: The upload file format version. + * + * @return the version value. + */ + public int version() { + return this.version; + } + + /** + * Set the version property: The upload file format version. + * + * @param version the version value to set. + * @return the EncryptedSimUploadList object itself. + */ + public EncryptedSimUploadList withVersion(int version) { + this.version = version; + return this; + } + + /** + * Get the azureKeyIdentifier property: An identifier for the Azure SIM onboarding public key used for encrypted + * upload. + * + * @return the azureKeyIdentifier value. + */ + public int azureKeyIdentifier() { + return this.azureKeyIdentifier; + } + + /** + * Set the azureKeyIdentifier property: An identifier for the Azure SIM onboarding public key used for encrypted + * upload. + * + * @param azureKeyIdentifier the azureKeyIdentifier value to set. + * @return the EncryptedSimUploadList object itself. + */ + public EncryptedSimUploadList withAzureKeyIdentifier(int azureKeyIdentifier) { + this.azureKeyIdentifier = azureKeyIdentifier; + return this; + } + + /** + * Get the vendorKeyFingerprint property: The fingerprint of the SIM vendor public key. The private counterpart is + * used for signing the encrypted transport key. + * + * @return the vendorKeyFingerprint value. + */ + public String vendorKeyFingerprint() { + return this.vendorKeyFingerprint; + } + + /** + * Set the vendorKeyFingerprint property: The fingerprint of the SIM vendor public key. The private counterpart is + * used for signing the encrypted transport key. + * + * @param vendorKeyFingerprint the vendorKeyFingerprint value to set. + * @return the EncryptedSimUploadList object itself. + */ + public EncryptedSimUploadList withVendorKeyFingerprint(String vendorKeyFingerprint) { + this.vendorKeyFingerprint = vendorKeyFingerprint; + return this; + } + + /** + * Get the encryptedTransportKey property: The transport key used for encrypting SIM credentials, encrypted using + * the SIM onboarding public key. + * + * @return the encryptedTransportKey value. + */ + public String encryptedTransportKey() { + return this.encryptedTransportKey; + } + + /** + * Set the encryptedTransportKey property: The transport key used for encrypting SIM credentials, encrypted using + * the SIM onboarding public key. + * + * @param encryptedTransportKey the encryptedTransportKey value to set. + * @return the EncryptedSimUploadList object itself. + */ + public EncryptedSimUploadList withEncryptedTransportKey(String encryptedTransportKey) { + this.encryptedTransportKey = encryptedTransportKey; + return this; + } + + /** + * Get the signedTransportKey property: The encrypted transport key, signed using the SIM vendor private key. + * + * @return the signedTransportKey value. + */ + public String signedTransportKey() { + return this.signedTransportKey; + } + + /** + * Set the signedTransportKey property: The encrypted transport key, signed using the SIM vendor private key. + * + * @param signedTransportKey the signedTransportKey value to set. + * @return the EncryptedSimUploadList object itself. + */ + public EncryptedSimUploadList withSignedTransportKey(String signedTransportKey) { + this.signedTransportKey = signedTransportKey; + return this; + } + + /** + * Get the sims property: A list of SIMs to upload, with encrypted properties. + * + * @return the sims value. + */ + public List sims() { + return this.sims; + } + + /** + * Set the sims property: A list of SIMs to upload, with encrypted properties. + * + * @param sims the sims value to set. + * @return the EncryptedSimUploadList object itself. + */ + public EncryptedSimUploadList withSims(List sims) { + this.sims = sims; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (vendorKeyFingerprint() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property vendorKeyFingerprint in model EncryptedSimUploadList")); + } + if (encryptedTransportKey() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property encryptedTransportKey in model EncryptedSimUploadList")); + } + if (signedTransportKey() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property signedTransportKey in model EncryptedSimUploadList")); + } + if (sims() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property sims in model EncryptedSimUploadList")); + } else { + sims().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(EncryptedSimUploadList.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/HttpsServerCertificate.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/HttpsServerCertificate.java new file mode 100644 index 0000000000000..3e0270c295e9e --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/HttpsServerCertificate.java @@ -0,0 +1,79 @@ +// 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; + +/** HTTPS server certificate configuration. */ +@Fluent +public final class HttpsServerCertificate { + /* + * The certificate URL, unversioned. For example: https://contosovault.vault.azure.net/certificates/ingress. + */ + @JsonProperty(value = "certificateUrl", required = true) + private String certificateUrl; + + /* + * The provisioning state of the certificate. + */ + @JsonProperty(value = "provisioning", access = JsonProperty.Access.WRITE_ONLY) + private CertificateProvisioning provisioning; + + /** Creates an instance of HttpsServerCertificate class. */ + public HttpsServerCertificate() { + } + + /** + * 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 HttpsServerCertificate object itself. + */ + public HttpsServerCertificate withCertificateUrl(String certificateUrl) { + this.certificateUrl = certificateUrl; + return this; + } + + /** + * Get the provisioning property: The provisioning state of the certificate. + * + * @return the provisioning value. + */ + public CertificateProvisioning provisioning() { + return this.provisioning; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (certificateUrl() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property certificateUrl in model HttpsServerCertificate")); + } + if (provisioning() != null) { + provisioning().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(HttpsServerCertificate.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Installation.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Installation.java new file mode 100644 index 0000000000000..03b471947667a --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Installation.java @@ -0,0 +1,79 @@ +// 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 installation state of the packet core. */ +@Fluent +public final class Installation { + /* + * Installation state + */ + @JsonProperty(value = "state") + private InstallationState state; + + /* + * A reference to an in-progress installation operation + */ + @JsonProperty(value = "operation") + private AsyncOperationId operation; + + /** Creates an instance of Installation class. */ + public Installation() { + } + + /** + * Get the state property: Installation state. + * + * @return the state value. + */ + public InstallationState state() { + return this.state; + } + + /** + * Set the state property: Installation state. + * + * @param state the state value to set. + * @return the Installation object itself. + */ + public Installation withState(InstallationState state) { + this.state = state; + return this; + } + + /** + * Get the operation property: A reference to an in-progress installation operation. + * + * @return the operation value. + */ + public AsyncOperationId operation() { + return this.operation; + } + + /** + * Set the operation property: A reference to an in-progress installation operation. + * + * @param operation the operation value to set. + * @return the Installation object itself. + */ + public Installation withOperation(AsyncOperationId operation) { + this.operation = operation; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (operation() != null) { + operation().validate(); + } + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InstallationState.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InstallationState.java new file mode 100644 index 0000000000000..e473c2bd76a24 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/InstallationState.java @@ -0,0 +1,59 @@ +// 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; + +/** The installation state of the packet core. */ +public final class InstallationState extends ExpandableStringEnum { + /** Static value Uninstalled for InstallationState. */ + public static final InstallationState UNINSTALLED = fromString("Uninstalled"); + + /** Static value Installing for InstallationState. */ + public static final InstallationState INSTALLING = fromString("Installing"); + + /** Static value Installed for InstallationState. */ + public static final InstallationState INSTALLED = fromString("Installed"); + + /** Static value Updating for InstallationState. */ + public static final InstallationState UPDATING = fromString("Updating"); + + /** Static value Upgrading for InstallationState. */ + public static final InstallationState UPGRADING = fromString("Upgrading"); + + /** Static value Uninstalling for InstallationState. */ + public static final InstallationState UNINSTALLING = fromString("Uninstalling"); + + /** Static value Reinstalling for InstallationState. */ + public static final InstallationState REINSTALLING = fromString("Reinstalling"); + + /** Static value RollingBack for InstallationState. */ + public static final InstallationState ROLLING_BACK = fromString("RollingBack"); + + /** Static value Failed for InstallationState. */ + public static final InstallationState FAILED = fromString("Failed"); + + /** + * Creates or finds a InstallationState from its string representation. + * + * @param name a name to look for. + * @return the corresponding InstallationState. + */ + @JsonCreator + public static InstallationState fromString(String name) { + return fromString(name, InstallationState.class); + } + + /** + * Gets known InstallationState values. + * + * @return known InstallationState values. + */ + public static Collection values() { + return values(InstallationState.class); + } +} 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 e93eadedf1d42..37e04f353f253 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 @@ -11,8 +11,8 @@ @Fluent public final class InterfaceProperties { /* - * The logical name for this interface. This should match one of the - * interfaces configured on your Azure Stack Edge device. + * The logical name for this interface. This should match one of the interfaces configured on your Azure Stack Edge + * device. */ @JsonProperty(value = "name") private String name; @@ -35,6 +35,10 @@ public final class InterfaceProperties { @JsonProperty(value = "ipv4Gateway") private String ipv4Gateway; + /** Creates an instance of InterfaceProperties class. */ + public InterfaceProperties() { + } + /** * Get the name property: The logical name for this interface. This should match one of the interfaces configured on * your Azure Stack Edge device. 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 deleted file mode 100644 index d6c7b244d10dd..0000000000000 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/KeyVaultCertificate.java +++ /dev/null @@ -1,49 +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.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 index 30a7c3cc2e1ea..a23c12886a6df 100644 --- 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 @@ -11,12 +11,15 @@ @Fluent public final class KeyVaultKey { /* - * The key URL, unversioned. For example: - * https://contosovault.vault.azure.net/keys/azureKey. + * The key URL, unversioned. For example: https://contosovault.vault.azure.net/keys/azureKey. */ @JsonProperty(value = "keyUrl") private String keyUrl; + /** Creates an instance of KeyVaultKey class. */ + public KeyVaultKey() { + } + /** * Get the keyUrl property: The key URL, unversioned. For example: * https://contosovault.vault.azure.net/keys/azureKey. 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 index b1e02544e33b5..71c283c7cf4a6 100644 --- 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 @@ -5,17 +5,47 @@ 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 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. + * How to authenticate users who access local diagnostics APIs. + */ + @JsonProperty(value = "authenticationType", required = true) + private AuthenticationType authenticationType; + + /* + * The HTTPS server TLS certificate used to secure local access to diagnostics. */ @JsonProperty(value = "httpsServerCertificate") - private KeyVaultCertificate httpsServerCertificate; + private HttpsServerCertificate httpsServerCertificate; + + /** Creates an instance of LocalDiagnosticsAccessConfiguration class. */ + public LocalDiagnosticsAccessConfiguration() { + } + + /** + * Get the authenticationType property: How to authenticate users who access local diagnostics APIs. + * + * @return the authenticationType value. + */ + public AuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType property: How to authenticate users who access local diagnostics APIs. + * + * @param authenticationType the authenticationType value to set. + * @return the LocalDiagnosticsAccessConfiguration object itself. + */ + public LocalDiagnosticsAccessConfiguration withAuthenticationType(AuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } /** * Get the httpsServerCertificate property: The HTTPS server TLS certificate used to secure local access to @@ -23,7 +53,7 @@ public final class LocalDiagnosticsAccessConfiguration { * * @return the httpsServerCertificate value. */ - public KeyVaultCertificate httpsServerCertificate() { + public HttpsServerCertificate httpsServerCertificate() { return this.httpsServerCertificate; } @@ -34,7 +64,8 @@ public KeyVaultCertificate httpsServerCertificate() { * @param httpsServerCertificate the httpsServerCertificate value to set. * @return the LocalDiagnosticsAccessConfiguration object itself. */ - public LocalDiagnosticsAccessConfiguration withHttpsServerCertificate(KeyVaultCertificate httpsServerCertificate) { + public LocalDiagnosticsAccessConfiguration withHttpsServerCertificate( + HttpsServerCertificate httpsServerCertificate) { this.httpsServerCertificate = httpsServerCertificate; return this; } @@ -45,8 +76,16 @@ public LocalDiagnosticsAccessConfiguration withHttpsServerCertificate(KeyVaultCe * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (authenticationType() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property authenticationType in model LocalDiagnosticsAccessConfiguration")); + } if (httpsServerCertificate() != null) { httpsServerCertificate().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(LocalDiagnosticsAccessConfiguration.class); } 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 index 8ea776ec784cb..3a9489c432ef5 100644 --- 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 @@ -15,30 +15,28 @@ @Fluent public class ManagedServiceIdentity { /* - * The service principal ID of the system assigned identity. This property - * will only be provided for a system assigned identity. + * 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. + * 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). + * 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: + * 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. */ @@ -46,6 +44,10 @@ public class ManagedServiceIdentity { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map userAssignedIdentities; + /** Creates an instance of ManagedServiceIdentity class. */ + public ManagedServiceIdentity() { + } + /** * Get the principalId property: The service principal ID of the system assigned identity. This property will only * be provided for a system assigned identity. 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 index 9c48e82494834..44916d8b76d37 100644 --- 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ManagedServiceIdentityType. */ +/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ public final class ManagedServiceIdentityType extends ExpandableStringEnum { /** Static value None for ManagedServiceIdentityType. */ public static final ManagedServiceIdentityType NONE = fromString("None"); 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 88f21c33ae96c..ea38c1271844d 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 @@ -245,24 +245,4 @@ interface WithTags { * @return the refreshed resource. */ MobileNetwork refresh(Context context); - - /** - * 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. - */ - SimIdListResult listSimIds(); - - /** - * 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. - */ - SimIdListResult listSimIds(Context context); } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkListResult.java index 0c316b48d86e6..3d83e4571369d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/MobileNetworkListResult.java @@ -24,6 +24,10 @@ public final class MobileNetworkListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of MobileNetworkListResult class. */ + public MobileNetworkListResult() { + } + /** * Get the value property: A list of mobile networks in a resource group. * 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 9cf8a416d9994..8d093d0eae8ef 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 @@ -17,6 +17,10 @@ public final class MobileNetworkResourceId { @JsonProperty(value = "id", required = true) private String id; + /** Creates an instance of MobileNetworkResourceId class. */ + public MobileNetworkResourceId() { + } + /** * Get the id property: Mobile network resource ID. * 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 8e3d109ca7bc0..2fdaec6262f4e 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 @@ -38,26 +38,26 @@ public interface MobileNetworks { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the 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 information about the specified mobile network. + * @return information about the specified mobile network along with {@link Response}. */ - MobileNetwork getByResourceGroup(String resourceGroupName, String mobileNetworkName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String mobileNetworkName, Context context); /** * Gets information about the specified mobile network. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the 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 information about the specified mobile network along with {@link Response}. + * @return information about the specified mobile network. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String mobileNetworkName, Context context); + MobileNetwork getByResourceGroup(String resourceGroupName, String mobileNetworkName); /** * Lists all the mobile networks in a subscription. @@ -102,31 +102,6 @@ Response getByResourceGroupWithResponse( */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); - /** - * 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. - */ - SimIdListResult listSimIds(String resourceGroupName, String mobileNetworkName); - - /** - * 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. - * @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. - */ - SimIdListResult listSimIds(String resourceGroupName, String mobileNetworkName, Context context); - /** * Gets information about the specified mobile network. * 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 d8b51f8b6c676..eb447fe8da512 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 @@ -17,40 +17,38 @@ public final class NaptConfiguration { private NaptEnabled enabled; /* - * 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 - - * 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.) + * 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 - 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; /* - * The minimum time (in seconds) that will pass before a port that was used - * by a closed pinhole can be recycled for use by another pinhole. All hold - * times must be minimum 1 second. + * The minimum time (in seconds) that will pass before a port that was used by a closed pinhole can be recycled for + * use by another pinhole. All hold times must be at least 1 second. */ @JsonProperty(value = "portReuseHoldTime") private PortReuseHoldTimes portReuseHoldTime; /* - * Maximum number of UDP and TCP pinholes that can be open simultaneously - * on the core interface. For 5G networks, this is the N6 interface. For 4G - * networks, this is the SGi interface. + * Maximum number of UDP and TCP pinholes that can be open simultaneously 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; /* - * Expiry times of inactive NAPT pinholes, in seconds. All timers must be - * at least 1 second. + * Expiry times of inactive NAPT pinholes, in seconds. All timers must be at least 1 second. */ @JsonProperty(value = "pinholeTimeouts") private PinholeTimeouts pinholeTimeouts; + /** Creates an instance of NaptConfiguration class. */ + public NaptConfiguration() { + } + /** * Get the enabled property: Whether NAPT is enabled for connections to this attached data network. * @@ -97,7 +95,7 @@ public NaptConfiguration withPortRange(PortRange portRange) { /** * Get the portReuseHoldTime property: The minimum time (in seconds) that will pass before a port that was used by a - * closed pinhole can be recycled for use by another pinhole. All hold times must be minimum 1 second. + * closed pinhole can be recycled for use by another pinhole. All hold times must be at least 1 second. * * @return the portReuseHoldTime value. */ @@ -107,7 +105,7 @@ public PortReuseHoldTimes portReuseHoldTime() { /** * Set the portReuseHoldTime property: The minimum time (in seconds) that will pass before a port that was used by a - * closed pinhole can be recycled for use by another pinhole. All hold times must be minimum 1 second. + * closed pinhole can be recycled for use by another pinhole. All hold times must be at least 1 second. * * @param portReuseHoldTime the portReuseHoldTime 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 dc6b52414cff5..8aef47d630edb 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for NaptEnabled. */ +/** Whether network address and port translation is enabled. */ public final class NaptEnabled extends ExpandableStringEnum { /** Static value Enabled for NaptEnabled. */ public static final NaptEnabled ENABLED = fromString("Enabled"); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ObsoleteVersion.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ObsoleteVersion.java new file mode 100644 index 0000000000000..5ef9e4786fe21 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/ObsoleteVersion.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; + +/** Indicates whether this version is obsolete. */ +public final class ObsoleteVersion extends ExpandableStringEnum { + /** Static value Obsolete for ObsoleteVersion. */ + public static final ObsoleteVersion OBSOLETE = fromString("Obsolete"); + + /** Static value NotObsolete for ObsoleteVersion. */ + public static final ObsoleteVersion NOT_OBSOLETE = fromString("NotObsolete"); + + /** + * Creates or finds a ObsoleteVersion from its string representation. + * + * @param name a name to look for. + * @return the corresponding ObsoleteVersion. + */ + @JsonCreator + public static ObsoleteVersion fromString(String name) { + return fromString(name, ObsoleteVersion.class); + } + + /** + * Gets known ObsoleteVersion values. + * + * @return known ObsoleteVersion values. + */ + public static Collection values() { + return values(ObsoleteVersion.class); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationDisplay.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationDisplay.java index 9450b853b8cb4..ce91ca12f94d1 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationDisplay.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationDisplay.java @@ -17,8 +17,7 @@ public final class OperationDisplay { private String provider; /* - * Resource on which the operation is performed: Registration definition, - * registration assignment etc. + * Resource on which the operation is performed: Registration definition, registration assignment etc. */ @JsonProperty(value = "resource") private String resource; @@ -35,6 +34,10 @@ public final class OperationDisplay { @JsonProperty(value = "description") private String description; + /** Creates an instance of OperationDisplay class. */ + public OperationDisplay() { + } + /** * Get the provider property: Service provider: Microsoft.MobileNetwork. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationList.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationList.java index 370b1cbe7c4b7..95fab3006121e 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationList.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/OperationList.java @@ -24,6 +24,10 @@ public final class OperationList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of OperationList class. */ + public OperationList() { + } + /** * Get the value property: List of Microsoft.MobileNetwork operations. * 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 588e64cbd3ced..189ac894ee360 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 @@ -8,6 +8,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreControlPlaneInner; +import java.util.List; import java.util.Map; /** An immutable client-side representation of PacketCoreControlPlane. */ @@ -69,11 +70,19 @@ public interface PacketCoreControlPlane { ProvisioningState provisioningState(); /** - * Gets the mobileNetwork property: Mobile network in which this packet core control plane is deployed. + * Gets the installation property: The installation state of the packet core control plane resource. * - * @return the mobileNetwork value. + * @return the installation value. */ - MobileNetworkResourceId mobileNetwork(); + Installation installation(); + + /** + * Gets the sites property: Site(s) under which this packet core control plane should be deployed. The sites must be + * in the same location as the packet core control plane. + * + * @return the sites value. + */ + List sites(); /** * Gets the platform property: The platform where the packet core is deployed. @@ -96,6 +105,14 @@ public interface PacketCoreControlPlane { */ String version(); + /** + * Gets the rollbackVersion property: The previous version of the packet core software that was deployed. Used when + * performing the rollback action. + * + * @return the rollbackVersion value. + */ + String rollbackVersion(); + /** * 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. @@ -112,6 +129,15 @@ public interface PacketCoreControlPlane { */ BillingSku sku(); + /** + * Gets the ueMtu property: The MTU (in bytes) signaled to the UE. The same MTU is set on the user plane data links + * for all data networks. The MTU set on the user plane access link is calculated to be 60 bytes greater than this + * value to allow for GTP encapsulation. + * + * @return the ueMtu value. + */ + Integer ueMtu(); + /** * Gets the localDiagnosticsAccess property: The kubernetes ingress configuration to control access to packet core * diagnostics over local APIs. @@ -161,9 +187,11 @@ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, - DefinitionStages.WithMobileNetwork, + DefinitionStages.WithSites, + DefinitionStages.WithPlatform, DefinitionStages.WithControlPlaneAccessInterface, DefinitionStages.WithSku, + DefinitionStages.WithLocalDiagnosticsAccess, DefinitionStages.WithCreate { } /** The PacketCoreControlPlane definition stages. */ @@ -197,18 +225,29 @@ interface WithResourceGroup { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ - WithMobileNetwork withExistingResourceGroup(String resourceGroupName); + WithSites withExistingResourceGroup(String resourceGroupName); } - /** The stage of the PacketCoreControlPlane definition allowing to specify mobileNetwork. */ - interface WithMobileNetwork { + /** The stage of the PacketCoreControlPlane definition allowing to specify sites. */ + interface WithSites { /** - * Specifies the mobileNetwork property: Mobile network in which this packet core control plane is - * deployed.. + * Specifies the sites property: Site(s) under which this packet core control plane should be deployed. The + * sites must be in the same location as the packet core control plane.. * - * @param mobileNetwork Mobile network in which this packet core control plane is deployed. + * @param sites Site(s) under which this packet core control plane should be deployed. The sites must be in + * the same location as the packet core control plane. * @return the next definition stage. */ - WithControlPlaneAccessInterface withMobileNetwork(MobileNetworkResourceId mobileNetwork); + WithPlatform withSites(List sites); + } + /** The stage of the PacketCoreControlPlane definition allowing to specify platform. */ + interface WithPlatform { + /** + * Specifies the platform property: The platform where the packet core is deployed.. + * + * @param platform The platform where the packet core is deployed. + * @return the next definition stage. + */ + WithControlPlaneAccessInterface withPlatform(PlatformConfiguration platform); } /** The stage of the PacketCoreControlPlane definition allowing to specify controlPlaneAccessInterface. */ interface WithControlPlaneAccessInterface { @@ -232,7 +271,19 @@ interface WithSku { * deployment. * @return the next definition stage. */ - WithCreate withSku(BillingSku sku); + WithLocalDiagnosticsAccess withSku(BillingSku sku); + } + /** 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 which contains all the minimum required properties for the @@ -241,10 +292,9 @@ interface WithSku { interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, - DefinitionStages.WithPlatform, DefinitionStages.WithCoreNetworkTechnology, DefinitionStages.WithVersion, - DefinitionStages.WithLocalDiagnosticsAccess, + DefinitionStages.WithUeMtu, DefinitionStages.WithInteropSettings { /** * Executes the create request. @@ -282,16 +332,6 @@ interface WithIdentity { */ WithCreate withIdentity(ManagedServiceIdentity identity); } - /** The stage of the PacketCoreControlPlane definition allowing to specify platform. */ - interface WithPlatform { - /** - * Specifies the platform property: The platform where the packet core is deployed.. - * - * @param platform The platform where the packet core is deployed. - * @return the next definition stage. - */ - WithCreate withPlatform(PlatformConfiguration platform); - } /** The stage of the PacketCoreControlPlane definition allowing to specify coreNetworkTechnology. */ interface WithCoreNetworkTechnology { /** @@ -313,17 +353,19 @@ interface WithVersion { */ WithCreate withVersion(String version); } - /** The stage of the PacketCoreControlPlane definition allowing to specify localDiagnosticsAccess. */ - interface WithLocalDiagnosticsAccess { + /** The stage of the PacketCoreControlPlane definition allowing to specify ueMtu. */ + interface WithUeMtu { /** - * Specifies the localDiagnosticsAccess property: The kubernetes ingress configuration to control access to - * packet core diagnostics over local APIs.. + * Specifies the ueMtu property: The MTU (in bytes) signaled to the UE. The same MTU is set on the user + * plane data links for all data networks. The MTU set on the user plane access link is calculated to be 60 + * bytes greater than this value to allow for GTP encapsulation.. * - * @param localDiagnosticsAccess The kubernetes ingress configuration to control access to packet core - * diagnostics over local APIs. + * @param ueMtu The MTU (in bytes) signaled to the UE. The same MTU is set on the user plane data links for + * all data networks. The MTU set on the user plane access link is calculated to be 60 bytes greater + * than this value to allow for GTP encapsulation. * @return the next definition stage. */ - WithCreate withLocalDiagnosticsAccess(LocalDiagnosticsAccessConfiguration localDiagnosticsAccess); + WithCreate withUeMtu(Integer ueMtu); } /** The stage of the PacketCoreControlPlane definition allowing to specify interopSettings. */ interface WithInteropSettings { diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneCollectDiagnosticsPackage.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneCollectDiagnosticsPackage.java new file mode 100644 index 0000000000000..e18ea1fd796ce --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneCollectDiagnosticsPackage.java @@ -0,0 +1,60 @@ +// 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; + +/** Packet core control plane collect diagnostics package options. */ +@Fluent +public final class PacketCoreControlPlaneCollectDiagnosticsPackage { + /* + * The Storage Account Blob URL to upload the diagnostics package to. + */ + @JsonProperty(value = "storageAccountBlobUrl", required = true) + private String storageAccountBlobUrl; + + /** Creates an instance of PacketCoreControlPlaneCollectDiagnosticsPackage class. */ + public PacketCoreControlPlaneCollectDiagnosticsPackage() { + } + + /** + * Get the storageAccountBlobUrl property: The Storage Account Blob URL to upload the diagnostics package to. + * + * @return the storageAccountBlobUrl value. + */ + public String storageAccountBlobUrl() { + return this.storageAccountBlobUrl; + } + + /** + * Set the storageAccountBlobUrl property: The Storage Account Blob URL to upload the diagnostics package to. + * + * @param storageAccountBlobUrl the storageAccountBlobUrl value to set. + * @return the PacketCoreControlPlaneCollectDiagnosticsPackage object itself. + */ + public PacketCoreControlPlaneCollectDiagnosticsPackage withStorageAccountBlobUrl(String storageAccountBlobUrl) { + this.storageAccountBlobUrl = storageAccountBlobUrl; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (storageAccountBlobUrl() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property storageAccountBlobUrl in model" + + " PacketCoreControlPlaneCollectDiagnosticsPackage")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(PacketCoreControlPlaneCollectDiagnosticsPackage.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneListResult.java index 0940fbc04c90d..05b50b5d91468 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneListResult.java @@ -24,6 +24,10 @@ public final class PacketCoreControlPlaneListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of PacketCoreControlPlaneListResult class. */ + public PacketCoreControlPlaneListResult() { + } + /** * Get the value property: A list of packet core control planes in a resource group. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneOperations.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneOperations.java new file mode 100644 index 0000000000000..065a8c6f0a70b --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneOperations.java @@ -0,0 +1,100 @@ +// 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.Context; + +/** Resource collection API of PacketCoreControlPlaneOperations. */ +public interface PacketCoreControlPlaneOperations { + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + AsyncOperationStatus rollback(String resourceGroupName, String packetCoreControlPlaneName); + + /** + * Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple + * consecutive rollbacks are not possible. This action may cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + AsyncOperationStatus rollback(String resourceGroupName, String packetCoreControlPlaneName, Context context); + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + AsyncOperationStatus reinstall(String resourceGroupName, String packetCoreControlPlaneName); + + /** + * Reinstall the specified packet core control plane. This action will remove any transaction state from the packet + * core to return it to a known state. This action will cause a service outage. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 current status of an async operation. + */ + AsyncOperationStatus reinstall(String resourceGroupName, String packetCoreControlPlaneName, Context context); + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 current status of an async operation. + */ + AsyncOperationStatus collectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters); + + /** + * Collect a diagnostics package for the specified packet core control plane. This action will upload the + * diagnostics to a storage account. + * + * @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 the packet core control plane collect diagnostics package 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 current status of an async operation. + */ + AsyncOperationStatus collectDiagnosticsPackage( + String resourceGroupName, + String packetCoreControlPlaneName, + PacketCoreControlPlaneCollectDiagnosticsPackage parameters, + Context context); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersion.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersion.java index 34e9417b6a129..8862ddde51167 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersion.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersion.java @@ -6,6 +6,7 @@ import com.azure.core.management.SystemData; import com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreControlPlaneVersionInner; +import java.util.List; /** An immutable client-side representation of PacketCoreControlPlaneVersion. */ public interface PacketCoreControlPlaneVersion { @@ -45,19 +46,11 @@ public interface PacketCoreControlPlaneVersion { ProvisioningState provisioningState(); /** - * Gets the versionState property: The state of this packet core control plane version. + * Gets the platforms property: Platform specific packet core control plane version properties. * - * @return the versionState value. + * @return the platforms value. */ - VersionState versionState(); - - /** - * Gets the recommendedVersion property: Indicates whether this is the recommended version to use for new packet - * core control plane deployments. - * - * @return the recommendedVersion value. - */ - RecommendedVersion recommendedVersion(); + List platforms(); /** * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.PacketCoreControlPlaneVersionInner object. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersionListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersionListResult.java index 3dca9f408c547..a7ce419c2a719 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersionListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersionListResult.java @@ -24,6 +24,10 @@ public final class PacketCoreControlPlaneVersionListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of PacketCoreControlPlaneVersionListResult class. */ + public PacketCoreControlPlaneVersionListResult() { + } + /** * Get the value property: A list of supported packet core control plane versions. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersions.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersions.java index 7b38cc17d589b..b08cc547859f9 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersions.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreControlPlaneVersions.java @@ -14,24 +14,24 @@ public interface PacketCoreControlPlaneVersions { * Gets information about the specified packet core control plane version. * * @param versionName The name of the packet core control plane version. + * @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 packet core control plane version. + * @return information about the specified packet core control plane version along with {@link Response}. */ - PacketCoreControlPlaneVersion get(String versionName); + Response getWithResponse(String versionName, Context context); /** * Gets information about the specified packet core control plane version. * * @param versionName The name of the packet core control plane version. - * @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 packet core control plane version along with {@link Response}. + * @return information about the specified packet core control plane version. */ - Response getWithResponse(String versionName, Context context); + PacketCoreControlPlaneVersion get(String versionName); /** * Lists all supported packet core control planes versions. @@ -41,7 +41,7 @@ public interface PacketCoreControlPlaneVersions { * @return response for packet core control plane version API service call as paginated response with {@link * PagedIterable}. */ - PagedIterable listByResourceGroup(); + PagedIterable list(); /** * Lists all supported packet core control planes versions. @@ -53,5 +53,5 @@ public interface PacketCoreControlPlaneVersions { * @return response for packet core control plane version API service call as paginated response with {@link * PagedIterable}. */ - PagedIterable listByResourceGroup(Context context); + PagedIterable list(Context context); } 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 472b96a7ef80c..80b1e4e6e834f 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 @@ -38,26 +38,26 @@ public interface PacketCoreControlPlanes { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param packetCoreControlPlaneName The name of the packet core control plane. + * @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 packet core control plane. + * @return information about the specified packet core control plane along with {@link Response}. */ - PacketCoreControlPlane getByResourceGroup(String resourceGroupName, String packetCoreControlPlaneName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String packetCoreControlPlaneName, Context context); /** * Gets information about the specified 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. - * @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 packet core control plane along with {@link Response}. + * @return information about the specified packet core control plane. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String packetCoreControlPlaneName, Context context); + PacketCoreControlPlane getByResourceGroup(String resourceGroupName, String packetCoreControlPlaneName); /** * Lists all the packet core control planes in a subscription. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlaneListResult.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlaneListResult.java index 98f1689fc8b17..fae3b1bf513e9 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlaneListResult.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PacketCoreDataPlaneListResult.java @@ -24,6 +24,10 @@ public final class PacketCoreDataPlaneListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of PacketCoreDataPlaneListResult class. */ + public PacketCoreDataPlaneListResult() { + } + /** * Get the value property: A list of packet core data planes in a resource group. * 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 3ab38250412a5..21d38f9b6fa6d 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 @@ -42,13 +42,14 @@ void delete( * @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 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 packet core data plane. + * @return information about the specified packet core data plane along with {@link Response}. */ - PacketCoreDataPlane get( - String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName); + Response getWithResponse( + String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, Context context); /** * Gets information about the specified packet core data plane. @@ -56,14 +57,13 @@ PacketCoreDataPlane get( * @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 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 packet core data plane along with {@link Response}. + * @return information about the specified packet core data plane. */ - Response getWithResponse( - String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName, Context context); + PacketCoreDataPlane get( + String resourceGroupName, String packetCoreControlPlaneName, String packetCoreDataPlaneName); /** * Lists all the packet core data planes associated with a 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 8518b68820b35..8edc8af7de9af 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 @@ -13,32 +13,29 @@ @Fluent public final class PccRuleConfiguration { /* - * 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`. + * 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`. */ @JsonProperty(value = "ruleName", required = true) private String ruleName; /* - * 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. + * 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 parent service will define the QoS settings. + * The QoS policy to use for packets matching this rule. If this field is null then the parent service will define + * the QoS settings. */ @JsonProperty(value = "ruleQosPolicy") private PccRuleQosPolicy ruleQosPolicy; /* - * Determines whether flows that match this data flow policy rule are - * permitted. + * Determines whether flows that match this data flow policy rule are permitted. */ @JsonProperty(value = "trafficControl") private TrafficControlPermission trafficControl; @@ -49,6 +46,10 @@ public final class PccRuleConfiguration { @JsonProperty(value = "serviceDataFlowTemplates", required = true) private List serviceDataFlowTemplates; + /** Creates an instance of PccRuleConfiguration class. */ + public PccRuleConfiguration() { + } + /** * 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`. 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 fd91f99aa23c4..e58f4c89ecea4 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 @@ -11,14 +11,17 @@ @Fluent public final class PccRuleQosPolicy extends QosPolicy { /* - * 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. + * 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; + /** Creates an instance of PccRuleQosPolicy class. */ + public PccRuleQosPolicy() { + } + /** * 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 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 c9f0ece4d23cd..6ef12586639d7 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PduSessionType. */ +/** PDU session type (IPv4/IPv6). */ public final class PduSessionType extends ExpandableStringEnum { /** Static value IPv4 for PduSessionType. */ public static final PduSessionType IPV4 = fromString("IPv4"); 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 f5414afbb84dc..149cb771724da 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 @@ -11,29 +11,29 @@ @Fluent public final class PinholeTimeouts { /* - * Pinhole timeout for TCP pinholes in seconds. Default for TCP is 2 hours - * 4 minutes, as per RFC 5382 section 5. + * Pinhole timeout for TCP pinholes in seconds. Default for TCP is 3 minutes. */ @JsonProperty(value = "tcp") private Integer tcp; /* - * Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 - * minutes, as per RFC 4787 section 4.3. + * Pinhole timeout for UDP pinholes in seconds. Default for UDP is 30 seconds. */ @JsonProperty(value = "udp") private Integer udp; /* - * Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is - * 60 seconds, as per RFC 5508 section 3.2. + * Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 30 seconds. */ @JsonProperty(value = "icmp") private Integer icmp; + /** Creates an instance of PinholeTimeouts class. */ + public PinholeTimeouts() { + } + /** - * 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. + * Get the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 3 minutes. * * @return the tcp value. */ @@ -42,8 +42,7 @@ public Integer tcp() { } /** - * 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. + * Set the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 3 minutes. * * @param tcp the tcp value to set. * @return the PinholeTimeouts object itself. @@ -54,8 +53,7 @@ public PinholeTimeouts withTcp(Integer tcp) { } /** - * Get the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 minutes, as per RFC 4787 - * section 4.3. + * Get the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 30 seconds. * * @return the udp value. */ @@ -64,8 +62,7 @@ public Integer udp() { } /** - * Set the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 minutes, as per RFC 4787 - * section 4.3. + * Set the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 30 seconds. * * @param udp the udp value to set. * @return the PinholeTimeouts object itself. @@ -76,8 +73,7 @@ public PinholeTimeouts withUdp(Integer udp) { } /** - * 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. + * Get the icmp property: Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 30 seconds. * * @return the icmp value. */ @@ -86,8 +82,7 @@ public Integer icmp() { } /** - * 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. + * Set the icmp property: Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 30 seconds. * * @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/Platform.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Platform.java new file mode 100644 index 0000000000000..2ee3a5b2f8fa9 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Platform.java @@ -0,0 +1,184 @@ +// 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; + +/** Platform specific packet core control plane version properties. */ +@Fluent +public final class Platform { + /* + * The platform type where this version can be deployed. + */ + @JsonProperty(value = "platformType") + private PlatformType platformType; + + /* + * The state of this packet core control plane version on this platform. + */ + @JsonProperty(value = "versionState") + private VersionState versionState; + + /* + * The minimum software version of the platform where this packet core version can be deployed. + */ + @JsonProperty(value = "minimumPlatformSoftwareVersion") + private String minimumPlatformSoftwareVersion; + + /* + * The maximum software version of the platform where this packet core version can be deployed. + */ + @JsonProperty(value = "maximumPlatformSoftwareVersion") + private String maximumPlatformSoftwareVersion; + + /* + * Indicates whether this is the recommended version for this platform. + */ + @JsonProperty(value = "recommendedVersion") + private RecommendedVersion recommendedVersion; + + /* + * Indicates whether this version is obsoleted for this platform. + */ + @JsonProperty(value = "obsoleteVersion") + private ObsoleteVersion obsoleteVersion; + + /** Creates an instance of Platform class. */ + public Platform() { + } + + /** + * Get the platformType property: The platform type where this version can be deployed. + * + * @return the platformType value. + */ + public PlatformType platformType() { + return this.platformType; + } + + /** + * Set the platformType property: The platform type where this version can be deployed. + * + * @param platformType the platformType value to set. + * @return the Platform object itself. + */ + public Platform withPlatformType(PlatformType platformType) { + this.platformType = platformType; + return this; + } + + /** + * Get the versionState property: The state of this packet core control plane version on this platform. + * + * @return the versionState value. + */ + public VersionState versionState() { + return this.versionState; + } + + /** + * Set the versionState property: The state of this packet core control plane version on this platform. + * + * @param versionState the versionState value to set. + * @return the Platform object itself. + */ + public Platform withVersionState(VersionState versionState) { + this.versionState = versionState; + return this; + } + + /** + * Get the minimumPlatformSoftwareVersion property: The minimum software version of the platform where this packet + * core version can be deployed. + * + * @return the minimumPlatformSoftwareVersion value. + */ + public String minimumPlatformSoftwareVersion() { + return this.minimumPlatformSoftwareVersion; + } + + /** + * Set the minimumPlatformSoftwareVersion property: The minimum software version of the platform where this packet + * core version can be deployed. + * + * @param minimumPlatformSoftwareVersion the minimumPlatformSoftwareVersion value to set. + * @return the Platform object itself. + */ + public Platform withMinimumPlatformSoftwareVersion(String minimumPlatformSoftwareVersion) { + this.minimumPlatformSoftwareVersion = minimumPlatformSoftwareVersion; + return this; + } + + /** + * Get the maximumPlatformSoftwareVersion property: The maximum software version of the platform where this packet + * core version can be deployed. + * + * @return the maximumPlatformSoftwareVersion value. + */ + public String maximumPlatformSoftwareVersion() { + return this.maximumPlatformSoftwareVersion; + } + + /** + * Set the maximumPlatformSoftwareVersion property: The maximum software version of the platform where this packet + * core version can be deployed. + * + * @param maximumPlatformSoftwareVersion the maximumPlatformSoftwareVersion value to set. + * @return the Platform object itself. + */ + public Platform withMaximumPlatformSoftwareVersion(String maximumPlatformSoftwareVersion) { + this.maximumPlatformSoftwareVersion = maximumPlatformSoftwareVersion; + return this; + } + + /** + * Get the recommendedVersion property: Indicates whether this is the recommended version for this platform. + * + * @return the recommendedVersion value. + */ + public RecommendedVersion recommendedVersion() { + return this.recommendedVersion; + } + + /** + * Set the recommendedVersion property: Indicates whether this is the recommended version for this platform. + * + * @param recommendedVersion the recommendedVersion value to set. + * @return the Platform object itself. + */ + public Platform withRecommendedVersion(RecommendedVersion recommendedVersion) { + this.recommendedVersion = recommendedVersion; + return this; + } + + /** + * Get the obsoleteVersion property: Indicates whether this version is obsoleted for this platform. + * + * @return the obsoleteVersion value. + */ + public ObsoleteVersion obsoleteVersion() { + return this.obsoleteVersion; + } + + /** + * Set the obsoleteVersion property: Indicates whether this version is obsoleted for this platform. + * + * @param obsoleteVersion the obsoleteVersion value to set. + * @return the Platform object itself. + */ + public Platform withObsoleteVersion(ObsoleteVersion obsoleteVersion) { + this.obsoleteVersion = obsoleteVersion; + 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/PlatformConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PlatformConfiguration.java index 1ed221baef30a..8d102d598f63d 100644 --- 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 @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** The platform where the packet core is deployed. */ @Fluent @@ -18,13 +19,25 @@ public final class PlatformConfiguration { 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. + * The Azure Stack Edge device 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; + /* + * The Azure Stack Edge devices where the packet core is deployed. If the packet core is deployed across multiple + * devices, all devices will appear in this list. + */ + @JsonProperty(value = "azureStackEdgeDevices", access = JsonProperty.Access.WRITE_ONLY) + private List azureStackEdgeDevices; + + /* + * The Azure Stack HCI cluster where the packet core is deployed. + */ + @JsonProperty(value = "azureStackHciCluster") + private AzureStackHciClusterResourceId azureStackHciCluster; + /* * Azure Arc connected cluster where the packet core is deployed. */ @@ -37,6 +50,10 @@ public final class PlatformConfiguration { @JsonProperty(value = "customLocation") private CustomLocationResourceId customLocation; + /** Creates an instance of PlatformConfiguration class. */ + public PlatformConfiguration() { + } + /** * Get the type property: The platform type where packet core is deployed. * @@ -58,8 +75,8 @@ public PlatformConfiguration withType(PlatformType type) { } /** - * 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. + * Get the azureStackEdgeDevice property: The Azure Stack Edge device 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. */ @@ -68,8 +85,8 @@ public AzureStackEdgeDeviceResourceId 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. + * Set the azureStackEdgeDevice property: The Azure Stack Edge device 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. @@ -79,6 +96,36 @@ public PlatformConfiguration withAzureStackEdgeDevice(AzureStackEdgeDeviceResour return this; } + /** + * Get the azureStackEdgeDevices property: The Azure Stack Edge devices where the packet core is deployed. If the + * packet core is deployed across multiple devices, all devices will appear in this list. + * + * @return the azureStackEdgeDevices value. + */ + public List azureStackEdgeDevices() { + return this.azureStackEdgeDevices; + } + + /** + * Get the azureStackHciCluster property: The Azure Stack HCI cluster where the packet core is deployed. + * + * @return the azureStackHciCluster value. + */ + public AzureStackHciClusterResourceId azureStackHciCluster() { + return this.azureStackHciCluster; + } + + /** + * Set the azureStackHciCluster property: The Azure Stack HCI cluster where the packet core is deployed. + * + * @param azureStackHciCluster the azureStackHciCluster value to set. + * @return the PlatformConfiguration object itself. + */ + public PlatformConfiguration withAzureStackHciCluster(AzureStackHciClusterResourceId azureStackHciCluster) { + this.azureStackHciCluster = azureStackHciCluster; + return this; + } + /** * Get the connectedCluster property: Azure Arc connected cluster where the packet core is deployed. * @@ -133,6 +180,12 @@ public void validate() { if (azureStackEdgeDevice() != null) { azureStackEdgeDevice().validate(); } + if (azureStackEdgeDevices() != null) { + azureStackEdgeDevices().forEach(e -> e.validate()); + } + if (azureStackHciCluster() != null) { + azureStackHciCluster().validate(); + } if (connectedCluster() != null) { connectedCluster().validate(); } 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 index 0a1cd365636d6..0de3766ea1fe5 100644 --- 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 @@ -8,13 +8,13 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PlatformType. */ +/** The platform type where packet core is deployed. The contents of this enum can change. */ 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"); + /** Static value 3P-AZURE-STACK-HCI for PlatformType. */ + public static final PlatformType THREE_P_AZURE_STACK_HCI = fromString("3P-AZURE-STACK-HCI"); /** * Creates or finds a PlatformType from its string representation. 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 30f1938e6f64b..9f9b72ed99e47 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 @@ -23,6 +23,10 @@ public final class PlmnId { @JsonProperty(value = "mnc", required = true) private String mnc; + /** Creates an instance of PlmnId class. */ + public PlmnId() { + } + /** * Get the mcc property: Mobile country code (MCC). * 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 6435d6dcfc974..b27026aa97683 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 @@ -26,6 +26,10 @@ public final class PortRange { @JsonProperty(value = "maxPort") private Integer maxPort; + /** Creates an instance of PortRange class. */ + public PortRange() { + } + /** * Get the minPort property: The minimum port number. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortReuseHoldTimes.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortReuseHoldTimes.java index 7c93652571d6f..ede12c4968f8d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortReuseHoldTimes.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/PortReuseHoldTimes.java @@ -14,19 +14,23 @@ @Fluent public final class PortReuseHoldTimes { /* - * Minimum time in seconds that will pass before a TCP port that was used - * by a closed pinhole can be reused. Default for TCP is 2 minutes. + * Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused. + * Default for TCP is 2 minutes. */ @JsonProperty(value = "tcp") private Integer tcp; /* - * Minimum time in seconds that will pass before a UDP port that was used - * by a closed pinhole can be reused. Default for UDP is 1 minute. + * Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused. + * Default for UDP is 1 minute. */ @JsonProperty(value = "udp") private Integer udp; + /** Creates an instance of PortReuseHoldTimes class. */ + public PortReuseHoldTimes() { + } + /** * Get the tcp property: Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole * can be reused. Default for TCP is 2 minutes. 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 a36b13d426a6d..8a4963ebf704a 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PreemptionCapability. */ +/** Preemption capability. */ public final class PreemptionCapability extends ExpandableStringEnum { /** Static value NotPreempt for PreemptionCapability. */ public static final PreemptionCapability NOT_PREEMPT = fromString("NotPreempt"); 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 4322aaf1151ca..e622d4b15e7f4 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PreemptionVulnerability. */ +/** Preemption vulnerability. */ public final class PreemptionVulnerability extends ExpandableStringEnum { /** Static value NotPreemptable for PreemptionVulnerability. */ public static final PreemptionVulnerability NOT_PREEMPTABLE = fromString("NotPreemptable"); 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 698725792e4a3..0324f203a878e 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ProvisioningState. */ +/** The current provisioning state. */ public final class ProvisioningState extends ExpandableStringEnum { /** Static value Unknown for ProvisioningState. */ public static final ProvisioningState UNKNOWN = fromString("Unknown"); 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 87bf788c5e639..6f4399695781f 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,53 +12,50 @@ @Fluent public class QosPolicy { /* - * 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 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. + * 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 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; /* - * QoS Flow allocation and retention priority (ARP) level. Flows with - * higher priority preempt flows with lower priority, if the settings of - * `preemptionCapability` and `preemptionVulnerability` allow it. 1 is the - * highest level of priority. If this field is not specified then `5qi` is - * used to derive the ARP value. See 3GPP TS23.501 section 5.7.2.2 for a - * full description of the ARP parameters. + * QoS Flow allocation and retention priority (ARP) level. Flows with higher priority preempt flows with lower + * priority, if the settings of `preemptionCapability` and `preemptionVulnerability` allow it. 1 is the highest + * level of priority. If this field is not specified then `5qi` is used to derive the ARP value. See 3GPP TS23.501 + * section 5.7.2.2 for a full description of the ARP parameters. */ @JsonProperty(value = "allocationAndRetentionPriorityLevel") private Integer allocationAndRetentionPriorityLevel; /* - * 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. + * 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. */ @JsonProperty(value = "preemptionCapability") private PreemptionCapability preemptionCapability; /* - * 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 + * 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. */ @JsonProperty(value = "preemptionVulnerability") private PreemptionVulnerability preemptionVulnerability; /* - * The maximum bit rate (MBR) for all service data flows that use this data - * flow policy 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; + /** Creates an instance of QosPolicy class. */ + public QosPolicy() { + } + /** * 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 corresponding to a GBR (guaranteed bit rate) diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/RecommendedVersion.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/RecommendedVersion.java index 702ae1943378b..46065aaf48037 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/RecommendedVersion.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/RecommendedVersion.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for RecommendedVersion. */ +/** Indicates whether this is the recommended version to use for new packet core control plane deployments. */ public final class RecommendedVersion extends ExpandableStringEnum { /** Static value Recommended for RecommendedVersion. */ public static final RecommendedVersion RECOMMENDED = fromString("Recommended"); 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 bd2dabec2249b..5bfdd1fc02740 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SdfDirection. */ +/** Service data flow direction. */ public final class SdfDirection extends ExpandableStringEnum { /** Static value Uplink for SdfDirection. */ public static final SdfDirection UPLINK = fromString("Uplink"); 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 304a395cbbd44..f799ab4a407cd 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 @@ -13,9 +13,8 @@ @Fluent public final class ServiceDataFlowTemplate { /* - * 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`. + * 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; @@ -27,40 +26,37 @@ public final class ServiceDataFlowTemplate { private SdfDirection direction; /* - * A list of the allowed protocol(s) for this flow. If you want this flow - * to be able to use any protocol within the internet protocol suite, use - * the value `ip`. If you only want to allow a selection of protocols, you - * must use the corresponding IANA Assigned Internet Protocol Number for - * each protocol, as described in - * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml. - * For example, for UDP, you must use 17. If you use the value `ip` then - * you must leave the field `port` unspecified. + * A list of the allowed protocol(s) for this flow. If you want this flow to be able to use any protocol within the + * internet protocol suite, use the value `ip`. If you only want to allow a selection of protocols, you must use + * the corresponding IANA Assigned Internet Protocol Number for each protocol, as described in + * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml. For example, for UDP, you must use 17. + * If you use the value `ip` then you must leave the field `port` unspecified. */ @JsonProperty(value = "protocol", required = true) private List protocol; /* - * 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 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). + * 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 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; /* - * The port(s) to which UEs will connect for this flow. You can specify - * zero or more ports or port ranges. If you specify one or more ports or - * port ranges then you must specify a value other than `ip` in the - * `protocol` field. This is an optional setting. If you do not specify it - * then connections will be allowed on all ports. Port ranges must be - * specified as -. For example: [`8080`, `8082-8085`]. + * The port(s) to which UEs will connect for this flow. You can specify zero or more ports or port ranges. If you + * specify one or more ports or port ranges then you must specify a value other than `ip` in the `protocol` field. + * This is an optional setting. If you do not specify it then connections will be allowed on all ports. Port ranges + * must be specified as -. For example: [`8080`, `8082-8085`]. */ @JsonProperty(value = "ports") private List ports; + /** Creates an instance of ServiceDataFlowTemplate class. */ + public ServiceDataFlowTemplate() { + } + /** * 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`. 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 8e571daa131ae..698f7372324b5 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 @@ -24,6 +24,10 @@ public final class ServiceListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ServiceListResult class. */ + public ServiceListResult() { + } + /** * Get the value property: A list of services. * 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 7603bca66f488..4dcf7913220b4 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 @@ -17,6 +17,10 @@ public final class ServiceResourceId { @JsonProperty(value = "id", required = true) private String id; + /** Creates an instance of ServiceResourceId class. */ + public ServiceResourceId() { + } + /** * Get the id property: Service resource ID. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Services.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Services.java index 828ede4dcc070..f1453562d65bb 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Services.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Services.java @@ -44,12 +44,14 @@ public interface Services { * @param mobileNetworkName The name of the mobile network. * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, * `requested` or `service`. + * @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 service. + * @return information about the specified service along with {@link Response}. */ - Service get(String resourceGroupName, String mobileNetworkName, String serviceName); + Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String serviceName, Context context); /** * Gets information about the specified service. @@ -58,14 +60,12 @@ public interface Services { * @param mobileNetworkName The name of the mobile network. * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, * `requested` or `service`. - * @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 service along with {@link Response}. + * @return information about the specified service. */ - Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String serviceName, Context context); + Service get(String resourceGroupName, String mobileNetworkName, String serviceName); /** * Gets all the services in a mobile network. 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 33c3feba5ad0b..ae35edd58cc65 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,9 +4,11 @@ package com.azure.resourcemanager.mobilenetwork.models; +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 { @@ -31,6 +33,27 @@ public interface Sim { */ String type(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * 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. + * + * @return the operatorKeyCode value. + */ + String operatorKeyCode(); + /** * Gets the provisioningState property: The provisioning state of the SIM resource. * @@ -45,6 +68,14 @@ public interface Sim { */ SimState simState(); + /** + * Gets the siteProvisioningState property: A dictionary of sites to the provisioning state of this SIM on that + * site. + * + * @return the siteProvisioningState value. + */ + Map siteProvisioningState(); + /** * Gets the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for * the SIM. @@ -60,20 +91,6 @@ public interface Sim { */ String integratedCircuitCardIdentifier(); - /** - * 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. - * - * @return the operatorKeyCode value. - */ - String operatorKeyCode(); - /** * 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 @@ -84,7 +101,8 @@ public interface Sim { String deviceType(); /** - * Gets the simPolicy property: The SIM policy used by this SIM. + * Gets the simPolicy property: The SIM policy used by this SIM. The SIM policy must be in the same location as the + * SIM. * * @return the simPolicy value. */ @@ -98,6 +116,21 @@ public interface Sim { */ List staticIpConfiguration(); + /** + * Gets the vendorName property: The name of the SIM vendor who provided this SIM, if any. + * + * @return the vendorName value. + */ + String vendorName(); + + /** + * Gets the vendorKeyFingerprint property: The public key fingerprint of the SIM vendor who provided this SIM, if + * any. + * + * @return the vendorKeyFingerprint value. + */ + String vendorKeyFingerprint(); + /** * Gets the name of the resource group. * @@ -153,9 +186,9 @@ interface WithInternationalMobileSubscriberIdentity { * created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithIntegratedCircuitCardIdentifier, - DefinitionStages.WithAuthenticationKey, + extends DefinitionStages.WithAuthenticationKey, DefinitionStages.WithOperatorKeyCode, + DefinitionStages.WithIntegratedCircuitCardIdentifier, DefinitionStages.WithDeviceType, DefinitionStages.WithSimPolicy, DefinitionStages.WithStaticIpConfiguration { @@ -174,17 +207,6 @@ interface WithCreate */ Sim create(Context context); } - /** The stage of the Sim definition 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. - */ - WithCreate withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier); - } /** The stage of the Sim definition allowing to specify authenticationKey. */ interface WithAuthenticationKey { /** @@ -205,6 +227,17 @@ interface WithOperatorKeyCode { */ WithCreate withOperatorKeyCode(String operatorKeyCode); } + /** The stage of the Sim definition 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. + */ + WithCreate withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier); + } /** The stage of the Sim definition allowing to specify deviceType. */ interface WithDeviceType { /** @@ -222,9 +255,10 @@ interface WithDeviceType { /** The stage of the Sim definition allowing to specify simPolicy. */ interface WithSimPolicy { /** - * Specifies the simPolicy property: The SIM policy used by this SIM.. + * Specifies the simPolicy property: The SIM policy used by this SIM. The SIM policy must be in the same + * location as the SIM.. * - * @param simPolicy The SIM policy used by this SIM. + * @param simPolicy The SIM policy used by this SIM. The SIM policy must be in the same location as the SIM. * @return the next definition stage. */ WithCreate withSimPolicy(SimPolicyResourceId simPolicy); @@ -251,9 +285,9 @@ interface WithStaticIpConfiguration { /** The template for Sim update. */ interface Update - extends UpdateStages.WithIntegratedCircuitCardIdentifier, - UpdateStages.WithAuthenticationKey, + extends UpdateStages.WithAuthenticationKey, UpdateStages.WithOperatorKeyCode, + UpdateStages.WithIntegratedCircuitCardIdentifier, UpdateStages.WithDeviceType, UpdateStages.WithSimPolicy, UpdateStages.WithStaticIpConfiguration { @@ -274,17 +308,6 @@ interface Update } /** The Sim update stages. */ interface UpdateStages { - /** 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 { /** @@ -305,6 +328,17 @@ interface WithOperatorKeyCode { */ Update withOperatorKeyCode(String operatorKeyCode); } + /** 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 deviceType. */ interface WithDeviceType { /** @@ -322,9 +356,10 @@ interface WithDeviceType { /** The stage of the Sim update allowing to specify simPolicy. */ interface WithSimPolicy { /** - * Specifies the simPolicy property: The SIM policy used by this SIM.. + * Specifies the simPolicy property: The SIM policy used by this SIM. The SIM policy must be in the same + * location as the SIM.. * - * @param simPolicy The SIM policy used by this SIM. + * @param simPolicy The SIM policy used by this SIM. The SIM policy must be in the same location as the SIM. * @return the next definition stage. */ Update withSimPolicy(SimPolicyResourceId simPolicy); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimDeleteList.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimDeleteList.java new file mode 100644 index 0000000000000..a138b4013e184 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimDeleteList.java @@ -0,0 +1,59 @@ +// 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; +import java.util.List; + +/** The SIMs to delete. */ +@Fluent +public final class SimDeleteList { + /* + * A list of SIM resource names to delete. + */ + @JsonProperty(value = "sims", required = true) + private List sims; + + /** Creates an instance of SimDeleteList class. */ + public SimDeleteList() { + } + + /** + * Get the sims property: A list of SIM resource names to delete. + * + * @return the sims value. + */ + public List sims() { + return this.sims; + } + + /** + * Set the sims property: A list of SIM resource names to delete. + * + * @param sims the sims value to set. + * @return the SimDeleteList object itself. + */ + public SimDeleteList withSims(List sims) { + this.sims = sims; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (sims() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property sims in model SimDeleteList")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SimDeleteList.class); +} 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 index 53b71bab078c1..99b004509137e 100644 --- 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 @@ -76,7 +76,8 @@ public interface SimGroup { KeyVaultKey encryptionKey(); /** - * Gets the mobileNetwork property: Mobile network that this SIM belongs to. + * Gets the mobileNetwork property: Mobile network that this SIM group belongs to. The mobile network must be in the + * same location as the SIM group. * * @return the mobileNetwork value. */ @@ -207,9 +208,11 @@ interface WithEncryptionKey { /** The stage of the SimGroup definition allowing to specify mobileNetwork. */ interface WithMobileNetwork { /** - * Specifies the mobileNetwork property: Mobile network that this SIM belongs to. + * Specifies the mobileNetwork property: Mobile network that this SIM group belongs to. The mobile network + * must be in the same location as the SIM group.. * - * @param mobileNetwork Mobile network that this SIM belongs to. + * @param mobileNetwork Mobile network that this SIM group belongs to. The mobile network must be in the + * same location as the SIM group. * @return the next definition stage. */ WithCreate withMobileNetwork(MobileNetworkResourceId mobileNetwork); 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 index 45ebce9bf7870..8118d3c9c4629 100644 --- 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 @@ -24,6 +24,10 @@ public final class SimGroupListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SimGroupListResult class. */ + public SimGroupListResult() { + } + /** * Get the value property: A list of SIM groups in a resource group. * 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 index 6797d8c3e1bd8..d4685510ca64d 100644 --- 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 @@ -38,25 +38,25 @@ public interface SimGroups { * * @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. + * @return information about the specified SIM group along with {@link Response}. */ - SimGroup getByResourceGroup(String resourceGroupName, String simGroupName); + Response getByResourceGroupWithResponse(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. - * @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}. + * @return information about the specified SIM group. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String simGroupName, Context context); + SimGroup getByResourceGroup(String resourceGroupName, String simGroupName); /** * Gets all the SIM groups in a subscription. 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 deleted file mode 100644 index 26289ef123228..0000000000000 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimIdListResult.java +++ /dev/null @@ -1,33 +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.models; - -import com.azure.core.management.SubResource; -import com.azure.resourcemanager.mobilenetwork.fluent.models.SimIdListResultInner; -import java.util.List; - -/** An immutable client-side representation of SimIdListResult. */ -public interface SimIdListResult { - /** - * Gets the value property: A list of SIM IDs. - * - * @return the value value. - */ - List value(); - - /** - * Gets the nextLink property: The URL to get the next set of results. - * - * @return the nextLink value. - */ - String nextLink(); - - /** - * Gets the inner com.azure.resourcemanager.mobilenetwork.fluent.models.SimIdListResultInner object. - * - * @return the inner object. - */ - SimIdListResultInner innerModel(); -} 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 91de9e599937e..373a57b8cca47 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 @@ -24,6 +24,10 @@ public final class SimListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SimListResult class. */ + public SimListResult() { + } + /** * Get the value property: A list of SIMs in a resource group. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimNameAndEncryptedProperties.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimNameAndEncryptedProperties.java new file mode 100644 index 0000000000000..de85d2df8b4f1 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimNameAndEncryptedProperties.java @@ -0,0 +1,280 @@ +// 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.azure.resourcemanager.mobilenetwork.fluent.models.EncryptedSimPropertiesFormat; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import java.util.Map; + +/** SIM name and encrypted properties. */ +@Fluent +public final class SimNameAndEncryptedProperties { + /* + * The name of the SIM. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /* + * Encrypted SIM Properties. + */ + @JsonProperty(value = "properties", required = true) + private EncryptedSimPropertiesFormat innerProperties = new EncryptedSimPropertiesFormat(); + + /** Creates an instance of SimNameAndEncryptedProperties class. */ + public SimNameAndEncryptedProperties() { + } + + /** + * Get the name property: The name of the SIM. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name of the SIM. + * + * @param name the name value to set. + * @return the SimNameAndEncryptedProperties object itself. + */ + public SimNameAndEncryptedProperties withName(String name) { + this.name = name; + return this; + } + + /** + * Get the innerProperties property: Encrypted SIM Properties. + * + * @return the innerProperties value. + */ + private EncryptedSimPropertiesFormat innerProperties() { + return this.innerProperties; + } + + /** + * Get the encryptedCredentials property: The encrypted SIM credentials. + * + * @return the encryptedCredentials value. + */ + public String encryptedCredentials() { + return this.innerProperties() == null ? null : this.innerProperties().encryptedCredentials(); + } + + /** + * Set the encryptedCredentials property: The encrypted SIM credentials. + * + * @param encryptedCredentials the encryptedCredentials value to set. + * @return the SimNameAndEncryptedProperties object itself. + */ + public SimNameAndEncryptedProperties withEncryptedCredentials(String encryptedCredentials) { + if (this.innerProperties() == null) { + this.innerProperties = new EncryptedSimPropertiesFormat(); + } + this.innerProperties().withEncryptedCredentials(encryptedCredentials); + return this; + } + + /** + * Get the provisioningState property: The provisioning state of the SIM resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the simState property: The state of the SIM resource. + * + * @return the simState value. + */ + public SimState simState() { + return this.innerProperties() == null ? null : this.innerProperties().simState(); + } + + /** + * Get the siteProvisioningState property: A dictionary of sites to the provisioning state of this SIM on that site. + * + * @return the siteProvisioningState value. + */ + public Map siteProvisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().siteProvisioningState(); + } + + /** + * Get the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for + * the SIM. + * + * @return the internationalMobileSubscriberIdentity value. + */ + public String internationalMobileSubscriberIdentity() { + return this.innerProperties() == null ? null : this.innerProperties().internationalMobileSubscriberIdentity(); + } + + /** + * Set the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for + * the SIM. + * + * @param internationalMobileSubscriberIdentity the internationalMobileSubscriberIdentity value to set. + * @return the SimNameAndEncryptedProperties object itself. + */ + public SimNameAndEncryptedProperties withInternationalMobileSubscriberIdentity( + String internationalMobileSubscriberIdentity) { + if (this.innerProperties() == null) { + this.innerProperties = new EncryptedSimPropertiesFormat(); + } + this.innerProperties().withInternationalMobileSubscriberIdentity(internationalMobileSubscriberIdentity); + return this; + } + + /** + * Get the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. + * + * @return the integratedCircuitCardIdentifier value. + */ + public String integratedCircuitCardIdentifier() { + return this.innerProperties() == null ? null : this.innerProperties().integratedCircuitCardIdentifier(); + } + + /** + * Set the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. + * + * @param integratedCircuitCardIdentifier the integratedCircuitCardIdentifier value to set. + * @return the SimNameAndEncryptedProperties object itself. + */ + public SimNameAndEncryptedProperties withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier) { + if (this.innerProperties() == null) { + this.innerProperties = new EncryptedSimPropertiesFormat(); + } + this.innerProperties().withIntegratedCircuitCardIdentifier(integratedCircuitCardIdentifier); + 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 + * this value. + * + * @return the deviceType value. + */ + public String deviceType() { + return this.innerProperties() == null ? null : this.innerProperties().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 + * this value. + * + * @param deviceType the deviceType value to set. + * @return the SimNameAndEncryptedProperties object itself. + */ + public SimNameAndEncryptedProperties withDeviceType(String deviceType) { + if (this.innerProperties() == null) { + this.innerProperties = new EncryptedSimPropertiesFormat(); + } + this.innerProperties().withDeviceType(deviceType); + return this; + } + + /** + * Get the simPolicy property: The SIM policy used by this SIM. The SIM policy must be in the same location as the + * SIM. + * + * @return the simPolicy value. + */ + public SimPolicyResourceId simPolicy() { + return this.innerProperties() == null ? null : this.innerProperties().simPolicy(); + } + + /** + * Set the simPolicy property: The SIM policy used by this SIM. The SIM policy must be in the same location as the + * SIM. + * + * @param simPolicy the simPolicy value to set. + * @return the SimNameAndEncryptedProperties object itself. + */ + public SimNameAndEncryptedProperties withSimPolicy(SimPolicyResourceId simPolicy) { + if (this.innerProperties() == null) { + this.innerProperties = new EncryptedSimPropertiesFormat(); + } + this.innerProperties().withSimPolicy(simPolicy); + return this; + } + + /** + * 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. + */ + public List staticIpConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().staticIpConfiguration(); + } + + /** + * 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. + * @return the SimNameAndEncryptedProperties object itself. + */ + public SimNameAndEncryptedProperties withStaticIpConfiguration(List staticIpConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new EncryptedSimPropertiesFormat(); + } + this.innerProperties().withStaticIpConfiguration(staticIpConfiguration); + return this; + } + + /** + * Get the vendorName property: The name of the SIM vendor who provided this SIM, if any. + * + * @return the vendorName value. + */ + public String vendorName() { + return this.innerProperties() == null ? null : this.innerProperties().vendorName(); + } + + /** + * Get the vendorKeyFingerprint property: The public key fingerprint of the SIM vendor who provided this SIM, if + * any. + * + * @return the vendorKeyFingerprint value. + */ + public String vendorKeyFingerprint() { + return this.innerProperties() == null ? null : this.innerProperties().vendorKeyFingerprint(); + } + + /** + * Validates the instance. + * + * @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 SimNameAndEncryptedProperties")); + } + if (innerProperties() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerProperties in model SimNameAndEncryptedProperties")); + } else { + innerProperties().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SimNameAndEncryptedProperties.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimNameAndProperties.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimNameAndProperties.java new file mode 100644 index 0000000000000..4f75dd4b3d3ba --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimNameAndProperties.java @@ -0,0 +1,302 @@ +// 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.azure.resourcemanager.mobilenetwork.fluent.models.SimPropertiesFormat; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import java.util.Map; + +/** SIM name and properties. */ +@Fluent +public final class SimNameAndProperties { + /* + * The name of the SIM. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /* + * SIM Properties. + */ + @JsonProperty(value = "properties", required = true) + private SimPropertiesFormat innerProperties = new SimPropertiesFormat(); + + /** Creates an instance of SimNameAndProperties class. */ + public SimNameAndProperties() { + } + + /** + * Get the name property: The name of the SIM. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name of the SIM. + * + * @param name the name value to set. + * @return the SimNameAndProperties object itself. + */ + public SimNameAndProperties withName(String name) { + this.name = name; + return this; + } + + /** + * Get the innerProperties property: SIM Properties. + * + * @return the innerProperties value. + */ + private SimPropertiesFormat innerProperties() { + return this.innerProperties; + } + + /** + * Get the authenticationKey property: The Ki value for the SIM. + * + * @return the authenticationKey value. + */ + public String authenticationKey() { + return this.innerProperties() == null ? null : this.innerProperties().authenticationKey(); + } + + /** + * Set the authenticationKey property: The Ki value for the SIM. + * + * @param authenticationKey the authenticationKey value to set. + * @return the SimNameAndProperties object itself. + */ + public SimNameAndProperties withAuthenticationKey(String authenticationKey) { + if (this.innerProperties() == null) { + this.innerProperties = new SimPropertiesFormat(); + } + this.innerProperties().withAuthenticationKey(authenticationKey); + return this; + } + + /** + * Get the operatorKeyCode property: The Opc value for the SIM. + * + * @return the operatorKeyCode value. + */ + public String operatorKeyCode() { + return this.innerProperties() == null ? null : this.innerProperties().operatorKeyCode(); + } + + /** + * Set the operatorKeyCode property: The Opc value for the SIM. + * + * @param operatorKeyCode the operatorKeyCode value to set. + * @return the SimNameAndProperties object itself. + */ + public SimNameAndProperties withOperatorKeyCode(String operatorKeyCode) { + if (this.innerProperties() == null) { + this.innerProperties = new SimPropertiesFormat(); + } + this.innerProperties().withOperatorKeyCode(operatorKeyCode); + return this; + } + + /** + * Get the provisioningState property: The provisioning state of the SIM resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the simState property: The state of the SIM resource. + * + * @return the simState value. + */ + public SimState simState() { + return this.innerProperties() == null ? null : this.innerProperties().simState(); + } + + /** + * Get the siteProvisioningState property: A dictionary of sites to the provisioning state of this SIM on that site. + * + * @return the siteProvisioningState value. + */ + public Map siteProvisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().siteProvisioningState(); + } + + /** + * Get the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for + * the SIM. + * + * @return the internationalMobileSubscriberIdentity value. + */ + public String internationalMobileSubscriberIdentity() { + return this.innerProperties() == null ? null : this.innerProperties().internationalMobileSubscriberIdentity(); + } + + /** + * Set the internationalMobileSubscriberIdentity property: The international mobile subscriber identity (IMSI) for + * the SIM. + * + * @param internationalMobileSubscriberIdentity the internationalMobileSubscriberIdentity value to set. + * @return the SimNameAndProperties object itself. + */ + public SimNameAndProperties withInternationalMobileSubscriberIdentity( + String internationalMobileSubscriberIdentity) { + if (this.innerProperties() == null) { + this.innerProperties = new SimPropertiesFormat(); + } + this.innerProperties().withInternationalMobileSubscriberIdentity(internationalMobileSubscriberIdentity); + return this; + } + + /** + * Get the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. + * + * @return the integratedCircuitCardIdentifier value. + */ + public String integratedCircuitCardIdentifier() { + return this.innerProperties() == null ? null : this.innerProperties().integratedCircuitCardIdentifier(); + } + + /** + * Set the integratedCircuitCardIdentifier property: The integrated circuit card ID (ICCID) for the SIM. + * + * @param integratedCircuitCardIdentifier the integratedCircuitCardIdentifier value to set. + * @return the SimNameAndProperties object itself. + */ + public SimNameAndProperties withIntegratedCircuitCardIdentifier(String integratedCircuitCardIdentifier) { + if (this.innerProperties() == null) { + this.innerProperties = new SimPropertiesFormat(); + } + this.innerProperties().withIntegratedCircuitCardIdentifier(integratedCircuitCardIdentifier); + 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 + * this value. + * + * @return the deviceType value. + */ + public String deviceType() { + return this.innerProperties() == null ? null : this.innerProperties().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 + * this value. + * + * @param deviceType the deviceType value to set. + * @return the SimNameAndProperties object itself. + */ + public SimNameAndProperties withDeviceType(String deviceType) { + if (this.innerProperties() == null) { + this.innerProperties = new SimPropertiesFormat(); + } + this.innerProperties().withDeviceType(deviceType); + return this; + } + + /** + * Get the simPolicy property: The SIM policy used by this SIM. The SIM policy must be in the same location as the + * SIM. + * + * @return the simPolicy value. + */ + public SimPolicyResourceId simPolicy() { + return this.innerProperties() == null ? null : this.innerProperties().simPolicy(); + } + + /** + * Set the simPolicy property: The SIM policy used by this SIM. The SIM policy must be in the same location as the + * SIM. + * + * @param simPolicy the simPolicy value to set. + * @return the SimNameAndProperties object itself. + */ + public SimNameAndProperties withSimPolicy(SimPolicyResourceId simPolicy) { + if (this.innerProperties() == null) { + this.innerProperties = new SimPropertiesFormat(); + } + this.innerProperties().withSimPolicy(simPolicy); + return this; + } + + /** + * 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. + */ + public List staticIpConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().staticIpConfiguration(); + } + + /** + * 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. + * @return the SimNameAndProperties object itself. + */ + public SimNameAndProperties withStaticIpConfiguration(List staticIpConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new SimPropertiesFormat(); + } + this.innerProperties().withStaticIpConfiguration(staticIpConfiguration); + return this; + } + + /** + * Get the vendorName property: The name of the SIM vendor who provided this SIM, if any. + * + * @return the vendorName value. + */ + public String vendorName() { + return this.innerProperties() == null ? null : this.innerProperties().vendorName(); + } + + /** + * Get the vendorKeyFingerprint property: The public key fingerprint of the SIM vendor who provided this SIM, if + * any. + * + * @return the vendorKeyFingerprint value. + */ + public String vendorKeyFingerprint() { + return this.innerProperties() == null ? null : this.innerProperties().vendorKeyFingerprint(); + } + + /** + * Validates the instance. + * + * @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 SimNameAndProperties")); + } + if (innerProperties() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerProperties in model SimNameAndProperties")); + } else { + innerProperties().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SimNameAndProperties.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimOperations.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimOperations.java new file mode 100644 index 0000000000000..480abd5900775 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimOperations.java @@ -0,0 +1,95 @@ +// 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.Context; + +/** Resource collection API of SimOperations. */ +public interface SimOperations { + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 current status of an async operation. + */ + AsyncOperationStatus bulkUpload(String resourceGroupName, String simGroupName, SimUploadList parameters); + + /** + * Bulk upload SIMs to 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 bulk SIM upload 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 current status of an async operation. + */ + AsyncOperationStatus bulkUpload( + String resourceGroupName, String simGroupName, SimUploadList parameters, Context context); + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 current status of an async operation. + */ + AsyncOperationStatus bulkDelete(String resourceGroupName, String simGroupName, SimDeleteList parameters); + + /** + * Bulk delete SIMs from 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 bulk SIM delete 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 current status of an async operation. + */ + AsyncOperationStatus bulkDelete( + String resourceGroupName, String simGroupName, SimDeleteList parameters, Context context); + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 current status of an async operation. + */ + AsyncOperationStatus bulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters); + + /** + * Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + * + * @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 encrypted SIMs upload 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 current status of an async operation. + */ + AsyncOperationStatus bulkUploadEncrypted( + String resourceGroupName, String simGroupName, EncryptedSimUploadList parameters, Context context); +} 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 c90383e3e988b..29c6ccd888bb4 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 @@ -41,12 +41,14 @@ public interface SimPolicies { * @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 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. + * @return information about the specified SIM policy along with {@link Response}. */ - SimPolicy get(String resourceGroupName, String mobileNetworkName, String simPolicyName); + Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context); /** * Gets information about the specified SIM policy. @@ -54,14 +56,12 @@ public interface SimPolicies { * @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 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. */ - Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String simPolicyName, Context context); + SimPolicy get(String resourceGroupName, String mobileNetworkName, String simPolicyName); /** * Gets all the SIM policies in a mobile network. 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 4f0c330b3a330..0ff7c6632facb 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 @@ -62,6 +62,14 @@ public interface SimPolicy { */ ProvisioningState provisioningState(); + /** + * Gets the siteProvisioningState property: A dictionary of sites to the provisioning state of this SIM policy on + * that site. + * + * @return the siteProvisioningState value. + */ + Map siteProvisioningState(); + /** * Gets the ueAmbr property: Aggregate maximum bit rate across all non-GBR QoS flows of all PDU sessions of a given * UE. See 3GPP TS23.501 section 5.7.2.6 for a full description of the UE-AMBR. @@ -72,7 +80,7 @@ public interface SimPolicy { /** * Gets the defaultSlice property: The default slice to use if the UE does not explicitly specify it. This slice - * must exist in the `sliceConfigurations` map. + * must exist in the `sliceConfigurations` map. The slice must be in the same location as the SIM policy. * * @return the defaultSlice value. */ @@ -189,10 +197,11 @@ interface WithUeAmbr { interface WithDefaultSlice { /** * Specifies the defaultSlice property: The default slice to use if the UE does not explicitly specify it. - * This slice must exist in the `sliceConfigurations` map.. + * This slice must exist in the `sliceConfigurations` map. The slice must be in the same location as the SIM + * policy.. * * @param defaultSlice The default slice to use if the UE does not explicitly specify it. This slice must - * exist in the `sliceConfigurations` map. + * exist in the `sliceConfigurations` map. The slice must be in the same location as the SIM policy. * @return the next definition stage. */ WithSliceConfigurations withDefaultSlice(SliceResourceId defaultSlice); 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 14b4d30027f68..13bc194cfa0e8 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 @@ -24,6 +24,10 @@ public final class SimPolicyListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SimPolicyListResult class. */ + public SimPolicyListResult() { + } + /** * Get the value property: A list of SIM policies. * 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 fa5b17123d6a7..86b82e4bc4220 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 @@ -17,6 +17,10 @@ public final class SimPolicyResourceId { @JsonProperty(value = "id", required = true) private String id; + /** Creates an instance of SimPolicyResourceId class. */ + public SimPolicyResourceId() { + } + /** * Get the id property: SIM policy resource ID. * 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 2cfe2613cca86..845f94e3ec257 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SimState. */ +/** The state of the SIM resource. */ public final class SimState extends ExpandableStringEnum { /** Static value Disabled for SimState. */ public static final SimState DISABLED = fromString("Disabled"); 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 f6d2eeb68c3af..0029802d1c5f4 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 @@ -11,31 +11,34 @@ @Fluent public final class SimStaticIpProperties { /* - * The attached data network on which the static IP address will be used. - * The combination of attached data network and slice defines the network - * scope of the IP address. + * The attached data network on which the static IP address will be used. The combination of attached data network + * and slice defines the network scope of the IP address. The attached data network must be in the same location as + * the SIM. */ @JsonProperty(value = "attachedDataNetwork") private AttachedDataNetworkResourceId attachedDataNetwork; /* - * The network slice on which the static IP address will be used. The - * combination of attached data network and slice defines the network scope - * of the IP address. + * The network slice on which the static IP address will be used. The combination of attached data network and + * slice defines the network scope of the IP address. The slice must be in the same location as the SIM. */ @JsonProperty(value = "slice") private SliceResourceId slice; /* - * 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. */ @JsonProperty(value = "staticIp") private SimStaticIpPropertiesStaticIp staticIp; + /** Creates an instance of SimStaticIpProperties class. */ + public SimStaticIpProperties() { + } + /** * Get the attachedDataNetwork property: The attached data network on which the static IP address will be used. The - * combination of attached data network 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. The attached data + * network must be in the same location as the SIM. * * @return the attachedDataNetwork value. */ @@ -45,7 +48,8 @@ public AttachedDataNetworkResourceId attachedDataNetwork() { /** * Set the attachedDataNetwork property: The attached data network on which the static IP address will be used. The - * combination of attached data network 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. The attached data + * network must be in the same location as the SIM. * * @param attachedDataNetwork the attachedDataNetwork value to set. * @return the SimStaticIpProperties object itself. @@ -57,7 +61,8 @@ public SimStaticIpProperties withAttachedDataNetwork(AttachedDataNetworkResource /** * Get the slice property: The network slice on which the static IP address will be used. The combination of - * attached data network and slice defines the network scope of the IP address. + * attached data network and slice defines the network scope of the IP address. The slice must be in the same + * location as the SIM. * * @return the slice value. */ @@ -67,7 +72,8 @@ public SliceResourceId slice() { /** * Set the slice property: The network slice on which the static IP address will be used. The combination of - * attached data network and slice defines the network scope of the IP address. + * attached data network and slice defines the network scope of the IP address. The slice must be in the same + * location as the SIM. * * @param slice the slice 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 269b14d98de88..687e174facd24 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 @@ -11,13 +11,16 @@ @Fluent public final class SimStaticIpPropertiesStaticIp { /* - * The IPv4 address assigned to the SIM at this network scope. This address - * must be in the userEquipmentStaticAddressPoolPrefix defined in the - * attached data network. + * The IPv4 address assigned to the SIM at this network scope. This address must be in the + * userEquipmentStaticAddressPoolPrefix defined in the attached data network. */ @JsonProperty(value = "ipv4Address") private String ipv4Address; + /** Creates an instance of SimStaticIpPropertiesStaticIp class. */ + public SimStaticIpPropertiesStaticIp() { + } + /** * 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. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimUploadList.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimUploadList.java new file mode 100644 index 0000000000000..ca3425f054ff6 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SimUploadList.java @@ -0,0 +1,61 @@ +// 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; +import java.util.List; + +/** The SIMs to upload. */ +@Fluent +public final class SimUploadList { + /* + * A list of SIMs to upload. + */ + @JsonProperty(value = "sims", required = true) + private List sims; + + /** Creates an instance of SimUploadList class. */ + public SimUploadList() { + } + + /** + * Get the sims property: A list of SIMs to upload. + * + * @return the sims value. + */ + public List sims() { + return this.sims; + } + + /** + * Set the sims property: A list of SIMs to upload. + * + * @param sims the sims value to set. + * @return the SimUploadList object itself. + */ + public SimUploadList withSims(List sims) { + this.sims = sims; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (sims() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property sims in model SimUploadList")); + } else { + sims().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SimUploadList.class); +} 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 a86c46e36b286..becfe3268b540 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 @@ -41,12 +41,13 @@ public interface Sims { * @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. + * @return information about the specified SIM along with {@link Response}. */ - Sim get(String resourceGroupName, String simGroupName, String simName); + Response getWithResponse(String resourceGroupName, String simGroupName, String simName, Context context); /** * Gets information about the specified SIM. @@ -54,13 +55,12 @@ public interface Sims { * @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. */ - Response getWithResponse(String resourceGroupName, String simGroupName, String simName, Context context); + Sim get(String resourceGroupName, String simGroupName, String simName); /** * Gets all the SIMs in a SIM group. @@ -72,7 +72,7 @@ public interface Sims { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ - PagedIterable listBySimGroup(String resourceGroupName, String simGroupName); + PagedIterable listByGroup(String resourceGroupName, String simGroupName); /** * Gets all the SIMs in a SIM group. @@ -85,7 +85,7 @@ public interface Sims { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the SIMs in a SIM group as paginated response with {@link PagedIterable}. */ - PagedIterable listBySimGroup(String resourceGroupName, String simGroupName, Context context); + PagedIterable listByGroup(String resourceGroupName, String simGroupName, Context context); /** * Gets information about the specified SIM. 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 1f81920d5e377..03dae42be9fe7 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 @@ -64,8 +64,8 @@ public interface Site { ProvisioningState provisioningState(); /** - * Gets the networkFunctions property: An array of IDs of the network functions deployed on the site, maintained by - * the user. + * Gets the networkFunctions property: An array of IDs of the network functions deployed in the site. Deleting the + * site will delete any network functions that are deployed in the site. * * @return the networkFunctions value. */ @@ -144,7 +144,7 @@ interface WithParentResource { * The stage of the Site 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.WithNetworkFunctions { + interface WithCreate extends DefinitionStages.WithTags { /** * Executes the create request. * @@ -170,18 +170,6 @@ interface WithTags { */ WithCreate withTags(Map tags); } - /** 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, - * maintained by the user.. - * - * @param networkFunctions An array of IDs of the network functions deployed on the site, maintained by the - * user. - * @return the next definition stage. - */ - WithCreate withNetworkFunctions(List networkFunctions); - } } /** * Begins update for the Site resource. 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 fd356e2c53fd2..038a899947650 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 @@ -24,6 +24,10 @@ public final class SiteListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SiteListResult class. */ + public SiteListResult() { + } + /** * Get the value property: A list of sites in a mobile network. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteProvisioningState.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteProvisioningState.java new file mode 100644 index 0000000000000..0730089bd3217 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteProvisioningState.java @@ -0,0 +1,50 @@ +// 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; + +/** The provisioning state of a resource e.g. SIM/SIM policy on a site. */ +public final class SiteProvisioningState extends ExpandableStringEnum { + /** Static value NotApplicable for SiteProvisioningState. */ + public static final SiteProvisioningState NOT_APPLICABLE = fromString("NotApplicable"); + + /** Static value Adding for SiteProvisioningState. */ + public static final SiteProvisioningState ADDING = fromString("Adding"); + + /** Static value Updating for SiteProvisioningState. */ + public static final SiteProvisioningState UPDATING = fromString("Updating"); + + /** Static value Deleting for SiteProvisioningState. */ + public static final SiteProvisioningState DELETING = fromString("Deleting"); + + /** Static value Provisioned for SiteProvisioningState. */ + public static final SiteProvisioningState PROVISIONED = fromString("Provisioned"); + + /** Static value Failed for SiteProvisioningState. */ + public static final SiteProvisioningState FAILED = fromString("Failed"); + + /** + * Creates or finds a SiteProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding SiteProvisioningState. + */ + @JsonCreator + public static SiteProvisioningState fromString(String name) { + return fromString(name, SiteProvisioningState.class); + } + + /** + * Gets known SiteProvisioningState values. + * + * @return known SiteProvisioningState values. + */ + public static Collection values() { + return values(SiteProvisioningState.class); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteResourceId.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteResourceId.java new file mode 100644 index 0000000000000..f6d5042754238 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SiteResourceId.java @@ -0,0 +1,58 @@ +// 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 a site resource. */ +@Fluent +public final class SiteResourceId { + /* + * Site resource ID. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** Creates an instance of SiteResourceId class. */ + public SiteResourceId() { + } + + /** + * Get the id property: Site resource ID. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Site resource ID. + * + * @param id the id value to set. + * @return the SiteResourceId object itself. + */ + public SiteResourceId 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 SiteResourceId")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SiteResourceId.class); +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sites.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sites.java index a6b30b214f913..c5d9f52755a7d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sites.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Sites.java @@ -11,7 +11,8 @@ /** Resource collection API of Sites. */ public interface Sites { /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -23,7 +24,8 @@ public interface Sites { void delete(String resourceGroupName, String mobileNetworkName, String siteName); /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. @@ -41,12 +43,14 @@ public interface Sites { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param siteName The name of the mobile network site. + * @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 site. + * @return information about the specified mobile network site along with {@link Response}. */ - Site get(String resourceGroupName, String mobileNetworkName, String siteName); + Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String siteName, Context context); /** * Gets information about the specified mobile network site. @@ -54,14 +58,12 @@ public interface Sites { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param mobileNetworkName The name of the mobile network. * @param siteName The name of the mobile network site. - * @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 site along with {@link Response}. + * @return information about the specified mobile network site. */ - Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String siteName, Context context); + Site get(String resourceGroupName, String mobileNetworkName, String siteName); /** * Lists all sites in the mobile network. @@ -112,7 +114,8 @@ Response getWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -122,7 +125,8 @@ Response getWithResponse( void deleteById(String id); /** - * Deletes the specified mobile network site. + * Deletes the specified mobile network site. This will also delete any network functions that are a part of this + * site. * * @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/SliceConfiguration.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/SliceConfiguration.java index c8e222270b01f..dc9865d6948c7 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,28 +13,32 @@ @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. The slice must be in the same location as the SIM policy. */ @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 - * `dataNetworkConfigurations` map. + * The default data network to use if the UE does not explicitly specify it. Configuration for this object must + * exist in the `dataNetworkConfigurations` map. The data network must be in the same location as the SIM policy. */ @JsonProperty(value = "defaultDataNetwork", required = true) private DataNetworkResourceId defaultDataNetwork; /* - * The allowed data networks and the settings to use for them. The list - * must not contain duplicate items and must contain at least one item. + * The allowed data networks and the settings to use for them. The list must not contain duplicate items and must + * contain at least one item. */ @JsonProperty(value = "dataNetworkConfigurations", required = true) private List dataNetworkConfigurations; + /** Creates an instance of SliceConfiguration class. */ + public SliceConfiguration() { + } + /** - * 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. The slice must be in the same + * location as the SIM policy. * * @return the slice value. */ @@ -43,7 +47,8 @@ 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. The slice must be in the same + * location as the SIM policy. * * @param slice the slice value to set. * @return the SliceConfiguration object itself. @@ -55,7 +60,8 @@ public SliceConfiguration withSlice(SliceResourceId slice) { /** * Get the defaultDataNetwork property: The default data network to use if the UE does not explicitly specify it. - * Configuration for this object must exist in the `dataNetworkConfigurations` map. + * Configuration for this object must exist in the `dataNetworkConfigurations` map. The data network must be in the + * same location as the SIM policy. * * @return the defaultDataNetwork value. */ @@ -65,7 +71,8 @@ public DataNetworkResourceId defaultDataNetwork() { /** * Set the defaultDataNetwork property: The default data network to use if the UE does not explicitly specify it. - * Configuration for this object must exist in the `dataNetworkConfigurations` map. + * Configuration for this object must exist in the `dataNetworkConfigurations` map. The data network must be in the + * same location as the SIM policy. * * @param defaultDataNetwork the defaultDataNetwork 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 826e7b22abf95..f289b6cb569f7 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 @@ -24,6 +24,10 @@ public final class SliceListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SliceListResult class. */ + public SliceListResult() { + } + /** * Get the value property: A list of network slices in a mobile network. * 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 5437c7ad1c0f0..fcec10ac96e30 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 @@ -17,6 +17,10 @@ public final class SliceResourceId { @JsonProperty(value = "id", required = true) private String id; + /** Creates an instance of SliceResourceId class. */ + public SliceResourceId() { + } + /** * Get the id property: Slice resource ID. * 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 de6618e2428b8..4ebd1b32cc2fa 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 @@ -41,12 +41,14 @@ public interface Slices { * @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 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 network slice. + * @return information about the specified network slice along with {@link Response}. */ - Slice get(String resourceGroupName, String mobileNetworkName, String sliceName); + Response getWithResponse( + String resourceGroupName, String mobileNetworkName, String sliceName, Context context); /** * Gets information about the specified network slice. @@ -54,14 +56,12 @@ public interface Slices { * @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 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 network slice along with {@link Response}. + * @return information about the specified network slice. */ - Response getWithResponse( - String resourceGroupName, String mobileNetworkName, String sliceName, Context context); + Slice get(String resourceGroupName, String mobileNetworkName, String sliceName); /** * Lists all slices in the mobile network. 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 961d4c68aba88..2729c9cf95d78 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 @@ -22,6 +22,10 @@ public final class Snssai { @JsonProperty(value = "sd") private String sd; + /** Creates an instance of Snssai class. */ + public Snssai() { + } + /** * Get the sst property: Slice/service type (SST). * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TagsObject.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TagsObject.java index 198f694ef7c55..2564390164d83 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TagsObject.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/TagsObject.java @@ -19,6 +19,10 @@ public final class TagsObject { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of TagsObject class. */ + public TagsObject() { + } + /** * Get the tags property: Resource tags. * 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 df816760aad49..158916f75743d 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 @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for TrafficControlPermission. */ +/** Traffic control permission. */ public final class TrafficControlPermission extends ExpandableStringEnum { /** Static value Enabled for TrafficControlPermission. */ public static final TrafficControlPermission ENABLED = fromString("Enabled"); 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 index a9bcdf96016c9..766a12581cfd1 100644 --- 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 @@ -23,6 +23,10 @@ public class UserAssignedIdentity { @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) private UUID clientId; + /** Creates an instance of UserAssignedIdentity class. */ + public UserAssignedIdentity() { + } + /** * Get the principalId property: The principal ID of the assigned identity. * diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/VersionState.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/VersionState.java index 56f7310ee8d50..36a036d4a32b8 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/VersionState.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/VersionState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for VersionState. */ +/** The state of this packet core control plane version. */ public final class VersionState extends ExpandableStringEnum { /** Static value Unknown for VersionState. */ public static final VersionState UNKNOWN = fromString("Unknown"); diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/package-info.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/package-info.java index d0f8fb1489cd5..3b85eecc41cbf 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/package-info.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/package-info.java @@ -3,8 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the data models for MobileNetworkManagementClient. 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 containing the data models for MobileNetworkManagementClient. The resources in this API specification will be + * used to manage attached data network resources in mobile network attached to a particular packet core instance. */ package com.azure.resourcemanager.mobilenetwork.models; diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/package-info.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/package-info.java index 8a1d7b6cffc30..1761cf6b8158c 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/package-info.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the classes for MobileNetworkManagementClient. The resources in this swagger specification will be + * Package containing the classes for MobileNetworkManagementClient. The resources in this API specification will be * used to manage attached data network resources in mobile network attached to a particular packet core instance. */ package com.azure.resourcemanager.mobilenetwork; 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 87013312839d0..90cd6ade3baeb 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-04-01-preview/examples/AttachedDataNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/AttachedDataNetworkCreate.json */ /** * Sample code: Create attached data network. 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 03470357e115c..4b55544e276df 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-04-01-preview/examples/AttachedDataNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 de21352b33d13..b93b6d18b1c8c 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-04-01-preview/examples/AttachedDataNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 ad08eec17d7c4..f907c29462666 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-04-01-preview/examples/AttachedDataNetworkListByPacketCoreDataPlane.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 679707da94893..88420c7f69c36 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-04-01-preview/examples/AttachedDataNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 50a6ad0adfb09..c4be45d462dcc 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,7 +7,7 @@ /** Samples for DataNetworks CreateOrUpdate. */ public final class DataNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/DataNetworkCreate.json */ /** * Sample code: Create data network. 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 be07457ce5d45..e0346d0c5ed5c 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,7 +9,7 @@ /** Samples for DataNetworks Delete. */ public final class DataNetworksDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/DataNetworkDelete.json */ /** * Sample code: Delete data network. 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 17281b151775a..1ca46c0794920 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,7 +9,7 @@ /** Samples for DataNetworks Get. */ public final class DataNetworksGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/DataNetworkGet.json */ /** * Sample code: Get data network. 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 1dc058fb9b406..2ebc024c9a14f 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,7 +9,7 @@ /** Samples for DataNetworks ListByMobileNetwork. */ public final class DataNetworksListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/DataNetworkListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/DataNetworkListByMobileNetwork.json */ /** * Sample code: List data networks in a mobile network. 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 fec7de8881fc2..7fc8107c1c3c0 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-04-01-preview/examples/DataNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 6caa897e50c3b..073674a2aa8f0 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-04-01-preview/examples/MobileNetworkCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 8ee47e4f8de9b..9ee01d28e3a4d 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-04-01-preview/examples/MobileNetworkDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 95a15cd282242..fb35f2cfb9be9 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-04-01-preview/examples/MobileNetworkGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 1701fc400b255..99315f65fc975 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-04-01-preview/examples/MobileNetworkListByResourceGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 ba988d6257ad4..44695f9d7d03b 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-04-01-preview/examples/MobileNetworkListBySubscription.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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/MobileNetworksUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksUpdateTagsSamples.java index b3b16fb8beb4d..8576f9e9e5e89 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-04-01-preview/examples/MobileNetworkUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 db8befa74e68a..6bae9523eca9c 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-04-01-preview/examples/OperationList.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/OperationList.json */ /** * Sample code: Get Registration Operations. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneOperationCollectDiagnosticsPackageSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneOperationCollectDiagnosticsPackageSamples.java new file mode 100644 index 0000000000000..dd0dc1c373974 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneOperationCollectDiagnosticsPackageSamples.java @@ -0,0 +1,32 @@ +// 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; +import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlaneCollectDiagnosticsPackage; + +/** Samples for PacketCoreControlPlaneOperation CollectDiagnosticsPackage. */ +public final class PacketCoreControlPlaneOperationCollectDiagnosticsPackageSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneCollectDiagnosticsPackage.json + */ + /** + * Sample code: Collect diagnostics package from packet core control plane. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void collectDiagnosticsPackageFromPacketCoreControlPlane( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager + .packetCoreControlPlaneOperations() + .collectDiagnosticsPackage( + "rg1", + "TestPacketCoreCP", + new PacketCoreControlPlaneCollectDiagnosticsPackage() + .withStorageAccountBlobUrl( + "https://contosoaccount.blob.core.windows.net/container/diagnosticsPackage.zip"), + Context.NONE); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneOperationReinstallSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneOperationReinstallSamples.java new file mode 100644 index 0000000000000..abde11c02420f --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneOperationReinstallSamples.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 PacketCoreControlPlaneOperation Reinstall. */ +public final class PacketCoreControlPlaneOperationReinstallSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneReinstall.json + */ + /** + * Sample code: Reinstall packet core control plane. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void reinstallPacketCoreControlPlane( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager.packetCoreControlPlaneOperations().reinstall("rg1", "TestPacketCoreCP", Context.NONE); + } +} 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/PacketCoreControlPlaneOperationRollbackSamples.java similarity index 53% rename from sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/MobileNetworksListSimIdsSamples.java rename to sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneOperationRollbackSamples.java index 3d8c4366ecb7b..58af06a51373c 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/PacketCoreControlPlaneOperationRollbackSamples.java @@ -6,18 +6,18 @@ import com.azure.core.util.Context; -/** Samples for MobileNetworks ListSimIds. */ -public final class MobileNetworksListSimIdsSamples { +/** Samples for PacketCoreControlPlaneOperation Rollback. */ +public final class PacketCoreControlPlaneOperationRollbackSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimIdListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneRollback.json */ /** - * Sample code: List the IDs of all provisioned SIMs in a mobile network. + * Sample code: Rollback packet core control plane. * * @param manager Entry point to MobileNetworkManager. */ - public static void listTheIDsOfAllProvisionedSIMsInAMobileNetwork( + public static void rollbackPacketCoreControlPlane( com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.mobileNetworks().listSimIds("rg", "testMobileNetworkName", Context.NONE); + manager.packetCoreControlPlaneOperations().rollback("rg1", "TestPacketCoreCP", Context.NONE); } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneVersionsGetSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneVersionsGetSamples.java index 9482c654d1090..5daabbe12a728 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneVersionsGetSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneVersionsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for PacketCoreControlPlaneVersions Get. */ public final class PacketCoreControlPlaneVersionsGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneVersionGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneVersionGet.json */ /** * Sample code: Get packet core control plane version. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneVersionsListByResourceGroupSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneVersionsListSamples.java similarity index 64% rename from sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneVersionsListByResourceGroupSamples.java rename to sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneVersionsListSamples.java index 095d7d98bb05d..54489b0e7aeeb 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneVersionsListByResourceGroupSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlaneVersionsListSamples.java @@ -6,10 +6,10 @@ import com.azure.core.util.Context; -/** Samples for PacketCoreControlPlaneVersions ListByResourceGroup. */ -public final class PacketCoreControlPlaneVersionsListByResourceGroupSamples { +/** Samples for PacketCoreControlPlaneVersions List. */ +public final class PacketCoreControlPlaneVersionsListSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneVersionListByResourceGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneVersionList.json */ /** * Sample code: Get supported packet core control plane versions. @@ -18,6 +18,6 @@ public final class PacketCoreControlPlaneVersionsListByResourceGroupSamples { */ public static void getSupportedPacketCoreControlPlaneVersions( com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.packetCoreControlPlaneVersions().listByResourceGroup(Context.NONE); + manager.packetCoreControlPlaneVersions().list(Context.NONE); } } 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 925eab5736bb3..91e9ecf7f8f66 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,22 +4,24 @@ package com.azure.resourcemanager.mobilenetwork.generated; +import com.azure.resourcemanager.mobilenetwork.models.AuthenticationType; 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.HttpsServerCertificate; 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; +import com.azure.resourcemanager.mobilenetwork.models.SiteResourceId; +import java.util.Arrays; /** Samples for PacketCoreControlPlanes CreateOrUpdate. */ public final class PacketCoreControlPlanesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/PacketCoreControlPlaneCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/PacketCoreControlPlaneCreate.json */ /** * Sample code: Create packet core control plane. @@ -33,12 +35,12 @@ public static void createPacketCoreControlPlane( .define("TestPacketCoreCP") .withRegion("eastus") .withExistingResourceGroup("rg1") - .withMobileNetwork( - new MobileNetworkResourceId() - .withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork")) - .withControlPlaneAccessInterface(new InterfaceProperties().withName("N2")) - .withSku(BillingSku.fromString("testSku")) + .withSites( + Arrays + .asList( + new SiteResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/sites/testSite"))) .withPlatform( new PlatformConfiguration() .withType(PlatformType.AKS_HCI) @@ -54,13 +56,17 @@ public static void createPacketCoreControlPlane( new CustomLocationResourceId() .withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/TestCustomLocation"))) - .withCoreNetworkTechnology(CoreNetworkType.FIVE_GC) - .withVersion("0.2.0") + .withControlPlaneAccessInterface(new InterfaceProperties().withName("N2")) + .withSku(BillingSku.G0) .withLocalDiagnosticsAccess( new LocalDiagnosticsAccessConfiguration() + .withAuthenticationType(AuthenticationType.AAD) .withHttpsServerCertificate( - new KeyVaultCertificate() + new HttpsServerCertificate() .withCertificateUrl("https://contosovault.vault.azure.net/certificates/ingress"))) + .withCoreNetworkTechnology(CoreNetworkType.FIVE_GC) + .withVersion("0.2.0") + .withUeMtu(1600) .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 c9d5a51ee8c41..3e9a96636a0fb 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-04-01-preview/examples/PacketCoreControlPlaneDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 79d24d79c11ba..ab79609b04be3 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-04-01-preview/examples/PacketCoreControlPlaneGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 43a0c4289c8a1..a90521e47d898 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-04-01-preview/examples/PacketCoreControlPlaneListByResourceGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 404b8ac695aaa..652405b8cc693 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-04-01-preview/examples/PacketCoreControlPlaneListBySubscription.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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/PacketCoreControlPlanesUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/PacketCoreControlPlanesUpdateTagsSamples.java index 801abe221ac27..c3f9dbb08ecbf 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-04-01-preview/examples/PacketCoreControlPlaneUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 4f814e727e48c..ac90a64493ae8 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-04-01-preview/examples/PacketCoreDataPlaneCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 c65a825a4ddcd..4d1d5d4987604 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-04-01-preview/examples/PacketCoreDataPlaneDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 0ee55297cd8c8..58292a3bfa758 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-04-01-preview/examples/PacketCoreDataPlaneGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 99fefcb05416d..3c61f1c67fcd0 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-04-01-preview/examples/PacketCoreDataPlaneListByPacketCoreControlPlane.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 472cb3c34992d..b80efe7b8307e 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-04-01-preview/examples/PacketCoreDataPlaneUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 b9cb6f289f83c..730be450d8fc3 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-04-01-preview/examples/ServiceCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 8cc61956c114e..01a42438d82c1 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-04-01-preview/examples/ServiceDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 a0451c478b5aa..436a13cafd7d5 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-04-01-preview/examples/ServiceGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 f4064ea252dcd..f500a22760922 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-04-01-preview/examples/ServiceListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 fd5373b876d65..903227632a3cb 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-04-01-preview/examples/ServiceUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 index be98113aa283b..e79b82fbc31ff 100644 --- 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 @@ -5,12 +5,17 @@ package com.azure.resourcemanager.mobilenetwork.generated; import com.azure.resourcemanager.mobilenetwork.models.KeyVaultKey; +import com.azure.resourcemanager.mobilenetwork.models.ManagedServiceIdentity; +import com.azure.resourcemanager.mobilenetwork.models.ManagedServiceIdentityType; import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.UserAssignedIdentity; +import java.util.HashMap; +import java.util.Map; /** 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupCreate.json */ /** * Sample code: Create SIM group. @@ -23,11 +28,29 @@ public static void createSIMGroup(com.azure.resourcemanager.mobilenetwork.Mobile .define("testSimGroup") .withRegion("eastus") .withExistingResourceGroup("rg1") - .withEncryptionKey(new KeyVaultKey().withKeyUrl("https://contosovault.vault.azure.net/keys/azureKey")) + .withIdentity( + new ManagedServiceIdentity() + .withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities( + mapOf( + "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUserAssignedManagedIdentity", + new UserAssignedIdentity()))) + .withEncryptionKey(new KeyVaultKey().withKeyUrl("fakeTokenPlaceholder")) .withMobileNetwork( new MobileNetworkResourceId() .withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork")) .create(); } + + @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; + } } diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsDeleteSamples.java index d46bb24a511c5..50e5e70bee672 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsDeleteSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsDeleteSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupDelete.json */ /** * Sample code: Delete SIM group. 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 index 944855ca058ad..060e63c53b183 100644 --- 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 @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupGet.json */ /** * Sample code: Get SIM group. 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 index 16bdf5c069071..f3c4a75449ad3 100644 --- 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 @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupListByResourceGroup.json */ /** * Sample code: List SIM groups in a resource group. 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 index be486d383e7c5..acad63bc35792 100644 --- 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 @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupListBySubscription.json */ /** * Sample code: List SIM groups in a subscription. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsUpdateTagsSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsUpdateTagsSamples.java index c752125f223b9..b177fda0f640d 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsUpdateTagsSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimGroupsUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** 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 + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGroupUpdateTags.json */ /** * Sample code: Update SIM group tags. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkDeleteSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkDeleteSamples.java new file mode 100644 index 0000000000000..bae7131b07b46 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkDeleteSamples.java @@ -0,0 +1,31 @@ +// 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; +import com.azure.resourcemanager.mobilenetwork.models.SimDeleteList; +import java.util.Arrays; + +/** Samples for SimOperation BulkDelete. */ +public final class SimOperationBulkDeleteSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimBulkDelete.json + */ + /** + * Sample code: Bulk delete SIMs from a SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void bulkDeleteSIMsFromASIMGroup( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager + .simOperations() + .bulkDelete( + "testResourceGroupName", + "testSimGroup", + new SimDeleteList().withSims(Arrays.asList("testSim", "testSim2")), + Context.NONE); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkUploadEncryptedSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkUploadEncryptedSamples.java new file mode 100644 index 0000000000000..d1101312e4acd --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkUploadEncryptedSamples.java @@ -0,0 +1,95 @@ +// 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; +import com.azure.resourcemanager.mobilenetwork.models.AttachedDataNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.EncryptedSimUploadList; +import com.azure.resourcemanager.mobilenetwork.models.SimNameAndEncryptedProperties; +import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; +import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties; +import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpPropertiesStaticIp; +import com.azure.resourcemanager.mobilenetwork.models.SliceResourceId; +import java.util.Arrays; + +/** Samples for SimOperation BulkUploadEncrypted. */ +public final class SimOperationBulkUploadEncryptedSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimBulkUploadEncrypted.json + */ + /** + * Sample code: Bulk upload encrypted SIMs to a SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void bulkUploadEncryptedSIMsToASIMGroup( + com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager + .simOperations() + .bulkUploadEncrypted( + "rg1", + "testSimGroup", + new EncryptedSimUploadList() + .withVersion(1) + .withAzureKeyIdentifier(1) + .withVendorKeyFingerprint("fakeTokenPlaceholder") + .withEncryptedTransportKey("fakeTokenPlaceholder") + .withSignedTransportKey("fakeTokenPlaceholder") + .withSims( + Arrays + .asList( + new SimNameAndEncryptedProperties() + .withName("testSim") + .withEncryptedCredentials("fakeTokenPlaceholder") + .withInternationalMobileSubscriberIdentity("00000") + .withIntegratedCircuitCardIdentifier("8900000000000000000") + .withDeviceType("Video camera") + .withSimPolicy( + new SimPolicyResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy")) + .withStaticIpConfiguration( + Arrays + .asList( + new SimStaticIpProperties() + .withAttachedDataNetwork( + new AttachedDataNetworkResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork")) + .withSlice( + new SliceResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice")) + .withStaticIp( + new SimStaticIpPropertiesStaticIp() + .withIpv4Address("2.4.0.1")))), + new SimNameAndEncryptedProperties() + .withName("testSim2") + .withEncryptedCredentials("fakeTokenPlaceholder") + .withInternationalMobileSubscriberIdentity("00000") + .withIntegratedCircuitCardIdentifier("8900000000000000001") + .withDeviceType("Video camera") + .withSimPolicy( + new SimPolicyResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy")) + .withStaticIpConfiguration( + Arrays + .asList( + new SimStaticIpProperties() + .withAttachedDataNetwork( + new AttachedDataNetworkResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork")) + .withSlice( + new SliceResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice")) + .withStaticIp( + new SimStaticIpPropertiesStaticIp() + .withIpv4Address("2.4.0.2")))))), + Context.NONE); + } +} diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkUploadSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkUploadSamples.java new file mode 100644 index 0000000000000..1dcf89eb698f2 --- /dev/null +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimOperationBulkUploadSamples.java @@ -0,0 +1,91 @@ +// 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; +import com.azure.resourcemanager.mobilenetwork.models.AttachedDataNetworkResourceId; +import com.azure.resourcemanager.mobilenetwork.models.SimNameAndProperties; +import com.azure.resourcemanager.mobilenetwork.models.SimPolicyResourceId; +import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpProperties; +import com.azure.resourcemanager.mobilenetwork.models.SimStaticIpPropertiesStaticIp; +import com.azure.resourcemanager.mobilenetwork.models.SimUploadList; +import com.azure.resourcemanager.mobilenetwork.models.SliceResourceId; +import java.util.Arrays; + +/** Samples for SimOperation BulkUpload. */ +public final class SimOperationBulkUploadSamples { + /* + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimBulkUpload.json + */ + /** + * Sample code: Bulk upload SIMs in a SIM group. + * + * @param manager Entry point to MobileNetworkManager. + */ + public static void bulkUploadSIMsInASIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { + manager + .simOperations() + .bulkUpload( + "rg1", + "testSimGroup", + new SimUploadList() + .withSims( + Arrays + .asList( + new SimNameAndProperties() + .withName("testSim") + .withAuthenticationKey("fakeTokenPlaceholder") + .withOperatorKeyCode("fakeTokenPlaceholder") + .withInternationalMobileSubscriberIdentity("00000") + .withIntegratedCircuitCardIdentifier("8900000000000000000") + .withDeviceType("Video camera") + .withSimPolicy( + new SimPolicyResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy")) + .withStaticIpConfiguration( + Arrays + .asList( + new SimStaticIpProperties() + .withAttachedDataNetwork( + new AttachedDataNetworkResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork")) + .withSlice( + new SliceResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice")) + .withStaticIp( + new SimStaticIpPropertiesStaticIp() + .withIpv4Address("2.4.0.1")))), + new SimNameAndProperties() + .withName("testSim2") + .withAuthenticationKey("fakeTokenPlaceholder") + .withOperatorKeyCode("fakeTokenPlaceholder") + .withInternationalMobileSubscriberIdentity("00000") + .withIntegratedCircuitCardIdentifier("8900000000000000001") + .withDeviceType("Video camera") + .withSimPolicy( + new SimPolicyResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/simPolicies/MySimPolicy")) + .withStaticIpConfiguration( + Arrays + .asList( + new SimStaticIpProperties() + .withAttachedDataNetwork( + new AttachedDataNetworkResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestAttachedDataNetwork")) + .withSlice( + new SliceResourceId() + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/slices/testSlice")) + .withStaticIp( + new SimStaticIpPropertiesStaticIp() + .withIpv4Address("2.4.0.2")))))), + Context.NONE); + } +} 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 1cbe6d6f47a93..a221aa32a3f24 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,7 +18,7 @@ /** Samples for SimPolicies CreateOrUpdate. */ public final class SimPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimPolicyCreate.json */ /** * Sample code: Create SIM policy. @@ -68,7 +68,8 @@ public static void createSIMPolicy(com.azure.resourcemanager.mobilenetwork.Mobil .asList( new ServiceResourceId() .withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/services/testService"))))))) + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/services/testService"))) + .withMaximumNumberOfBufferedPackets(200))))) .withRegistrationTimer(3240) .create(); } 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 9e37ac992377d..f90212539b76f 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,7 +9,7 @@ /** Samples for SimPolicies Delete. */ public final class SimPoliciesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimPolicyDelete.json */ /** * Sample code: Delete SIM policy. 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 aed2014d112d5..782aa8cc32fe0 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,7 +9,7 @@ /** Samples for SimPolicies Get. */ public final class SimPoliciesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimPolicyGet.json */ /** * Sample code: Get SIM policy. 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 d2a0de2858173..13fa51f88136e 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,7 +9,7 @@ /** Samples for SimPolicies ListByMobileNetwork. */ public final class SimPoliciesListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimPolicyListByMobileNetwork.json */ /** * Sample code: List SIM policies in a mobile network. 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 8fcbc7a047553..d563fb9cc5148 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,7 +12,7 @@ /** Samples for SimPolicies UpdateTags. */ public final class SimPoliciesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimPolicyUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimPolicyUpdateTags.json */ /** * Sample code: Update SIM policy tags. 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 fb1510c2a2676..ae73a92c7e540 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 @@ -14,7 +14,7 @@ /** Samples for Sims CreateOrUpdate. */ public final class SimsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimCreate.json */ /** * Sample code: Create SIM. @@ -27,9 +27,9 @@ public static void createSIM(com.azure.resourcemanager.mobilenetwork.MobileNetwo .define("testSim") .withExistingSimGroup("rg1", "testSimGroup") .withInternationalMobileSubscriberIdentity("00000") - .withIntegratedCircuitCardIdentifier("8900000000000000000") .withAuthenticationKey("00000000000000000000000000000000") .withOperatorKeyCode("00000000000000000000000000000000") + .withIntegratedCircuitCardIdentifier("8900000000000000000") .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 6bf170dc8c08a..cc173f3e454a2 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,7 +9,7 @@ /** Samples for Sims Delete. */ public final class SimsDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimDelete.json */ /** * Sample code: Delete SIM. diff --git a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsGetSamples.java b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsGetSamples.java index c4c003b09e457..ac4488c27d637 100644 --- a/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsGetSamples.java +++ b/sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Sims Get. */ public final class SimsGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimGet.json */ /** * Sample code: Get SIM. 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/SimsListByGroupSamples.java similarity index 69% rename from sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsListBySimGroupSamples.java rename to sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/samples/java/com/azure/resourcemanager/mobilenetwork/generated/SimsListByGroupSamples.java index 62547fbc7b344..ec30654aa67df 100644 --- 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/SimsListByGroupSamples.java @@ -6,10 +6,10 @@ import com.azure.core.util.Context; -/** Samples for Sims ListBySimGroup. */ -public final class SimsListBySimGroupSamples { +/** Samples for Sims ListByGroup. */ +public final class SimsListByGroupSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SimListBySimGroup.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SimListBySimGroup.json */ /** * Sample code: List SIMs in a SIM group. @@ -17,6 +17,6 @@ public final class SimsListBySimGroupSamples { * @param manager Entry point to MobileNetworkManager. */ public static void listSIMsInASIMGroup(com.azure.resourcemanager.mobilenetwork.MobileNetworkManager manager) { - manager.sims().listBySimGroup("rg1", "testSimGroup", Context.NONE); + manager.sims().listByGroup("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 1a19cb812e3be..b3b5f8fc3ad04 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 @@ -4,13 +4,10 @@ package com.azure.resourcemanager.mobilenetwork.generated; -import com.azure.core.management.SubResource; -import java.util.Arrays; - /** Samples for Sites CreateOrUpdate. */ public final class SitesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SiteCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SiteCreate.json */ /** * Sample code: Create mobile network site. @@ -23,12 +20,6 @@ public static void createMobileNetworkSite(com.azure.resourcemanager.mobilenetwo .define("testSite") .withRegion("testLocation") .withExistingMobileNetwork("rg1", "testMobileNetwork") - .withNetworkFunctions( - Arrays - .asList( - new SubResource() - .withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HybridNetwork/networkFunctions/testNf"))) .create(); } } 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 f7aa94569f289..212464a949d5e 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-04-01-preview/examples/SiteDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 116fe814101be..0a5bee4013d86 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-04-01-preview/examples/SiteGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 97ca5d9a7ff90..1ea899b1b08ad 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-04-01-preview/examples/SiteListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 5cec26ef48dff..2c7c4c7a98a87 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-04-01-preview/examples/SiteUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/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 6eb181131474c..0fd0a67f47d2a 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,7 +9,7 @@ /** Samples for Slices CreateOrUpdate. */ public final class SlicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceCreate.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SliceCreate.json */ /** * Sample code: Create network slice. 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 eb60084ef56e8..cb36f139fd8db 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,7 +9,7 @@ /** Samples for Slices Delete. */ public final class SlicesDeleteSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceDelete.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SliceDelete.json */ /** * Sample code: Delete network slice. 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 d57bf54d37671..b48ff9f452af8 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,7 +9,7 @@ /** Samples for Slices Get. */ public final class SlicesGetSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceGet.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SliceGet.json */ /** * Sample code: Get network slice. 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 0fd7837fd33dd..3c0873b41154e 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,7 +9,7 @@ /** Samples for Slices ListByMobileNetwork. */ public final class SlicesListByMobileNetworkSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceListByMobileNetwork.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SliceListByMobileNetwork.json */ /** * Sample code: List network slices in a mobile network. 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 770af0e3406f2..c3488c7f39332 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,7 +12,7 @@ /** Samples for Slices UpdateTags. */ public final class SlicesUpdateTagsSamples { /* - * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/preview/2022-04-01-preview/examples/SliceUpdateTags.json + * x-ms-original-file: specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/examples/SliceUpdateTags.json */ /** * Sample code: Update network slice tags.