Skip to content

Commit b49722d

Browse files
author
SDKAuto
committed
CodeGen from PR 18201 in Azure/azure-rest-api-specs
Merge 78c740349acb28572fe43faa51c716e38d19aff4 into 96da969aa75e2beb27c3dbc2d69a76900856cc52
1 parent f2dee34 commit b49722d

File tree

120 files changed

+222
-572
lines changed

Some content is hidden

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

120 files changed

+222
-572
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.9 (Unreleased)
3+
## 1.0.0-beta.1 (2022-03-14)
4+
5+
- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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-netapp</artifactId>
35-
<version>1.0.0-beta.8</version>
35+
<version>1.0.0-beta.9</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java

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

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

131131
private HttpClient httpClient;
132132
private HttpLogOptions httpLogOptions;
@@ -200,9 +200,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
200200
* @return the configurable object itself.
201201
*/
202202
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
203-
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
203+
this.defaultPollInterval =
204+
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
204205
if (this.defaultPollInterval.isNegative()) {
205-
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
206+
throw LOGGER
207+
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
206208
}
207209
return this;
208210
}
@@ -224,7 +226,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
224226
.append("-")
225227
.append("com.azure.resourcemanager.netapp")
226228
.append("/")
227-
.append("1.0.0-beta.8");
229+
.append("1.0.0-beta.1");
228230
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
229231
userAgentBuilder
230232
.append(" (")

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java

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

77
import com.azure.core.annotation.Fluent;
8-
import com.azure.core.util.logging.ClientLogger;
98
import com.azure.resourcemanager.netapp.models.AccountEncryption;
109
import com.azure.resourcemanager.netapp.models.ActiveDirectory;
11-
import com.fasterxml.jackson.annotation.JsonIgnore;
1210
import com.fasterxml.jackson.annotation.JsonProperty;
1311
import java.util.List;
1412

