[Automation] Collect examples from azure-sdk-for-java#azure-resourcemanager-netapp_1.6.0-beta.1

This commit is contained in:
Azure SDK Bot 2024-11-19 04:02:40 -08:00 коммит произвёл GitHub
Родитель 5083618fcf
Коммит b172d124a4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
214 изменённых файлов: 2621 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,29 @@
import com.azure.resourcemanager.netapp.models.ChangeKeyVault;
import com.azure.resourcemanager.netapp.models.KeyVaultPrivateEndpoint;
import java.util.Arrays;
/**
* Samples for Accounts ChangeKeyVault.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* Accounts_ChangeKeyVault.json
*/
/**
* Sample code: Accounts_ChangeKeyVault.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void accountsChangeKeyVault(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.accounts().changeKeyVault("myRG", "account1", new ChangeKeyVault()
.withKeyVaultUri("fakeTokenPlaceholder").withKeyName("fakeTokenPlaceholder")
.withKeyVaultResourceId("fakeTokenPlaceholder")
.withKeyVaultPrivateEndpoints(Arrays.asList(new KeyVaultPrivateEndpoint().withVirtualNetworkId(
"/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1")
.withPrivateEndpointId(
"/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"))),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for Accounts CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* Accounts_CreateOrUpdate.json
*/
/**
* Sample code: Accounts_CreateOrUpdate.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.accounts().define("account1").withRegion("eastus").withExistingResourceGroup("myRG").create();
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,27 @@
import com.azure.resourcemanager.netapp.models.ActiveDirectory;
import java.util.Arrays;
/**
* Samples for Accounts CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* Accounts_CreateOrUpdateAD.json
*/
/**
* Sample code: Accounts_CreateOrUpdateWithActiveDirectory.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void
accountsCreateOrUpdateWithActiveDirectory(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.accounts().define("account1").withRegion("eastus").withExistingResourceGroup("myRG")
.withActiveDirectories(Arrays.asList(new ActiveDirectory().withUsername("ad_user_name")
.withPassword("fakeTokenPlaceholder").withDomain("10.10.10.3").withDns("10.10.10.3")
.withSmbServerName("SMBServer").withOrganizationalUnit("OU=Engineering").withSite("SiteName")
.withAesEncryption(true).withLdapSigning(false).withLdapOverTls(false)))
.create();
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for Accounts Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Delete.json
*/
/**
* Sample code: Accounts_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void accountsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.accounts().delete("myRG", "account1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for Accounts GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Get.json
*/
/**
* Sample code: Accounts_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void accountsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.accounts().getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,19 @@
/**
* Samples for Accounts GetChangeKeyVaultInformation.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* Accounts_GetChangeKeyVaultInformation.json
*/
/**
* Sample code: Accounts_GetChangeKeyVaultInformation.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void
accountsGetChangeKeyVaultInformation(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.accounts().getChangeKeyVaultInformation("myRG", "account1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for Accounts List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json
*/
/**
* Sample code: Accounts_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void accountsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.accounts().list(com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for Accounts RenewCredentials.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* Accounts_RenewCredentials.json
*/
/**
* Sample code: Accounts_RenewCredentials.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void accountsRenewCredentials(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.accounts().renewCredentials("myRG", "account1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,24 @@
import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest;
/**
* Samples for Accounts TransitionToCmk.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* Accounts_TransitionEncryptionKey.json
*/
/**
* Sample code: Accounts_MigrateEncryptionKey.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void accountsMigrateEncryptionKey(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.accounts().transitionToCmk("myRG", "account1", new EncryptionTransitionRequest().withVirtualNetworkId(
"/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1")
.withPrivateEndpointId(
"/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,36 @@
import com.azure.resourcemanager.netapp.models.NetAppAccount;
import java.util.HashMap;
import java.util.Map;
/**
* Samples for Accounts Update.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Update.json
*/
/**
* Sample code: Accounts_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void accountsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
NetAppAccount resource = manager.accounts()
.getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE).getValue();
resource.update().withTags(mapOf("Tag1", "Value1")).apply();
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,21 @@
/**
* Samples for BackupPolicies Create.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Create.
* json
*/
/**
* Sample code: BackupPolicies_Create.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupPolicies().define("backupPolicyName").withRegion("westus")
.withExistingNetAppAccount("myRG", "account1").withDailyBackupsToKeep(10).withWeeklyBackupsToKeep(10)
.withMonthlyBackupsToKeep(10).withEnabled(true).create();
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,20 @@
/**
* Samples for BackupPolicies Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Delete.
* json
*/
/**
* Sample code: BackupPolicies_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupPolicies().delete("resourceGroup", "accountName", "backupPolicyName",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,20 @@
/**
* Samples for BackupPolicies Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Get.
* json
*/
/**
* Sample code: Backups_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupPolicies().getWithResponse("myRG", "account1", "backupPolicyName",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,19 @@
/**
* Samples for BackupPolicies List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_List.
* json
*/
/**
* Sample code: BackupPolicies_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupPoliciesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupPolicies().list("myRG", "account1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,24 @@
import com.azure.resourcemanager.netapp.models.BackupPolicy;
/**
* Samples for BackupPolicies Update.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Update.
* json
*/
/**
* Sample code: BackupPolicies_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
BackupPolicy resource = manager.backupPolicies()
.getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE).getValue();
resource.update().withDailyBackupsToKeep(5).withWeeklyBackupsToKeep(10).withMonthlyBackupsToKeep(10)
.withEnabled(false).apply();
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,20 @@
/**
* Samples for BackupVaults CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Create.
* json
*/
/**
* Sample code: BackupVault_CreateOrUpdate.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupVaultCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupVaults().define("backupVault1").withRegion("eastus").withExistingNetAppAccount("myRG", "account1")
.create();
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,19 @@
/**
* Samples for BackupVaults Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Delete.
* json
*/
/**
* Sample code: BackupVaults_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupVaultsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupVaults().delete("resourceGroup", "account1", "backupVault1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for BackupVaults Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Get.json
*/
/**
* Sample code: BackupVaults_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupVaultsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupVaults().getWithResponse("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for BackupVaults ListByNetAppAccount.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_List.json
*/
/**
* Sample code: BackupVaults_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupVaultsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupVaults().listByNetAppAccount("myRG", "account1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,37 @@
import com.azure.resourcemanager.netapp.models.BackupVault;
import java.util.HashMap;
import java.util.Map;
/**
* Samples for BackupVaults Update.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Update.
* json
*/
/**
* Sample code: BackupVaults_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupVaultsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
BackupVault resource = manager.backupVaults()
.getWithResponse("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE).getValue();
resource.update().withTags(mapOf("Tag1", "Value1")).apply();
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,23 @@
import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
/**
* Samples for BackupsUnderAccount MigrateBackups.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* BackupsUnderAccount_Migrate.json
*/
/**
* Sample code: BackupsUnderAccount_Migrate.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupsUnderAccountMigrate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupsUnderAccounts().migrateBackups("myRG", "account1",
new BackupsMigrationRequest().withBackupVaultId(
"/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,21 @@
/**
* Samples for Backups Create.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* BackupsUnderBackupVault_Create.json
*/
/**
* Sample code: BackupsUnderBackupVault_Create.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupsUnderBackupVaultCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backups().define("backup1").withExistingBackupVault("myRG", "account1", "backupVault1")
.withVolumeResourceId(
"/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1")
.withLabel("myLabel").create();
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,19 @@
/**
* Samples for Backups Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* BackupsUnderBackupVault_Delete.json
*/
/**
* Sample code: BackupsUnderBackupVault_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupsUnderBackupVaultDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backups().delete("resourceGroup", "account1", "backupVault1", "backup1",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,19 @@
/**
* Samples for Backups Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* BackupsUnderBackupVault_Get.json
*/
/**
* Sample code: BackupsUnderBackupVault_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupsUnderBackupVaultGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backups().getWithResponse("myRG", "account1", "backupVault1", "backup1",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for Backups ListByVault.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* BackupsUnderBackupVault_List.json
*/
/**
* Sample code: Backups_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backups().listByVault("myRG", "account1", "backupVault1", null, com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,25 @@
import com.azure.resourcemanager.netapp.models.BackupRestoreFiles;
import java.util.Arrays;
/**
* Samples for BackupsUnderBackupVault RestoreFiles.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* BackupsUnderBackupVault_SingleFileRestore.json
*/
/**
* Sample code: Backups_SingleFileRestore.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupsSingleFileRestore(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupsUnderBackupVaults().restoreFiles("myRG", "account1", "backupVault1", "backup1",
new BackupRestoreFiles().withFileList(Arrays.asList("/dir1/customer1.db", "/dir1/customer2.db"))
.withDestinationVolumeId(
"/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,23 @@
import com.azure.resourcemanager.netapp.models.Backup;
/**
* Samples for Backups Update.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* BackupsUnderBackupVault_Update.json
*/
/**
* Sample code: BackupsUnderBackupVault_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupsUnderBackupVaultUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
Backup resource = manager.backups()
.getWithResponse("myRG", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE)
.getValue();
resource.update().apply();
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,23 @@
import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest;
/**
* Samples for BackupsUnderVolume MigrateBackups.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* BackupsUnderVolume_Migrate.json
*/
/**
* Sample code: BackupsUnderVolume_Migrate.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void backupsUnderVolumeMigrate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.backupsUnderVolumes().migrateBackups("myRG", "account1", "pool1", "volume1",
new BackupsMigrationRequest().withBackupVaultId(
"/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,23 @@
import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest;
/**
* Samples for NetAppResource CheckFilePathAvailability.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* CheckFilePathAvailability.json
*/
/**
* Sample code: CheckFilePathAvailability.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.netAppResources().checkFilePathAvailabilityWithResponse("eastus",
new FilePathAvailabilityRequest().withName("my-exact-filepth").withSubnetId(
"/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,25 @@
import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes;
import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest;
/**
* Samples for NetAppResource CheckNameAvailability.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckNameAvailability.
* json
*/
/**
* Sample code: CheckNameAvailability.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void checkNameAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.netAppResources().checkNameAvailabilityWithResponse("eastus",
new ResourceNameAvailabilityRequest().withName("accName")
.withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS).withResourceGroup("myRG"),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,25 @@
import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes;
import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest;
/**
* Samples for NetAppResource CheckQuotaAvailability.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckQuotaAvailability
* .json
*/
/**
* Sample code: CheckQuotaAvailability.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void checkQuotaAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.netAppResources().checkQuotaAvailabilityWithResponse("eastus",
new QuotaAvailabilityRequest().withName("resource1")
.withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS).withResourceGroup("myRG"),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,22 @@
import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest;
/**
* Samples for Volumes ListGetGroupIdListForLdapUser.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/GroupIdListForLDAPUser
* .json
*/
/**
* Sample code: GetGroupIdListForUser.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void getGroupIdListForUser(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.volumes().listGetGroupIdListForLdapUser("myRG", "account1", "pool1", "volume1",
new GetGroupIdListForLdapUserRequest().withUsername("user1"), com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,23 @@
import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest;
/**
* Samples for NetAppResource QueryNetworkSiblingSet.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* NetworkSiblingSet_Query.json
*/
/**
* Sample code: NetworkSiblingSet_Query.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void networkSiblingSetQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.netAppResources().queryNetworkSiblingSetWithResponse("eastus", new QueryNetworkSiblingSetRequest()
.withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333").withSubnetId(
"/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,26 @@
import com.azure.resourcemanager.netapp.models.NetworkFeatures;
import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest;
/**
* Samples for NetAppResource UpdateNetworkSiblingSet.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* NetworkSiblingSet_Update.json
*/
/**
* Sample code: NetworkFeatures_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void networkFeaturesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.netAppResources().updateNetworkSiblingSet("eastus", new UpdateNetworkSiblingSetRequest()
.withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333")
.withSubnetId(
"/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet")
.withNetworkSiblingSetStateId("12345_44420.8001578125").withNetworkFeatures(NetworkFeatures.STANDARD),
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for Operations List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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(com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,23 @@
import com.azure.resourcemanager.netapp.models.QosType;
import com.azure.resourcemanager.netapp.models.ServiceLevel;
/**
* Samples for Pools CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate.
* json
*/
/**
* Sample code: Pools_CreateOrUpdate.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.pools().define("pool1").withRegion("eastus").withExistingNetAppAccount("myRG", "account1")
.withSize(4398046511104L).withServiceLevel(ServiceLevel.PREMIUM).withQosType(QosType.AUTO).create();
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,24 @@
import com.azure.resourcemanager.netapp.models.QosType;
import com.azure.resourcemanager.netapp.models.ServiceLevel;
/**
* Samples for Pools CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* Pools_CreateOrUpdate_CustomThroughput.json
*/
/**
* Sample code: Pools_CreateOrUpdate_CustomThroughput.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void
poolsCreateOrUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.pools().define("customPool1").withRegion("eastus").withExistingNetAppAccount("myRG", "account1")
.withSize(4398046511104L).withServiceLevel(ServiceLevel.FLEXIBLE).withCustomThroughputMibps(128.0F)
.withQosType(QosType.MANUAL).create();
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for Pools Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Delete.json
*/
/**
* Sample code: Pools_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void poolsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.pools().delete("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for Pools Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get.json
*/
/**
* Sample code: Pools_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void poolsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for Pools Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* Pools_Get_CustomThroughput.json
*/
/**
* Sample code: Pools_Get_CustomThroughput.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void poolsGetCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.pools().getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for Pools List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_List.json
*/
/**
* Sample code: Pools_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void poolsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.pools().list("myRG", "account1", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,22 @@
import com.azure.resourcemanager.netapp.models.CapacityPool;
/**
* Samples for Pools Update.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update.json
*/
/**
* Sample code: Pools_Update.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
CapacityPool resource
= manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue();
resource.update().apply();
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,22 @@
import com.azure.resourcemanager.netapp.models.CapacityPool;
/**
* Samples for Pools Update.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* Pools_Update_CustomThroughput.json
*/
/**
* Sample code: Pools_Update_CustomThroughput.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void poolsUpdateCustomThroughput(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
CapacityPool resource = manager.pools()
.getWithResponse("myRG", "account1", "customPool1", com.azure.core.util.Context.NONE).getValue();
resource.update().apply();
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,19 @@
/**
* Samples for NetAppResourceQuotaLimits Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_Get.json
*/
/**
* Sample code: QuotaLimits.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.netAppResourceQuotaLimits().getWithResponse("eastus", "totalCoolAccessVolumesPerSubscription",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for NetAppResourceQuotaLimits List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_List.json
*/
/**
* Sample code: QuotaLimits.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.netAppResourceQuotaLimits().list("eastus", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for NetAppResource QueryRegionInfo.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfo.json
*/
/**
* Sample code: RegionInfo_Query.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void regionInfoQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.netAppResources().queryRegionInfoWithResponse("eastus", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for NetAppResourceRegionInfos Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_Get.json
*/
/**
* Sample code: RegionInfos_Get.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void regionInfosGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.netAppResourceRegionInfos().getWithResponse("eastus", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,18 @@
/**
* Samples for NetAppResourceRegionInfos List.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_List.json
*/
/**
* Sample code: RegionInfos_List.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void regionInfosList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.netAppResourceRegionInfos().list("eastus", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,31 @@
import com.azure.resourcemanager.netapp.models.DailySchedule;
import com.azure.resourcemanager.netapp.models.HourlySchedule;
import com.azure.resourcemanager.netapp.models.MonthlySchedule;
import com.azure.resourcemanager.netapp.models.WeeklySchedule;
/**
* Samples for SnapshotPolicies Create.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* SnapshotPolicies_Create.json
*/
/**
* Sample code: SnapshotPolicies_Create.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.snapshotPolicies().define("snapshotPolicyName").withRegion("eastus")
.withExistingNetAppAccount("myRG", "account1")
.withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50))
.withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30))
.withWeeklySchedule(
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,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Просмотреть файл

@ -0,0 +1,19 @@
/**
* Samples for SnapshotPolicies Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/
* SnapshotPolicies_Delete.json
*/
/**
* Sample code: SnapshotPolicies_Delete.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void snapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.snapshotPolicies().delete("resourceGroup", "accountName", "snapshotPolicyName",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-netapp_1.6.0-beta.1/sdk/netapp/azure-resourcemanager-netapp/README.md"}

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше