Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.6 (Unreleased)
## 1.0.0-beta.1 (2023-06-25)

- 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-2023-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 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).
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-2023-06. 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

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-mobilenetwork</artifactId>
<version>1.0.0-beta.5</version>
<version>1.0.0-beta.6</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
515 changes: 417 additions & 98 deletions sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/SAMPLE.md

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand All @@ -13,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for MobileNetwork Management</name>
<description>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.</description>
<description>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-2023-06.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -38,7 +43,8 @@
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
import com.azure.resourcemanager.mobilenetwork.fluent.MobileNetworkManagementClient;
import com.azure.resourcemanager.mobilenetwork.implementation.AttachedDataNetworksImpl;
import com.azure.resourcemanager.mobilenetwork.implementation.DataNetworksImpl;
import com.azure.resourcemanager.mobilenetwork.implementation.DiagnosticsPackagesImpl;
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.PacketCapturesImpl;
import com.azure.resourcemanager.mobilenetwork.implementation.PacketCoreControlPlaneVersionsImpl;
import com.azure.resourcemanager.mobilenetwork.implementation.PacketCoreControlPlanesImpl;
import com.azure.resourcemanager.mobilenetwork.implementation.PacketCoreDataPlanesImpl;
Expand All @@ -40,8 +42,10 @@
import com.azure.resourcemanager.mobilenetwork.implementation.SlicesImpl;
import com.azure.resourcemanager.mobilenetwork.models.AttachedDataNetworks;
import com.azure.resourcemanager.mobilenetwork.models.DataNetworks;
import com.azure.resourcemanager.mobilenetwork.models.DiagnosticsPackages;
import com.azure.resourcemanager.mobilenetwork.models.MobileNetworks;
import com.azure.resourcemanager.mobilenetwork.models.Operations;
import com.azure.resourcemanager.mobilenetwork.models.PacketCaptures;
import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlaneVersions;
import com.azure.resourcemanager.mobilenetwork.models.PacketCoreControlPlanes;
import com.azure.resourcemanager.mobilenetwork.models.PacketCoreDataPlanes;
Expand All @@ -67,10 +71,14 @@ public final class MobileNetworkManager {

private DataNetworks dataNetworks;

private DiagnosticsPackages diagnosticsPackages;

private MobileNetworks mobileNetworks;

private Operations operations;

private PacketCaptures packetCaptures;

private PacketCoreControlPlanes packetCoreControlPlanes;

private PacketCoreControlPlaneVersions packetCoreControlPlaneVersions;
Expand Down Expand Up @@ -254,7 +262,7 @@ public MobileNetworkManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.mobilenetwork")
.append("/")
.append("1.0.0-beta.5");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -335,6 +343,18 @@ public DataNetworks dataNetworks() {
return dataNetworks;
}

/**
* Gets the resource collection API of DiagnosticsPackages.
*
* @return Resource collection API of DiagnosticsPackages.
*/
public DiagnosticsPackages diagnosticsPackages() {
if (this.diagnosticsPackages == null) {
this.diagnosticsPackages = new DiagnosticsPackagesImpl(clientObject.getDiagnosticsPackages(), this);
}
return diagnosticsPackages;
}

/**
* Gets the resource collection API of MobileNetworks. It manages MobileNetwork.
*
Expand All @@ -359,6 +379,18 @@ public Operations operations() {
return operations;
}

/**
* Gets the resource collection API of PacketCaptures. It manages PacketCapture.
*
* @return Resource collection API of PacketCaptures.
*/
public PacketCaptures packetCaptures() {
if (this.packetCaptures == null) {
this.packetCaptures = new PacketCapturesImpl(clientObject.getPacketCaptures(), this);
}
return packetCaptures;
}

/**
* Gets the resource collection API of PacketCoreControlPlanes. It manages PacketCoreControlPlane.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.mobilenetwork.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.mobilenetwork.fluent.models.DiagnosticsPackageInner;

/** An instance of this class provides access to all the operations defined in DiagnosticsPackagesClient. */
public interface DiagnosticsPackagesClient {
/**
* Creates or updates a diagnostics package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @param diagnosticsPackageName The name of the diagnostics package.
* @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 diagnostics package resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<DiagnosticsPackageInner>, DiagnosticsPackageInner> beginCreateOrUpdate(
String resourceGroupName, String packetCoreControlPlaneName, String diagnosticsPackageName);

/**
* Creates or updates a diagnostics package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @param diagnosticsPackageName The name of the diagnostics package.
* @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 diagnostics package resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<DiagnosticsPackageInner>, DiagnosticsPackageInner> beginCreateOrUpdate(
String resourceGroupName, String packetCoreControlPlaneName, String diagnosticsPackageName, Context context);

/**
* Creates or updates a diagnostics package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @param diagnosticsPackageName The name of the diagnostics package.
* @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 diagnostics package resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiagnosticsPackageInner createOrUpdate(
String resourceGroupName, String packetCoreControlPlaneName, String diagnosticsPackageName);

/**
* Creates or updates a diagnostics package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @param diagnosticsPackageName The name of the diagnostics package.
* @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 diagnostics package resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiagnosticsPackageInner createOrUpdate(
String resourceGroupName, String packetCoreControlPlaneName, String diagnosticsPackageName, Context context);

/**
* Gets information about the specified diagnostics package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @param diagnosticsPackageName The name of the diagnostics package.
* @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 diagnostics package along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<DiagnosticsPackageInner> getWithResponse(
String resourceGroupName, String packetCoreControlPlaneName, String diagnosticsPackageName, Context context);

/**
* Gets information about the specified diagnostics package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @param diagnosticsPackageName The name of the diagnostics package.
* @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 diagnostics package.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiagnosticsPackageInner get(
String resourceGroupName, String packetCoreControlPlaneName, String diagnosticsPackageName);

/**
* Deletes the specified diagnostics package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @param diagnosticsPackageName The name of the diagnostics package.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String packetCoreControlPlaneName, String diagnosticsPackageName);

/**
* Deletes the specified diagnostics package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @param diagnosticsPackageName The name of the diagnostics package.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String packetCoreControlPlaneName, String diagnosticsPackageName, Context context);

/**
* Deletes the specified diagnostics package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @param diagnosticsPackageName The name of the diagnostics package.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String packetCoreControlPlaneName, String diagnosticsPackageName);

/**
* Deletes the specified diagnostics package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @param diagnosticsPackageName The name of the diagnostics package.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(
String resourceGroupName, String packetCoreControlPlaneName, String diagnosticsPackageName, Context context);

/**
* Lists all the diagnostics packages under a packet core control plane.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @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 diagnostics package API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<DiagnosticsPackageInner> listByPacketCoreControlPlane(
String resourceGroupName, String packetCoreControlPlaneName);

/**
* Lists all the diagnostics packages under a packet core control plane.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param packetCoreControlPlaneName The name of the packet core control plane.
* @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 diagnostics package API service call as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<DiagnosticsPackageInner> listByPacketCoreControlPlane(
String resourceGroupName, String packetCoreControlPlaneName, Context context);
}
Loading