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
+ .