Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-mobilenetwork] update readme #13395

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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.2 (Unreleased)
## 1.0.0-beta.1 (2022-03-15)

- Azure Resource Manager MobileNetwork client library for Java. This package contains Microsoft Azure SDK for MobileNetwork Management SDK. The resources in this swagger specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance. Package tag package-2022-01-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
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.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static Configurable configure() {

/** The Configurable allowing configurations to be set. */
public static final class Configurable {
private final ClientLogger logger = new ClientLogger(Configurable.class);
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);

private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
Expand Down Expand Up @@ -191,9 +191,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
this.defaultPollInterval =
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@
import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties;
import com.azure.resourcemanager.mobilenetwork.models.NaptConfiguration;
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

/** Attached data network resource. */
@Fluent
public final class AttachedDataNetworkInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDataNetworkInner.class);

/*
* Data network properties.
*/
Expand All @@ -42,14 +39,14 @@ private AttachedDataNetworkPropertiesFormat innerProperties() {
return this.innerProperties;
}

// /**
// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource.
// *
// * @return the innerSystemData value.
// */
// private SystemData innerSystemData() {
// return this.innerSystemData;
// }
/**
* Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the innerSystemData value.
*/
private SystemData innerSystemData() {
return this.innerSystemData;
}

/** {@inheritDoc} */
@Override
Expand Down Expand Up @@ -192,12 +189,14 @@ public AttachedDataNetworkInner withUserEquipmentStaticAddressPoolPrefix(
*/
public void validate() {
if (innerProperties() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model AttachedDataNetworkInner"));
} else {
innerProperties().validate();
}
}

private static final ClientLogger LOGGER = new ClientLogger(AttachedDataNetworkInner.class);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@
import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties;
import com.azure.resourcemanager.mobilenetwork.models.NaptConfiguration;
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Data network properties. */
@Fluent
public final class AttachedDataNetworkPropertiesFormat {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDataNetworkPropertiesFormat.class);

/*
* The provisioning state of the attached data network resource.
*/
Expand Down Expand Up @@ -180,7 +177,7 @@ public AttachedDataNetworkPropertiesFormat withUserEquipmentStaticAddressPoolPre
*/
public void validate() {
if (userPlaneDataInterface() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property userPlaneDataInterface in model"
Expand All @@ -192,4 +189,6 @@ public void validate() {
naptConfiguration().validate();
}
}

private static final ClientLogger LOGGER = new ClientLogger(AttachedDataNetworkPropertiesFormat.class);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/** Data network resource. */
@Fluent
public final class DataNetworkInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataNetworkInner.class);

/*
* Data network properties.
*/
Expand All @@ -39,14 +35,14 @@ private DataNetworkPropertiesFormat innerProperties() {
return this.innerProperties;
}

// /**
// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource.
// *
// * @return the innerSystemData value.
// */
// private SystemData innerSystemData() {
// return this.innerSystemData;
// }
/**
* Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the innerSystemData value.
*/
private SystemData innerSystemData() {
return this.innerSystemData;
}

/** {@inheritDoc} */
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
package com.azure.resourcemanager.mobilenetwork.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Data network properties. */
@Fluent
public final class DataNetworkPropertiesFormat {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataNetworkPropertiesFormat.class);

/*
* The provisioning state of the data network resource.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mobilenetwork.models.PlmnId;
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/** Mobile network resource. */
@Fluent
public final class MobileNetworkInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(MobileNetworkInner.class);

/*
* Mobile network properties.
*/
Expand All @@ -40,14 +37,14 @@ private MobileNetworkPropertiesFormat innerProperties() {
return this.innerProperties;
}

// /**
// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource.
// *
// * @return the innerSystemData value.
// */
// private SystemData innerSystemData() {
// return this.innerSystemData;
// }
/**
* Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the innerSystemData value.
*/
private SystemData innerSystemData() {
return this.innerSystemData;
}

/** {@inheritDoc} */
@Override
Expand Down Expand Up @@ -117,12 +114,14 @@ public String serviceKey() {
*/
public void validate() {
if (innerProperties() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model MobileNetworkInner"));
} else {
innerProperties().validate();
}
}

private static final ClientLogger LOGGER = new ClientLogger(MobileNetworkInner.class);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mobilenetwork.models.PlmnId;
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Mobile network properties. */
@Fluent
public final class MobileNetworkPropertiesFormat {
@JsonIgnore private final ClientLogger logger = new ClientLogger(MobileNetworkPropertiesFormat.class);

/*
* The provisioning state of the mobile network resource.
*/
Expand Down Expand Up @@ -90,7 +87,7 @@ public String serviceKey() {
*/
public void validate() {
if (publicLandMobileNetworkIdentifier() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property publicLandMobileNetworkIdentifier in model"
Expand All @@ -99,4 +96,6 @@ public void validate() {
publicLandMobileNetworkIdentifier().validate();
}
}

private static final ClientLogger LOGGER = new ClientLogger(MobileNetworkPropertiesFormat.class);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
package com.azure.resourcemanager.mobilenetwork.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mobilenetwork.models.OperationDisplay;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Object that describes a single Microsoft.MobileNetwork operation. */
@Fluent
public final class OperationInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);

/*
* Indicates whether the operation applies to data-plane.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@
import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties;
import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId;
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/** Packet core control plane resource. */
@Fluent
public final class PacketCoreControlPlaneInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PacketCoreControlPlaneInner.class);

/*
* Packet core control plane Properties.
*/
Expand All @@ -43,14 +40,14 @@ private PacketCoreControlPlanePropertiesFormat innerProperties() {
return this.innerProperties;
}

// /**
// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource.
// *
// * @return the innerSystemData value.
// */
// private SystemData innerSystemData() {
// return this.innerSystemData;
// }
/**
* Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the innerSystemData value.
*/
private SystemData innerSystemData() {
return this.innerSystemData;
}

/** {@inheritDoc} */
@Override
Expand Down Expand Up @@ -200,12 +197,14 @@ public PacketCoreControlPlaneInner withControlPlaneAccessInterface(
*/
public void validate() {
if (innerProperties() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model PacketCoreControlPlaneInner"));
} else {
innerProperties().validate();
}
}

private static final ClientLogger LOGGER = new ClientLogger(PacketCoreControlPlaneInner.class);
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@
import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties;
import com.azure.resourcemanager.mobilenetwork.models.MobileNetworkResourceId;
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** PacketCoreControlPlane properties. */
@Fluent
public final class PacketCoreControlPlanePropertiesFormat {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PacketCoreControlPlanePropertiesFormat.class);

/*
* The provisioning state of the packet core control plane resource.
*/
Expand Down Expand Up @@ -176,7 +173,7 @@ public PacketCoreControlPlanePropertiesFormat withControlPlaneAccessInterface(
*/
public void validate() {
if (mobileNetwork() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property mobileNetwork in model PacketCoreControlPlanePropertiesFormat"));
Expand All @@ -187,7 +184,7 @@ public void validate() {
customLocation().validate();
}
if (controlPlaneAccessInterface() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property controlPlaneAccessInterface in model"
Expand All @@ -196,4 +193,6 @@ public void validate() {
controlPlaneAccessInterface().validate();
}
}

private static final ClientLogger LOGGER = new ClientLogger(PacketCoreControlPlanePropertiesFormat.class);
}
Loading