Skip to content

Commit

Permalink
CodeGen from PR 17157 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 3f56e25349f98c55f52b03bedab10ba21cfb675c into 0a6665506efb86dba686aa87cab3bdd836fac36a
  • Loading branch information
SDKAuto committed Dec 31, 2021
1 parent 4477d35 commit 9dedb78
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 10 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.8 (Unreleased)
## 1.0.0-beta.1 (2021-12-31)

- 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-08-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.7</version>
<version>1.0.0-beta.8</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
28 changes: 27 additions & 1 deletion sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
- [Get](#netappresourcequotalimits_get)
- [List](#netappresourcequotalimits_list)

## Operations

- [List](#operations_list)

## Pools

- [CreateOrUpdate](#pools_createorupdate)
Expand Down Expand Up @@ -190,7 +194,7 @@ public final class AccountsCreateOrUpdateSamples {
.withDomain("10.10.10.3")
.withDns("10.10.10.3, 10.10.10.4")
.withSmbServerName("SMBServer")
.withOrganizationalUnit("Engineering")
.withOrganizationalUnit("OU=Engineering")
.withSite("SiteName")
.withAesEncryption(true)
.withLdapSigning(false)
Expand Down Expand Up @@ -735,6 +739,27 @@ public final class NetAppResourceQuotaLimitsListSamples {
}
```

### Operations_List

```java
import com.azure.core.util.Context;

/** Samples for Operations List. */
public final class OperationsListSamples {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/OperationList.json
*/
/**
* Sample code: CheckNameAvailability.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void checkNameAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.operations().list(Context.NONE);
}
}
```

### Pools_CreateOrUpdate

```java
Expand Down Expand Up @@ -881,6 +906,7 @@ public final class SnapshotPoliciesCreateSamples {
new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45))
.withMonthlySchedule(
new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15))
.withEnabled(true)
.create();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.netapp")
.append("/")
.append("1.0.0-beta.7");
.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 @@ -68,7 +68,7 @@ public String backupId() {
}

/**
* Get the creationDate property: name The creation date of the backup.
* Get the creationDate property: creationDate The creation date of the backup.
*
* @return the creationDate value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public final class BackupProperties {
private String backupId;

/*
* name The creation date of the backup
* creationDate The creation date of the backup
*/
@JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime creationDate;
Expand Down Expand Up @@ -81,7 +81,7 @@ public String backupId() {
}

/**
* Get the creationDate property: name The creation date of the backup.
* Get the creationDate property: creationDate The creation date of the backup.
*
* @return the creationDate value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public interface Backup {
String backupId();

/**
* Gets the creationDate property: name The creation date of the backup.
* Gets the creationDate property: creationDate The creation date of the backup.
*
* @return the creationDate value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public String backupId() {
}

/**
* Get the creationDate property: name The creation date of the backup.
* Get the creationDate property: creationDate The creation date of the backup.
*
* @return the creationDate value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAp
.withDomain("10.10.10.3")
.withDns("10.10.10.3, 10.10.10.4")
.withSmbServerName("SMBServer")
.withOrganizationalUnit("Engineering")
.withOrganizationalUnit("OU=Engineering")
.withSite("SiteName")
.withAesEncryption(true)
.withLdapSigning(false)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.netapp.generated;

import com.azure.core.util.Context;

/** Samples for Operations List. */
public final class OperationsListSamples {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-08-01/examples/OperationList.json
*/
/**
* Sample code: CheckNameAvailability.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void checkNameAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.operations().list(Context.NONE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public static void snapshotPoliciesCreate(com.azure.resourcemanager.netapp.NetAp
new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45))
.withMonthlySchedule(
new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15))
.withEnabled(true)
.create();
}
}

0 comments on commit 9dedb78

Please sign in to comment.