Skip to content

Commit

Permalink
[Automation] Generate Fluent Lite from mobilenetwork#package-2022-03-…
Browse files Browse the repository at this point in the history
…01-preview (Azure#27846)

* [Automation] Generate Fluent Lite from mobilenetwork#package-2022-03-01-preview

* Update CHANGELOG.md

Co-authored-by: Xiaofei Cao <[email protected]>
  • Loading branch information
azure-sdk and XiaofeiCao authored Mar 25, 2022
1 parent 907b52f commit d5ec73d
Show file tree
Hide file tree
Showing 161 changed files with 833 additions and 771 deletions.
60 changes: 56 additions & 4 deletions sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,66 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.2 (2022-03-25)

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

### Breaking Changes

### Bugs Fixed
* `models.ConfigurationState` was removed

#### `models.Sim` was modified

* `configurationState()` was removed

### Features Added

* `models.SimState` was added

#### `models.DataNetwork` was modified

* `systemData()` was added

#### `models.Slice` was modified

* `systemData()` was added

#### `models.PacketCoreControlPlane` was modified

* `systemData()` was added

#### `models.Site` was modified

* `systemData()` was added

#### `models.Sim` was modified

* `simState()` was added
* `systemData()` was added

#### `models.SimPolicy` was modified

* `systemData()` was added

#### `models.MobileNetwork` was modified

* `systemData()` was added

#### `models.PacketCoreDataPlane` was modified

* `systemData()` was added

#### `models.Service` was modified

* `systemData()` was added

#### `models.InterfaceProperties` was modified

### Other Changes
* `ipv4Subnet()` was added
* `withIpv4Subnet(java.lang.String)` was added
* `withIpv4Gateway(java.lang.String)` was added
* `ipv4Gateway()` was added
* `ipv4Address()` was added
* `withIpv4Address(java.lang.String)` was added

## 1.0.0-beta.1 (2022-02-28)

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

## 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.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
110 changes: 55 additions & 55 deletions sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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 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.</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 swagger specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance. Package tag package-2022-03-01-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
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 All @@ -215,7 +217,7 @@ public MobileNetworkManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.mobilenetwork")
.append("/")
.append("1.0.0-beta.1");
.append("1.0.0-beta.2");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,23 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties;
import com.azure.resourcemanager.mobilenetwork.models.NaptConfiguration;
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.
*/
@JsonProperty(value = "properties", required = true)
private AttachedDataNetworkPropertiesFormat innerProperties = new AttachedDataNetworkPropertiesFormat();

/*
* Metadata pertaining to creation and last modification of the resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData innerSystemData;

/**
* Get the innerProperties property: Data network properties.
*
Expand All @@ -42,15 +32,6 @@ 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;
// }

/** {@inheritDoc} */
@Override
public AttachedDataNetworkInner withLocation(String location) {
Expand Down Expand Up @@ -192,12 +173,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,28 +7,25 @@
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.
*/
@JsonProperty(value = "properties")
private DataNetworkPropertiesFormat innerProperties;

/*
* Metadata pertaining to creation and last modification of the resource.
* Azure Resource Manager metadata containing createdBy and modifiedBy
* information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData innerSystemData;
private SystemData systemData;

/**
* Get the innerProperties property: Data network properties.
Expand All @@ -39,14 +36,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 systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/** {@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,26 +10,24 @@
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.
*/
@JsonProperty(value = "properties", required = true)
private MobileNetworkPropertiesFormat innerProperties = new MobileNetworkPropertiesFormat();

/*
* Metadata pertaining to creation and last modification of the resource.
* Azure Resource Manager metadata containing createdBy and modifiedBy
* information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData innerSystemData;
private SystemData systemData;

/**
* Get the innerProperties property: Mobile network properties.
Expand All @@ -40,14 +38,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 systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/** {@inheritDoc} */
@Override
Expand Down Expand Up @@ -117,12 +115,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);
}
Loading

0 comments on commit d5ec73d

Please sign in to comment.