From 3e836900c0948ab380ef781bb504ac08762e2a81 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 31 Dec 2021 13:54:58 +0000 Subject: [PATCH] CodeGen from PR 17157 in Azure/azure-rest-api-specs Merge 44c10d8df642e9801cc38e95fda27719250f70b7 into 0a6665506efb86dba686aa87cab3bdd836fac36a --- .../azure-resourcemanager-netapp/CHANGELOG.md | 4 ++- .../azure-resourcemanager-netapp/README.md | 2 +- .../azure-resourcemanager-netapp/SAMPLE.md | 28 ++++++++++++++++++- .../netapp/NetAppFilesManager.java | 2 +- .../netapp/fluent/models/BackupInner.java | 2 +- .../fluent/models/BackupProperties.java | 4 +-- .../resourcemanager/netapp/models/Backup.java | 2 +- .../netapp/models/BackupPatch.java | 2 +- .../AccountsCreateOrUpdateSamples.java | 2 +- .../generated/OperationsListSamples.java | 22 +++++++++++++++ .../SnapshotPoliciesCreateSamples.java | 1 + 11 files changed, 61 insertions(+), 10 deletions(-) create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index b4460adf91ecb..4dd9bbf6d8ed2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -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 diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index 82e1c99d3c3e2..98a4c6027d37e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/README.md +++ b/sdk/netapp/azure-resourcemanager-netapp/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-netapp - 1.0.0-beta.7 + 1.0.0-beta.8 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md index bcb296ce88f39..e612fab75072c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md +++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md @@ -45,6 +45,10 @@ - [Get](#netappresourcequotalimits_get) - [List](#netappresourcequotalimits_list) +## Operations + +- [List](#operations_list) + ## Pools - [CreateOrUpdate](#pools_createorupdate) @@ -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) @@ -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: OperationList. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void operationList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.operations().list(Context.NONE); + } +} +``` + ### Pools_CreateOrUpdate ```java @@ -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(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java index 0fad865db7de3..1cc3d228ab1b4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java @@ -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(" (") diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java index 0882880be3555..159048fd47bd9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java @@ -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. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java index eecf71f5aaa78..5204b90e9f818 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java @@ -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; @@ -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. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java index e4d9f8413fa19..37b928d796573 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backup.java @@ -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. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java index aae1d00b4388b..b7d7f5531cfbb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java @@ -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. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java index 09b19b6894183..a667894c48f29 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java @@ -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) diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java new file mode 100644 index 0000000000000..c32ad8e9c6306 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java @@ -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: OperationList. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void operationList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.operations().list(Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java index c5410d3536082..1ce5fe59a601b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java @@ -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(); } }