1513
/** NetApp account properties. */
1614
@Fluent
1715
public final class AccountProperties {
18-
@JsonIgnore private final ClientLogger logger = new ClientLogger(AccountProperties.class);
19-
2016
/*
2117
* Azure lifecycle management
2218
*/

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,12 @@
88
import com.azure.core.management.ProxyResource;
99
import com.azure.core.util.logging.ClientLogger;
1010
import com.azure.resourcemanager.netapp.models.BackupType;
11-
import com.fasterxml.jackson.annotation.JsonIgnore;
1211
import com.fasterxml.jackson.annotation.JsonProperty;
1312
import java.time.OffsetDateTime;
1413

1514
/** Backup of a Volume. */
1615
@Fluent
1716
public final class BackupInner extends ProxyResource {
18-
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupInner.class);
19-
2017
/*
2118
* Resource location
2219
*/
@@ -176,16 +173,18 @@ public BackupInner withUseExistingSnapshot(Boolean useExistingSnapshot) {
176173
*/
177174
public void validate() {
178175
if (location() == null) {
179-
throw logger
176+
throw LOGGER
180177
.logExceptionAsError(
181178
new IllegalArgumentException("Missing required property location in model BackupInner"));
182179
}
183180
if (innerProperties() == null) {
184-
throw logger
181+
throw LOGGER
185182
.logExceptionAsError(
186183
new IllegalArgumentException("Missing required property innerProperties in model BackupInner"));
187184
} else {
188185
innerProperties().validate();
189186
}
190187
}
188+
189+
private static final ClientLogger LOGGER = new ClientLogger(BackupInner.class);
191190
}

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@
99
import com.azure.core.management.SystemData;
1010
import com.azure.core.util.logging.ClientLogger;
1111
import com.azure.resourcemanager.netapp.models.VolumeBackups;
12-
import com.fasterxml.jackson.annotation.JsonIgnore;
1312
import com.fasterxml.jackson.annotation.JsonProperty;
1413
import java.util.List;
1514
import java.util.Map;
1615

1716
/** Backup policy information. */
1817
@Fluent
1918
public final class BackupPolicyInner extends Resource {
20-
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyInner.class);
21-
2219
/*
2320
* A unique read-only string that changes whenever the resource is updated.
2421
*/
@@ -213,12 +210,14 @@ public List<VolumeBackups> volumeBackups() {
213210
*/
214211
public void validate() {
215212
if (innerProperties() == null) {
216-
throw logger
213+
throw LOGGER
217214
.logExceptionAsError(
218215
new IllegalArgumentException(
219216
"Missing required property innerProperties in model BackupPolicyInner"));
220217
} else {
221218
innerProperties().validate();
222219
}
223220
}
221+
222+
private static final ClientLogger LOGGER = new ClientLogger(BackupPolicyInner.class);
224223
}

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java

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

77
import com.azure.core.annotation.Fluent;
8-
import com.azure.core.util.logging.ClientLogger;
98
import com.azure.resourcemanager.netapp.models.VolumeBackups;
10-
import com.fasterxml.jackson.annotation.JsonIgnore;
119
import com.fasterxml.jackson.annotation.JsonProperty;
1210
import java.util.List;
1311

1412
/** Backup policy properties. */
1513
@Fluent
1614
public final class BackupPolicyProperties {
17-
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyProperties.class);
18-
1915
/*
2016
* Backup Policy Resource ID
2117
*/

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java

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

77
import com.azure.core.annotation.Fluent;
8-
import com.azure.core.util.logging.ClientLogger;
98
import com.azure.resourcemanager.netapp.models.BackupType;
10-
import com.fasterxml.jackson.annotation.JsonIgnore;
119
import com.fasterxml.jackson.annotation.JsonProperty;
1210
import java.time.OffsetDateTime;
1311

1412
/** Backup properties. */
1513
@Fluent
1614
public final class BackupProperties {
17-
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupProperties.class);
18-
1915
/*
2016
* backupId UUID v4 used to identify the Backup
2117
*/

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java

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

77
import com.azure.core.annotation.Immutable;
8-
import com.azure.core.util.logging.ClientLogger;
98
import com.azure.resourcemanager.netapp.models.MirrorState;
109
import com.azure.resourcemanager.netapp.models.RelationshipStatus;
11-
import com.fasterxml.jackson.annotation.JsonIgnore;
1210
import com.fasterxml.jackson.annotation.JsonProperty;
1311

1412
/** Backup status. */
1513
@Immutable
1614
public final class BackupStatusInner {
17-
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupStatusInner.class);
18-
1915
/*
2016
* Backup health status
2117
*/

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@
1111
import com.azure.resourcemanager.netapp.models.EncryptionType;
1212
import com.azure.resourcemanager.netapp.models.QosType;
1313
import com.azure.resourcemanager.netapp.models.ServiceLevel;
14-
import com.fasterxml.jackson.annotation.JsonIgnore;
1514
import com.fasterxml.jackson.annotation.JsonProperty;
1615
import java.util.Map;
1716

1817
/** Capacity pool resource. */
1918
@Fluent
2019
public final class CapacityPoolInner extends Resource {
21-
@JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityPoolInner.class);
22-
2320
/*
2421
* A unique read-only string that changes whenever the resource is updated.
2522
*/
@@ -241,12 +238,14 @@ public CapacityPoolInner withEncryptionType(EncryptionType encryptionType) {
241238
*/
242239
public void validate() {
243240
if (innerProperties() == null) {
244-
throw logger
241+
throw LOGGER
245242
.logExceptionAsError(
246243
new IllegalArgumentException(
247244
"Missing required property innerProperties in model CapacityPoolInner"));
248245
} else {
249246
innerProperties().validate();
250247
}
251248
}
249+
250+
private static final ClientLogger LOGGER = new ClientLogger(CapacityPoolInner.class);
252251
}

0 commit comments

Comments
 (0)