Skip to content

Commit

Permalink
CodeGen from PR 17896 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add xms-ids for netapp (Azure#17896)
  • Loading branch information
SDKAuto committed Apr 7, 2022
1 parent ebe60c2 commit 3f55288
Show file tree
Hide file tree
Showing 120 changed files with 222 additions and 572 deletions.
4 changes: 3 additions & 1 deletion sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.9 (Unreleased)
## 1.0.0-beta.1 (2022-04-07)

- 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).

### Features Added

Expand Down
2 changes: 1 addition & 1 deletion sdk/netapp/azure-resourcemanager-netapp/README.md
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-netapp</artifactId>
<version>1.0.0-beta.8</version>
<version>1.0.0-beta.9</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,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 @@ -200,9 +200,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 @@ -224,7 +226,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.netapp")
.append("/")
.append("1.0.0-beta.8");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@
package com.azure.resourcemanager.netapp.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.AccountEncryption;
import com.azure.resourcemanager.netapp.models.ActiveDirectory;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** NetApp account properties. */
@Fluent
public final class AccountProperties {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AccountProperties.class);

/*
* Azure lifecycle management
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.BackupType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** Backup of a Volume. */
@Fluent
public final class BackupInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupInner.class);

/*
* Resource location
*/
Expand Down Expand Up @@ -176,16 +173,18 @@ public BackupInner withUseExistingSnapshot(Boolean useExistingSnapshot) {
*/
public void validate() {
if (location() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property location in model BackupInner"));
}
if (innerProperties() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model BackupInner"));
} else {
innerProperties().validate();
}
}

private static final ClientLogger LOGGER = new ClientLogger(BackupInner.class);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.VolumeBackups;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

/** Backup policy information. */
@Fluent
public final class BackupPolicyInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyInner.class);

/*
* A unique read-only string that changes whenever the resource is updated.
*/
Expand Down Expand Up @@ -213,12 +210,14 @@ public List<VolumeBackups> volumeBackups() {
*/
public void validate() {
if (innerProperties() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model BackupPolicyInner"));
} else {
innerProperties().validate();
}
}

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

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.VolumeBackups;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Backup policy properties. */
@Fluent
public final class BackupPolicyProperties {
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyProperties.class);

/*
* Backup Policy Resource ID
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
package com.azure.resourcemanager.netapp.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.BackupType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

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

/*
* backupId UUID v4 used to identify the Backup
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
package com.azure.resourcemanager.netapp.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.MirrorState;
import com.azure.resourcemanager.netapp.models.RelationshipStatus;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Backup status. */
@Immutable
public final class BackupStatusInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupStatusInner.class);

/*
* Backup health status
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@
import com.azure.resourcemanager.netapp.models.EncryptionType;
import com.azure.resourcemanager.netapp.models.QosType;
import com.azure.resourcemanager.netapp.models.ServiceLevel;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/** Capacity pool resource. */
@Fluent
public final class CapacityPoolInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityPoolInner.class);

/*
* A unique read-only string that changes whenever the resource is updated.
*/
Expand Down Expand Up @@ -241,12 +238,14 @@ public CapacityPoolInner withEncryptionType(EncryptionType encryptionType) {
*/
public void validate() {
if (innerProperties() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model CapacityPoolInner"));
} else {
innerProperties().validate();
}
}

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

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

/** Information regarding availability of a resource. */
@Fluent
public final class CheckAvailabilityResponseInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(CheckAvailabilityResponseInner.class);

/*
* <code>true</code> indicates name is valid and available.
* <code>false</code> indicates the name is invalid, unavailable, or both.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Mount target properties. */
@Fluent
public final class MountTargetProperties {
@JsonIgnore private final ClientLogger logger = new ClientLogger(MountTargetProperties.class);

/*
* mountTargetId UUID v4 used to identify the MountTarget
*/
Expand Down Expand Up @@ -103,10 +100,12 @@ public MountTargetProperties withSmbServerFqdn(String smbServerFqdn) {
*/
public void validate() {
if (fileSystemId() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property fileSystemId in model MountTargetProperties"));
}
}

private static final ClientLogger LOGGER = new ClientLogger(MountTargetProperties.class);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,15 @@
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.netapp.models.AccountEncryption;
import com.azure.resourcemanager.netapp.models.ActiveDirectory;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

/** NetApp account resource. */
@Fluent
public final class NetAppAccountInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(NetAppAccountInner.class);

/*
* A unique read-only string that changes whenever the resource is updated.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
package com.azure.resourcemanager.netapp.fluent.models;

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

/** Microsoft.NetApp REST API operation definition. */
@Fluent
public final class OperationInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);

/*
* Operation name: {provider}/{resource}/{operation}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
package com.azure.resourcemanager.netapp.fluent.models;

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

/** Properties of operation, include metric specifications. */
@Fluent
public final class OperationProperties {
@JsonIgnore private final ClientLogger logger = new ClientLogger(OperationProperties.class);

/*
* One property of operation, include metric specifications.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
package com.azure.resourcemanager.netapp.fluent.models;

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

/** Patchable pool properties. */
@Fluent
public final class PoolPatchProperties {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PoolPatchProperties.class);

/*
* size Provisioned size of the pool (in bytes). Allowed values are in 1TiB
* chunks (value must be multiply of 4398046511104).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@
import com.azure.resourcemanager.netapp.models.EncryptionType;
import com.azure.resourcemanager.netapp.models.QosType;
import com.azure.resourcemanager.netapp.models.ServiceLevel;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

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

/*
* poolId UUID v4 used to identify the Pool
*/
Expand Down Expand Up @@ -221,9 +218,11 @@ public PoolProperties withEncryptionType(EncryptionType encryptionType) {
*/
public void validate() {
if (serviceLevel() == null) {
throw logger
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property serviceLevel in model PoolProperties"));
}
}

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

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.MirrorState;
import com.azure.resourcemanager.netapp.models.RelationshipStatus;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Replication status. */
@Fluent
public final class ReplicationStatusInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicationStatusInner.class);

/*
* Replication health check
*/
Expand Down
Loading

0 comments on commit 3f55288

Please sign in to comment.