Skip to content

Commit

Permalink
CodeGen from PR 30042 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 6eac62d9d8edcdd87ea99ead27df0537bb623840 into 338500f2ec11dcfebd2484ad05334b64f8294809
  • Loading branch information
SDKAuto committed Jul 31, 2024
1 parent 9286b6a commit bcb98f4
Show file tree
Hide file tree
Showing 268 changed files with 300 additions and 7,436 deletions.
10 changes: 5 additions & 5 deletions sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Release History

## 1.4.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2024-07-31)

### Features Added
- 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-2024-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Changes
### Features Added

### Bugs Fixed
#### `models.Replication` was modified

### Other Changes
* `replicationId()` was added

## 1.3.0 (2024-07-24)

Expand Down
4 changes: 2 additions & 2 deletions sdk/netapp/azure-resourcemanager-netapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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-2023-11-01. 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 NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-2024-03. 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-netapp</artifactId>
<version>1.3.0</version>
<version>1.4.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
192 changes: 96 additions & 96 deletions sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion sdk/netapp/azure-resourcemanager-netapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for NetAppFiles Management</name>
<description>This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2023-11-01.</description>
<description>This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-2024-03.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,6 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.netapp")
.append("/")
.append("1.3.0");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public String poolId() {

/**
* Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
* multiply of 1099511627776).
* multiple of 1099511627776).
*
* @return the size value.
*/
Expand All @@ -154,7 +154,7 @@ public long size() {

/**
* Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
* multiply of 1099511627776).
* multiple of 1099511627776).
*
* @param size the size value to set.
* @return the CapacityPoolInner object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@Fluent
public final class PoolPatchProperties implements JsonSerializable<PoolPatchProperties> {
/*
* Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of
* Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of
* 1099511627776).
*/
private Long size;
Expand All @@ -41,7 +41,7 @@ public PoolPatchProperties() {

/**
* Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
* multiply of 1099511627776).
* multiple of 1099511627776).
*
* @return the size value.
*/
Expand All @@ -51,7 +51,7 @@ public Long size() {

/**
* Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
* multiply of 1099511627776).
* multiple of 1099511627776).
*
* @param size the size value to set.
* @return the PoolPatchProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public final class PoolProperties implements JsonSerializable<PoolProperties> {
private String poolId;

/*
* Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of
* Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of
* 1099511627776).
*/
private long size;
Expand Down Expand Up @@ -84,7 +84,7 @@ public String poolId() {

/**
* Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
* multiply of 1099511627776).
* multiple of 1099511627776).
*
* @return the size value.
*/
Expand All @@ -94,7 +94,7 @@ public long size() {

/**
* Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
* multiply of 1099511627776).
* multiple of 1099511627776).
*
* @param size the size value to set.
* @return the PoolProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
*/
@Fluent
public final class ReplicationInner implements JsonSerializable<ReplicationInner> {
/*
* UUID v4 used to identify the replication.
*/
private String replicationId;

/*
* Indicates whether the local volume is the source or destination for the Volume Replication
*/
Expand All @@ -45,6 +50,15 @@ public final class ReplicationInner implements JsonSerializable<ReplicationInner
public ReplicationInner() {
}

/**
* Get the replicationId property: UUID v4 used to identify the replication.
*
* @return the replicationId value.
*/
public String replicationId() {
return this.replicationId;
}

/**
* Get the endpointType property: Indicates whether the local volume is the source or destination for the Volume
* Replication.
Expand Down Expand Up @@ -174,6 +188,8 @@ public static ReplicationInner fromJson(JsonReader jsonReader) throws IOExceptio

if ("remoteVolumeResourceId".equals(fieldName)) {
deserializedReplicationInner.remoteVolumeResourceId = reader.getString();
} else if ("replicationId".equals(fieldName)) {
deserializedReplicationInner.replicationId = reader.getString();
} else if ("endpointType".equals(fieldName)) {
deserializedReplicationInner.endpointType = EndpointType.fromString(reader.getString());
} else if ("replicationSchedule".equals(fieldName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,9 @@ public VolumeInner withServiceLevel(ServiceLevel serviceLevel) {

/**
* Get the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota
* used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for
* LargeVolume on exceptional basis. Specified in bytes.
* used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes,
* valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values
* expressed in bytes as multiples of 1 GiB.
*
* @return the usageThreshold value.
*/
Expand All @@ -238,8 +239,9 @@ public long usageThreshold() {

/**
* Set the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota
* used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for
* LargeVolume on exceptional basis. Specified in bytes.
* used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes,
* valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values
* expressed in bytes as multiples of 1 GiB.
*
* @param usageThreshold the usageThreshold value to set.
* @return the VolumeInner object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ public final class VolumePatchProperties implements JsonSerializable<VolumePatch
private ServiceLevel serviceLevel;

/*
* Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum
* size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis.
* Specified in bytes.
* Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For
* regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range
* 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples
* of 1 GiB.
*/
private Long usageThreshold;

Expand Down Expand Up @@ -144,8 +145,9 @@ public VolumePatchProperties withServiceLevel(ServiceLevel serviceLevel) {

/**
* Get the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota
* used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for
* LargeVolume on exceptional basis. Specified in bytes.
* used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes,
* valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values
* expressed in bytes as multiples of 1 GiB.
*
* @return the usageThreshold value.
*/
Expand All @@ -155,8 +157,9 @@ public Long usageThreshold() {

/**
* Set the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota
* used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for
* LargeVolume on exceptional basis. Specified in bytes.
* used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes,
* valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values
* expressed in bytes as multiples of 1 GiB.
*
* @param usageThreshold the usageThreshold value to set.
* @return the VolumePatchProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ public final class VolumeProperties implements JsonSerializable<VolumeProperties
private ServiceLevel serviceLevel;

/*
* Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum
* size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis.
* Specified in bytes.
* Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For
* regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range
* 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples
* of 1 GiB.
*/
private long usageThreshold;

Expand Down Expand Up @@ -382,8 +383,9 @@ public VolumeProperties withServiceLevel(ServiceLevel serviceLevel) {

/**
* Get the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota
* used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for
* LargeVolume on exceptional basis. Specified in bytes.
* used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes,
* valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values
* expressed in bytes as multiples of 1 GiB.
*
* @return the usageThreshold value.
*/
Expand All @@ -393,8 +395,9 @@ public long usageThreshold() {

/**
* Set the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota
* used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for
* LargeVolume on exceptional basis. Specified in bytes.
* used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes,
* valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values
* expressed in bytes as multiples of 1 GiB.
*
* @param usageThreshold the usageThreshold value to set.
* @return the VolumeProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public BackupsUnderAccountsClient getBackupsUnderAccounts() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2023-11-01";
this.apiVersion = "2024-03-01";
this.operations = new OperationsClientImpl(this);
this.netAppResources = new NetAppResourcesClientImpl(this);
this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public final class ReplicationImpl implements Replication {
this.serviceManager = serviceManager;
}

public String replicationId() {
return this.innerModel().replicationId();
}

public EndpointType endpointType() {
return this.innerModel().endpointType();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public interface CapacityPool {

/**
* Gets the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
* multiply of 1099511627776).
* multiple of 1099511627776).
*
* @return the size value.
*/
Expand Down Expand Up @@ -215,10 +215,10 @@ interface WithParentResource {
interface WithSize {
/**
* Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks
* (value must be multiply of 1099511627776)..
* (value must be multiple of 1099511627776)..
*
* @param size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
* multiply of 1099511627776).
* multiple of 1099511627776).
* @return the next definition stage.
*/
WithServiceLevel withSize(long size);
Expand Down Expand Up @@ -365,10 +365,10 @@ interface WithTags {
interface WithSize {
/**
* Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks
* (value must be multiply of 1099511627776)..
* (value must be multiple of 1099511627776)..
*
* @param size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
* multiply of 1099511627776).
* multiple of 1099511627776).
* @return the next definition stage.
*/
Update withSize(Long size);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public CapacityPoolPatch withTags(Map<String, String> tags) {

/**
* Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
* multiply of 1099511627776).
* multiple of 1099511627776).
*
* @return the size value.
*/
Expand All @@ -113,7 +113,7 @@ public Long size() {

/**
* Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
* multiply of 1099511627776).
* multiple of 1099511627776).
*
* @param size the size value to set.
* @return the CapacityPoolPatch object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ public void validate() {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property keyName in model KeyVaultProperties"));
}
if (keyVaultResourceId() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
"Missing required property keyVaultResourceId in model KeyVaultProperties"));
}
}

private static final ClientLogger LOGGER = new ClientLogger(KeyVaultProperties.class);
Expand Down Expand Up @@ -181,10 +176,10 @@ public static KeyVaultProperties fromJson(JsonReader jsonReader) throws IOExcept
deserializedKeyVaultProperties.keyVaultUri = reader.getString();
} else if ("keyName".equals(fieldName)) {
deserializedKeyVaultProperties.keyName = reader.getString();
} else if ("keyVaultResourceId".equals(fieldName)) {
deserializedKeyVaultProperties.keyVaultResourceId = reader.getString();
} else if ("keyVaultId".equals(fieldName)) {
deserializedKeyVaultProperties.keyVaultId = reader.getString();
} else if ("keyVaultResourceId".equals(fieldName)) {
deserializedKeyVaultProperties.keyVaultResourceId = reader.getString();
} else if ("status".equals(fieldName)) {
deserializedKeyVaultProperties.status = KeyVaultStatus.fromString(reader.getString());
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
* An immutable client-side representation of Replication.
*/
public interface Replication {
/**
* Gets the replicationId property: UUID v4 used to identify the replication.
*
* @return the replicationId value.
*/
String replicationId();

/**
* Gets the endpointType property: Indicates whether the local volume is the source or destination for the Volume
* Replication.
Expand Down
Loading

0 comments on commit bcb98f4

Please sign in to comment.