Skip to content

Commit d5ec73d

Browse files
[Automation] Generate Fluent Lite from mobilenetwork#package-2022-03-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]>
1 parent 907b52f commit d5ec73d

File tree

161 files changed

+833
-771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+833
-771
lines changed

sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/CHANGELOG.md

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,66 @@
11
# Release History
22

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

5-
### Features Added
5+
- 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).
66

77
### Breaking Changes
88

9-
### Bugs Fixed
9+
* `models.ConfigurationState` was removed
10+
11+
#### `models.Sim` was modified
12+
13+
* `configurationState()` was removed
14+
15+
### Features Added
16+
17+
* `models.SimState` was added
18+
19+
#### `models.DataNetwork` was modified
20+
21+
* `systemData()` was added
22+
23+
#### `models.Slice` was modified
24+
25+
* `systemData()` was added
26+
27+
#### `models.PacketCoreControlPlane` was modified
28+
29+
* `systemData()` was added
30+
31+
#### `models.Site` was modified
32+
33+
* `systemData()` was added
34+
35+
#### `models.Sim` was modified
36+
37+
* `simState()` was added
38+
* `systemData()` was added
39+
40+
#### `models.SimPolicy` was modified
41+
42+
* `systemData()` was added
43+
44+
#### `models.MobileNetwork` was modified
45+
46+
* `systemData()` was added
47+
48+
#### `models.PacketCoreDataPlane` was modified
49+
50+
* `systemData()` was added
51+
52+
#### `models.Service` was modified
53+
54+
* `systemData()` was added
55+
56+
#### `models.InterfaceProperties` was modified
1057

11-
### Other Changes
58+
* `ipv4Subnet()` was added
59+
* `withIpv4Subnet(java.lang.String)` was added
60+
* `withIpv4Gateway(java.lang.String)` was added
61+
* `ipv4Gateway()` was added
62+
* `ipv4Address()` was added
63+
* `withIpv4Address(java.lang.String)` was added
1264

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

sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager MobileNetwork client library for Java.
44

5-
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).
5+
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).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-mobilenetwork</artifactId>
35-
<version>1.0.0-beta.1</version>
35+
<version>1.0.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/SAMPLE.md

Lines changed: 55 additions & 55 deletions
Large diffs are not rendered by default.

sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for MobileNetwork Management</name>
16-
<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>
16+
<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>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/MobileNetworkManager.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static Configurable configure() {
117117

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

122122
private HttpClient httpClient;
123123
private HttpLogOptions httpLogOptions;
@@ -191,9 +191,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
191191
* @return the configurable object itself.
192192
*/
193193
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
194-
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
194+
this.defaultPollInterval =
195+
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
195196
if (this.defaultPollInterval.isNegative()) {
196-
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
197+
throw LOGGER
198+
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
197199
}
198200
return this;
199201
}
@@ -215,7 +217,7 @@ public MobileNetworkManager authenticate(TokenCredential credential, AzureProfil
215217
.append("-")
216218
.append("com.azure.resourcemanager.mobilenetwork")
217219
.append("/")
218-
.append("1.0.0-beta.1");
220+
.append("1.0.0-beta.2");
219221
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
220222
userAgentBuilder
221223
.append(" (")

sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkInner.java

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,23 @@
66

77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.management.Resource;
9-
import com.azure.core.management.SystemData;
109
import com.azure.core.util.logging.ClientLogger;
1110
import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties;
1211
import com.azure.resourcemanager.mobilenetwork.models.NaptConfiguration;
1312
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
14-
import com.fasterxml.jackson.annotation.JsonIgnore;
1513
import com.fasterxml.jackson.annotation.JsonProperty;
1614
import java.util.List;
1715
import java.util.Map;
1816

1917
/** Attached data network resource. */
2018
@Fluent
2119
public final class AttachedDataNetworkInner extends Resource {
22-
@JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDataNetworkInner.class);
23-
2420
/*
2521
* Data network properties.
2622
*/
2723
@JsonProperty(value = "properties", required = true)
2824
private AttachedDataNetworkPropertiesFormat innerProperties = new AttachedDataNetworkPropertiesFormat();
2925

30-
/*
31-
* Metadata pertaining to creation and last modification of the resource.
32-
*/
33-
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
34-
private SystemData innerSystemData;
35-
3626
/**
3727
* Get the innerProperties property: Data network properties.
3828
*
@@ -42,15 +32,6 @@ private AttachedDataNetworkPropertiesFormat innerProperties() {
4232
return this.innerProperties;
4333
}
4434

45-
// /**
46-
// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource.
47-
// *
48-
// * @return the innerSystemData value.
49-
// */
50-
// private SystemData innerSystemData() {
51-
// return this.innerSystemData;
52-
// }
53-
5435
/** {@inheritDoc} */
5536
@Override
5637
public AttachedDataNetworkInner withLocation(String location) {
@@ -192,12 +173,14 @@ public AttachedDataNetworkInner withUserEquipmentStaticAddressPoolPrefix(
192173
*/
193174
public void validate() {
194175
if (innerProperties() == null) {
195-
throw logger
176+
throw LOGGER
196177
.logExceptionAsError(
197178
new IllegalArgumentException(
198179
"Missing required property innerProperties in model AttachedDataNetworkInner"));
199180
} else {
200181
innerProperties().validate();
201182
}
202183
}
184+
185+
private static final ClientLogger LOGGER = new ClientLogger(AttachedDataNetworkInner.class);
203186
}

sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/AttachedDataNetworkPropertiesFormat.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@
99
import com.azure.resourcemanager.mobilenetwork.models.InterfaceProperties;
1010
import com.azure.resourcemanager.mobilenetwork.models.NaptConfiguration;
1111
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
12-
import com.fasterxml.jackson.annotation.JsonIgnore;
1312
import com.fasterxml.jackson.annotation.JsonProperty;
1413
import java.util.List;
1514

1615
/** Data network properties. */
1716
@Fluent
1817
public final class AttachedDataNetworkPropertiesFormat {
19-
@JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDataNetworkPropertiesFormat.class);
20-
2118
/*
2219
* The provisioning state of the attached data network resource.
2320
*/
@@ -180,7 +177,7 @@ public AttachedDataNetworkPropertiesFormat withUserEquipmentStaticAddressPoolPre
180177
*/
181178
public void validate() {
182179
if (userPlaneDataInterface() == null) {
183-
throw logger
180+
throw LOGGER
184181
.logExceptionAsError(
185182
new IllegalArgumentException(
186183
"Missing required property userPlaneDataInterface in model"
@@ -192,4 +189,6 @@ public void validate() {
192189
naptConfiguration().validate();
193190
}
194191
}
192+
193+
private static final ClientLogger LOGGER = new ClientLogger(AttachedDataNetworkPropertiesFormat.class);
195194
}

sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkInner.java

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,25 @@
77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.management.Resource;
99
import com.azure.core.management.SystemData;
10-
import com.azure.core.util.logging.ClientLogger;
1110
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
12-
import com.fasterxml.jackson.annotation.JsonIgnore;
1311
import com.fasterxml.jackson.annotation.JsonProperty;
1412
import java.util.Map;
1513

1614
/** Data network resource. */
1715
@Fluent
1816
public final class DataNetworkInner extends Resource {
19-
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataNetworkInner.class);
20-
2117
/*
2218
* Data network properties.
2319
*/
2420
@JsonProperty(value = "properties")
2521
private DataNetworkPropertiesFormat innerProperties;
2622

2723
/*
28-
* Metadata pertaining to creation and last modification of the resource.
24+
* Azure Resource Manager metadata containing createdBy and modifiedBy
25+
* information.
2926
*/
3027
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
31-
private SystemData innerSystemData;
28+
private SystemData systemData;
3229

3330
/**
3431
* Get the innerProperties property: Data network properties.
@@ -39,14 +36,14 @@ private DataNetworkPropertiesFormat innerProperties() {
3936
return this.innerProperties;
4037
}
4138

42-
// /**
43-
// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource.
44-
// *
45-
// * @return the innerSystemData value.
46-
// */
47-
// private SystemData innerSystemData() {
48-
// return this.innerSystemData;
49-
// }
39+
/**
40+
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
41+
*
42+
* @return the systemData value.
43+
*/
44+
public SystemData systemData() {
45+
return this.systemData;
46+
}
5047

5148
/** {@inheritDoc} */
5249
@Override

sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/DataNetworkPropertiesFormat.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@
55
package com.azure.resourcemanager.mobilenetwork.fluent.models;
66

77
import com.azure.core.annotation.Fluent;
8-
import com.azure.core.util.logging.ClientLogger;
98
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
10-
import com.fasterxml.jackson.annotation.JsonIgnore;
119
import com.fasterxml.jackson.annotation.JsonProperty;
1210

1311
/** Data network properties. */
1412
@Fluent
1513
public final class DataNetworkPropertiesFormat {
16-
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataNetworkPropertiesFormat.class);
17-
1814
/*
1915
* The provisioning state of the data network resource.
2016
*/

sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/fluent/models/MobileNetworkInner.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,24 @@
1010
import com.azure.core.util.logging.ClientLogger;
1111
import com.azure.resourcemanager.mobilenetwork.models.PlmnId;
1212
import com.azure.resourcemanager.mobilenetwork.models.ProvisioningState;
13-
import com.fasterxml.jackson.annotation.JsonIgnore;
1413
import com.fasterxml.jackson.annotation.JsonProperty;
1514
import java.util.Map;
1615

1716
/** Mobile network resource. */
1817
@Fluent
1918
public final class MobileNetworkInner extends Resource {
20-
@JsonIgnore private final ClientLogger logger = new ClientLogger(MobileNetworkInner.class);
21-
2219
/*
2320
* Mobile network properties.
2421
*/
2522
@JsonProperty(value = "properties", required = true)
2623
private MobileNetworkPropertiesFormat innerProperties = new MobileNetworkPropertiesFormat();
2724

2825
/*
29-
* Metadata pertaining to creation and last modification of the resource.
26+
* Azure Resource Manager metadata containing createdBy and modifiedBy
27+
* information.
3028
*/
3129
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
32-
private SystemData innerSystemData;
30+
private SystemData systemData;
3331

3432
/**
3533
* Get the innerProperties property: Mobile network properties.
@@ -40,14 +38,14 @@ private MobileNetworkPropertiesFormat innerProperties() {
4038
return this.innerProperties;
4139
}
4240

43-
// /**
44-
// * Get the innerSystemData property: Metadata pertaining to creation and last modification of the resource.
45-
// *
46-
// * @return the innerSystemData value.
47-
// */
48-
// private SystemData innerSystemData() {
49-
// return this.innerSystemData;
50-
// }
41+
/**
42+
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
43+
*
44+
* @return the systemData value.
45+
*/
46+
public SystemData systemData() {
47+
return this.systemData;
48+
}
5149

5250
/** {@inheritDoc} */
5351
@Override
@@ -117,12 +115,14 @@ public String serviceKey() {
117115
*/
118116
public void validate() {
119117
if (innerProperties() == null) {
120-
throw logger
118+
throw LOGGER
121119
.logExceptionAsError(
122120
new IllegalArgumentException(
123121
"Missing required property innerProperties in model MobileNetworkInner"));
124122
} else {
125123
innerProperties().validate();
126124
}
127125
}
126+
127+
private static final ClientLogger LOGGER = new ClientLogger(MobileNetworkInner.class);
128128
}

0 commit comments

Comments
 (0)