From ebf9f5de5a84409321b014bfb8cd26ff5b45ebc5 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 11 Apr 2025 09:24:15 +0000 Subject: [PATCH] CodeGen from PR 33699 in Azure/azure-rest-api-specs Merge 600f386fe29b7b2d8d08f6217a6dcc00ccf4e1f7 into 0d182673b42de227bc01c0e4f04932b6c074f5ce --- .../azure-resourcemanager-netapp/CHANGELOG.md | 196 +- .../azure-resourcemanager-netapp/README.md | 2 +- .../azure-resourcemanager-netapp/SAMPLE.md | 806 +++++--- .../azure-resourcemanager-netapp/pom.xml | 3 +- .../netapp/NetAppFilesManager.java | 49 + .../netapp/fluent/BucketsClient.java | 392 ++++ .../netapp/fluent/NetAppManagementClient.java | 21 + ...tAppResourceQuotaLimitsAccountsClient.java | 84 + .../NetAppResourceQuotaLimitsClient.java | 10 +- .../fluent/NetAppResourceUsagesClient.java | 77 + .../netapp/fluent/VolumesClient.java | 146 ++ .../fluent/models/AccountProperties.java | 80 + .../netapp/fluent/models/BackupInner.java | 27 + .../fluent/models/BackupProperties.java | 50 + .../BucketGenerateCredentialsInner.java | 117 ++ .../netapp/fluent/models/BucketInner.java | 255 +++ .../fluent/models/BucketPatchProperties.java | 181 ++ .../fluent/models/BucketProperties.java | 209 ++ .../fluent/models/CapacityPoolInner.java | 25 + .../models/ListQuotaReportResponseInner.java | 127 ++ .../fluent/models/NetAppAccountInner.java | 59 + .../fluent/models/PoolPatchProperties.java | 31 + .../netapp/fluent/models/PoolProperties.java | 31 + ...uotaItemInner.java => QuotaItemInner.java} | 50 +- ...operties.java => QuotaItemProperties.java} | 44 +- .../netapp/fluent/models/UsageProperties.java | 113 ++ .../fluent/models/UsageResultInner.java | 148 ++ .../netapp/fluent/models/VolumeInner.java | 108 +- .../fluent/models/VolumeProperties.java | 146 +- .../netapp/implementation/BackupImpl.java | 12 + .../BucketGenerateCredentialsImpl.java | 41 + .../netapp/implementation/BucketImpl.java | 207 ++ .../implementation/BucketsClientImpl.java | 1713 +++++++++++++++++ .../netapp/implementation/BucketsImpl.java | 231 +++ .../implementation/CapacityPoolImpl.java | 14 + .../ListQuotaReportResponseImpl.java | 44 + .../implementation/NetAppAccountImpl.java | 34 + .../NetAppManagementClientImpl.java | 50 +- ...ResourceQuotaLimitsAccountsClientImpl.java | 439 +++++ ...NetAppResourceQuotaLimitsAccountsImpl.java | 68 + .../NetAppResourceQuotaLimitsClientImpl.java | 35 +- .../NetAppResourceQuotaLimitsImpl.java | 29 +- .../NetAppResourceUsagesClientImpl.java | 398 ++++ .../NetAppResourceUsagesImpl.java | 66 + .../implementation/OperationsClientImpl.java | 70 +- ...nQuotaItemImpl.java => QuotaItemImpl.java} | 17 +- .../implementation/UsageResultImpl.java | 48 + .../netapp/implementation/VolumeImpl.java | 52 +- .../implementation/VolumesClientImpl.java | 551 ++++++ .../netapp/implementation/VolumesImpl.java | 33 + ...rowCapacityPoolForShortTermCloneSplit.java | 56 + .../resourcemanager/netapp/models/Backup.java | 21 + .../resourcemanager/netapp/models/Bucket.java | 320 +++ .../models/BucketCredentialsExpiry.java | 95 + .../models/BucketGenerateCredentials.java | 41 + .../netapp/models/BucketList.java | 127 ++ .../netapp/models/BucketPatch.java | 237 +++ .../models/BucketServerPatchProperties.java | 128 ++ .../netapp/models/BucketServerProperties.java | 180 ++ .../netapp/models/Buckets.java | 225 +++ .../netapp/models/CapacityPool.java | 46 +- .../netapp/models/CapacityPoolPatch.java | 25 + .../netapp/models/CifsUser.java | 95 + .../netapp/models/CredentialsStatus.java | 60 + .../netapp/models/DestinationReplication.java | 178 ++ .../netapp/models/EncryptionIdentity.java | 30 + .../ExternalReplicationSetupStatus.java | 68 + .../netapp/models/FileSystemUser.java | 131 ++ .../netapp/models/LdapConfiguration.java | 213 ++ .../netapp/models/LdapServerType.java | 53 + .../models/ListQuotaReportResponse.java | 34 + .../netapp/models/MultiAdStatus.java | 53 + .../netapp/models/NetAppAccount.java | 83 +- .../netapp/models/NetAppAccountPatch.java | 57 + .../models/NetAppResourceQuotaLimits.java | 8 +- .../NetAppResourceQuotaLimitsAccounts.java | 77 + .../netapp/models/NetAppResourceUsages.java | 70 + .../models/NetappProvisioningState.java | 76 + .../netapp/models/NfsUser.java | 123 ++ .../netapp/models/OperationListResult.java | 16 + ...scriptionQuotaItem.java => QuotaItem.java} | 17 +- .../netapp/models/QuotaItemList.java | 127 ++ .../netapp/models/QuotaReport.java | 238 +++ .../netapp/models/ReplicationObject.java | 71 +- .../netapp/models/ReplicationType.java | 51 + .../netapp/models/ServiceLevel.java | 5 + .../models/SubscriptionQuotaItemList.java | 100 - .../resourcemanager/netapp/models/Type.java | 2 +- .../netapp/models/UsageName.java | 121 ++ .../netapp/models/UsageResult.java | 54 + .../netapp/models/UsagesListResult.java | 127 ++ .../resourcemanager/netapp/models/Volume.java | 169 +- .../models/VolumeGroupVolumeProperties.java | 105 +- .../netapp/models/VolumeLanguage.java | 388 ++++ .../netapp/models/Volumes.java | 67 + .../proxy-config.json | 2 +- .../AccountsChangeKeyVaultSamples.java | 8 +- .../AccountsCreateOrUpdateSamples.java | 8 +- .../generated/AccountsDeleteSamples.java | 2 +- .../AccountsGetByResourceGroupSamples.java | 2 +- ...tsGetChangeKeyVaultInformationSamples.java | 2 +- .../AccountsListByResourceGroupSamples.java | 2 +- .../netapp/generated/AccountsListSamples.java | 4 +- .../AccountsRenewCredentialsSamples.java | 4 +- .../AccountsTransitionToCmkSamples.java | 6 +- .../generated/AccountsUpdateSamples.java | 2 +- .../BackupPoliciesCreateSamples.java | 3 +- .../BackupPoliciesDeleteSamples.java | 3 +- .../generated/BackupPoliciesGetSamples.java | 3 +- .../generated/BackupPoliciesListSamples.java | 3 +- .../BackupPoliciesUpdateSamples.java | 3 +- .../BackupVaultsCreateOrUpdateSamples.java | 3 +- .../generated/BackupVaultsDeleteSamples.java | 3 +- .../generated/BackupVaultsGetSamples.java | 2 +- ...ackupVaultsListByNetAppAccountSamples.java | 2 +- .../generated/BackupVaultsUpdateSamples.java | 3 +- .../generated/BackupsCreateSamples.java | 7 +- .../generated/BackupsDeleteSamples.java | 5 +- .../BackupsGetLatestStatusSamples.java | 4 +- .../netapp/generated/BackupsGetSamples.java | 5 +- ...psGetVolumeLatestRestoreStatusSamples.java | 5 +- .../generated/BackupsListByVaultSamples.java | 5 +- ...kupsUnderAccountMigrateBackupsSamples.java | 7 +- ...psUnderBackupVaultRestoreFilesSamples.java | 4 +- ...ckupsUnderVolumeMigrateBackupsSamples.java | 6 +- .../generated/BackupsUpdateSamples.java | 5 +- .../BucketsCreateOrUpdateSamples.java | 36 + .../generated/BucketsDeleteSamples.java | 23 + .../BucketsGenerateCredentialsSamples.java | 27 + .../netapp/generated/BucketsGetSamples.java | 24 + .../netapp/generated/BucketsListSamples.java | 23 + .../generated/BucketsUpdateSamples.java | 33 + ...ourceCheckFilePathAvailabilitySamples.java | 6 +- ...pResourceCheckNameAvailabilitySamples.java | 3 +- ...ResourceCheckQuotaAvailabilitySamples.java | 3 +- ...ResourceQueryNetworkSiblingSetSamples.java | 6 +- .../NetAppResourceQueryRegionInfoSamples.java | 2 +- ...pResourceQuotaLimitsAccountGetSamples.java | 25 + ...ResourceQuotaLimitsAccountListSamples.java | 23 + .../NetAppResourceQuotaLimitsGetSamples.java | 2 +- .../NetAppResourceQuotaLimitsListSamples.java | 2 +- .../NetAppResourceRegionInfosGetSamples.java | 2 +- .../NetAppResourceRegionInfosListSamples.java | 2 +- ...esourceUpdateNetworkSiblingSetSamples.java | 6 +- .../NetAppResourceUsagesGetSamples.java | 24 + .../NetAppResourceUsagesListSamples.java | 23 + .../generated/OperationsListSamples.java | 2 +- .../generated/PoolsCreateOrUpdateSamples.java | 25 +- .../netapp/generated/PoolsDeleteSamples.java | 2 +- .../netapp/generated/PoolsGetSamples.java | 15 +- .../netapp/generated/PoolsListSamples.java | 2 +- .../netapp/generated/PoolsUpdateSamples.java | 18 +- .../SnapshotPoliciesCreateSamples.java | 4 +- .../SnapshotPoliciesDeleteSamples.java | 4 +- .../generated/SnapshotPoliciesGetSamples.java | 3 +- .../SnapshotPoliciesListSamples.java | 3 +- .../SnapshotPoliciesListVolumesSamples.java | 5 +- .../SnapshotPoliciesUpdateSamples.java | 4 +- .../generated/SnapshotsCreateSamples.java | 2 +- .../generated/SnapshotsDeleteSamples.java | 2 +- .../netapp/generated/SnapshotsGetSamples.java | 2 +- .../generated/SnapshotsListSamples.java | 2 +- .../SnapshotsRestoreFilesSamples.java | 5 +- .../generated/SnapshotsUpdateSamples.java | 2 +- .../generated/SubvolumesCreateSamples.java | 2 +- .../generated/SubvolumesDeleteSamples.java | 2 +- .../SubvolumesGetMetadataSamples.java | 3 +- .../generated/SubvolumesGetSamples.java | 2 +- .../SubvolumesListByVolumeSamples.java | 2 +- .../generated/SubvolumesUpdateSamples.java | 2 +- .../generated/VolumeGroupsCreateSamples.java | 87 +- .../generated/VolumeGroupsDeleteSamples.java | 3 +- .../generated/VolumeGroupsGetSamples.java | 8 +- ...olumeGroupsListByNetAppAccountSamples.java | 8 +- .../VolumeQuotaRulesCreateSamples.java | 4 +- .../VolumeQuotaRulesDeleteSamples.java | 4 +- .../generated/VolumeQuotaRulesGetSamples.java | 3 +- .../VolumeQuotaRulesListByVolumeSamples.java | 3 +- .../VolumeQuotaRulesUpdateSamples.java | 4 +- ...esAuthorizeExternalReplicationSamples.java | 2 +- .../VolumesAuthorizeReplicationSamples.java | 7 +- .../VolumesBreakFileLocksSamples.java | 3 +- .../VolumesBreakReplicationSamples.java | 4 +- .../VolumesCreateOrUpdateSamples.java | 5 +- .../VolumesDeleteReplicationSamples.java | 4 +- .../generated/VolumesDeleteSamples.java | 2 +- ...mesFinalizeExternalReplicationSamples.java | 2 +- .../VolumesFinalizeRelocationSamples.java | 4 +- .../netapp/generated/VolumesGetSamples.java | 2 +- ...sListGetGroupIdListForLdapUserSamples.java | 3 +- .../VolumesListQuotaReportSamples.java | 23 + .../VolumesListReplicationsSamples.java | 4 +- .../netapp/generated/VolumesListSamples.java | 2 +- .../VolumesPeerExternalClusterSamples.java | 5 +- ...umesPerformReplicationTransferSamples.java | 2 +- .../generated/VolumesPoolChangeSamples.java | 5 +- ...olumesPopulateAvailabilityZoneSamples.java | 2 +- ...VolumesReInitializeReplicationSamples.java | 5 +- .../VolumesReestablishReplicationSamples.java | 7 +- .../generated/VolumesRelocateSamples.java | 2 +- .../VolumesReplicationStatusSamples.java | 4 +- .../VolumesResetCifsPasswordSamples.java | 4 +- .../VolumesResyncReplicationSamples.java | 4 +- .../VolumesRevertRelocationSamples.java | 4 +- .../generated/VolumesRevertSamples.java | 4 +- .../VolumesSplitCloneFromParentSamples.java | 25 + .../generated/VolumesUpdateSamples.java | 2 +- .../AccountsRenewCredentialsMockTests.java | 33 - .../generated/AuthorizeRequestTests.java | 25 - .../netapp/generated/BackupInnerTests.java | 35 - .../generated/BackupPatchPropertiesTests.java | 25 - .../netapp/generated/BackupPatchTests.java | 24 - .../BackupPoliciesCreateMockTests.java | 65 - .../BackupPoliciesDeleteMockTests.java | 34 - ...ackupPoliciesGetWithResponseMockTests.java | 44 - .../BackupPoliciesListMockTests.java | 44 - .../generated/BackupPoliciesListTests.java | 76 - .../generated/BackupPolicyInnerTests.java | 56 - .../generated/BackupPolicyPatchTests.java | 55 - .../BackupPolicyPropertiesTests.java | 35 - .../generated/BackupPropertiesTests.java | 35 - .../generated/BackupRestoreFilesTests.java | 33 - .../generated/BackupStatusInnerTests.java | 23 - .../generated/BackupVaultInnerTests.java | 44 - .../generated/BackupVaultPatchTests.java | 39 - .../generated/BackupVaultPropertiesTests.java | 22 - .../BackupVaultsCreateOrUpdateMockTests.java | 57 - .../BackupVaultsGetWithResponseMockTests.java | 40 - ...kupVaultsListByNetAppAccountMockTests.java | 40 - .../generated/BackupVaultsListTests.java | 49 - .../generated/BackupsCreateMockTests.java | 47 - ...sGetLatestStatusWithResponseMockTests.java | 37 - ...estRestoreStatusWithResponseMockTests.java | 38 - .../BackupsGetWithResponseMockTests.java | 42 - .../BackupsListByVaultMockTests.java | 42 - .../netapp/generated/BackupsListTests.java | 39 - .../BackupsMigrationRequestTests.java | 25 - .../generated/BreakFileLocksRequestTests.java | 29 - .../BreakReplicationRequestTests.java | 25 - .../generated/CapacityPoolInnerTests.java | 61 - .../generated/CapacityPoolListTests.java | 81 - .../generated/CapacityPoolPatchTests.java | 53 - .../CheckAvailabilityResponseInnerTests.java | 33 - .../ClusterPeerCommandResponseInnerTests.java | 26 - .../netapp/generated/DailyScheduleTests.java | 35 - .../netapp/generated/DimensionTests.java | 27 - .../generated/EncryptionIdentityTests.java | 26 - .../EncryptionTransitionRequestTests.java | 29 - .../generated/ExportPolicyRuleTests.java | 69 - .../FilePathAvailabilityRequestTests.java | 32 - ...GetGroupIdListForLdapUserRequestTests.java | 25 - ...upIdListForLdapUserResponseInnerTests.java | 28 - .../netapp/generated/HourlyScheduleTests.java | 32 - .../KeyVaultPrivateEndpointTests.java | 29 - .../generated/LdapSearchScopeOptTests.java | 32 - .../generated/ListReplicationsTests.java | 52 - .../generated/LogSpecificationTests.java | 27 - .../ManagedServiceIdentityTests.java | 44 - .../generated/MetricSpecificationTests.java | 80 - .../generated/MonthlyScheduleTests.java | 38 - .../generated/MountTargetPropertiesTests.java | 29 - ...ceQuotaLimitsGetWithResponseMockTests.java | 37 - ...etAppResourceQuotaLimitsListMockTests.java | 37 - ...ceRegionInfosGetWithResponseMockTests.java | 42 - ...etAppResourceRegionInfosListMockTests.java | 43 - ...PathAvailabilityWithResponseMockTests.java | 46 - ...NameAvailabilityWithResponseMockTests.java | 47 - ...uotaAvailabilityWithResponseMockTests.java | 47 - ...etworkSiblingSetWithResponseMockTests.java | 47 - ...sQueryRegionInfoWithResponseMockTests.java | 43 - ...urcesUpdateNetworkSiblingSetMockTests.java | 49 - .../NetworkSiblingSetInnerTests.java | 45 - .../netapp/generated/NicInfoTests.java | 26 - .../generated/OperationDisplayTests.java | 35 - .../netapp/generated/OperationInnerTests.java | 175 -- .../generated/OperationListResultTests.java | 71 - .../generated/OperationPropertiesTests.java | 152 -- .../generated/OperationsListMockTests.java | 95 - ...ClusterForVolumeMigrationRequestTests.java | 28 - .../generated/PoolChangeRequestTests.java | 25 - .../generated/PoolPatchPropertiesTests.java | 32 - .../netapp/generated/PoolPropertiesTests.java | 41 - .../PoolsCreateOrUpdateMockTests.java | 71 - .../PoolsGetWithResponseMockTests.java | 47 - .../netapp/generated/PoolsListMockTests.java | 48 - .../QueryNetworkSiblingSetRequestTests.java | 29 - .../QuotaAvailabilityRequestTests.java | 34 - .../ReestablishReplicationRequestTests.java | 25 - ...InfoAvailabilityZoneMappingsItemTests.java | 29 - .../generated/RegionInfoInnerTests.java | 41 - .../RegionInfoResourceInnerTests.java | 39 - .../generated/RegionInfosListTests.java | 52 - .../netapp/generated/RemotePathTests.java | 33 - .../generated/ReplicationInnerTests.java | 37 - .../generated/ReplicationObjectTests.java | 46 - .../ReplicationStatusInnerTests.java | 40 - .../ResourceNameAvailabilityRequestTests.java | 35 - .../generated/RestoreStatusInnerTests.java | 23 - .../generated/ServiceSpecificationTests.java | 116 -- .../netapp/generated/SnapshotInnerTests.java | 26 - ...otPoliciesCreateWithResponseMockTests.java | 97 - .../SnapshotPoliciesDeleteMockTests.java | 33 - ...pshotPoliciesGetWithResponseMockTests.java | 58 - .../SnapshotPoliciesListMockTests.java | 58 - .../generated/SnapshotPoliciesListTests.java | 124 -- .../generated/SnapshotPolicyInnerTests.java | 102 - .../generated/SnapshotPolicyPatchTests.java | 101 - .../SnapshotPolicyPropertiesTests.java | 82 - .../generated/SnapshotPropertiesTests.java | 24 - .../generated/SnapshotRestoreFilesTests.java | 30 - .../generated/SnapshotsDeleteMockTests.java | 34 - .../SnapshotsGetWithResponseMockTests.java | 40 - .../generated/SnapshotsListMockTests.java | 39 - .../netapp/generated/SnapshotsListTests.java | 29 - .../SnapshotsRestoreFilesMockTests.java | 39 - .../generated/SnapshotsUpdateMockTests.java | 39 - .../SubscriptionQuotaItemInnerTests.java | 23 - .../SubscriptionQuotaItemListTests.java | 27 - .../SubscriptionQuotaItemPropertiesTests.java | 22 - .../generated/SubvolumeInfoInnerTests.java | 31 - .../generated/SubvolumeModelInnerTests.java | 54 - .../SubvolumeModelPropertiesTests.java | 54 - .../generated/SubvolumePatchParamsTests.java | 29 - .../generated/SubvolumePatchRequestTests.java | 28 - .../generated/SubvolumePropertiesTests.java | 32 - .../generated/SubvolumesCreateMockTests.java | 45 - .../generated/SubvolumesDeleteMockTests.java | 33 - .../SubvolumesGetMetadataMockTests.java | 48 - .../SubvolumesGetWithResponseMockTests.java | 42 - .../SubvolumesListByVolumeMockTests.java | 41 - .../netapp/generated/SubvolumesListTests.java | 36 - .../SvmPeerCommandResponseInnerTests.java | 25 - .../UpdateNetworkSiblingSetRequestTests.java | 36 - .../generated/UserAssignedIdentityTests.java | 23 - .../VolumeBackupPropertiesTests.java | 32 - .../netapp/generated/VolumeBackupsTests.java | 35 - .../VolumeGroupsDeleteMockTests.java | 33 - ...umePatchPropertiesDataProtectionTests.java | 38 - ...olumePatchPropertiesExportPolicyTests.java | 102 - .../generated/VolumePatchPropertiesTests.java | 139 -- .../netapp/generated/VolumePatchTests.java | 204 -- .../VolumePropertiesDataProtectionTests.java | 67 - .../VolumePropertiesExportPolicyTests.java | 102 - .../generated/VolumeQuotaRuleInnerTests.java | 53 - .../generated/VolumeQuotaRulePatchTests.java | 52 - .../VolumeQuotaRulesCreateMockTests.java | 64 - .../VolumeQuotaRulesDeleteMockTests.java | 34 - ...umeQuotaRulesGetWithResponseMockTests.java | 45 - ...VolumeQuotaRulesListByVolumeMockTests.java | 45 - .../generated/VolumeQuotaRulesListTests.java | 57 - .../VolumeQuotaRulesPropertiesTests.java | 33 - .../VolumeRelocationPropertiesTests.java | 26 - .../netapp/generated/VolumeRevertTests.java | 24 - .../VolumeSnapshotPropertiesTests.java | 25 - ...AuthorizeExternalReplicationMockTests.java | 37 - .../VolumesAuthorizeReplicationMockTests.java | 36 - .../VolumesBreakFileLocksMockTests.java | 37 - .../VolumesBreakReplicationMockTests.java | 36 - .../VolumesDeleteReplicationMockTests.java | 34 - .../VolumesFinalizeRelocationMockTests.java | 33 - ...istGetGroupIdListForLdapUserMockTests.java | 39 - .../VolumesListReplicationsMockTests.java | 44 - .../VolumesPeerExternalClusterMockTests.java | 42 - .../generated/VolumesPoolChangeMockTests.java | 36 - ...lumesReInitializeReplicationMockTests.java | 34 - ...eplicationStatusWithResponseMockTests.java | 46 - .../VolumesResyncReplicationMockTests.java | 34 - .../generated/VolumesRevertMockTests.java | 36 - .../VolumesRevertRelocationMockTests.java | 34 - .../netapp/generated/WeeklyScheduleTests.java | 38 - 370 files changed, 12388 insertions(+), 8161 deletions(-) create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketGenerateCredentialsInner.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResponseInner.java rename sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/{SubscriptionQuotaItemInner.java => QuotaItemInner.java} (71%) rename sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/{SubscriptionQuotaItemProperties.java => QuotaItemProperties.java} (60%) create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResponseImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java rename sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/{SubscriptionQuotaItemImpl.java => QuotaItemImpl.java} (69%) create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Bucket.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketCredentialsExpiry.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketGenerateCredentials.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketList.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPatch.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerPatchProperties.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerProperties.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Buckets.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CifsUser.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CredentialsStatus.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExternalReplicationSetupStatus.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileSystemUser.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapServerType.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MultiAdStatus.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetappProvisioningState.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NfsUser.java rename sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/{SubscriptionQuotaItem.java => QuotaItem.java} (78%) create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItemList.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaReport.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsagesListResult.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeLanguage.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AuthorizeRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupStatusInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakFileLocksRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakReplicationRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DimensionTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ExportPolicyRuleTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserResponseInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LogSpecificationTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MetricSpecificationTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MountTargetPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationDisplayTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationListResultTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PeerClusterForVolumeMigrationRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReestablishReplicationRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RemotePathTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationObjectTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationStatusInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RestoreStatusInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ServiceSpecificationTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemListTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponseInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesDataProtectionTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesExportPolicyTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesDataProtectionTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesExportPolicyTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRelocationPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRevertTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeSnapshotPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index a72e1781e60f..2fb4c0298ef8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -1,14 +1,202 @@ # Release History -## 1.7.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2025-04-11) -### 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-2025-01-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.SubscriptionQuotaItem` was removed -### Other Changes +#### `models.SubscriptionQuotaItemList` was removed + +#### `models.Volume$Definition` was modified + +* `withIsRestoring(java.lang.Boolean)` was removed + +#### `models.ReplicationObject` was modified + +* `withEndpointType(models.EndpointType)` was removed + +#### `models.VolumeGroupVolumeProperties` was modified + +* `withIsRestoring(java.lang.Boolean)` was removed + +#### `models.NetAppResourceQuotaLimits` was modified + +* `models.SubscriptionQuotaItem get(java.lang.String,java.lang.String)` -> `models.QuotaItem get(java.lang.String,java.lang.String)` + +### Features Added + +* `models.BucketPatch` was added + +* `models.AcceptGrowCapacityPoolForShortTermCloneSplit` was added + +* `models.QuotaItemList` was added + +* `models.LdapConfiguration` was added + +* `models.Bucket$DefinitionStages` was added + +* `models.ListQuotaReportResponse` was added + +* `models.NetAppResourceUsages` was added + +* `models.BucketServerProperties` was added + +* `models.LdapServerType` was added + +* `models.VolumeLanguage` was added + +* `models.UsagesListResult` was added + +* `models.MultiAdStatus` was added + +* `models.UsageResult` was added + +* `models.ReplicationType` was added + +* `models.Bucket$Definition` was added + +* `models.Bucket` was added + +* `models.NfsUser` was added + +* `models.BucketGenerateCredentials` was added + +* `models.BucketCredentialsExpiry` was added + +* `models.NetAppResourceQuotaLimitsAccounts` was added + +* `models.UsageName` was added + +* `models.Bucket$Update` was added + +* `models.CifsUser` was added + +* `models.QuotaReport` was added + +* `models.DestinationReplication` was added + +* `models.BucketServerPatchProperties` was added + +* `models.CredentialsStatus` was added + +* `models.BucketList` was added + +* `models.QuotaItem` was added + +* `models.ExternalReplicationSetupStatus` was added + +* `models.Bucket$UpdateStages` was added + +* `models.Buckets` was added + +* `models.FileSystemUser` was added + +* `models.NetappProvisioningState` was added + +#### `models.NetAppAccount$Definition` was modified + +* `withNfsV4IdDomain(java.lang.String)` was added +* `withLdapConfiguration(models.LdapConfiguration)` was added + +#### `models.CapacityPool$Update` was modified + +* `withCustomThroughputMibps(java.lang.Float)` was added + +#### `models.Backup` was modified + +* `snapshotCreationDate()` was added +* `completionDate()` was added +* `isLargeVolume()` was added + +#### `models.CapacityPool` was modified + +* `customThroughputMibps()` was added + +#### `models.Volume$Definition` was modified + +* `withLdapServerType(models.LdapServerType)` was added +* `withAcceptGrowCapacityPoolForShortTermCloneSplit(models.AcceptGrowCapacityPoolForShortTermCloneSplit)` was added +* `withLanguage(models.VolumeLanguage)` was added + +#### `models.OperationListResult` was modified + +* `nextLink()` was added + +#### `models.ReplicationObject` was modified + +* `destinationReplications()` was added +* `externalReplicationSetupInfo()` was added +* `externalReplicationSetupStatus()` was added + +#### `models.NetAppAccountPatch` was modified + +* `ldapConfiguration()` was added +* `nfsV4IdDomain()` was added +* `withLdapConfiguration(models.LdapConfiguration)` was added +* `multiAdStatus()` was added +* `withNfsV4IdDomain(java.lang.String)` was added + +#### `models.NetAppAccount$Update` was modified + +* `withNfsV4IdDomain(java.lang.String)` was added +* `withLdapConfiguration(models.LdapConfiguration)` was added + +#### `models.CapacityPoolPatch` was modified + +* `customThroughputMibps()` was added +* `withCustomThroughputMibps(java.lang.Float)` was added + +#### `models.VolumeGroupVolumeProperties` was modified + +* `withLdapServerType(models.LdapServerType)` was added +* `withAcceptGrowCapacityPoolForShortTermCloneSplit(models.AcceptGrowCapacityPoolForShortTermCloneSplit)` was added +* `language()` was added +* `acceptGrowCapacityPoolForShortTermCloneSplit()` was added +* `inheritedSizeInBytes()` was added +* `withLanguage(models.VolumeLanguage)` was added +* `ldapServerType()` was added + +#### `models.Volume` was modified + +* `splitCloneFromParent(com.azure.core.util.Context)` was added +* `language()` was added +* `splitCloneFromParent()` was added +* `listQuotaReport()` was added +* `inheritedSizeInBytes()` was added +* `ldapServerType()` was added +* `listQuotaReport(com.azure.core.util.Context)` was added +* `acceptGrowCapacityPoolForShortTermCloneSplit()` was added + +#### `models.CapacityPool$Definition` was modified + +* `withCustomThroughputMibps(java.lang.Float)` was added + +#### `NetAppFilesManager` was modified + +* `netAppResourceUsages()` was added +* `buckets()` was added +* `netAppResourceQuotaLimitsAccounts()` was added + +#### `models.EncryptionIdentity` was modified + +* `withFederatedClientId(java.lang.String)` was added +* `federatedClientId()` was added + +#### `models.Volumes` was modified + +* `splitCloneFromParent(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was added +* `splitCloneFromParent(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `listQuotaReport(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was added +* `listQuotaReport(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added + +#### `models.NetAppAccount` was modified + +* `nfsV4IdDomain()` was added +* `ldapConfiguration()` was added +* `multiAdStatus()` was added ## 1.6.0 (2025-02-21) diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index 6c2d493a72b2..650c698f4009 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/README.md +++ b/sdk/netapp/azure-resourcemanager-netapp/README.md @@ -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-2024-09-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-2025-01-01-preview. 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 diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md index f1fb41340c0a..4cd86f575e00 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md +++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md @@ -52,6 +52,15 @@ - [MigrateBackups](#backupsundervolume_migratebackups) +## Buckets + +- [CreateOrUpdate](#buckets_createorupdate) +- [Delete](#buckets_delete) +- [GenerateCredentials](#buckets_generatecredentials) +- [Get](#buckets_get) +- [List](#buckets_list) +- [Update](#buckets_update) + ## NetAppResource - [CheckFilePathAvailability](#netappresource_checkfilepathavailability) @@ -66,11 +75,21 @@ - [Get](#netappresourcequotalimits_get) - [List](#netappresourcequotalimits_list) +## NetAppResourceQuotaLimitsAccount + +- [Get](#netappresourcequotalimitsaccount_get) +- [List](#netappresourcequotalimitsaccount_list) + ## NetAppResourceRegionInfos - [Get](#netappresourceregioninfos_get) - [List](#netappresourceregioninfos_list) +## NetAppResourceUsages + +- [Get](#netappresourceusages_get) +- [List](#netappresourceusages_list) + ## Operations - [List](#operations_list) @@ -139,6 +158,7 @@ - [Get](#volumes_get) - [List](#volumes_list) - [ListGetGroupIdListForLdapUser](#volumes_listgetgroupidlistforldapuser) +- [ListQuotaReport](#volumes_listquotareport) - [ListReplications](#volumes_listreplications) - [PeerExternalCluster](#volumes_peerexternalcluster) - [PerformReplicationTransfer](#volumes_performreplicationtransfer) @@ -152,6 +172,7 @@ - [ResyncReplication](#volumes_resyncreplication) - [Revert](#volumes_revert) - [RevertRelocation](#volumes_revertrelocation) +- [SplitCloneFromParent](#volumes_splitclonefromparent) - [Update](#volumes_update) ### Accounts_ChangeKeyVault @@ -165,8 +186,8 @@ import java.util.Arrays; */ public final class AccountsChangeKeyVaultSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_ChangeKeyVault.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Accounts_ChangeKeyVault.json */ /** * Sample code: Accounts_ChangeKeyVault. @@ -179,9 +200,9 @@ public final class AccountsChangeKeyVaultSamples { .withKeyName("fakeTokenPlaceholder") .withKeyVaultResourceId("fakeTokenPlaceholder") .withKeyVaultPrivateEndpoints(Arrays.asList(new KeyVaultPrivateEndpoint().withVirtualNetworkId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1") .withPrivateEndpointId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"))), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"))), com.azure.core.util.Context.NONE); } } @@ -198,8 +219,8 @@ import java.util.Arrays; */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -211,8 +232,8 @@ public final class AccountsCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Accounts_CreateOrUpdateAD.json */ /** * Sample code: Accounts_CreateOrUpdateWithActiveDirectory. @@ -249,7 +270,7 @@ public final class AccountsCreateOrUpdateSamples { public final class AccountsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. @@ -271,7 +292,7 @@ public final class AccountsDeleteSamples { public final class AccountsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_Get.json */ /** * Sample code: Accounts_Get. @@ -292,7 +313,7 @@ public final class AccountsGetByResourceGroupSamples { */ public final class AccountsGetChangeKeyVaultInformationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Accounts_GetChangeKeyVaultInformation.json */ /** @@ -315,8 +336,8 @@ public final class AccountsGetChangeKeyVaultInformationSamples { */ public final class AccountsListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Accounts_ListBySubscription.json */ /** * Sample code: Accounts_List. @@ -338,7 +359,7 @@ public final class AccountsListSamples { public final class AccountsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_List.json */ /** * Sample code: Accounts_List. @@ -359,8 +380,8 @@ public final class AccountsListByResourceGroupSamples { */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Accounts_RenewCredentials.json */ /** * Sample code: Accounts_RenewCredentials. @@ -383,7 +404,7 @@ import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; */ public final class AccountsTransitionToCmkSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Accounts_TransitionEncryptionKey.json */ /** @@ -394,9 +415,9 @@ public final class AccountsTransitionToCmkSamples { 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") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1") .withPrivateEndpointId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"), com.azure.core.util.Context.NONE); } } @@ -415,7 +436,7 @@ import java.util.Map; public final class AccountsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_Update.json */ /** * Sample code: Accounts_Update. @@ -452,7 +473,8 @@ public final class AccountsUpdateSamples { public final class BackupPoliciesCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Create. + * json */ /** * Sample code: BackupPolicies_Create. @@ -482,7 +504,8 @@ public final class BackupPoliciesCreateSamples { public final class BackupPoliciesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Delete. + * json */ /** * Sample code: BackupPolicies_Delete. @@ -505,7 +528,8 @@ public final class BackupPoliciesDeleteSamples { public final class BackupPoliciesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Get. + * json */ /** * Sample code: Backups_Get. @@ -528,7 +552,8 @@ public final class BackupPoliciesGetSamples { public final class BackupPoliciesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_List. + * json */ /** * Sample code: BackupPolicies_List. @@ -552,7 +577,8 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy; public final class BackupPoliciesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Update. + * json */ /** * Sample code: BackupPolicies_Update. @@ -582,7 +608,8 @@ public final class BackupPoliciesUpdateSamples { public final class BackupVaultsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Create. + * json */ /** * Sample code: BackupVault_CreateOrUpdate. @@ -608,7 +635,8 @@ public final class BackupVaultsCreateOrUpdateSamples { public final class BackupVaultsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Delete. + * json */ /** * Sample code: BackupVaults_Delete. @@ -630,7 +658,7 @@ public final class BackupVaultsDeleteSamples { public final class BackupVaultsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Get.json */ /** * Sample code: BackupVaults_Get. @@ -652,7 +680,7 @@ public final class BackupVaultsGetSamples { public final class BackupVaultsListByNetAppAccountSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_List.json */ /** * Sample code: BackupVaults_List. @@ -678,7 +706,8 @@ import java.util.Map; public final class BackupVaultsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Update. + * json */ /** * Sample code: BackupVaults_Update. @@ -714,9 +743,8 @@ public final class BackupVaultsUpdateSamples { */ public final class BackupsCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Create. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderBackupVault_Create.json */ /** * Sample code: BackupsUnderBackupVault_Create. @@ -728,7 +756,7 @@ public final class BackupsCreateSamples { .define("backup1") .withExistingBackupVault("myRG", "account1", "backupVault1") .withVolumeResourceId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1") .withLabel("myLabel") .create(); } @@ -743,9 +771,8 @@ public final class BackupsCreateSamples { */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Delete. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderBackupVault_Delete.json */ /** * Sample code: BackupsUnderBackupVault_Delete. @@ -767,9 +794,8 @@ public final class BackupsDeleteSamples { */ public final class BackupsGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Get. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderBackupVault_Get.json */ /** * Sample code: BackupsUnderBackupVault_Get. @@ -791,8 +817,8 @@ public final class BackupsGetSamples { */ public final class BackupsGetLatestStatusSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_LatestBackupStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_LatestBackupStatus.json */ /** * Sample code: Volumes_BackupStatus. @@ -814,9 +840,8 @@ public final class BackupsGetLatestStatusSamples { */ public final class BackupsGetVolumeLatestRestoreStatusSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_LatestRestoreStatus. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_LatestRestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. @@ -839,9 +864,8 @@ public final class BackupsGetVolumeLatestRestoreStatusSamples { */ public final class BackupsListByVaultSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_List. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderBackupVault_List.json */ /** * Sample code: Backups_List. @@ -864,9 +888,8 @@ import com.azure.resourcemanager.netapp.models.Backup; */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Update. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderBackupVault_Update.json */ /** * Sample code: BackupsUnderBackupVault_Update. @@ -892,9 +915,8 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; */ public final class BackupsUnderAccountMigrateBackupsSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderAccount_Migrate. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderAccount_Migrate.json */ /** * Sample code: BackupsUnderAccount_Migrate. @@ -904,7 +926,7 @@ public final class BackupsUnderAccountMigrateBackupsSamples { 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"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"), com.azure.core.util.Context.NONE); } } @@ -921,7 +943,7 @@ import java.util.Arrays; */ public final class BackupsUnderBackupVaultRestoreFilesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * BackupsUnderBackupVault_SingleFileRestore.json */ /** @@ -934,7 +956,7 @@ public final class BackupsUnderBackupVaultRestoreFilesSamples { .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"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"), com.azure.core.util.Context.NONE); } } @@ -950,8 +972,8 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; */ public final class BackupsUnderVolumeMigrateBackupsSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderVolume_Migrate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderVolume_Migrate.json */ /** * Sample code: BackupsUnderVolume_Migrate. @@ -961,12 +983,172 @@ public final class BackupsUnderVolumeMigrateBackupsSamples { 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"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"), com.azure.core.util.Context.NONE); } } ``` +### Buckets_CreateOrUpdate + +```java +import com.azure.resourcemanager.netapp.models.BucketServerProperties; +import com.azure.resourcemanager.netapp.models.FileSystemUser; +import com.azure.resourcemanager.netapp.models.NfsUser; + +/** + * Samples for Buckets CreateOrUpdate. + */ +public final class BucketsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Buckets_CreateOrUpdate + * .json + */ + /** + * Sample code: Buckets_CreateOrUpdate. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets() + .define("bucket1") + .withExistingVolume("myRG", "account1", "pool1", "volume1") + .withPath("/path") + .withFileSystemUser(new FileSystemUser().withNfsUser(new NfsUser().withUserId(1001L).withGroupId(1000L))) + .withServer(new BucketServerProperties().withFqdn("fullyqualified.domainname.com") + .withCertificateObject( + "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURuVENDQW9XZ0F3SUJBZ0lRR3FXdnRxeHBvSTFJV3Z4VGdJbElWREFOQmdrcWhraUc5dzBCQVFzRkFEQlYKTVJNd0VRWUtDWkltaVpQeUxHUUJHUllEWTI5dE1SY3dGUVlLQ1pJbWlaUHlMR1FCR1JZSGFHRnlhV3R5WWpFbApNQ01HQTFVRUF4TWNhR0Z5YVd0eVlpMVhTVTR0TWtKUFZrRkZTMEkwTkVJdFEwRXRNakFlRncweU1EQTFNRFV3Ck56TTVORGxhRncweU1EQTFNRFl3TnpRNU5EaGFNRlV4RXpBUkJnb0praWFKay9Jc1pBRVpGZ05qYjIweEZ6QVYKQmdvSmtpYUprL0lzWkFFWkZnZG9ZWEpwYTNKaU1TVXdJd1lEVlFRREV4eG9ZWEpwYTNKaUxWZEpUaTB5UWs5VwpRVVZMUWpRMFFpMURRUzB5TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFqMHByCnhaaXpNaDBqYnRwN1ZOc0JrRVJ2MVpZT0MzMEtqaGRWdEExRm1MeFM2cXlycmpMZUdXOXRSd2ZnUkR0eVBodTIKZVJTcVpTUjF6Z1hZR0s0Nys3Y3F0YnB2UElOektCb0dOWERIVTNxVWlleXJWSjFDVzRKNjJodUdrbUV1VVVkMApKMXBxNTVxbjk1SmRUbWh1dmZlTUxxeHB5c01nbGVnY281ZFhoN0hsQkhwaTNKMFN4ZnhVWmxKMVZiOFJZVEZhCkJiMGFlTVZaRzRKeVREaktiMlR1TmFXOG1aUE5vOFBMRDRocjdndFNZUEQvQ1dVVGV5QlpoZC9LTzNPczlWVEIKYmpLUGtWd0J2WEs2SlFMSGprNFBHS3VYZDhaWVFyajBtOWNIZDNmcWNYTXlQUnQ2TlJ4ak0yMTUxckFzSkVhNgpWZC9ta056akpXalBrT2VZUVFJREFRQUJvMmt3WnpBVEJna3JCZ0VFQVlJM0ZBSUVCaDRFQUVNQVFUQU9CZ05WCkhROEJBZjhFQkFNQ0FZWXdEd1lEVlIwVEFRSC9CQVV3QXdFQi96QWRCZ05WSFE0RUZnUVVDVEc2ODJSay9kMysKWGtHa0VMakRFMjI4ZjNnd0VBWUpLd1lCQkFHQ054VUJCQU1DQVFBd0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQgpBR1RjTTNnWExIU05wS014RHEvUFpZbWZCMmNlN3VhMmxxbXpzZSt4QmthSTE0WXdzZE5ZQjZBVTNFWDM3QWpZCjd3bm9xQzY1N0U2RVhTODVDckoyNXJNTHo4OEtONGI3cUg5RUowSS9XVHg5YTdUT0ZENENWQThuL0xwNGh1Ym4KNlBFalY5NFlZWXBXTG1hTkkvbGFReWsxSHVJbDFSTCttVDFnSWQ4ZWZXZ1UvNmlVVEw3eGMrdjkyNHBuTHhISwpOSnNTV3c0NFk5a0R5SU9KOXFjWUlBN1lhTkxPZTRjSysvQlRvdDh0dVVKT1hHLzdBRmtxR2EyQVA4MmFZOStKCnkwSmU2OG5nTHJ1dVU4VHpneVpqdkFHcTRrVEVOdWFoaFdHVC9KWkEzOXhSNUV4MmNMUUplcE5NdnlZbUZ3Z1UKME8zYlA0OWNBVFVCMXoyQ3Y5aTRQbVk9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K")) + .create(); + } +} +``` + +### Buckets_Delete + +```java +/** + * Samples for Buckets Delete. + */ +public final class BucketsDeleteSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Buckets_Delete.json + */ + /** + * Sample code: Buckets_Delete. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets().delete("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); + } +} +``` + +### Buckets_GenerateCredentials + +```java +import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; + +/** + * Samples for Buckets GenerateCredentials. + */ +public final class BucketsGenerateCredentialsSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Buckets_GenerateCredentials.json + */ + /** + * Sample code: Buckets_GenerateCredentials. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsGenerateCredentials(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets() + .generateCredentialsWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", + new BucketCredentialsExpiry().withKeyPairExpiryDays(3), com.azure.core.util.Context.NONE); + } +} +``` + +### Buckets_Get + +```java +/** + * Samples for Buckets Get. + */ +public final class BucketsGetSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Buckets_Get.json + */ + /** + * Sample code: Buckets_Get. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets() + .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); + } +} +``` + +### Buckets_List + +```java +/** + * Samples for Buckets List. + */ +public final class BucketsListSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Buckets_List.json + */ + /** + * Sample code: Buckets_List. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets().list("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + } +} +``` + +### Buckets_Update + +```java +import com.azure.resourcemanager.netapp.models.Bucket; +import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; + +/** + * Samples for Buckets Update. + */ +public final class BucketsUpdateSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Buckets_Update.json + */ + /** + * Sample code: Buckets_Update. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + Bucket resource = manager.buckets() + .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withServer(new BucketServerPatchProperties().withFqdn("fullyqualified.domainname.com") + .withCertificateObject( + "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURuVENDQW9XZ0F3SUJBZ0lRR3FXdnRxeHBvSTFJV3Z4VGdJbElWREFOQmdrcWhraUc5dzBCQVFzRkFEQlYKTVJNd0VRWUtDWkltaVpQeUxHUUJHUllEWTI5dE1SY3dGUVlLQ1pJbWlaUHlMR1FCR1JZSGFHRnlhV3R5WWpFbApNQ01HQTFVRUF4TWNhR0Z5YVd0eVlpMVhTVTR0TWtKUFZrRkZTMEkwTkVJdFEwRXRNakFlRncweU1EQTFNRFV3Ck56TTVORGxhRncweU1EQTFNRFl3TnpRNU5EaGFNRlV4RXpBUkJnb0praWFKay9Jc1pBRVpGZ05qYjIweEZ6QVYKQmdvSmtpYUprL0lzWkFFWkZnZG9ZWEpwYTNKaU1TVXdJd1lEVlFRREV4eG9ZWEpwYTNKaUxWZEpUaTB5UWs5VwpRVVZMUWpRMFFpMURRUzB5TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFqMHByCnhaaXpNaDBqYnRwN1ZOc0JrRVJ2MVpZT0MzMEtqaGRWdEExRm1MeFM2cXlycmpMZUdXOXRSd2ZnUkR0eVBodTIKZVJTcVpTUjF6Z1hZR0s0Nys3Y3F0YnB2UElOektCb0dOWERIVTNxVWlleXJWSjFDVzRKNjJodUdrbUV1VVVkMApKMXBxNTVxbjk1SmRUbWh1dmZlTUxxeHB5c01nbGVnY281ZFhoN0hsQkhwaTNKMFN4ZnhVWmxKMVZiOFJZVEZhCkJiMGFlTVZaRzRKeVREaktiMlR1TmFXOG1aUE5vOFBMRDRocjdndFNZUEQvQ1dVVGV5QlpoZC9LTzNPczlWVEIKYmpLUGtWd0J2WEs2SlFMSGprNFBHS3VYZDhaWVFyajBtOWNIZDNmcWNYTXlQUnQ2TlJ4ak0yMTUxckFzSkVhNgpWZC9ta056akpXalBrT2VZUVFJREFRQUJvMmt3WnpBVEJna3JCZ0VFQVlJM0ZBSUVCaDRFQUVNQVFUQU9CZ05WCkhROEJBZjhFQkFNQ0FZWXdEd1lEVlIwVEFRSC9CQVV3QXdFQi96QWRCZ05WSFE0RUZnUVVDVEc2ODJSay9kMysKWGtHa0VMakRFMjI4ZjNnd0VBWUpLd1lCQkFHQ054VUJCQU1DQVFBd0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQgpBR1RjTTNnWExIU05wS014RHEvUFpZbWZCMmNlN3VhMmxxbXpzZSt4QmthSTE0WXdzZE5ZQjZBVTNFWDM3QWpZCjd3bm9xQzY1N0U2RVhTODVDckoyNXJNTHo4OEtONGI3cUg5RUowSS9XVHg5YTdUT0ZENENWQThuL0xwNGh1Ym4KNlBFalY5NFlZWXBXTG1hTkkvbGFReWsxSHVJbDFSTCttVDFnSWQ4ZWZXZ1UvNmlVVEw3eGMrdjkyNHBuTHhISwpOSnNTV3c0NFk5a0R5SU9KOXFjWUlBN1lhTkxPZTRjSysvQlRvdDh0dVVKT1hHLzdBRmtxR2EyQVA4MmFZOStKCnkwSmU2OG5nTHJ1dVU4VHpneVpqdkFHcTRrVEVOdWFoaFdHVC9KWkEzOXhSNUV4MmNMUUplcE5NdnlZbUZ3Z1UKME8zYlA0OWNBVFVCMXoyQ3Y5aTRQbVk9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K")) + .apply(); + } +} +``` + ### NetAppResource_CheckFilePathAvailability ```java @@ -977,8 +1159,8 @@ import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. @@ -990,7 +1172,7 @@ public final class NetAppResourceCheckFilePathAvailabilitySamples { .checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest() .withName("my-exact-filepth") .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), com.azure.core.util.Context.NONE); } } @@ -1008,7 +1190,8 @@ import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; public final class NetAppResourceCheckNameAvailabilitySamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckNameAvailability.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/CheckNameAvailability. + * json */ /** * Sample code: CheckNameAvailability. @@ -1038,7 +1221,8 @@ import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; public final class NetAppResourceCheckQuotaAvailabilitySamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckQuotaAvailability.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/CheckQuotaAvailability + * .json */ /** * Sample code: CheckQuotaAvailability. @@ -1066,8 +1250,8 @@ import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest; */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. @@ -1079,7 +1263,7 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples { .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"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), com.azure.core.util.Context.NONE); } } @@ -1094,7 +1278,7 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples { public final class NetAppResourceQueryRegionInfoSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfo.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/RegionInfo.json */ /** * Sample code: RegionInfo_Query. @@ -1118,8 +1302,8 @@ import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. @@ -1131,7 +1315,7 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples { .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") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet") .withNetworkSiblingSetStateId("12345_44420.8001578125") .withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE); } @@ -1147,7 +1331,7 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples { public final class NetAppResourceQuotaLimitsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/QuotaLimits_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/QuotaLimits_Get.json */ /** * Sample code: QuotaLimits. @@ -1170,7 +1354,7 @@ public final class NetAppResourceQuotaLimitsGetSamples { public final class NetAppResourceQuotaLimitsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/QuotaLimits_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/QuotaLimits_List.json */ /** * Sample code: QuotaLimits. @@ -1183,6 +1367,52 @@ public final class NetAppResourceQuotaLimitsListSamples { } ``` +### NetAppResourceQuotaLimitsAccount_Get + +```java +/** + * Samples for NetAppResourceQuotaLimitsAccount Get. + */ +public final class NetAppResourceQuotaLimitsAccountGetSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/QuotaLimitsAccount_Get + * .json + */ + /** + * Sample code: Volumes_RestoreStatus. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.netAppResourceQuotaLimitsAccounts() + .getWithResponse("myRG", "myAccount", "poolsPerAccount", com.azure.core.util.Context.NONE); + } +} +``` + +### NetAppResourceQuotaLimitsAccount_List + +```java +/** + * Samples for NetAppResourceQuotaLimitsAccount List. + */ +public final class NetAppResourceQuotaLimitsAccountListSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * QuotaLimitsAccount_List.json + */ + /** + * Sample code: Volumes_RestoreStatus. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.netAppResourceQuotaLimitsAccounts().list("myRG", "myAccount", com.azure.core.util.Context.NONE); + } +} +``` + ### NetAppResourceRegionInfos_Get ```java @@ -1192,7 +1422,7 @@ public final class NetAppResourceQuotaLimitsListSamples { public final class NetAppResourceRegionInfosGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfos_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/RegionInfos_Get.json */ /** * Sample code: RegionInfos_Get. @@ -1214,7 +1444,7 @@ public final class NetAppResourceRegionInfosGetSamples { public final class NetAppResourceRegionInfosListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfos_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/RegionInfos_List.json */ /** * Sample code: RegionInfos_List. @@ -1227,6 +1457,51 @@ public final class NetAppResourceRegionInfosListSamples { } ``` +### NetAppResourceUsages_Get + +```java +/** + * Samples for NetAppResourceUsages Get. + */ +public final class NetAppResourceUsagesGetSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Usages_Get.json + */ + /** + * Sample code: Usages_Get. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void usagesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.netAppResourceUsages() + .getWithResponse("eastus", "totalTibsPerSubscription", com.azure.core.util.Context.NONE); + } +} +``` + +### NetAppResourceUsages_List + +```java +/** + * Samples for NetAppResourceUsages List. + */ +public final class NetAppResourceUsagesListSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Usages_List.json + */ + /** + * Sample code: Usages_List. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void usagesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.netAppResourceUsages().list("eastus", com.azure.core.util.Context.NONE); + } +} +``` + ### Operations_List ```java @@ -1236,7 +1511,7 @@ public final class NetAppResourceRegionInfosListSamples { public final class OperationsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/OperationList.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/OperationList.json */ /** * Sample code: OperationList. @@ -1261,7 +1536,8 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; public final class PoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_CreateOrUpdate.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_CreateOrUpdate. + * json */ /** * Sample code: Pools_CreateOrUpdate. @@ -1278,6 +1554,28 @@ public final class PoolsCreateOrUpdateSamples { .withQosType(QosType.AUTO) .create(); } + + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-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(); + } } ``` @@ -1290,7 +1588,7 @@ public final class PoolsCreateOrUpdateSamples { public final class PoolsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_Delete.json */ /** * Sample code: Pools_Delete. @@ -1310,9 +1608,22 @@ public final class PoolsDeleteSamples { * Samples for Pools Get. */ public final class PoolsGetSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-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); + } + /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_Get.json */ /** * Sample code: Pools_Get. @@ -1334,7 +1645,7 @@ public final class PoolsGetSamples { public final class PoolsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_List.json */ /** * Sample code: Pools_List. @@ -1358,7 +1669,7 @@ import com.azure.resourcemanager.netapp.models.CapacityPool; public final class PoolsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -1370,6 +1681,22 @@ public final class PoolsUpdateSamples { = manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue(); resource.update().apply(); } + + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-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(); + } } ``` @@ -1386,8 +1713,8 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. @@ -1419,8 +1746,8 @@ public final class SnapshotPoliciesCreateSamples { */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. @@ -1443,7 +1770,8 @@ public final class SnapshotPoliciesDeleteSamples { public final class SnapshotPoliciesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/SnapshotPolicies_Get. + * json */ /** * Sample code: SnapshotPolicies_Get. @@ -1466,7 +1794,8 @@ public final class SnapshotPoliciesGetSamples { public final class SnapshotPoliciesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/SnapshotPolicies_List. + * json */ /** * Sample code: SnapshotPolicies_List. @@ -1487,9 +1816,8 @@ public final class SnapshotPoliciesListSamples { */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_ListVolumes. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. @@ -1517,8 +1845,8 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. @@ -1551,7 +1879,7 @@ public final class SnapshotPoliciesUpdateSamples { public final class SnapshotsCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. @@ -1577,7 +1905,7 @@ public final class SnapshotsCreateSamples { public final class SnapshotsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. @@ -1600,7 +1928,7 @@ public final class SnapshotsDeleteSamples { public final class SnapshotsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. @@ -1623,7 +1951,7 @@ public final class SnapshotsGetSamples { public final class SnapshotsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_List.json */ /** * Sample code: Snapshots_List. @@ -1647,9 +1975,8 @@ import java.util.Arrays; */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_SingleFileRestore. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Snapshots_SingleFileRestore.json */ /** * Sample code: Snapshots_SingleFileRestore. @@ -1678,7 +2005,7 @@ import java.io.IOException; public final class SnapshotsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Update.json */ /** * Sample code: Snapshots_Update. @@ -1704,7 +2031,7 @@ public final class SnapshotsUpdateSamples { public final class SubvolumesCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Create.json */ /** * Sample code: Subvolumes_Create. @@ -1730,7 +2057,7 @@ public final class SubvolumesCreateSamples { public final class SubvolumesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Delete.json */ /** * Sample code: Subvolumes_Delete. @@ -1753,7 +2080,7 @@ public final class SubvolumesDeleteSamples { public final class SubvolumesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Get.json */ /** * Sample code: Subvolumes_Get. @@ -1776,7 +2103,8 @@ public final class SubvolumesGetSamples { public final class SubvolumesGetMetadataSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Metadata.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Metadata. + * json */ /** * Sample code: Subvolumes_Metadata. @@ -1799,7 +2127,7 @@ public final class SubvolumesGetMetadataSamples { public final class SubvolumesListByVolumeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_List.json */ /** * Sample code: Subvolumes_List. @@ -1823,7 +2151,7 @@ import com.azure.resourcemanager.netapp.models.SubvolumeInfo; public final class SubvolumesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Update.json */ /** * Sample code: Subvolumes_Update. @@ -1855,9 +2183,8 @@ import java.util.Arrays; */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Create_SapHana. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_Create_SapHana.json */ /** * Sample code: VolumeGroups_Create_SapHana. @@ -1894,12 +2221,12 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") .withVolumeSpecName("data"), new VolumeGroupVolumeProperties().withName("test-log-mnt00001") .withCreationToken("fakeTokenPlaceholder") @@ -1922,12 +2249,12 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") .withVolumeSpecName("log"), new VolumeGroupVolumeProperties().withName("test-shared") .withCreationToken("fakeTokenPlaceholder") @@ -1950,12 +2277,12 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") .withVolumeSpecName("shared"), new VolumeGroupVolumeProperties().withName("test-data-backup") .withCreationToken("fakeTokenPlaceholder") @@ -1978,12 +2305,12 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") .withVolumeSpecName("data-backup"), new VolumeGroupVolumeProperties().withName("test-log-backup") .withCreationToken("fakeTokenPlaceholder") @@ -2006,19 +2333,19 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") .withVolumeSpecName("log-backup"))) .create(); } /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_Create_Oracle.json */ /** * Sample code: VolumeGroups_Create_Oracle. @@ -2056,10 +2383,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data1"), new VolumeGroupVolumeProperties().withName("test-ora-data2") .withZones(Arrays.asList("1")) @@ -2083,10 +2410,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data2"), new VolumeGroupVolumeProperties().withName("test-ora-data3") .withZones(Arrays.asList("1")) @@ -2110,10 +2437,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data3"), new VolumeGroupVolumeProperties().withName("test-ora-data4") .withZones(Arrays.asList("1")) @@ -2137,10 +2464,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data4"), new VolumeGroupVolumeProperties().withName("test-ora-data5") .withZones(Arrays.asList("1")) @@ -2164,10 +2491,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data5"), new VolumeGroupVolumeProperties().withName("test-ora-data6") .withZones(Arrays.asList("1")) @@ -2191,10 +2518,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data6"), new VolumeGroupVolumeProperties().withName("test-ora-data7") .withZones(Arrays.asList("1")) @@ -2218,10 +2545,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data7"), new VolumeGroupVolumeProperties().withName("test-ora-data8") .withZones(Arrays.asList("1")) @@ -2245,10 +2572,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data8"), new VolumeGroupVolumeProperties().withName("test-ora-log") .withZones(Arrays.asList("1")) @@ -2272,10 +2599,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-log"), new VolumeGroupVolumeProperties().withName("test-ora-log-mirror") .withZones(Arrays.asList("1")) @@ -2299,10 +2626,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-log-mirror"), new VolumeGroupVolumeProperties().withName("test-ora-binary") .withZones(Arrays.asList("1")) @@ -2326,10 +2653,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-binary"), new VolumeGroupVolumeProperties().withName("test-ora-backup") .withZones(Arrays.asList("1")) @@ -2353,10 +2680,10 @@ public final class VolumeGroupsCreateSamples { .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-backup"))) .create(); } @@ -2372,7 +2699,8 @@ public final class VolumeGroupsCreateSamples { public final class VolumeGroupsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/VolumeGroups_Delete. + * json */ /** * Sample code: VolumeGroups_Delete. @@ -2393,8 +2721,8 @@ public final class VolumeGroupsDeleteSamples { */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. @@ -2406,8 +2734,8 @@ public final class VolumeGroupsGetSamples { } /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_Get_Oracle.json */ /** * Sample code: VolumeGroups_Get_Oracle. @@ -2428,8 +2756,8 @@ public final class VolumeGroupsGetSamples { */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. @@ -2441,8 +2769,8 @@ public final class VolumeGroupsListByNetAppAccountSamples { } /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_List_SapHana.json */ /** * Sample code: VolumeGroups_List_SapHana. @@ -2465,8 +2793,8 @@ import com.azure.resourcemanager.netapp.models.Type; */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeQuotaRules_Create.json */ /** * Sample code: VolumeQuotaRules_Create. @@ -2494,8 +2822,8 @@ public final class VolumeQuotaRulesCreateSamples { */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeQuotaRules_Delete.json */ /** * Sample code: VolumeQuotaRules_Delete. @@ -2518,7 +2846,8 @@ public final class VolumeQuotaRulesDeleteSamples { public final class VolumeQuotaRulesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/VolumeQuotaRules_Get. + * json */ /** * Sample code: VolumeQuotaRules_Get. @@ -2542,7 +2871,8 @@ public final class VolumeQuotaRulesGetSamples { public final class VolumeQuotaRulesListByVolumeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/VolumeQuotaRules_List. + * json */ /** * Sample code: VolumeQuotaRules_List. @@ -2566,8 +2896,8 @@ import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeQuotaRules_Update.json */ /** * Sample code: VolumeQuotaRules_Update. @@ -2592,7 +2922,7 @@ public final class VolumeQuotaRulesUpdateSamples { */ public final class VolumesAuthorizeExternalReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Volumes_AuthorizeExternalReplication.json */ /** @@ -2618,9 +2948,8 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest; */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_AuthorizeReplication. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -2631,7 +2960,7 @@ public final class VolumesAuthorizeReplicationSamples { manager.volumes() .authorizeReplication("myRG", "account1", "pool1", "volume1", new AuthorizeRequest().withRemoteVolumeResourceId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"), com.azure.core.util.Context.NONE); } } @@ -2648,7 +2977,8 @@ import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; public final class VolumesBreakFileLocksSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_BreakFileLocks.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_BreakFileLocks + * .json */ /** * Sample code: Volumes_BreakFileLocks. @@ -2674,8 +3004,8 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. @@ -2701,7 +3031,8 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; public final class VolumesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_CreateOrUpdate.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_CreateOrUpdate + * .json */ /** * Sample code: Volumes_CreateOrUpdate. @@ -2716,7 +3047,7 @@ public final class VolumesCreateOrUpdateSamples { .withCreationToken("my-unique-file-path") .withUsageThreshold(107374182400L) .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withServiceLevel(ServiceLevel.PREMIUM) .create(); } @@ -2732,7 +3063,7 @@ public final class VolumesCreateOrUpdateSamples { public final class VolumesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. @@ -2753,8 +3084,8 @@ public final class VolumesDeleteSamples { */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. @@ -2775,7 +3106,7 @@ public final class VolumesDeleteReplicationSamples { */ public final class VolumesFinalizeExternalReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Volumes_FinalizeExternalReplication.json */ /** @@ -2798,8 +3129,8 @@ public final class VolumesFinalizeExternalReplicationSamples { */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_FinalizeRelocation.json */ /** * Sample code: Volumes_FinalizeRelocation. @@ -2821,7 +3152,7 @@ public final class VolumesFinalizeRelocationSamples { public final class VolumesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Get.json */ /** * Sample code: Volumes_Get. @@ -2843,7 +3174,7 @@ public final class VolumesGetSamples { public final class VolumesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_List.json */ /** * Sample code: Volumes_List. @@ -2867,7 +3198,8 @@ import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; public final class VolumesListGetGroupIdListForLdapUserSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/GroupIdListForLDAPUser.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/GroupIdListForLDAPUser + * .json */ /** * Sample code: GetGroupIdListForUser. @@ -2882,6 +3214,28 @@ public final class VolumesListGetGroupIdListForLdapUserSamples { } ``` +### Volumes_ListQuotaReport + +```java +/** + * Samples for Volumes ListQuotaReport. + */ +public final class VolumesListQuotaReportSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ListQuotaReport.json + */ + /** + * Sample code: ListQuotaReport. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void listQuotaReport(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.volumes().listQuotaReport("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + } +} +``` + ### Volumes_ListReplications ```java @@ -2890,8 +3244,8 @@ public final class VolumesListGetGroupIdListForLdapUserSamples { */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ListReplications.json */ /** * Sample code: Volumes_ListReplications. @@ -2915,9 +3269,8 @@ import java.util.Arrays; */ public final class VolumesPeerExternalClusterSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_PeerExternalCluster. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_PeerExternalCluster.json */ /** * Sample code: Volumes_PeerExternalCluster. @@ -2942,7 +3295,7 @@ public final class VolumesPeerExternalClusterSamples { */ public final class VolumesPerformReplicationTransferSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Volumes_PerformReplicationTransfer.json */ /** @@ -2968,7 +3321,8 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest; public final class VolumesPoolChangeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_PoolChange.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_PoolChange. + * json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -2978,7 +3332,7 @@ public final class VolumesPoolChangeSamples { public static void volumesAuthorizeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.volumes() .poolChange("myRG", "account1", "pool1", "volume1", new PoolChangeRequest().withNewPoolResourceId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), com.azure.core.util.Context.NONE); } } @@ -2992,7 +3346,7 @@ public final class VolumesPoolChangeSamples { */ public final class VolumesPopulateAvailabilityZoneSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Volumes_PopulateAvailabilityZones.json */ /** @@ -3015,9 +3369,8 @@ public final class VolumesPopulateAvailabilityZoneSamples { */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReInitializeReplication - * .json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. @@ -3041,9 +3394,8 @@ import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReestablishReplication. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ReestablishReplication.json */ /** * Sample code: Volumes_ReestablishReplication. @@ -3054,7 +3406,7 @@ public final class VolumesReestablishReplicationSamples { manager.volumes() .reestablishReplication("myRG", "account1", "pool1", "volume1", new ReestablishReplicationRequest().withSourceVolumeId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1"), com.azure.core.util.Context.NONE); } } @@ -3071,7 +3423,7 @@ import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest; public final class VolumesRelocateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Relocate.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Relocate.json */ /** * Sample code: Volumes_Relocate. @@ -3094,8 +3446,8 @@ public final class VolumesRelocateSamples { */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. @@ -3117,8 +3469,8 @@ public final class VolumesReplicationStatusSamples { */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ResetCifsPassword.json */ /** * Sample code: Volumes_ResetCifsPassword. @@ -3139,8 +3491,8 @@ public final class VolumesResetCifsPasswordSamples { */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. @@ -3164,7 +3516,7 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert; public final class VolumesRevertSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Revert.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. @@ -3174,7 +3526,7 @@ public final class VolumesRevertSamples { public static void volumesRevert(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.volumes() .revert("myRG", "account1", "pool1", "volume1", new VolumeRevert().withSnapshotId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"), com.azure.core.util.Context.NONE); } } @@ -3188,8 +3540,8 @@ public final class VolumesRevertSamples { */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_RevertRelocation.json */ /** * Sample code: Volumes_RevertRelocation. @@ -3202,6 +3554,30 @@ public final class VolumesRevertRelocationSamples { } ``` +### Volumes_SplitCloneFromParent + +```java +/** + * Samples for Volumes SplitCloneFromParent. + */ +public final class VolumesSplitCloneFromParentSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_SplitClone. + * json + */ + /** + * Sample code: Volumes_SplitClone. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumesSplitClone(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.volumes() + .splitCloneFromParent("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + } +} +``` + ### Volumes_Update ```java @@ -3213,7 +3589,7 @@ import com.azure.resourcemanager.netapp.models.Volume; public final class VolumesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Update.json */ /** * Sample code: Volumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml index 098ba624452c..fb41aaa175fe 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml +++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for NetAppFiles Management - 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-09-01. + 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-2025-01-01-preview. https://github.com/Azure/azure-sdk-for-java @@ -45,6 +45,7 @@ UTF-8 0 0 + true false 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 f42fbd365df2..49115ed7ffa9 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 @@ -32,9 +32,12 @@ import com.azure.resourcemanager.netapp.implementation.BackupsUnderAccountsImpl; import com.azure.resourcemanager.netapp.implementation.BackupsUnderBackupVaultsImpl; import com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesImpl; +import com.azure.resourcemanager.netapp.implementation.BucketsImpl; import com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder; +import com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsAccountsImpl; import com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsImpl; import com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosImpl; +import com.azure.resourcemanager.netapp.implementation.NetAppResourceUsagesImpl; import com.azure.resourcemanager.netapp.implementation.NetAppResourcesImpl; import com.azure.resourcemanager.netapp.implementation.OperationsImpl; import com.azure.resourcemanager.netapp.implementation.PoolsImpl; @@ -51,8 +54,11 @@ import com.azure.resourcemanager.netapp.models.BackupsUnderAccounts; import com.azure.resourcemanager.netapp.models.BackupsUnderBackupVaults; import com.azure.resourcemanager.netapp.models.BackupsUnderVolumes; +import com.azure.resourcemanager.netapp.models.Buckets; import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits; +import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimitsAccounts; import com.azure.resourcemanager.netapp.models.NetAppResourceRegionInfos; +import com.azure.resourcemanager.netapp.models.NetAppResourceUsages; import com.azure.resourcemanager.netapp.models.NetAppResources; import com.azure.resourcemanager.netapp.models.Operations; import com.azure.resourcemanager.netapp.models.Pools; @@ -79,6 +85,8 @@ public final class NetAppFilesManager { private NetAppResources netAppResources; + private NetAppResourceUsages netAppResourceUsages; + private NetAppResourceQuotaLimits netAppResourceQuotaLimits; private NetAppResourceRegionInfos netAppResourceRegionInfos; @@ -103,6 +111,8 @@ public final class NetAppFilesManager { private Backups backups; + private NetAppResourceQuotaLimitsAccounts netAppResourceQuotaLimitsAccounts; + private BackupVaults backupVaults; private BackupsUnderBackupVaults backupsUnderBackupVaults; @@ -111,6 +121,8 @@ public final class NetAppFilesManager { private BackupsUnderAccounts backupsUnderAccounts; + private Buckets buckets; + private final NetAppManagementClient clientObject; private NetAppFilesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -350,6 +362,18 @@ public NetAppResources netAppResources() { return netAppResources; } + /** + * Gets the resource collection API of NetAppResourceUsages. + * + * @return Resource collection API of NetAppResourceUsages. + */ + public NetAppResourceUsages netAppResourceUsages() { + if (this.netAppResourceUsages == null) { + this.netAppResourceUsages = new NetAppResourceUsagesImpl(clientObject.getNetAppResourceUsages(), this); + } + return netAppResourceUsages; + } + /** * Gets the resource collection API of NetAppResourceQuotaLimits. * @@ -496,6 +520,19 @@ public Backups backups() { return backups; } + /** + * Gets the resource collection API of NetAppResourceQuotaLimitsAccounts. + * + * @return Resource collection API of NetAppResourceQuotaLimitsAccounts. + */ + public NetAppResourceQuotaLimitsAccounts netAppResourceQuotaLimitsAccounts() { + if (this.netAppResourceQuotaLimitsAccounts == null) { + this.netAppResourceQuotaLimitsAccounts + = new NetAppResourceQuotaLimitsAccountsImpl(clientObject.getNetAppResourceQuotaLimitsAccounts(), this); + } + return netAppResourceQuotaLimitsAccounts; + } + /** * Gets the resource collection API of BackupVaults. It manages BackupVault. * @@ -545,6 +582,18 @@ public BackupsUnderAccounts backupsUnderAccounts() { return backupsUnderAccounts; } + /** + * Gets the resource collection API of Buckets. It manages Bucket. + * + * @return Resource collection API of Buckets. + */ + public Buckets buckets() { + if (this.buckets == null) { + this.buckets = new BucketsImpl(clientObject.getBuckets(), this); + } + return buckets; + } + /** * Gets wrapped service client NetAppManagementClient providing direct access to the underlying auto-generated API * implementation, based on Azure REST API. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java new file mode 100644 index 000000000000..d746d49a5954 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java @@ -0,0 +1,392 @@ +// 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.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner; +import com.azure.resourcemanager.netapp.fluent.models.BucketInner; +import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; +import com.azure.resourcemanager.netapp.models.BucketPatch; + +/** + * An instance of this class provides access to all the operations defined in BucketsClient. + */ +public interface BucketsClient { + /** + * Describes all buckets belonging to a volume + * + * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName); + + /** + * Describes all buckets belonging to a volume + * + * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); + + /** + * Describe a volume's bucket + * + * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, + * connect to the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume's bucket along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, Context context); + + /** + * Describe a volume's bucket + * + * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, + * connect to the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume's bucket. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + BucketInner get(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName); + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, BucketInner> beginCreateOrUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, BucketInner body); + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, BucketInner> beginCreateOrUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, BucketInner body, Context context); + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + BucketInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName, BucketInner body); + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + BucketInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName, BucketInner body, Context context); + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, BucketInner> beginUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName); + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, BucketInner> beginUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, BucketPatch body, Context context); + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + BucketInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName); + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + BucketInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName, BucketPatch body, Context context); + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName); + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, Context context); + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName); + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName, + Context context); + + /** + * Generate bucket access credentials + * + * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date + * and time of key pair (in UTC). + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response generateCredentialsWithResponse(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body, + Context context); + + /** + * Generate bucket access credentials + * + * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date + * and time of key pair (in UTC). + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + BucketGenerateCredentialsInner generateCredentials(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, BucketCredentialsExpiry body); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java index cd8cb7a15cc9..290eba0adb2b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java @@ -60,6 +60,13 @@ public interface NetAppManagementClient { */ NetAppResourcesClient getNetAppResources(); + /** + * Gets the NetAppResourceUsagesClient object to access its operations. + * + * @return the NetAppResourceUsagesClient object. + */ + NetAppResourceUsagesClient getNetAppResourceUsages(); + /** * Gets the NetAppResourceQuotaLimitsClient object to access its operations. * @@ -144,6 +151,13 @@ public interface NetAppManagementClient { */ BackupsClient getBackups(); + /** + * Gets the NetAppResourceQuotaLimitsAccountsClient object to access its operations. + * + * @return the NetAppResourceQuotaLimitsAccountsClient object. + */ + NetAppResourceQuotaLimitsAccountsClient getNetAppResourceQuotaLimitsAccounts(); + /** * Gets the BackupVaultsClient object to access its operations. * @@ -171,4 +185,11 @@ public interface NetAppManagementClient { * @return the BackupsUnderAccountsClient object. */ BackupsUnderAccountsClient getBackupsUnderAccounts(); + + /** + * Gets the BucketsClient object to access its operations. + * + * @return the BucketsClient object. + */ + BucketsClient getBuckets(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java new file mode 100644 index 000000000000..4168cf6268f0 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java @@ -0,0 +1,84 @@ +// 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.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; + +/** + * An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsAccountsClient. + */ +public interface NetAppResourceQuotaLimitsAccountsClient { + /** + * Gets a list of quota limits for all quotas that are under account. + * + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets a list of quota limits for all quotas that are under account. + * + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the quota limits for the specific quota that is provided under the account. + * + * Get the default, current and usages account quota limit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default, current and usages account quota limit along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, String quotaLimitName, + Context context); + + /** + * Gets the quota limits for the specific quota that is provided under the account. + * + * Get the default, current and usages account quota limit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default, current and usages account quota limit. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + QuotaItemInner get(String resourceGroupName, String accountName, String quotaLimitName); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java index 370b55680b6f..9c46cb25b567 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java @@ -9,7 +9,7 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; +import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; /** * An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsClient. @@ -27,7 +27,7 @@ public interface NetAppResourceQuotaLimitsClient { * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String location); + PagedIterable list(String location); /** * Get quota limits @@ -42,7 +42,7 @@ public interface NetAppResourceQuotaLimitsClient { * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String location, Context context); + PagedIterable list(String location, Context context); /** * Get quota limits @@ -58,7 +58,7 @@ public interface NetAppResourceQuotaLimitsClient { * @return the default and current subscription quota limit along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String location, String quotaLimitName, Context context); + Response getWithResponse(String location, String quotaLimitName, Context context); /** * Get quota limits @@ -73,5 +73,5 @@ public interface NetAppResourceQuotaLimitsClient { * @return the default and current subscription quota limit. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubscriptionQuotaItemInner get(String location, String quotaLimitName); + QuotaItemInner get(String location, String quotaLimitName); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java new file mode 100644 index 000000000000..7016d2184f1c --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java @@ -0,0 +1,77 @@ +// 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.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner; + +/** + * An instance of this class provides access to all the operations defined in NetAppResourceUsagesClient. + */ +public interface NetAppResourceUsagesClient { + /** + * Get usages + * + * Get current subscription usages. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usages as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location); + + /** + * Get usages + * + * Get current subscription usages. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usages as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location, Context context); + + /** + * Get specific type of usage + * + * Get current subscription usage of the specific type. + * + * @param location The name of the Azure region. + * @param usageType The type of usage. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usage of the specific type along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String location, String usageType, Context context); + + /** + * Get specific type of usage + * + * Get current subscription usage of the specific type. + * + * @param location The name of the Azure region. + * @param usageType The type of usage. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usage of the specific type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + UsageResultInner get(String location, String usageType); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java index 76a8f005aeb6..5f4c25b6c0ce 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java @@ -13,6 +13,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner; import com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner; +import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner; import com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner; @@ -552,6 +553,77 @@ SyncPoller, Void> beginResetCifsPassword(String resourceGroupNa void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName, + String poolName, String volumeName); + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName); + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); + /** * Break file locks * @@ -705,6 +777,80 @@ GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String reso GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context); + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of quota Report for volume. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ListQuotaReportResponseInner> + beginListQuotaReport(String resourceGroupName, String accountName, String poolName, String volumeName); + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of quota Report for volume. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ListQuotaReportResponseInner> beginListQuotaReport( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName, + String volumeName); + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); + /** * Break volume replication * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java index a0a0deb442f1..1c675c89c454 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java @@ -11,6 +11,8 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.models.AccountEncryption; import com.azure.resourcemanager.netapp.models.ActiveDirectory; +import com.azure.resourcemanager.netapp.models.LdapConfiguration; +import com.azure.resourcemanager.netapp.models.MultiAdStatus; import java.io.IOException; import java.util.List; @@ -39,6 +41,22 @@ public final class AccountProperties implements JsonSerializable writer.writeJson(element)); jsonWriter.writeJsonField("encryption", this.encryption); + jsonWriter.writeStringField("nfsV4IDDomain", this.nfsV4IdDomain); + jsonWriter.writeJsonField("ldapConfiguration", this.ldapConfiguration); return jsonWriter.writeEndObject(); } @@ -155,6 +229,12 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti deserializedAccountProperties.encryption = AccountEncryption.fromJson(reader); } else if ("disableShowmount".equals(fieldName)) { deserializedAccountProperties.disableShowmount = reader.getNullable(JsonReader::getBoolean); + } else if ("nfsV4IDDomain".equals(fieldName)) { + deserializedAccountProperties.nfsV4IdDomain = reader.getString(); + } else if ("multiAdStatus".equals(fieldName)) { + deserializedAccountProperties.multiAdStatus = MultiAdStatus.fromString(reader.getString()); + } else if ("ldapConfiguration".equals(fieldName)) { + deserializedAccountProperties.ldapConfiguration = LdapConfiguration.fromJson(reader); } else { reader.skipChildren(); } 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 bdb627ced090..833daf3382a6 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 @@ -117,6 +117,24 @@ public OffsetDateTime creationDate() { return this.innerProperties() == null ? null : this.innerProperties().creationDate(); } + /** + * Get the snapshotCreationDate property: The snapshot creation date of the backup. + * + * @return the snapshotCreationDate value. + */ + public OffsetDateTime snapshotCreationDate() { + return this.innerProperties() == null ? null : this.innerProperties().snapshotCreationDate(); + } + + /** + * Get the completionDate property: The completion date of the backup. + * + * @return the completionDate value. + */ + public OffsetDateTime completionDate() { + return this.innerProperties() == null ? null : this.innerProperties().completionDate(); + } + /** * Get the provisioningState property: Azure lifecycle management. * @@ -256,6 +274,15 @@ public String backupPolicyResourceId() { return this.innerProperties() == null ? null : this.innerProperties().backupPolicyResourceId(); } + /** + * Get the isLargeVolume property: Specifies if the backup is for a large volume. + * + * @return the isLargeVolume value. + */ + public Boolean isLargeVolume() { + return this.innerProperties() == null ? null : this.innerProperties().isLargeVolume(); + } + /** * Validates the instance. * 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 38ff6c3df221..a88013884c50 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 @@ -30,6 +30,16 @@ public final class BackupProperties implements JsonSerializable CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("snapshotCreationDate".equals(fieldName)) { + deserializedBackupProperties.snapshotCreationDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("completionDate".equals(fieldName)) { + deserializedBackupProperties.completionDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); } else if ("provisioningState".equals(fieldName)) { deserializedBackupProperties.provisioningState = reader.getString(); } else if ("size".equals(fieldName)) { @@ -294,6 +342,8 @@ public static BackupProperties fromJson(JsonReader jsonReader) throws IOExceptio deserializedBackupProperties.snapshotName = reader.getString(); } else if ("backupPolicyResourceId".equals(fieldName)) { deserializedBackupProperties.backupPolicyResourceId = reader.getString(); + } else if ("isLargeVolume".equals(fieldName)) { + deserializedBackupProperties.isLargeVolume = reader.getNullable(JsonReader::getBoolean); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketGenerateCredentialsInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketGenerateCredentialsInner.java new file mode 100644 index 000000000000..daf84854e395 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketGenerateCredentialsInner.java @@ -0,0 +1,117 @@ +// 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.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * Bucket Access Key, Secret Key, and Expiry date and time of the key pair. + */ +@Immutable +public final class BucketGenerateCredentialsInner implements JsonSerializable { + /* + * The Access Key that is required along with the Secret Key to access the bucket. + */ + private String accessKey; + + /* + * The Secret Key that is required along with the Access Key to access the bucket. + */ + private String secretKey; + + /* + * The bucket's Access and Secret key pair expiry date and time (in UTC). + */ + private OffsetDateTime keyPairExpiry; + + /** + * Creates an instance of BucketGenerateCredentialsInner class. + */ + public BucketGenerateCredentialsInner() { + } + + /** + * Get the accessKey property: The Access Key that is required along with the Secret Key to access the bucket. + * + * @return the accessKey value. + */ + public String accessKey() { + return this.accessKey; + } + + /** + * Get the secretKey property: The Secret Key that is required along with the Access Key to access the bucket. + * + * @return the secretKey value. + */ + public String secretKey() { + return this.secretKey; + } + + /** + * Get the keyPairExpiry property: The bucket's Access and Secret key pair expiry date and time (in UTC). + * + * @return the keyPairExpiry value. + */ + public OffsetDateTime keyPairExpiry() { + return this.keyPairExpiry; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BucketGenerateCredentialsInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BucketGenerateCredentialsInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BucketGenerateCredentialsInner. + */ + public static BucketGenerateCredentialsInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BucketGenerateCredentialsInner deserializedBucketGenerateCredentialsInner + = new BucketGenerateCredentialsInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("accessKey".equals(fieldName)) { + deserializedBucketGenerateCredentialsInner.accessKey = reader.getString(); + } else if ("secretKey".equals(fieldName)) { + deserializedBucketGenerateCredentialsInner.secretKey = reader.getString(); + } else if ("keyPairExpiry".equals(fieldName)) { + deserializedBucketGenerateCredentialsInner.keyPairExpiry = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedBucketGenerateCredentialsInner; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java new file mode 100644 index 000000000000..4936a7dfd336 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java @@ -0,0 +1,255 @@ +// 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.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.models.BucketServerProperties; +import com.azure.resourcemanager.netapp.models.CredentialsStatus; +import com.azure.resourcemanager.netapp.models.FileSystemUser; +import com.azure.resourcemanager.netapp.models.NetappProvisioningState; +import java.io.IOException; + +/** + * Bucket resource. + */ +@Fluent +public final class BucketInner extends ProxyResource { + /* + * Bucket properties + */ + private BucketProperties innerProperties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of BucketInner class. + */ + public BucketInner() { + } + + /** + * Get the innerProperties property: Bucket properties. + * + * @return the innerProperties value. + */ + private BucketProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Get the path property: The volume path mounted inside the bucket. The default is the root path '/' if no value is + * provided when the bucket is created. + * + * @return the path value. + */ + public String path() { + return this.innerProperties() == null ? null : this.innerProperties().path(); + } + + /** + * Set the path property: The volume path mounted inside the bucket. The default is the root path '/' if no value is + * provided when the bucket is created. + * + * @param path the path value to set. + * @return the BucketInner object itself. + */ + public BucketInner withPath(String path) { + if (this.innerProperties() == null) { + this.innerProperties = new BucketProperties(); + } + this.innerProperties().withPath(path); + return this; + } + + /** + * Get the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid + * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually + * exclusive, meaning one or other must be supplied, but not both. + * + * @return the fileSystemUser value. + */ + public FileSystemUser fileSystemUser() { + return this.innerProperties() == null ? null : this.innerProperties().fileSystemUser(); + } + + /** + * Set the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid + * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually + * exclusive, meaning one or other must be supplied, but not both. + * + * @param fileSystemUser the fileSystemUser value to set. + * @return the BucketInner object itself. + */ + public BucketInner withFileSystemUser(FileSystemUser fileSystemUser) { + if (this.innerProperties() == null) { + this.innerProperties = new BucketProperties(); + } + this.innerProperties().withFileSystemUser(fileSystemUser); + return this; + } + + /** + * Get the provisioningState property: Provisioning state of the resource. + * + * @return the provisioningState value. + */ + public NetappProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the status property: The bucket credentials status. There states: + * + * "NoCredentialsSet": Access and Secret key pair have not been generated. + * "CredentialsExpired": Access and Secret key pair have expired. + * "Active": The certificate has been installed and credentials are unexpired. + * + * @return the status value. + */ + public CredentialsStatus status() { + return this.innerProperties() == null ? null : this.innerProperties().status(); + } + + /** + * Get the server property: Properties of the server managing the lifecycle of volume buckets. + * + * @return the server value. + */ + public BucketServerProperties server() { + return this.innerProperties() == null ? null : this.innerProperties().server(); + } + + /** + * Set the server property: Properties of the server managing the lifecycle of volume buckets. + * + * @param server the server value to set. + * @return the BucketInner object itself. + */ + public BucketInner withServer(BucketServerProperties server) { + if (this.innerProperties() == null) { + this.innerProperties = new BucketProperties(); + } + this.innerProperties().withServer(server); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BucketInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BucketInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BucketInner. + */ + public static BucketInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BucketInner deserializedBucketInner = new BucketInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedBucketInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedBucketInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedBucketInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedBucketInner.innerProperties = BucketProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedBucketInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedBucketInner; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java new file mode 100644 index 000000000000..66f1a924baf9 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java @@ -0,0 +1,181 @@ +// 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.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; +import com.azure.resourcemanager.netapp.models.FileSystemUser; +import com.azure.resourcemanager.netapp.models.NetappProvisioningState; +import java.io.IOException; + +/** + * Bucket resource properties for a Patch operation. + */ +@Fluent +public final class BucketPatchProperties implements JsonSerializable { + /* + * The volume path mounted inside the bucket. + */ + private String path; + + /* + * File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the + * user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be + * supplied, but not both. + */ + private FileSystemUser fileSystemUser; + + /* + * Provisioning state of the resource + */ + private NetappProvisioningState provisioningState; + + /* + * Properties of the server managing the lifecycle of volume buckets + */ + private BucketServerPatchProperties server; + + /** + * Creates an instance of BucketPatchProperties class. + */ + public BucketPatchProperties() { + } + + /** + * Get the path property: The volume path mounted inside the bucket. + * + * @return the path value. + */ + public String path() { + return this.path; + } + + /** + * Set the path property: The volume path mounted inside the bucket. + * + * @param path the path value to set. + * @return the BucketPatchProperties object itself. + */ + public BucketPatchProperties withPath(String path) { + this.path = path; + return this; + } + + /** + * Get the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid + * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually + * exclusive, meaning one or other must be supplied, but not both. + * + * @return the fileSystemUser value. + */ + public FileSystemUser fileSystemUser() { + return this.fileSystemUser; + } + + /** + * Set the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid + * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually + * exclusive, meaning one or other must be supplied, but not both. + * + * @param fileSystemUser the fileSystemUser value to set. + * @return the BucketPatchProperties object itself. + */ + public BucketPatchProperties withFileSystemUser(FileSystemUser fileSystemUser) { + this.fileSystemUser = fileSystemUser; + return this; + } + + /** + * Get the provisioningState property: Provisioning state of the resource. + * + * @return the provisioningState value. + */ + public NetappProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the server property: Properties of the server managing the lifecycle of volume buckets. + * + * @return the server value. + */ + public BucketServerPatchProperties server() { + return this.server; + } + + /** + * Set the server property: Properties of the server managing the lifecycle of volume buckets. + * + * @param server the server value to set. + * @return the BucketPatchProperties object itself. + */ + public BucketPatchProperties withServer(BucketServerPatchProperties server) { + this.server = server; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (fileSystemUser() != null) { + fileSystemUser().validate(); + } + if (server() != null) { + server().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("path", this.path); + jsonWriter.writeJsonField("fileSystemUser", this.fileSystemUser); + jsonWriter.writeJsonField("server", this.server); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BucketPatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BucketPatchProperties if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the BucketPatchProperties. + */ + public static BucketPatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BucketPatchProperties deserializedBucketPatchProperties = new BucketPatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("path".equals(fieldName)) { + deserializedBucketPatchProperties.path = reader.getString(); + } else if ("fileSystemUser".equals(fieldName)) { + deserializedBucketPatchProperties.fileSystemUser = FileSystemUser.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedBucketPatchProperties.provisioningState + = NetappProvisioningState.fromString(reader.getString()); + } else if ("server".equals(fieldName)) { + deserializedBucketPatchProperties.server = BucketServerPatchProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedBucketPatchProperties; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java new file mode 100644 index 000000000000..f586a6c053e1 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java @@ -0,0 +1,209 @@ +// 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.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.models.BucketServerProperties; +import com.azure.resourcemanager.netapp.models.CredentialsStatus; +import com.azure.resourcemanager.netapp.models.FileSystemUser; +import com.azure.resourcemanager.netapp.models.NetappProvisioningState; +import java.io.IOException; + +/** + * Bucket resource properties. + */ +@Fluent +public final class BucketProperties implements JsonSerializable { + /* + * The volume path mounted inside the bucket. The default is the root path '/' if no value is provided when the + * bucket is created. + */ + private String path; + + /* + * File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the + * user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be + * supplied, but not both. + */ + private FileSystemUser fileSystemUser; + + /* + * Provisioning state of the resource + */ + private NetappProvisioningState provisioningState; + + /* + * The bucket credentials status. There states: + * + * "NoCredentialsSet": Access and Secret key pair have not been generated. + * "CredentialsExpired": Access and Secret key pair have expired. + * "Active": The certificate has been installed and credentials are unexpired. + */ + private CredentialsStatus status; + + /* + * Properties of the server managing the lifecycle of volume buckets + */ + private BucketServerProperties server; + + /** + * Creates an instance of BucketProperties class. + */ + public BucketProperties() { + } + + /** + * Get the path property: The volume path mounted inside the bucket. The default is the root path '/' if no value is + * provided when the bucket is created. + * + * @return the path value. + */ + public String path() { + return this.path; + } + + /** + * Set the path property: The volume path mounted inside the bucket. The default is the root path '/' if no value is + * provided when the bucket is created. + * + * @param path the path value to set. + * @return the BucketProperties object itself. + */ + public BucketProperties withPath(String path) { + this.path = path; + return this; + } + + /** + * Get the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid + * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually + * exclusive, meaning one or other must be supplied, but not both. + * + * @return the fileSystemUser value. + */ + public FileSystemUser fileSystemUser() { + return this.fileSystemUser; + } + + /** + * Set the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid + * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually + * exclusive, meaning one or other must be supplied, but not both. + * + * @param fileSystemUser the fileSystemUser value to set. + * @return the BucketProperties object itself. + */ + public BucketProperties withFileSystemUser(FileSystemUser fileSystemUser) { + this.fileSystemUser = fileSystemUser; + return this; + } + + /** + * Get the provisioningState property: Provisioning state of the resource. + * + * @return the provisioningState value. + */ + public NetappProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the status property: The bucket credentials status. There states: + * + * "NoCredentialsSet": Access and Secret key pair have not been generated. + * "CredentialsExpired": Access and Secret key pair have expired. + * "Active": The certificate has been installed and credentials are unexpired. + * + * @return the status value. + */ + public CredentialsStatus status() { + return this.status; + } + + /** + * Get the server property: Properties of the server managing the lifecycle of volume buckets. + * + * @return the server value. + */ + public BucketServerProperties server() { + return this.server; + } + + /** + * Set the server property: Properties of the server managing the lifecycle of volume buckets. + * + * @param server the server value to set. + * @return the BucketProperties object itself. + */ + public BucketProperties withServer(BucketServerProperties server) { + this.server = server; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (fileSystemUser() != null) { + fileSystemUser().validate(); + } + if (server() != null) { + server().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("path", this.path); + jsonWriter.writeJsonField("fileSystemUser", this.fileSystemUser); + jsonWriter.writeJsonField("server", this.server); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BucketProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BucketProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the BucketProperties. + */ + public static BucketProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BucketProperties deserializedBucketProperties = new BucketProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("path".equals(fieldName)) { + deserializedBucketProperties.path = reader.getString(); + } else if ("fileSystemUser".equals(fieldName)) { + deserializedBucketProperties.fileSystemUser = FileSystemUser.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedBucketProperties.provisioningState + = NetappProvisioningState.fromString(reader.getString()); + } else if ("status".equals(fieldName)) { + deserializedBucketProperties.status = CredentialsStatus.fromString(reader.getString()); + } else if ("server".equals(fieldName)) { + deserializedBucketProperties.server = BucketServerProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedBucketProperties; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java index 9a90e7e166db..25ed4882a05c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java @@ -217,6 +217,31 @@ public Float utilizedThroughputMibps() { return this.innerProperties() == null ? null : this.innerProperties().utilizedThroughputMibps(); } + /** + * Get the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this + * will be accepted as input only for manual qosType pool with Flexible service level. + * + * @return the customThroughputMibps value. + */ + public Float customThroughputMibps() { + return this.innerProperties() == null ? null : this.innerProperties().customThroughputMibps(); + } + + /** + * Set the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this + * will be accepted as input only for manual qosType pool with Flexible service level. + * + * @param customThroughputMibps the customThroughputMibps value to set. + * @return the CapacityPoolInner object itself. + */ + public CapacityPoolInner withCustomThroughputMibps(Float customThroughputMibps) { + if (this.innerProperties() == null) { + this.innerProperties = new PoolProperties(); + } + this.innerProperties().withCustomThroughputMibps(customThroughputMibps); + return this; + } + /** * Get the qosType property: The qos type of the pool. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResponseInner.java new file mode 100644 index 000000000000..0fc97a6a1a4d --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResponseInner.java @@ -0,0 +1,127 @@ +// 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.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.models.QuotaReport; +import java.io.IOException; +import java.util.List; + +/** + * Quota Report for volume. + */ +@Fluent +public final class ListQuotaReportResponseInner implements JsonSerializable { + /* + * List of volume quota report records + */ + private List value; + + /* + * URL to get the next set of results. + */ + private String nextLink; + + /** + * Creates an instance of ListQuotaReportResponseInner class. + */ + public ListQuotaReportResponseInner() { + } + + /** + * Get the value property: List of volume quota report records. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: List of volume quota report records. + * + * @param value the value value to set. + * @return the ListQuotaReportResponseInner object itself. + */ + public ListQuotaReportResponseInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: URL to get the next set of results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: URL to get the next set of results. + * + * @param nextLink the nextLink value to set. + * @return the ListQuotaReportResponseInner object itself. + */ + public ListQuotaReportResponseInner withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ListQuotaReportResponseInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ListQuotaReportResponseInner if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ListQuotaReportResponseInner. + */ + public static ListQuotaReportResponseInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ListQuotaReportResponseInner deserializedListQuotaReportResponseInner = new ListQuotaReportResponseInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> QuotaReport.fromJson(reader1)); + deserializedListQuotaReportResponseInner.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedListQuotaReportResponseInner.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedListQuotaReportResponseInner; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java index 35293fa98930..292b52b4750f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java @@ -12,7 +12,9 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.models.AccountEncryption; import com.azure.resourcemanager.netapp.models.ActiveDirectory; +import com.azure.resourcemanager.netapp.models.LdapConfiguration; import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; +import com.azure.resourcemanager.netapp.models.MultiAdStatus; import java.io.IOException; import java.util.List; import java.util.Map; @@ -223,6 +225,63 @@ public Boolean disableShowmount() { return this.innerProperties() == null ? null : this.innerProperties().disableShowmount(); } + /** + * Get the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp + * accounts in the subscription and region and only affect non ldap NFSv4 volumes. + * + * @return the nfsV4IdDomain value. + */ + public String nfsV4IdDomain() { + return this.innerProperties() == null ? null : this.innerProperties().nfsV4IdDomain(); + } + + /** + * Set the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp + * accounts in the subscription and region and only affect non ldap NFSv4 volumes. + * + * @param nfsV4IdDomain the nfsV4IdDomain value to set. + * @return the NetAppAccountInner object itself. + */ + public NetAppAccountInner withNfsV4IdDomain(String nfsV4IdDomain) { + if (this.innerProperties() == null) { + this.innerProperties = new AccountProperties(); + } + this.innerProperties().withNfsV4IdDomain(nfsV4IdDomain); + return this; + } + + /** + * Get the multiAdStatus property: MultiAD Status for the account. + * + * @return the multiAdStatus value. + */ + public MultiAdStatus multiAdStatus() { + return this.innerProperties() == null ? null : this.innerProperties().multiAdStatus(); + } + + /** + * Get the ldapConfiguration property: LDAP Configuration for the account. + * + * @return the ldapConfiguration value. + */ + public LdapConfiguration ldapConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().ldapConfiguration(); + } + + /** + * Set the ldapConfiguration property: LDAP Configuration for the account. + * + * @param ldapConfiguration the ldapConfiguration value to set. + * @return the NetAppAccountInner object itself. + */ + public NetAppAccountInner withLdapConfiguration(LdapConfiguration ldapConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new AccountProperties(); + } + this.innerProperties().withLdapConfiguration(ldapConfiguration); + return this; + } + /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java index b73b809b72b5..999f47974e1b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java @@ -33,6 +33,12 @@ public final class PoolPatchProperties implements JsonSerializable { */ private Float utilizedThroughputMibps; + /* + * Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual + * qosType pool with Flexible service level + */ + private Float customThroughputMibps; + /* * The qos type of the pool */ @@ -151,6 +157,28 @@ public Float utilizedThroughputMibps() { return this.utilizedThroughputMibps; } + /** + * Get the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this + * will be accepted as input only for manual qosType pool with Flexible service level. + * + * @return the customThroughputMibps value. + */ + public Float customThroughputMibps() { + return this.customThroughputMibps; + } + + /** + * Set the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this + * will be accepted as input only for manual qosType pool with Flexible service level. + * + * @param customThroughputMibps the customThroughputMibps value to set. + * @return the PoolProperties object itself. + */ + public PoolProperties withCustomThroughputMibps(Float customThroughputMibps) { + this.customThroughputMibps = customThroughputMibps; + return this; + } + /** * Get the qosType property: The qos type of the pool. * @@ -235,6 +263,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeLongField("size", this.size); jsonWriter.writeStringField("serviceLevel", this.serviceLevel == null ? null : this.serviceLevel.toString()); + jsonWriter.writeNumberField("customThroughputMibps", this.customThroughputMibps); jsonWriter.writeStringField("qosType", this.qosType == null ? null : this.qosType.toString()); jsonWriter.writeBooleanField("coolAccess", this.coolAccess); jsonWriter.writeStringField("encryptionType", @@ -270,6 +299,8 @@ public static PoolProperties fromJson(JsonReader jsonReader) throws IOException deserializedPoolProperties.totalThroughputMibps = reader.getNullable(JsonReader::getFloat); } else if ("utilizedThroughputMibps".equals(fieldName)) { deserializedPoolProperties.utilizedThroughputMibps = reader.getNullable(JsonReader::getFloat); + } else if ("customThroughputMibps".equals(fieldName)) { + deserializedPoolProperties.customThroughputMibps = reader.getNullable(JsonReader::getFloat); } else if ("qosType".equals(fieldName)) { deserializedPoolProperties.qosType = QosType.fromString(reader.getString()); } else if ("coolAccess".equals(fieldName)) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemInner.java similarity index 71% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemInner.java index 0e79c3380396..718bcd255216 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemInner.java @@ -13,14 +13,14 @@ import java.io.IOException; /** - * Information regarding Subscription Quota Item. + * Information regarding Quota Item. */ @Immutable -public final class SubscriptionQuotaItemInner extends ProxyResource { +public final class QuotaItemInner extends ProxyResource { /* - * SubscriptionQuotaItem properties + * QuotaItem properties */ - private SubscriptionQuotaItemProperties innerProperties; + private QuotaItemProperties innerProperties; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -43,17 +43,17 @@ public final class SubscriptionQuotaItemInner extends ProxyResource { private String id; /** - * Creates an instance of SubscriptionQuotaItemInner class. + * Creates an instance of QuotaItemInner class. */ - public SubscriptionQuotaItemInner() { + public QuotaItemInner() { } /** - * Get the innerProperties property: SubscriptionQuotaItem properties. + * Get the innerProperties property: QuotaItem properties. * * @return the innerProperties value. */ - private SubscriptionQuotaItemProperties innerProperties() { + private QuotaItemProperties innerProperties() { return this.innerProperties; } @@ -114,6 +114,15 @@ public Integer defaultProperty() { return this.innerProperties() == null ? null : this.innerProperties().defaultProperty(); } + /** + * Get the usage property: The usage quota value. + * + * @return the usage value. + */ + public Integer usage() { + return this.innerProperties() == null ? null : this.innerProperties().usage(); + } + /** * Validates the instance. * @@ -136,38 +145,37 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of SubscriptionQuotaItemInner from the JsonReader. + * Reads an instance of QuotaItemInner from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of SubscriptionQuotaItemInner if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. + * @return An instance of QuotaItemInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the SubscriptionQuotaItemInner. + * @throws IOException If an error occurs while reading the QuotaItemInner. */ - public static SubscriptionQuotaItemInner fromJson(JsonReader jsonReader) throws IOException { + public static QuotaItemInner fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - SubscriptionQuotaItemInner deserializedSubscriptionQuotaItemInner = new SubscriptionQuotaItemInner(); + QuotaItemInner deserializedQuotaItemInner = new QuotaItemInner(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedSubscriptionQuotaItemInner.id = reader.getString(); + deserializedQuotaItemInner.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedSubscriptionQuotaItemInner.name = reader.getString(); + deserializedQuotaItemInner.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedSubscriptionQuotaItemInner.type = reader.getString(); + deserializedQuotaItemInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { - deserializedSubscriptionQuotaItemInner.innerProperties - = SubscriptionQuotaItemProperties.fromJson(reader); + deserializedQuotaItemInner.innerProperties = QuotaItemProperties.fromJson(reader); } else if ("systemData".equals(fieldName)) { - deserializedSubscriptionQuotaItemInner.systemData = SystemData.fromJson(reader); + deserializedQuotaItemInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedSubscriptionQuotaItemInner; + return deserializedQuotaItemInner; }); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java similarity index 60% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java index 659af2269886..c4b3cfd4d4b3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java @@ -12,10 +12,10 @@ import java.io.IOException; /** - * SubscriptionQuotaItem Properties. + * QuotaItem Properties. */ @Immutable -public final class SubscriptionQuotaItemProperties implements JsonSerializable { +public final class QuotaItemProperties implements JsonSerializable { /* * The current quota value. */ @@ -26,10 +26,15 @@ public final class SubscriptionQuotaItemProperties implements JsonSerializable { - SubscriptionQuotaItemProperties deserializedSubscriptionQuotaItemProperties - = new SubscriptionQuotaItemProperties(); + QuotaItemProperties deserializedQuotaItemProperties = new QuotaItemProperties(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("current".equals(fieldName)) { - deserializedSubscriptionQuotaItemProperties.current = reader.getNullable(JsonReader::getInt); + deserializedQuotaItemProperties.current = reader.getNullable(JsonReader::getInt); } else if ("default".equals(fieldName)) { - deserializedSubscriptionQuotaItemProperties.defaultProperty - = reader.getNullable(JsonReader::getInt); + deserializedQuotaItemProperties.defaultProperty = reader.getNullable(JsonReader::getInt); + } else if ("usage".equals(fieldName)) { + deserializedQuotaItemProperties.usage = reader.getNullable(JsonReader::getInt); } else { reader.skipChildren(); } } - return deserializedSubscriptionQuotaItemProperties; + return deserializedQuotaItemProperties; }); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java new file mode 100644 index 000000000000..d4ecd69a622e --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java @@ -0,0 +1,113 @@ +// 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.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Usage properties. + */ +@Immutable +public final class UsageProperties implements JsonSerializable { + /* + * The current usage value for the subscription. + */ + private Integer currentValue; + + /* + * The limit of the usage. + */ + private Integer limit; + + /* + * The unit of the usage. + */ + private String unit; + + /** + * Creates an instance of UsageProperties class. + */ + public UsageProperties() { + } + + /** + * Get the currentValue property: The current usage value for the subscription. + * + * @return the currentValue value. + */ + public Integer currentValue() { + return this.currentValue; + } + + /** + * Get the limit property: The limit of the usage. + * + * @return the limit value. + */ + public Integer limit() { + return this.limit; + } + + /** + * Get the unit property: The unit of the usage. + * + * @return the unit value. + */ + public String unit() { + return this.unit; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UsageProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UsageProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the UsageProperties. + */ + public static UsageProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UsageProperties deserializedUsageProperties = new UsageProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("currentValue".equals(fieldName)) { + deserializedUsageProperties.currentValue = reader.getNullable(JsonReader::getInt); + } else if ("limit".equals(fieldName)) { + deserializedUsageProperties.limit = reader.getNullable(JsonReader::getInt); + } else if ("unit".equals(fieldName)) { + deserializedUsageProperties.unit = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUsageProperties; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java new file mode 100644 index 000000000000..71afe95c71e3 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java @@ -0,0 +1,148 @@ +// 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.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.models.UsageName; +import java.io.IOException; + +/** + * Usages entity model. + */ +@Immutable +public final class UsageResultInner implements JsonSerializable { + /* + * The id of the usage. + */ + private String id; + + /* + * The name of the usage. + */ + private UsageName name; + + /* + * Usage properties + */ + private UsageProperties innerProperties; + + /** + * Creates an instance of UsageResultInner class. + */ + public UsageResultInner() { + } + + /** + * Get the id property: The id of the usage. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Get the name property: The name of the usage. + * + * @return the name value. + */ + public UsageName name() { + return this.name; + } + + /** + * Get the innerProperties property: Usage properties. + * + * @return the innerProperties value. + */ + private UsageProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the currentValue property: The current usage value for the subscription. + * + * @return the currentValue value. + */ + public Integer currentValue() { + return this.innerProperties() == null ? null : this.innerProperties().currentValue(); + } + + /** + * Get the limit property: The limit of the usage. + * + * @return the limit value. + */ + public Integer limit() { + return this.innerProperties() == null ? null : this.innerProperties().limit(); + } + + /** + * Get the unit property: The unit of the usage. + * + * @return the unit value. + */ + public String unit() { + return this.innerProperties() == null ? null : this.innerProperties().unit(); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (name() != null) { + name().validate(); + } + if (innerProperties() != null) { + innerProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UsageResultInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UsageResultInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the UsageResultInner. + */ + public static UsageResultInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UsageResultInner deserializedUsageResultInner = new UsageResultInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedUsageResultInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedUsageResultInner.name = UsageName.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedUsageResultInner.innerProperties = UsageProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedUsageResultInner; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java index 9dfe423bf287..14ec0043fdef 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java @@ -11,18 +11,21 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit; import com.azure.resourcemanager.netapp.models.AvsDataStore; import com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy; import com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy; import com.azure.resourcemanager.netapp.models.EnableSubvolumes; import com.azure.resourcemanager.netapp.models.EncryptionKeySource; import com.azure.resourcemanager.netapp.models.FileAccessLogs; +import com.azure.resourcemanager.netapp.models.LdapServerType; import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; import com.azure.resourcemanager.netapp.models.SecurityStyle; import com.azure.resourcemanager.netapp.models.ServiceLevel; import com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration; import com.azure.resourcemanager.netapp.models.SmbNonBrowsable; +import com.azure.resourcemanager.netapp.models.VolumeLanguage; import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; import com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity; @@ -480,7 +483,7 @@ public List mountTargets() { /** * Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. + * set type to DataProtection. For creating clone volume, set type to ShortTermClone. * * @return the volumeType value. */ @@ -490,7 +493,7 @@ public String volumeType() { /** * Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. + * set type to DataProtection. For creating clone volume, set type to ShortTermClone. * * @param volumeType the volumeType value to set. * @return the VolumeInner object itself. @@ -529,28 +532,48 @@ public VolumeInner withDataProtection(VolumePropertiesDataProtection dataProtect } /** - * Get the isRestoring property: Restoring. + * Get the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, + * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically + * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term + * clone volume, set the property as accepted. * - * @return the isRestoring value. + * @return the acceptGrowCapacityPoolForShortTermCloneSplit value. */ - public Boolean isRestoring() { - return this.innerProperties() == null ? null : this.innerProperties().isRestoring(); + public AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit() { + return this.innerProperties() == null + ? null + : this.innerProperties().acceptGrowCapacityPoolForShortTermCloneSplit(); } /** - * Set the isRestoring property: Restoring. + * Set the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, + * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically + * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term + * clone volume, set the property as accepted. * - * @param isRestoring the isRestoring value to set. + * @param acceptGrowCapacityPoolForShortTermCloneSplit the acceptGrowCapacityPoolForShortTermCloneSplit value to + * set. * @return the VolumeInner object itself. */ - public VolumeInner withIsRestoring(Boolean isRestoring) { + public VolumeInner withAcceptGrowCapacityPoolForShortTermCloneSplit( + AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit) { if (this.innerProperties() == null) { this.innerProperties = new VolumeProperties(); } - this.innerProperties().withIsRestoring(isRestoring); + this.innerProperties() + .withAcceptGrowCapacityPoolForShortTermCloneSplit(acceptGrowCapacityPoolForShortTermCloneSplit); return this; } + /** + * Get the isRestoring property: Restoring. + * + * @return the isRestoring value. + */ + public Boolean isRestoring() { + return this.innerProperties() == null ? null : this.innerProperties().isRestoring(); + } + /** * Get the snapshotDirectoryVisible property: If enabled (true) the volume will contain a read-only snapshot * directory which provides access to each of the volume's snapshots (defaults to true). @@ -836,6 +859,29 @@ public VolumeInner withLdapEnabled(Boolean ldapEnabled) { return this; } + /** + * Get the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. + * + * @return the ldapServerType value. + */ + public LdapServerType ldapServerType() { + return this.innerProperties() == null ? null : this.innerProperties().ldapServerType(); + } + + /** + * Set the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. + * + * @param ldapServerType the ldapServerType value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withLdapServerType(LdapServerType ldapServerType) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withLdapServerType(ldapServerType); + return this; + } + /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. * @@ -953,7 +999,10 @@ public VolumeInner withCoolAccessTieringPolicy(CoolAccessTieringPolicy coolAcces * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. + * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, + * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user + * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain + * as its last saved value only. * * @return the unixPermissions value. */ @@ -966,7 +1015,10 @@ public String unixPermissions() { * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. + * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, + * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user + * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain + * as its last saved value only. * * @param unixPermissions the unixPermissions value to set. * @return the VolumeInner object itself. @@ -1304,6 +1356,38 @@ public String originatingResourceId() { return this.innerProperties() == null ? null : this.innerProperties().originatingResourceId(); } + /** + * Get the inheritedSizeInBytes property: Space shared by short term clone volume with parent volume in bytes. + * + * @return the inheritedSizeInBytes value. + */ + public Long inheritedSizeInBytes() { + return this.innerProperties() == null ? null : this.innerProperties().inheritedSizeInBytes(); + } + + /** + * Get the language property: Language supported for volume. + * + * @return the language value. + */ + public VolumeLanguage language() { + return this.innerProperties() == null ? null : this.innerProperties().language(); + } + + /** + * Set the language property: Language supported for volume. + * + * @param language the language value to set. + * @return the VolumeInner object itself. + */ + public VolumeInner withLanguage(VolumeLanguage language) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withLanguage(language); + return this; + } + /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java index 0010c1100166..5b358004b2d1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java @@ -10,18 +10,21 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit; import com.azure.resourcemanager.netapp.models.AvsDataStore; import com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy; import com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy; import com.azure.resourcemanager.netapp.models.EnableSubvolumes; import com.azure.resourcemanager.netapp.models.EncryptionKeySource; import com.azure.resourcemanager.netapp.models.FileAccessLogs; +import com.azure.resourcemanager.netapp.models.LdapServerType; import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; import com.azure.resourcemanager.netapp.models.SecurityStyle; import com.azure.resourcemanager.netapp.models.ServiceLevel; import com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration; import com.azure.resourcemanager.netapp.models.SmbNonBrowsable; +import com.azure.resourcemanager.netapp.models.VolumeLanguage; import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; import com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity; @@ -123,7 +126,8 @@ public final class VolumeProperties implements JsonSerializable mountTargets; /* - * What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection + * What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For + * creating clone volume, set type to ShortTermClone */ private String volumeType; @@ -132,6 +136,13 @@ public final class VolumeProperties implements JsonSerializable mountTargets() { /** * Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. + * set type to DataProtection. For creating clone volume, set type to ShortTermClone. * * @return the volumeType value. */ @@ -635,7 +664,7 @@ public String volumeType() { /** * Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. + * set type to DataProtection. For creating clone volume, set type to ShortTermClone. * * @param volumeType the volumeType value to set. * @return the VolumeProperties object itself. @@ -668,25 +697,42 @@ public VolumeProperties withDataProtection(VolumePropertiesDataProtection dataPr } /** - * Get the isRestoring property: Restoring. + * Get the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, + * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically + * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term + * clone volume, set the property as accepted. * - * @return the isRestoring value. + * @return the acceptGrowCapacityPoolForShortTermCloneSplit value. */ - public Boolean isRestoring() { - return this.isRestoring; + public AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit() { + return this.acceptGrowCapacityPoolForShortTermCloneSplit; } /** - * Set the isRestoring property: Restoring. + * Set the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, + * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically + * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term + * clone volume, set the property as accepted. * - * @param isRestoring the isRestoring value to set. + * @param acceptGrowCapacityPoolForShortTermCloneSplit the acceptGrowCapacityPoolForShortTermCloneSplit value to + * set. * @return the VolumeProperties object itself. */ - public VolumeProperties withIsRestoring(Boolean isRestoring) { - this.isRestoring = isRestoring; + public VolumeProperties withAcceptGrowCapacityPoolForShortTermCloneSplit( + AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit) { + this.acceptGrowCapacityPoolForShortTermCloneSplit = acceptGrowCapacityPoolForShortTermCloneSplit; return this; } + /** + * Get the isRestoring property: Restoring. + * + * @return the isRestoring value. + */ + public Boolean isRestoring() { + return this.isRestoring; + } + /** * Get the snapshotDirectoryVisible property: If enabled (true) the volume will contain a read-only snapshot * directory which provides access to each of the volume's snapshots (defaults to true). @@ -939,6 +985,26 @@ public VolumeProperties withLdapEnabled(Boolean ldapEnabled) { return this; } + /** + * Get the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. + * + * @return the ldapServerType value. + */ + public LdapServerType ldapServerType() { + return this.ldapServerType; + } + + /** + * Set the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. + * + * @param ldapServerType the ldapServerType value to set. + * @return the VolumeProperties object itself. + */ + public VolumeProperties withLdapServerType(LdapServerType ldapServerType) { + this.ldapServerType = ldapServerType; + return this; + } + /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. * @@ -1044,7 +1110,10 @@ public VolumeProperties withCoolAccessTieringPolicy(CoolAccessTieringPolicy cool * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. + * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, + * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user + * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain + * as its last saved value only. * * @return the unixPermissions value. */ @@ -1057,7 +1126,10 @@ public String unixPermissions() { * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. + * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, + * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user + * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain + * as its last saved value only. * * @param unixPermissions the unixPermissions value to set. * @return the VolumeProperties object itself. @@ -1362,6 +1434,35 @@ public String originatingResourceId() { return this.originatingResourceId; } + /** + * Get the inheritedSizeInBytes property: Space shared by short term clone volume with parent volume in bytes. + * + * @return the inheritedSizeInBytes value. + */ + public Long inheritedSizeInBytes() { + return this.inheritedSizeInBytes; + } + + /** + * Get the language property: Language supported for volume. + * + * @return the language value. + */ + public VolumeLanguage language() { + return this.language; + } + + /** + * Set the language property: Language supported for volume. + * + * @param language the language value to set. + * @return the VolumeProperties object itself. + */ + public VolumeProperties withLanguage(VolumeLanguage language) { + this.language = language; + return this; + } + /** * Validates the instance. * @@ -1412,7 +1513,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.networkFeatures == null ? null : this.networkFeatures.toString()); jsonWriter.writeStringField("volumeType", this.volumeType); jsonWriter.writeJsonField("dataProtection", this.dataProtection); - jsonWriter.writeBooleanField("isRestoring", this.isRestoring); + jsonWriter.writeStringField("acceptGrowCapacityPoolForShortTermCloneSplit", + this.acceptGrowCapacityPoolForShortTermCloneSplit == null + ? null + : this.acceptGrowCapacityPoolForShortTermCloneSplit.toString()); jsonWriter.writeBooleanField("snapshotDirectoryVisible", this.snapshotDirectoryVisible); jsonWriter.writeBooleanField("kerberosEnabled", this.kerberosEnabled); jsonWriter.writeStringField("securityStyle", this.securityStyle == null ? null : this.securityStyle.toString()); @@ -1427,6 +1531,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.encryptionKeySource == null ? null : this.encryptionKeySource.toString()); jsonWriter.writeStringField("keyVaultPrivateEndpointResourceId", this.keyVaultPrivateEndpointResourceId); jsonWriter.writeBooleanField("ldapEnabled", this.ldapEnabled); + jsonWriter.writeStringField("ldapServerType", + this.ldapServerType == null ? null : this.ldapServerType.toString()); jsonWriter.writeBooleanField("coolAccess", this.coolAccess); jsonWriter.writeNumberField("coolnessPeriod", this.coolnessPeriod); jsonWriter.writeStringField("coolAccessRetrievalPolicy", @@ -1446,6 +1552,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("enableSubvolumes", this.enableSubvolumes == null ? null : this.enableSubvolumes.toString()); jsonWriter.writeBooleanField("isLargeVolume", this.isLargeVolume); + jsonWriter.writeStringField("language", this.language == null ? null : this.language.toString()); return jsonWriter.writeEndObject(); } @@ -1508,6 +1615,9 @@ public static VolumeProperties fromJson(JsonReader jsonReader) throws IOExceptio deserializedVolumeProperties.volumeType = reader.getString(); } else if ("dataProtection".equals(fieldName)) { deserializedVolumeProperties.dataProtection = VolumePropertiesDataProtection.fromJson(reader); + } else if ("acceptGrowCapacityPoolForShortTermCloneSplit".equals(fieldName)) { + deserializedVolumeProperties.acceptGrowCapacityPoolForShortTermCloneSplit + = AcceptGrowCapacityPoolForShortTermCloneSplit.fromString(reader.getString()); } else if ("isRestoring".equals(fieldName)) { deserializedVolumeProperties.isRestoring = reader.getNullable(JsonReader::getBoolean); } else if ("snapshotDirectoryVisible".equals(fieldName)) { @@ -1536,6 +1646,8 @@ public static VolumeProperties fromJson(JsonReader jsonReader) throws IOExceptio deserializedVolumeProperties.keyVaultPrivateEndpointResourceId = reader.getString(); } else if ("ldapEnabled".equals(fieldName)) { deserializedVolumeProperties.ldapEnabled = reader.getNullable(JsonReader::getBoolean); + } else if ("ldapServerType".equals(fieldName)) { + deserializedVolumeProperties.ldapServerType = LdapServerType.fromString(reader.getString()); } else if ("coolAccess".equals(fieldName)) { deserializedVolumeProperties.coolAccess = reader.getNullable(JsonReader::getBoolean); } else if ("coolnessPeriod".equals(fieldName)) { @@ -1589,6 +1701,10 @@ public static VolumeProperties fromJson(JsonReader jsonReader) throws IOExceptio deserializedVolumeProperties.isLargeVolume = reader.getNullable(JsonReader::getBoolean); } else if ("originatingResourceId".equals(fieldName)) { deserializedVolumeProperties.originatingResourceId = reader.getString(); + } else if ("inheritedSizeInBytes".equals(fieldName)) { + deserializedVolumeProperties.inheritedSizeInBytes = reader.getNullable(JsonReader::getLong); + } else if ("language".equals(fieldName)) { + deserializedVolumeProperties.language = VolumeLanguage.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java index 89412ac1a317..3462e366ea70 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java @@ -41,6 +41,14 @@ public OffsetDateTime creationDate() { return this.innerModel().creationDate(); } + public OffsetDateTime snapshotCreationDate() { + return this.innerModel().snapshotCreationDate(); + } + + public OffsetDateTime completionDate() { + return this.innerModel().completionDate(); + } + public String provisioningState() { return this.innerModel().provisioningState(); } @@ -77,6 +85,10 @@ public String backupPolicyResourceId() { return this.innerModel().backupPolicyResourceId(); } + public Boolean isLargeVolume() { + return this.innerModel().isLargeVolume(); + } + public String resourceGroupName() { return resourceGroupName; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java new file mode 100644 index 000000000000..2e637c0db77c --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java @@ -0,0 +1,41 @@ +// 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.implementation; + +import com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner; +import com.azure.resourcemanager.netapp.models.BucketGenerateCredentials; +import java.time.OffsetDateTime; + +public final class BucketGenerateCredentialsImpl implements BucketGenerateCredentials { + private BucketGenerateCredentialsInner innerObject; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + BucketGenerateCredentialsImpl(BucketGenerateCredentialsInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String accessKey() { + return this.innerModel().accessKey(); + } + + public String secretKey() { + return this.innerModel().secretKey(); + } + + public OffsetDateTime keyPairExpiry() { + return this.innerModel().keyPairExpiry(); + } + + public BucketGenerateCredentialsInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketImpl.java new file mode 100644 index 000000000000..11bb389ba946 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketImpl.java @@ -0,0 +1,207 @@ +// 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.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.fluent.models.BucketInner; +import com.azure.resourcemanager.netapp.models.Bucket; +import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; +import com.azure.resourcemanager.netapp.models.BucketGenerateCredentials; +import com.azure.resourcemanager.netapp.models.BucketPatch; +import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; +import com.azure.resourcemanager.netapp.models.BucketServerProperties; +import com.azure.resourcemanager.netapp.models.CredentialsStatus; +import com.azure.resourcemanager.netapp.models.FileSystemUser; +import com.azure.resourcemanager.netapp.models.NetappProvisioningState; + +public final class BucketImpl implements Bucket, Bucket.Definition, Bucket.Update { + private BucketInner innerObject; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String path() { + return this.innerModel().path(); + } + + public FileSystemUser fileSystemUser() { + return this.innerModel().fileSystemUser(); + } + + public NetappProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + + public CredentialsStatus status() { + return this.innerModel().status(); + } + + public BucketServerProperties server() { + return this.innerModel().server(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public BucketInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String poolName; + + private String volumeName; + + private String bucketName; + + private BucketPatch updateBody; + + public BucketImpl withExistingVolume(String resourceGroupName, String accountName, String poolName, + String volumeName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + this.poolName = poolName; + this.volumeName = volumeName; + return this; + } + + public Bucket create() { + this.innerObject = serviceManager.serviceClient() + .getBuckets() + .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, bucketName, this.innerModel(), + Context.NONE); + return this; + } + + public Bucket create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getBuckets() + .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, bucketName, this.innerModel(), + context); + return this; + } + + BucketImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = new BucketInner(); + this.serviceManager = serviceManager; + this.bucketName = name; + } + + public BucketImpl update() { + this.updateBody = new BucketPatch(); + return this; + } + + public Bucket apply() { + this.innerObject = serviceManager.serviceClient() + .getBuckets() + .update(resourceGroupName, accountName, poolName, volumeName, bucketName, updateBody, Context.NONE); + return this; + } + + public Bucket apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getBuckets() + .update(resourceGroupName, accountName, poolName, volumeName, bucketName, updateBody, context); + return this; + } + + BucketImpl(BucketInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "netAppAccounts"); + this.poolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "capacityPools"); + this.volumeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "volumes"); + this.bucketName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "buckets"); + } + + public Bucket refresh() { + this.innerObject = serviceManager.serviceClient() + .getBuckets() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, Context.NONE) + .getValue(); + return this; + } + + public Bucket refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getBuckets() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, context) + .getValue(); + return this; + } + + public Response generateCredentialsWithResponse(BucketCredentialsExpiry body, + Context context) { + return serviceManager.buckets() + .generateCredentialsWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, body, + context); + } + + public BucketGenerateCredentials generateCredentials(BucketCredentialsExpiry body) { + return serviceManager.buckets() + .generateCredentials(resourceGroupName, accountName, poolName, volumeName, bucketName, body); + } + + public BucketImpl withPath(String path) { + if (isInCreateMode()) { + this.innerModel().withPath(path); + return this; + } else { + this.updateBody.withPath(path); + return this; + } + } + + public BucketImpl withFileSystemUser(FileSystemUser fileSystemUser) { + if (isInCreateMode()) { + this.innerModel().withFileSystemUser(fileSystemUser); + return this; + } else { + this.updateBody.withFileSystemUser(fileSystemUser); + return this; + } + } + + public BucketImpl withServer(BucketServerProperties server) { + this.innerModel().withServer(server); + return this; + } + + public BucketImpl withServer(BucketServerPatchProperties server) { + this.updateBody.withServer(server); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel().id() == null; + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java new file mode 100644 index 000000000000..1d75af6fc176 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java @@ -0,0 +1,1713 @@ +// 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.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.netapp.fluent.BucketsClient; +import com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner; +import com.azure.resourcemanager.netapp.fluent.models.BucketInner; +import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; +import com.azure.resourcemanager.netapp.models.BucketList; +import com.azure.resourcemanager.netapp.models.BucketPatch; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in BucketsClient. + */ +public final class BucketsClientImpl implements BucketsClient { + /** + * The proxy service used to perform REST calls. + */ + private final BucketsService service; + + /** + * The service client containing this operation class. + */ + private final NetAppManagementClientImpl client; + + /** + * Initializes an instance of BucketsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + BucketsClientImpl(NetAppManagementClientImpl client) { + this.service = RestProxy.create(BucketsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for NetAppManagementClientBuckets to be used by the proxy service to + * perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "NetAppManagementClie") + public interface BucketsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") BucketInner body, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") BucketPatch body, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/buckets/{bucketName}/generateCredentials") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> generateCredentials(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("bucketName") String bucketName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") BucketCredentialsExpiry body, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Describes all buckets belonging to a volume + * + * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Describes all buckets belonging to a volume + * + * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, + volumeName, this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Describes all buckets belonging to a volume + * + * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName, volumeName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Describes all buckets belonging to a volume + * + * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName, volumeName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Describes all buckets belonging to a volume + * + * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, poolName, volumeName)); + } + + /** + * Describes all buckets belonging to a volume + * + * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, poolName, volumeName, context)); + } + + /** + * Describe a volume's bucket + * + * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, + * connect to the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume's bucket along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (bucketName == null) { + return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Describe a volume's bucket + * + * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, + * connect to the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume's bucket along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (bucketName == null) { + return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, + poolName, volumeName, bucketName, this.client.getApiVersion(), accept, context); + } + + /** + * Describe a volume's bucket + * + * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, + * connect to the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume's bucket on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName) { + return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Describe a volume's bucket + * + * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, + * connect to the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume's bucket along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, context).block(); + } + + /** + * Describe a volume's bucket + * + * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, + * connect to the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume's bucket. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BucketInner get(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName) { + return getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, Context.NONE) + .getValue(); + } + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName, BucketInner body) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (bucketName == null) { + return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName, BucketInner body, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (bucketName == null) { + return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, accept, context); + } + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, BucketInner> beginCreateOrUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName, BucketInner body) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + BucketInner.class, BucketInner.class, this.client.getContext()); + } + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, BucketInner> beginCreateOrUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName, BucketInner body, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, accountName, + poolName, volumeName, bucketName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + BucketInner.class, BucketInner.class, context); + } + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, BucketInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName, BucketInner body) { + return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body) + .getSyncPoller(); + } + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, BucketInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName, BucketInner body, Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context) + .getSyncPoller(); + } + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, BucketInner body) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, BucketInner body, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BucketInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName, BucketInner body) { + return createOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body).block(); + } + + /** + * Creates or updates a bucket for a volume + * + * Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BucketInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName, BucketInner body, Context context) { + return createOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context) + .block(); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, BucketPatch body) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (bucketName == null) { + return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); + } + if (body != null) { + body.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, BucketPatch body, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (bucketName == null) { + return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); + } + if (body != null) { + body.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, accept, context); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, BucketInner> beginUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName, BucketPatch body) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + BucketInner.class, BucketInner.class, this.client.getContext()); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, BucketInner> beginUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName) { + final BucketPatch body = null; + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + BucketInner.class, BucketInner.class, this.client.getContext()); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, BucketInner> beginUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName, BucketPatch body, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + BucketInner.class, BucketInner.class, context); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, BucketInner> beginUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName) { + final BucketPatch body = null; + return this.beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body) + .getSyncPoller(); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of bucket resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, BucketInner> beginUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, BucketPatch body, Context context) { + return this.beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context) + .getSyncPoller(); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, BucketPatch body) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName) { + final BucketPatch body = null; + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, BucketPatch body, Context context) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BucketInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName) { + final BucketPatch body = null; + return updateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body).block(); + } + + /** + * Updates a bucket for a volume + * + * Updates the details of a volume bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket details including user details, and the volume path that should be mounted inside the + * bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BucketInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName, BucketPatch body, Context context) { + return updateAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, body, context).block(); + } + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (bucketName == null) { + return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (bucketName == null) { + return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), accept, context); + } + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName) { + return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName).getSyncPoller(); + } + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, Context context) { + return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, context) + .getSyncPoller(); + } + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName, Context context) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName) { + deleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName).block(); + } + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName, Context context) { + deleteAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, context).block(); + } + + /** + * Generate bucket access credentials + * + * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date + * and time of key pair (in UTC). + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> generateCredentialsWithResponseAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName, + BucketCredentialsExpiry body) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (bucketName == null) { + return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.generateCredentials(this.client.getEndpoint(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, bucketName, + this.client.getApiVersion(), body, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Generate bucket access credentials + * + * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date + * and time of key pair (in UTC). + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> generateCredentialsWithResponseAsync( + String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName, + BucketCredentialsExpiry body, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + if (bucketName == null) { + return Mono.error(new IllegalArgumentException("Parameter bucketName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.generateCredentials(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, bucketName, this.client.getApiVersion(), body, accept, + context); + } + + /** + * Generate bucket access credentials + * + * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date + * and time of key pair (in UTC). + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono generateCredentialsAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body) { + return generateCredentialsWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, + body).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Generate bucket access credentials + * + * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date + * and time of key pair (in UTC). + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response generateCredentialsWithResponse(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body, + Context context) { + return generateCredentialsWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, bucketName, + body, context).block(); + } + + /** + * Generate bucket access credentials + * + * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date + * and time of key pair (in UTC). + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BucketGenerateCredentialsInner generateCredentials(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body) { + return generateCredentialsWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, body, + Context.NONE).getValue(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java new file mode 100644 index 000000000000..e5b7191e4e79 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java @@ -0,0 +1,231 @@ +// 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.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.fluent.BucketsClient; +import com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner; +import com.azure.resourcemanager.netapp.fluent.models.BucketInner; +import com.azure.resourcemanager.netapp.models.Bucket; +import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; +import com.azure.resourcemanager.netapp.models.BucketGenerateCredentials; +import com.azure.resourcemanager.netapp.models.Buckets; + +public final class BucketsImpl implements Buckets { + private static final ClientLogger LOGGER = new ClientLogger(BucketsImpl.class); + + private final BucketsClient innerClient; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + public BucketsImpl(BucketsClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + String volumeName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, poolName, volumeName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BucketImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, poolName, volumeName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BucketImpl(inner1, this.manager())); + } + + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new BucketImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public Bucket get(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName) { + BucketInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, bucketName); + if (inner != null) { + return new BucketImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName) { + this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, bucketName); + } + + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName, Context context) { + this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, bucketName, context); + } + + public Response generateCredentialsWithResponse(String resourceGroupName, + String accountName, String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body, + Context context) { + Response inner = this.serviceClient() + .generateCredentialsWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, body, + context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new BucketGenerateCredentialsImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public BucketGenerateCredentials generateCredentials(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, BucketCredentialsExpiry body) { + BucketGenerateCredentialsInner inner = this.serviceClient() + .generateCredentials(resourceGroupName, accountName, poolName, volumeName, bucketName, body); + if (inner != null) { + return new BucketGenerateCredentialsImpl(inner, this.manager()); + } else { + return null; + } + } + + public Bucket getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); + } + String poolName = ResourceManagerUtils.getValueFromIdByName(id, "capacityPools"); + if (poolName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); + } + String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); + if (volumeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); + } + String bucketName = ResourceManagerUtils.getValueFromIdByName(id, "buckets"); + if (bucketName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'buckets'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, Context.NONE) + .getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); + } + String poolName = ResourceManagerUtils.getValueFromIdByName(id, "capacityPools"); + if (poolName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); + } + String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); + if (volumeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); + } + String bucketName = ResourceManagerUtils.getValueFromIdByName(id, "buckets"); + if (bucketName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'buckets'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, bucketName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); + } + String poolName = ResourceManagerUtils.getValueFromIdByName(id, "capacityPools"); + if (poolName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); + } + String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); + if (volumeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); + } + String bucketName = ResourceManagerUtils.getValueFromIdByName(id, "buckets"); + if (bucketName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'buckets'.", id))); + } + this.delete(resourceGroupName, accountName, poolName, volumeName, bucketName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "netAppAccounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); + } + String poolName = ResourceManagerUtils.getValueFromIdByName(id, "capacityPools"); + if (poolName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); + } + String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); + if (volumeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); + } + String bucketName = ResourceManagerUtils.getValueFromIdByName(id, "buckets"); + if (bucketName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'buckets'.", id))); + } + this.delete(resourceGroupName, accountName, poolName, volumeName, bucketName, context); + } + + private BucketsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } + + public BucketImpl define(String name) { + return new BucketImpl(name, this.manager()); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java index ec6c998cf8c3..e32e2c32926f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java @@ -78,6 +78,10 @@ public Float utilizedThroughputMibps() { return this.innerModel().utilizedThroughputMibps(); } + public Float customThroughputMibps() { + return this.innerModel().customThroughputMibps(); + } + public QosType qosType() { return this.innerModel().qosType(); } @@ -218,6 +222,16 @@ public CapacityPoolImpl withTags(Map tags) { } } + public CapacityPoolImpl withCustomThroughputMibps(Float customThroughputMibps) { + if (isInCreateMode()) { + this.innerModel().withCustomThroughputMibps(customThroughputMibps); + return this; + } else { + this.updateBody.withCustomThroughputMibps(customThroughputMibps); + return this; + } + } + public CapacityPoolImpl withQosType(QosType qosType) { if (isInCreateMode()) { this.innerModel().withQosType(qosType); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResponseImpl.java new file mode 100644 index 000000000000..9114159e75eb --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResponseImpl.java @@ -0,0 +1,44 @@ +// 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.implementation; + +import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner; +import com.azure.resourcemanager.netapp.models.ListQuotaReportResponse; +import com.azure.resourcemanager.netapp.models.QuotaReport; +import java.util.Collections; +import java.util.List; + +public final class ListQuotaReportResponseImpl implements ListQuotaReportResponse { + private ListQuotaReportResponseInner innerObject; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + ListQuotaReportResponseImpl(ListQuotaReportResponseInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public List value() { + List inner = this.innerModel().value(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public String nextLink() { + return this.innerModel().nextLink(); + } + + public ListQuotaReportResponseInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java index 221aa025815b..3fc4b824fa70 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java @@ -13,7 +13,9 @@ import com.azure.resourcemanager.netapp.models.ChangeKeyVault; import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; import com.azure.resourcemanager.netapp.models.GetKeyVaultStatusResponse; +import com.azure.resourcemanager.netapp.models.LdapConfiguration; import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; +import com.azure.resourcemanager.netapp.models.MultiAdStatus; import com.azure.resourcemanager.netapp.models.NetAppAccount; import com.azure.resourcemanager.netapp.models.NetAppAccountPatch; import java.util.Collections; @@ -83,6 +85,18 @@ public Boolean disableShowmount() { return this.innerModel().disableShowmount(); } + public String nfsV4IdDomain() { + return this.innerModel().nfsV4IdDomain(); + } + + public MultiAdStatus multiAdStatus() { + return this.innerModel().multiAdStatus(); + } + + public LdapConfiguration ldapConfiguration() { + return this.innerModel().ldapConfiguration(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -258,6 +272,26 @@ public NetAppAccountImpl withEncryption(AccountEncryption encryption) { } } + public NetAppAccountImpl withNfsV4IdDomain(String nfsV4IdDomain) { + if (isInCreateMode()) { + this.innerModel().withNfsV4IdDomain(nfsV4IdDomain); + return this; + } else { + this.updateBody.withNfsV4IdDomain(nfsV4IdDomain); + return this; + } + } + + public NetAppAccountImpl withLdapConfiguration(LdapConfiguration ldapConfiguration) { + if (isInCreateMode()) { + this.innerModel().withLdapConfiguration(ldapConfiguration); + return this; + } else { + this.updateBody.withLdapConfiguration(ldapConfiguration); + return this; + } + } + private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java index fc2c55ae85c9..80939f11678e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java @@ -30,9 +30,12 @@ import com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient; import com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient; import com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient; +import com.azure.resourcemanager.netapp.fluent.BucketsClient; import com.azure.resourcemanager.netapp.fluent.NetAppManagementClient; +import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; import com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient; +import com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient; import com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient; import com.azure.resourcemanager.netapp.fluent.OperationsClient; import com.azure.resourcemanager.netapp.fluent.PoolsClient; @@ -168,6 +171,20 @@ public NetAppResourcesClient getNetAppResources() { return this.netAppResources; } + /** + * The NetAppResourceUsagesClient object to access its operations. + */ + private final NetAppResourceUsagesClient netAppResourceUsages; + + /** + * Gets the NetAppResourceUsagesClient object to access its operations. + * + * @return the NetAppResourceUsagesClient object. + */ + public NetAppResourceUsagesClient getNetAppResourceUsages() { + return this.netAppResourceUsages; + } + /** * The NetAppResourceQuotaLimitsClient object to access its operations. */ @@ -336,6 +353,20 @@ public BackupsClient getBackups() { return this.backups; } + /** + * The NetAppResourceQuotaLimitsAccountsClient object to access its operations. + */ + private final NetAppResourceQuotaLimitsAccountsClient netAppResourceQuotaLimitsAccounts; + + /** + * Gets the NetAppResourceQuotaLimitsAccountsClient object to access its operations. + * + * @return the NetAppResourceQuotaLimitsAccountsClient object. + */ + public NetAppResourceQuotaLimitsAccountsClient getNetAppResourceQuotaLimitsAccounts() { + return this.netAppResourceQuotaLimitsAccounts; + } + /** * The BackupVaultsClient object to access its operations. */ @@ -392,6 +423,20 @@ public BackupsUnderAccountsClient getBackupsUnderAccounts() { return this.backupsUnderAccounts; } + /** + * The BucketsClient object to access its operations. + */ + private final BucketsClient buckets; + + /** + * Gets the BucketsClient object to access its operations. + * + * @return the BucketsClient object. + */ + public BucketsClient getBuckets() { + return this.buckets; + } + /** * Initializes an instance of NetAppManagementClient client. * @@ -409,9 +454,10 @@ public BackupsUnderAccountsClient getBackupsUnderAccounts() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2024-09-01"; + this.apiVersion = "2025-01-01-preview"; this.operations = new OperationsClientImpl(this); this.netAppResources = new NetAppResourcesClientImpl(this); + this.netAppResourceUsages = new NetAppResourceUsagesClientImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this); this.netAppResourceRegionInfos = new NetAppResourceRegionInfosClientImpl(this); this.accounts = new AccountsClientImpl(this); @@ -424,10 +470,12 @@ public BackupsUnderAccountsClient getBackupsUnderAccounts() { this.volumeGroups = new VolumeGroupsClientImpl(this); this.subvolumes = new SubvolumesClientImpl(this); this.backups = new BackupsClientImpl(this); + this.netAppResourceQuotaLimitsAccounts = new NetAppResourceQuotaLimitsAccountsClientImpl(this); this.backupVaults = new BackupVaultsClientImpl(this); this.backupsUnderBackupVaults = new BackupsUnderBackupVaultsClientImpl(this); this.backupsUnderVolumes = new BackupsUnderVolumesClientImpl(this); this.backupsUnderAccounts = new BackupsUnderAccountsClientImpl(this); + this.buckets = new BucketsClientImpl(this); } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java new file mode 100644 index 000000000000..ef3a5f503422 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java @@ -0,0 +1,439 @@ +// 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.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient; +import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; +import com.azure.resourcemanager.netapp.models.QuotaItemList; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsAccountsClient. + */ +public final class NetAppResourceQuotaLimitsAccountsClientImpl implements NetAppResourceQuotaLimitsAccountsClient { + /** + * The proxy service used to perform REST calls. + */ + private final NetAppResourceQuotaLimitsAccountsService service; + + /** + * The service client containing this operation class. + */ + private final NetAppManagementClientImpl client; + + /** + * Initializes an instance of NetAppResourceQuotaLimitsAccountsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + NetAppResourceQuotaLimitsAccountsClientImpl(NetAppManagementClientImpl client) { + this.service = RestProxy.create(NetAppResourceQuotaLimitsAccountsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for NetAppManagementClientNetAppResourceQuotaLimitsAccounts to be used by + * the proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "NetAppManagementClie") + public interface NetAppResourceQuotaLimitsAccountsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/quotaLimits") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/quotaLimits/{quotaLimitName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("quotaLimitName") String quotaLimitName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a list of quota limits for all quotas that are under account. + * + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of quota limits for all quotas that are under account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of quota limits for all quotas that are under account. + * + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of quota limits for all quotas that are under account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets a list of quota limits for all quotas that are under account. + * + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of quota limits for all quotas that are under account. + * + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of quota limits for all quotas that are under account. + * + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName)); + } + + /** + * Gets a list of quota limits for all quotas that are under account. + * + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); + } + + /** + * Gets the quota limits for the specific quota that is provided under the account. + * + * Get the default, current and usages account quota limit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default, current and usages account quota limit along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String quotaLimitName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (quotaLimitName == null) { + return Mono.error(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, quotaLimitName, this.client.getApiVersion(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the quota limits for the specific quota that is provided under the account. + * + * Get the default, current and usages account quota limit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default, current and usages account quota limit along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String quotaLimitName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (quotaLimitName == null) { + return Mono.error(new IllegalArgumentException("Parameter quotaLimitName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, + quotaLimitName, this.client.getApiVersion(), accept, context); + } + + /** + * Gets the quota limits for the specific quota that is provided under the account. + * + * Get the default, current and usages account quota limit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default, current and usages account quota limit on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, String quotaLimitName) { + return getWithResponseAsync(resourceGroupName, accountName, quotaLimitName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the quota limits for the specific quota that is provided under the account. + * + * Get the default, current and usages account quota limit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default, current and usages account quota limit along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String accountName, String quotaLimitName, + Context context) { + return getWithResponseAsync(resourceGroupName, accountName, quotaLimitName, context).block(); + } + + /** + * Gets the quota limits for the specific quota that is provided under the account. + * + * Get the default, current and usages account quota limit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default, current and usages account quota limit. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public QuotaItemInner get(String resourceGroupName, String accountName, String quotaLimitName) { + return getWithResponse(resourceGroupName, accountName, quotaLimitName, Context.NONE).getValue(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Quota Items along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Quota Items along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java new file mode 100644 index 000000000000..dee5d469e586 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java @@ -0,0 +1,68 @@ +// 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.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient; +import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; +import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimitsAccounts; +import com.azure.resourcemanager.netapp.models.QuotaItem; + +public final class NetAppResourceQuotaLimitsAccountsImpl implements NetAppResourceQuotaLimitsAccounts { + private static final ClientLogger LOGGER = new ClientLogger(NetAppResourceQuotaLimitsAccountsImpl.class); + + private final NetAppResourceQuotaLimitsAccountsClient innerClient; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + public NetAppResourceQuotaLimitsAccountsImpl(NetAppResourceQuotaLimitsAccountsClient innerClient, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new QuotaItemImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new QuotaItemImpl(inner1, this.manager())); + } + + public Response getWithResponse(String resourceGroupName, String accountName, String quotaLimitName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, quotaLimitName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new QuotaItemImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public QuotaItem get(String resourceGroupName, String accountName, String quotaLimitName) { + QuotaItemInner inner = this.serviceClient().get(resourceGroupName, accountName, quotaLimitName); + if (inner != null) { + return new QuotaItemImpl(inner, this.manager()); + } else { + return null; + } + } + + private NetAppResourceQuotaLimitsAccountsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java index 2f5896aba3c8..19b2c0d970e7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java @@ -26,8 +26,8 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; -import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItemList; +import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; +import com.azure.resourcemanager.netapp.models.QuotaItemList; import reactor.core.publisher.Mono; /** @@ -66,7 +66,7 @@ public interface NetAppResourceQuotaLimitsService { @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -74,7 +74,7 @@ Mono> list(@HostParam("$host") String endpoi @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @PathParam("quotaLimitName") String quotaLimitName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -93,7 +93,7 @@ Mono> get(@HostParam("$host") String endpoi * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String location) { + private Mono> listSinglePageAsync(String location) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -109,8 +109,8 @@ private Mono> listSinglePageAsync(Stri return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), location, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -128,7 +128,7 @@ private Mono> listSinglePageAsync(Stri * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String location, Context context) { + private Mono> listSinglePageAsync(String location, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -161,7 +161,7 @@ private Mono> listSinglePageAsync(Stri * @return the default and current limits for quotas as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String location) { + private PagedFlux listAsync(String location) { return new PagedFlux<>(() -> listSinglePageAsync(location)); } @@ -178,7 +178,7 @@ private PagedFlux listAsync(String location) { * @return the default and current limits for quotas as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String location, Context context) { + private PagedFlux listAsync(String location, Context context) { return new PagedFlux<>(() -> listSinglePageAsync(location, context)); } @@ -194,7 +194,7 @@ private PagedFlux listAsync(String location, Context * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String location) { + public PagedIterable list(String location) { return new PagedIterable<>(listAsync(location)); } @@ -211,7 +211,7 @@ public PagedIterable list(String location) { * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String location, Context context) { + public PagedIterable list(String location, Context context) { return new PagedIterable<>(listAsync(location, context)); } @@ -229,7 +229,7 @@ public PagedIterable list(String location, Context c * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String location, String quotaLimitName) { + private Mono> getWithResponseAsync(String location, String quotaLimitName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -266,7 +266,7 @@ private Mono> getWithResponseAsync(String l * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String location, String quotaLimitName, + private Mono> getWithResponseAsync(String location, String quotaLimitName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -301,7 +301,7 @@ private Mono> getWithResponseAsync(String l * @return the default and current subscription quota limit on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String location, String quotaLimitName) { + private Mono getAsync(String location, String quotaLimitName) { return getWithResponseAsync(location, quotaLimitName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -319,8 +319,7 @@ private Mono getAsync(String location, String quotaL * @return the default and current subscription quota limit along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String location, String quotaLimitName, - Context context) { + public Response getWithResponse(String location, String quotaLimitName, Context context) { return getWithResponseAsync(location, quotaLimitName, context).block(); } @@ -337,7 +336,7 @@ public Response getWithResponse(String location, Str * @return the default and current subscription quota limit. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SubscriptionQuotaItemInner get(String location, String quotaLimitName) { + public QuotaItemInner get(String location, String quotaLimitName) { return getWithResponse(location, quotaLimitName, Context.NONE).getValue(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java index 0b3b0931de89..5e1797966d34 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java @@ -10,9 +10,9 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; +import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits; -import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; +import com.azure.resourcemanager.netapp.models.QuotaItem; public final class NetAppResourceQuotaLimitsImpl implements NetAppResourceQuotaLimits { private static final ClientLogger LOGGER = new ClientLogger(NetAppResourceQuotaLimitsImpl.class); @@ -27,31 +27,30 @@ public NetAppResourceQuotaLimitsImpl(NetAppResourceQuotaLimitsClient innerClient this.serviceManager = serviceManager; } - public PagedIterable list(String location) { - PagedIterable inner = this.serviceClient().list(location); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SubscriptionQuotaItemImpl(inner1, this.manager())); + public PagedIterable list(String location) { + PagedIterable inner = this.serviceClient().list(location); + return ResourceManagerUtils.mapPage(inner, inner1 -> new QuotaItemImpl(inner1, this.manager())); } - public PagedIterable list(String location, Context context) { - PagedIterable inner = this.serviceClient().list(location, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SubscriptionQuotaItemImpl(inner1, this.manager())); + public PagedIterable list(String location, Context context) { + PagedIterable inner = this.serviceClient().list(location, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new QuotaItemImpl(inner1, this.manager())); } - public Response getWithResponse(String location, String quotaLimitName, Context context) { - Response inner - = this.serviceClient().getWithResponse(location, quotaLimitName, context); + public Response getWithResponse(String location, String quotaLimitName, Context context) { + Response inner = this.serviceClient().getWithResponse(location, quotaLimitName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new SubscriptionQuotaItemImpl(inner.getValue(), this.manager())); + new QuotaItemImpl(inner.getValue(), this.manager())); } else { return null; } } - public SubscriptionQuotaItem get(String location, String quotaLimitName) { - SubscriptionQuotaItemInner inner = this.serviceClient().get(location, quotaLimitName); + public QuotaItem get(String location, String quotaLimitName) { + QuotaItemInner inner = this.serviceClient().get(location, quotaLimitName); if (inner != null) { - return new SubscriptionQuotaItemImpl(inner, this.manager()); + return new QuotaItemImpl(inner, this.manager()); } else { return null; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java new file mode 100644 index 000000000000..2098fc66f3a2 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java @@ -0,0 +1,398 @@ +// 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.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient; +import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner; +import com.azure.resourcemanager.netapp.models.UsagesListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in NetAppResourceUsagesClient. + */ +public final class NetAppResourceUsagesClientImpl implements NetAppResourceUsagesClient { + /** + * The proxy service used to perform REST calls. + */ + private final NetAppResourceUsagesService service; + + /** + * The service client containing this operation class. + */ + private final NetAppManagementClientImpl client; + + /** + * Initializes an instance of NetAppResourceUsagesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + NetAppResourceUsagesClientImpl(NetAppManagementClientImpl client) { + this.service = RestProxy.create(NetAppResourceUsagesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for NetAppManagementClientNetAppResourceUsages to be used by the proxy + * service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "NetAppManagementClie") + public interface NetAppResourceUsagesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/usages/{usageType}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, + @PathParam("usageType") String usageType, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get usages + * + * Get current subscription usages. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usages along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), location, + this.client.getApiVersion(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get usages + * + * Get current subscription usages. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usages along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), location, this.client.getApiVersion(), + accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Get usages + * + * Get current subscription usages. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usages as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String location) { + return new PagedFlux<>(() -> listSinglePageAsync(location), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Get usages + * + * Get current subscription usages. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usages as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String location, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(location, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Get usages + * + * Get current subscription usages. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usages as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location) { + return new PagedIterable<>(listAsync(location)); + } + + /** + * Get usages + * + * Get current subscription usages. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usages as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location, Context context) { + return new PagedIterable<>(listAsync(location, context)); + } + + /** + * Get specific type of usage + * + * Get current subscription usage of the specific type. + * + * @param location The name of the Azure region. + * @param usageType The type of usage. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usage of the specific type along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String location, String usageType) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (usageType == null) { + return Mono.error(new IllegalArgumentException("Parameter usageType is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), location, + usageType, this.client.getApiVersion(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get specific type of usage + * + * Get current subscription usage of the specific type. + * + * @param location The name of the Azure region. + * @param usageType The type of usage. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usage of the specific type along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String location, String usageType, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (usageType == null) { + return Mono.error(new IllegalArgumentException("Parameter usageType is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), location, usageType, + this.client.getApiVersion(), accept, context); + } + + /** + * Get specific type of usage + * + * Get current subscription usage of the specific type. + * + * @param location The name of the Azure region. + * @param usageType The type of usage. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usage of the specific type on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String location, String usageType) { + return getWithResponseAsync(location, usageType).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get specific type of usage + * + * Get current subscription usage of the specific type. + * + * @param location The name of the Azure region. + * @param usageType The type of usage. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usage of the specific type along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String location, String usageType, Context context) { + return getWithResponseAsync(location, usageType, context).block(); + } + + /** + * Get specific type of usage + * + * Get current subscription usage of the specific type. + * + * @param location The name of the Azure region. + * @param usageType The type of usage. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usage of the specific type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public UsageResultInner get(String location, String usageType) { + return getWithResponse(location, usageType, Context.NONE).getValue(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return usages result along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return usages result along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java new file mode 100644 index 000000000000..bffc73ec8d0a --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java @@ -0,0 +1,66 @@ +// 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.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient; +import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner; +import com.azure.resourcemanager.netapp.models.NetAppResourceUsages; +import com.azure.resourcemanager.netapp.models.UsageResult; + +public final class NetAppResourceUsagesImpl implements NetAppResourceUsages { + private static final ClientLogger LOGGER = new ClientLogger(NetAppResourceUsagesImpl.class); + + private final NetAppResourceUsagesClient innerClient; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + public NetAppResourceUsagesImpl(NetAppResourceUsagesClient innerClient, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String location) { + PagedIterable inner = this.serviceClient().list(location); + return ResourceManagerUtils.mapPage(inner, inner1 -> new UsageResultImpl(inner1, this.manager())); + } + + public PagedIterable list(String location, Context context) { + PagedIterable inner = this.serviceClient().list(location, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new UsageResultImpl(inner1, this.manager())); + } + + public Response getWithResponse(String location, String usageType, Context context) { + Response inner = this.serviceClient().getWithResponse(location, usageType, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new UsageResultImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public UsageResult get(String location, String usageType) { + UsageResultInner inner = this.serviceClient().get(location, usageType); + if (inner != null) { + return new UsageResultImpl(inner, this.manager()); + } else { + return null; + } + } + + private NetAppResourceUsagesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java index b45b3e3f5c23..aa04ed84d007 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java @@ -10,6 +10,7 @@ import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceInterface; @@ -67,6 +68,13 @@ public interface OperationsService { @UnexpectedResponseExceptionType(ManagementException.class) Mono> list(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** @@ -90,7 +98,7 @@ private Mono> listSinglePageAsync() { .withContext( context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -116,7 +124,7 @@ private Mono> listSinglePageAsync(Context context) context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -130,7 +138,7 @@ private Mono> listSinglePageAsync(Context context) */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync()); + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** @@ -146,7 +154,8 @@ private PagedFlux listAsync() { */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context)); + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** @@ -178,4 +187,57 @@ public PagedIterable list() { public PagedIterable list(Context context) { return new PagedIterable<>(listAsync(context)); } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list Cloud Volume operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list Cloud Volume operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/QuotaItemImpl.java similarity index 69% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/QuotaItemImpl.java index 70b6ad3a4355..ae9c81194bad 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/QuotaItemImpl.java @@ -5,16 +5,15 @@ package com.azure.resourcemanager.netapp.implementation; import com.azure.core.management.SystemData; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; -import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; +import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; +import com.azure.resourcemanager.netapp.models.QuotaItem; -public final class SubscriptionQuotaItemImpl implements SubscriptionQuotaItem { - private SubscriptionQuotaItemInner innerObject; +public final class QuotaItemImpl implements QuotaItem { + private QuotaItemInner innerObject; private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - SubscriptionQuotaItemImpl(SubscriptionQuotaItemInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + QuotaItemImpl(QuotaItemInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } @@ -43,7 +42,11 @@ public Integer defaultProperty() { return this.innerModel().defaultProperty(); } - public SubscriptionQuotaItemInner innerModel() { + public Integer usage() { + return this.innerModel().usage(); + } + + public QuotaItemInner innerModel() { return this.innerObject; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java new file mode 100644 index 000000000000..a17f848f37ef --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java @@ -0,0 +1,48 @@ +// 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.implementation; + +import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner; +import com.azure.resourcemanager.netapp.models.UsageName; +import com.azure.resourcemanager.netapp.models.UsageResult; + +public final class UsageResultImpl implements UsageResult { + private UsageResultInner innerObject; + + private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; + + UsageResultImpl(UsageResultInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public UsageName name() { + return this.innerModel().name(); + } + + public Integer currentValue() { + return this.innerModel().currentValue(); + } + + public Integer limit() { + return this.innerModel().limit(); + } + + public String unit() { + return this.innerModel().unit(); + } + + public UsageResultInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java index 415391080d14..a9a7104e0ac5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java @@ -10,6 +10,7 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; +import com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit; import com.azure.resourcemanager.netapp.models.AuthorizeRequest; import com.azure.resourcemanager.netapp.models.AvsDataStore; import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; @@ -22,6 +23,8 @@ import com.azure.resourcemanager.netapp.models.FileAccessLogs; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserResponse; +import com.azure.resourcemanager.netapp.models.LdapServerType; +import com.azure.resourcemanager.netapp.models.ListQuotaReportResponse; import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; @@ -35,6 +38,7 @@ import com.azure.resourcemanager.netapp.models.SmbNonBrowsable; import com.azure.resourcemanager.netapp.models.SvmPeerCommandResponse; import com.azure.resourcemanager.netapp.models.Volume; +import com.azure.resourcemanager.netapp.models.VolumeLanguage; import com.azure.resourcemanager.netapp.models.VolumePatch; import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection; import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; @@ -179,6 +183,10 @@ public VolumePropertiesDataProtection dataProtection() { return this.innerModel().dataProtection(); } + public AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit() { + return this.innerModel().acceptGrowCapacityPoolForShortTermCloneSplit(); + } + public Boolean isRestoring() { return this.innerModel().isRestoring(); } @@ -231,6 +239,10 @@ public Boolean ldapEnabled() { return this.innerModel().ldapEnabled(); } + public LdapServerType ldapServerType() { + return this.innerModel().ldapServerType(); + } + public Boolean coolAccess() { return this.innerModel().coolAccess(); } @@ -337,6 +349,14 @@ public String originatingResourceId() { return this.innerModel().originatingResourceId(); } + public Long inheritedSizeInBytes() { + return this.innerModel().inheritedSizeInBytes(); + } + + public VolumeLanguage language() { + return this.innerModel().language(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -463,6 +483,14 @@ public void resetCifsPassword(Context context) { serviceManager.volumes().resetCifsPassword(resourceGroupName, accountName, poolName, volumeName, context); } + public void splitCloneFromParent() { + serviceManager.volumes().splitCloneFromParent(resourceGroupName, accountName, poolName, volumeName); + } + + public void splitCloneFromParent(Context context) { + serviceManager.volumes().splitCloneFromParent(resourceGroupName, accountName, poolName, volumeName, context); + } + public void breakFileLocks() { serviceManager.volumes().breakFileLocks(resourceGroupName, accountName, poolName, volumeName); } @@ -482,6 +510,14 @@ public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupI .listGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body, context); } + public ListQuotaReportResponse listQuotaReport() { + return serviceManager.volumes().listQuotaReport(resourceGroupName, accountName, poolName, volumeName); + } + + public ListQuotaReportResponse listQuotaReport(Context context) { + return serviceManager.volumes().listQuotaReport(resourceGroupName, accountName, poolName, volumeName, context); + } + public void breakReplication() { serviceManager.volumes().breakReplication(resourceGroupName, accountName, poolName, volumeName); } @@ -704,8 +740,10 @@ public VolumeImpl withDataProtection(VolumePropertiesDataProtection dataProtecti return this; } - public VolumeImpl withIsRestoring(Boolean isRestoring) { - this.innerModel().withIsRestoring(isRestoring); + public VolumeImpl withAcceptGrowCapacityPoolForShortTermCloneSplit( + AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit) { + this.innerModel() + .withAcceptGrowCapacityPoolForShortTermCloneSplit(acceptGrowCapacityPoolForShortTermCloneSplit); return this; } @@ -784,6 +822,11 @@ public VolumeImpl withLdapEnabled(Boolean ldapEnabled) { return this; } + public VolumeImpl withLdapServerType(LdapServerType ldapServerType) { + this.innerModel().withLdapServerType(ldapServerType); + return this; + } + public VolumeImpl withCoolAccess(Boolean coolAccess) { if (isInCreateMode()) { this.innerModel().withCoolAccess(coolAccess); @@ -899,6 +942,11 @@ public VolumeImpl withIsLargeVolume(Boolean isLargeVolume) { return this; } + public VolumeImpl withLanguage(VolumeLanguage language) { + this.innerModel().withLanguage(language); + return this; + } + public VolumeImpl withUsageThreshold(Long usageThreshold) { this.updateBody.withUsageThreshold(usageThreshold); return this; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java index 071d7f856b43..ed05189f14f5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java @@ -36,6 +36,7 @@ import com.azure.resourcemanager.netapp.fluent.VolumesClient; import com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner; import com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner; +import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner; import com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner; @@ -171,6 +172,16 @@ Mono>> resetCifsPassword(@HostParam("$host") String en @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> splitCloneFromParent(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks") @ExpectedResponses({ 200, 202 }) @@ -194,6 +205,16 @@ Mono>> listGetGroupIdListForLdapUser(@HostParam("$host @BodyParam("application/json") GetGroupIdListForLdapUserRequest body, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listQuotaReport") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> listQuotaReport(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication") @ExpectedResponses({ 200, 202 }) @@ -2393,6 +2414,269 @@ public void resetCifsPassword(String resourceGroupName, String accountName, Stri resetCifsPasswordAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> splitCloneFromParentWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.splitCloneFromParent(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> splitCloneFromParentWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.splitCloneFromParent(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + } + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginSplitCloneFromParentAsync(String resourceGroupName, + String accountName, String poolName, String volumeName) { + Mono>> mono + = splitCloneFromParentWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginSplitCloneFromParentAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = splitCloneFromParentWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName, + String poolName, String volumeName) { + return this.beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName) + .getSyncPoller(); + } + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginSplitCloneFromParent(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + return this.beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName, context) + .getSyncPoller(); + } + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono splitCloneFromParentAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono splitCloneFromParentAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return beginSplitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName) { + splitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName).block(); + } + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { + splitCloneFromParentAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); + } + /** * Break file locks * @@ -3017,6 +3301,273 @@ public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(Stri .block(); } + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> listQuotaReportWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listQuotaReport(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> listQuotaReportWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } + if (volumeName == null) { + return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listQuotaReport(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); + } + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of quota Report for volume. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ListQuotaReportResponseInner> + beginListQuotaReportAsync(String resourceGroupName, String accountName, String poolName, String volumeName) { + Mono>> mono + = listQuotaReportWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ListQuotaReportResponseInner.class, ListQuotaReportResponseInner.class, + this.client.getContext()); + } + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of quota Report for volume. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ListQuotaReportResponseInner> + beginListQuotaReportAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = listQuotaReportWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ListQuotaReportResponseInner.class, ListQuotaReportResponseInner.class, + context); + } + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of quota Report for volume. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ListQuotaReportResponseInner> + beginListQuotaReport(String resourceGroupName, String accountName, String poolName, String volumeName) { + return this.beginListQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); + } + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of quota Report for volume. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ListQuotaReportResponseInner> beginListQuotaReport( + String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + return this.beginListQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName, context) + .getSyncPoller(); + } + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono listQuotaReportAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { + return beginListQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono listQuotaReportAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + return beginListQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return listQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName).block(); + } + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ListQuotaReportResponseInner listQuotaReport(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return listQuotaReportAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); + } + /** * Break volume replication * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java index 22b21792e6b4..a271be5571ee 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.netapp.fluent.VolumesClient; import com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner; import com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner; +import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner; import com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner; @@ -22,6 +23,7 @@ import com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponse; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserResponse; +import com.azure.resourcemanager.netapp.models.ListQuotaReportResponse; import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; import com.azure.resourcemanager.netapp.models.PoolChangeRequest; import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; @@ -126,6 +128,15 @@ public void resetCifsPassword(String resourceGroupName, String accountName, Stri this.serviceClient().resetCifsPassword(resourceGroupName, accountName, poolName, volumeName, context); } + public void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName) { + this.serviceClient().splitCloneFromParent(resourceGroupName, accountName, poolName, volumeName); + } + + public void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { + this.serviceClient().splitCloneFromParent(resourceGroupName, accountName, poolName, volumeName, context); + } + public void breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName) { this.serviceClient().breakFileLocks(resourceGroupName, accountName, poolName, volumeName); } @@ -157,6 +168,28 @@ public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String re } } + public ListQuotaReportResponse listQuotaReport(String resourceGroupName, String accountName, String poolName, + String volumeName) { + ListQuotaReportResponseInner inner + = this.serviceClient().listQuotaReport(resourceGroupName, accountName, poolName, volumeName); + if (inner != null) { + return new ListQuotaReportResponseImpl(inner, this.manager()); + } else { + return null; + } + } + + public ListQuotaReportResponse listQuotaReport(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + ListQuotaReportResponseInner inner + = this.serviceClient().listQuotaReport(resourceGroupName, accountName, poolName, volumeName, context); + if (inner != null) { + return new ListQuotaReportResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName) { this.serviceClient().breakReplication(resourceGroupName, accountName, poolName, volumeName); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java new file mode 100644 index 000000000000..f2bd95ef875b --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java @@ -0,0 +1,56 @@ +// 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.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * acceptGrowCapacityPoolForShortTermCloneSplit + * + * While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the + * volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool + * size auto grow and create a short term clone volume, set the property as accepted. + */ +public final class AcceptGrowCapacityPoolForShortTermCloneSplit + extends ExpandableStringEnum { + /** + * Static value Accepted for AcceptGrowCapacityPoolForShortTermCloneSplit. + */ + public static final AcceptGrowCapacityPoolForShortTermCloneSplit ACCEPTED = fromString("Accepted"); + + /** + * Static value Declined for AcceptGrowCapacityPoolForShortTermCloneSplit. + */ + public static final AcceptGrowCapacityPoolForShortTermCloneSplit DECLINED = fromString("Declined"); + + /** + * Creates a new instance of AcceptGrowCapacityPoolForShortTermCloneSplit value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AcceptGrowCapacityPoolForShortTermCloneSplit() { + } + + /** + * Creates or finds a AcceptGrowCapacityPoolForShortTermCloneSplit from its string representation. + * + * @param name a name to look for. + * @return the corresponding AcceptGrowCapacityPoolForShortTermCloneSplit. + */ + public static AcceptGrowCapacityPoolForShortTermCloneSplit fromString(String name) { + return fromString(name, AcceptGrowCapacityPoolForShortTermCloneSplit.class); + } + + /** + * Gets known AcceptGrowCapacityPoolForShortTermCloneSplit values. + * + * @return known AcceptGrowCapacityPoolForShortTermCloneSplit values. + */ + public static Collection values() { + return values(AcceptGrowCapacityPoolForShortTermCloneSplit.class); + } +} 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 03f8e64bd226..751de3d00d1e 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 @@ -55,6 +55,20 @@ public interface Backup { */ OffsetDateTime creationDate(); + /** + * Gets the snapshotCreationDate property: The snapshot creation date of the backup. + * + * @return the snapshotCreationDate value. + */ + OffsetDateTime snapshotCreationDate(); + + /** + * Gets the completionDate property: The completion date of the backup. + * + * @return the completionDate value. + */ + OffsetDateTime completionDate(); + /** * Gets the provisioningState property: Azure lifecycle management. * @@ -119,6 +133,13 @@ public interface Backup { */ String backupPolicyResourceId(); + /** + * Gets the isLargeVolume property: Specifies if the backup is for a large volume. + * + * @return the isLargeVolume value. + */ + Boolean isLargeVolume(); + /** * Gets the name of the resource group. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Bucket.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Bucket.java new file mode 100644 index 000000000000..bb1627947cc5 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Bucket.java @@ -0,0 +1,320 @@ +// 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.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.netapp.fluent.models.BucketInner; + +/** + * An immutable client-side representation of Bucket. + */ +public interface Bucket { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the path property: The volume path mounted inside the bucket. The default is the root path '/' if no value + * is provided when the bucket is created. + * + * @return the path value. + */ + String path(); + + /** + * Gets the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid + * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually + * exclusive, meaning one or other must be supplied, but not both. + * + * @return the fileSystemUser value. + */ + FileSystemUser fileSystemUser(); + + /** + * Gets the provisioningState property: Provisioning state of the resource. + * + * @return the provisioningState value. + */ + NetappProvisioningState provisioningState(); + + /** + * Gets the status property: The bucket credentials status. There states: + * + * "NoCredentialsSet": Access and Secret key pair have not been generated. + * "CredentialsExpired": Access and Secret key pair have expired. + * "Active": The certificate has been installed and credentials are unexpired. + * + * @return the status value. + */ + CredentialsStatus status(); + + /** + * Gets the server property: Properties of the server managing the lifecycle of volume buckets. + * + * @return the server value. + */ + BucketServerProperties server(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.BucketInner object. + * + * @return the inner object. + */ + BucketInner innerModel(); + + /** + * The entirety of the Bucket definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The Bucket definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the Bucket definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the Bucket definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, accountName, poolName, volumeName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @return the next definition stage. + */ + WithCreate withExistingVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); + } + + /** + * The stage of the Bucket definition which contains all the minimum required properties for the resource to be + * created, but also allows for any other optional properties to be specified. + */ + interface WithCreate + extends DefinitionStages.WithPath, DefinitionStages.WithFileSystemUser, DefinitionStages.WithServer { + /** + * Executes the create request. + * + * @return the created resource. + */ + Bucket create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + Bucket create(Context context); + } + + /** + * The stage of the Bucket definition allowing to specify path. + */ + interface WithPath { + /** + * Specifies the path property: The volume path mounted inside the bucket. The default is the root path '/' + * if no value is provided when the bucket is created.. + * + * @param path The volume path mounted inside the bucket. The default is the root path '/' if no value is + * provided when the bucket is created. + * @return the next definition stage. + */ + WithCreate withPath(String path); + } + + /** + * The stage of the Bucket definition allowing to specify fileSystemUser. + */ + interface WithFileSystemUser { + /** + * Specifies the fileSystemUser property: File System user having access to volume data. For Unix, this is + * the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user + * details are mutually exclusive, meaning one or other must be supplied, but not both.. + * + * @param fileSystemUser File System user having access to volume data. For Unix, this is the user's uid and + * gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually + * exclusive, meaning one or other must be supplied, but not both. + * @return the next definition stage. + */ + WithCreate withFileSystemUser(FileSystemUser fileSystemUser); + } + + /** + * The stage of the Bucket definition allowing to specify server. + */ + interface WithServer { + /** + * Specifies the server property: Properties of the server managing the lifecycle of volume buckets. + * + * @param server Properties of the server managing the lifecycle of volume buckets. + * @return the next definition stage. + */ + WithCreate withServer(BucketServerProperties server); + } + } + + /** + * Begins update for the Bucket resource. + * + * @return the stage of resource update. + */ + Bucket.Update update(); + + /** + * The template for Bucket update. + */ + interface Update extends UpdateStages.WithPath, UpdateStages.WithFileSystemUser, UpdateStages.WithServer { + /** + * Executes the update request. + * + * @return the updated resource. + */ + Bucket apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + Bucket apply(Context context); + } + + /** + * The Bucket update stages. + */ + interface UpdateStages { + /** + * The stage of the Bucket update allowing to specify path. + */ + interface WithPath { + /** + * Specifies the path property: The volume path mounted inside the bucket.. + * + * @param path The volume path mounted inside the bucket. + * @return the next definition stage. + */ + Update withPath(String path); + } + + /** + * The stage of the Bucket update allowing to specify fileSystemUser. + */ + interface WithFileSystemUser { + /** + * Specifies the fileSystemUser property: File System user having access to volume data. For Unix, this is + * the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user + * details are mutually exclusive, meaning one or other must be supplied, but not both.. + * + * @param fileSystemUser File System user having access to volume data. For Unix, this is the user's uid and + * gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually + * exclusive, meaning one or other must be supplied, but not both. + * @return the next definition stage. + */ + Update withFileSystemUser(FileSystemUser fileSystemUser); + } + + /** + * The stage of the Bucket update allowing to specify server. + */ + interface WithServer { + /** + * Specifies the server property: Properties of the server managing the lifecycle of volume buckets. + * + * @param server Properties of the server managing the lifecycle of volume buckets. + * @return the next definition stage. + */ + Update withServer(BucketServerPatchProperties server); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + Bucket refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + Bucket refresh(Context context); + + /** + * Generate bucket access credentials + * + * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date + * and time of key pair (in UTC). + * + * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair along with {@link Response}. + */ + Response generateCredentialsWithResponse(BucketCredentialsExpiry body, Context context); + + /** + * Generate bucket access credentials + * + * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date + * and time of key pair (in UTC). + * + * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair. + */ + BucketGenerateCredentials generateCredentials(BucketCredentialsExpiry body); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketCredentialsExpiry.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketCredentialsExpiry.java new file mode 100644 index 000000000000..88e56fa0d68b --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketCredentialsExpiry.java @@ -0,0 +1,95 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The bucket's Access and Secret key pair Expiry Time expressed as the number of days from now. + */ +@Fluent +public final class BucketCredentialsExpiry implements JsonSerializable { + /* + * The number of days from now until the newly generated Access and Secret key pair will expire. + */ + private Integer keyPairExpiryDays; + + /** + * Creates an instance of BucketCredentialsExpiry class. + */ + public BucketCredentialsExpiry() { + } + + /** + * Get the keyPairExpiryDays property: The number of days from now until the newly generated Access and Secret key + * pair will expire. + * + * @return the keyPairExpiryDays value. + */ + public Integer keyPairExpiryDays() { + return this.keyPairExpiryDays; + } + + /** + * Set the keyPairExpiryDays property: The number of days from now until the newly generated Access and Secret key + * pair will expire. + * + * @param keyPairExpiryDays the keyPairExpiryDays value to set. + * @return the BucketCredentialsExpiry object itself. + */ + public BucketCredentialsExpiry withKeyPairExpiryDays(Integer keyPairExpiryDays) { + this.keyPairExpiryDays = keyPairExpiryDays; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("keyPairExpiryDays", this.keyPairExpiryDays); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BucketCredentialsExpiry from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BucketCredentialsExpiry if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the BucketCredentialsExpiry. + */ + public static BucketCredentialsExpiry fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BucketCredentialsExpiry deserializedBucketCredentialsExpiry = new BucketCredentialsExpiry(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keyPairExpiryDays".equals(fieldName)) { + deserializedBucketCredentialsExpiry.keyPairExpiryDays = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedBucketCredentialsExpiry; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketGenerateCredentials.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketGenerateCredentials.java new file mode 100644 index 000000000000..6709ee4b86c2 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketGenerateCredentials.java @@ -0,0 +1,41 @@ +// 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.models; + +import com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner; +import java.time.OffsetDateTime; + +/** + * An immutable client-side representation of BucketGenerateCredentials. + */ +public interface BucketGenerateCredentials { + /** + * Gets the accessKey property: The Access Key that is required along with the Secret Key to access the bucket. + * + * @return the accessKey value. + */ + String accessKey(); + + /** + * Gets the secretKey property: The Secret Key that is required along with the Access Key to access the bucket. + * + * @return the secretKey value. + */ + String secretKey(); + + /** + * Gets the keyPairExpiry property: The bucket's Access and Secret key pair expiry date and time (in UTC). + * + * @return the keyPairExpiry value. + */ + OffsetDateTime keyPairExpiry(); + + /** + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner object. + * + * @return the inner object. + */ + BucketGenerateCredentialsInner innerModel(); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketList.java new file mode 100644 index 000000000000..c7c82d490b11 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketList.java @@ -0,0 +1,127 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.fluent.models.BucketInner; +import java.io.IOException; +import java.util.List; + +/** + * List of volume bucket resources. + */ +@Fluent +public final class BucketList implements JsonSerializable { + /* + * List of volume buckets + */ + private List value; + + /* + * URL to get the next set of results. + */ + private String nextLink; + + /** + * Creates an instance of BucketList class. + */ + public BucketList() { + } + + /** + * Get the value property: List of volume buckets. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: List of volume buckets. + * + * @param value the value value to set. + * @return the BucketList object itself. + */ + public BucketList withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: URL to get the next set of results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: URL to get the next set of results. + * + * @param nextLink the nextLink value to set. + * @return the BucketList object itself. + */ + public BucketList withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BucketList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BucketList if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IOException If an error occurs while reading the BucketList. + */ + public static BucketList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BucketList deserializedBucketList = new BucketList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> BucketInner.fromJson(reader1)); + deserializedBucketList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedBucketList.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBucketList; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPatch.java new file mode 100644 index 000000000000..446fc3ff4009 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketPatch.java @@ -0,0 +1,237 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.fluent.models.BucketPatchProperties; +import java.io.IOException; + +/** + * Bucket resource. + */ +@Fluent +public final class BucketPatch extends ProxyResource { + /* + * Bucket properties + */ + private BucketPatchProperties innerProperties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of BucketPatch class. + */ + public BucketPatch() { + } + + /** + * Get the innerProperties property: Bucket properties. + * + * @return the innerProperties value. + */ + private BucketPatchProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Get the path property: The volume path mounted inside the bucket. + * + * @return the path value. + */ + public String path() { + return this.innerProperties() == null ? null : this.innerProperties().path(); + } + + /** + * Set the path property: The volume path mounted inside the bucket. + * + * @param path the path value to set. + * @return the BucketPatch object itself. + */ + public BucketPatch withPath(String path) { + if (this.innerProperties() == null) { + this.innerProperties = new BucketPatchProperties(); + } + this.innerProperties().withPath(path); + return this; + } + + /** + * Get the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid + * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually + * exclusive, meaning one or other must be supplied, but not both. + * + * @return the fileSystemUser value. + */ + public FileSystemUser fileSystemUser() { + return this.innerProperties() == null ? null : this.innerProperties().fileSystemUser(); + } + + /** + * Set the fileSystemUser property: File System user having access to volume data. For Unix, this is the user's uid + * and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually + * exclusive, meaning one or other must be supplied, but not both. + * + * @param fileSystemUser the fileSystemUser value to set. + * @return the BucketPatch object itself. + */ + public BucketPatch withFileSystemUser(FileSystemUser fileSystemUser) { + if (this.innerProperties() == null) { + this.innerProperties = new BucketPatchProperties(); + } + this.innerProperties().withFileSystemUser(fileSystemUser); + return this; + } + + /** + * Get the provisioningState property: Provisioning state of the resource. + * + * @return the provisioningState value. + */ + public NetappProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the server property: Properties of the server managing the lifecycle of volume buckets. + * + * @return the server value. + */ + public BucketServerPatchProperties server() { + return this.innerProperties() == null ? null : this.innerProperties().server(); + } + + /** + * Set the server property: Properties of the server managing the lifecycle of volume buckets. + * + * @param server the server value to set. + * @return the BucketPatch object itself. + */ + public BucketPatch withServer(BucketServerPatchProperties server) { + if (this.innerProperties() == null) { + this.innerProperties = new BucketPatchProperties(); + } + this.innerProperties().withServer(server); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BucketPatch from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BucketPatch if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BucketPatch. + */ + public static BucketPatch fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BucketPatch deserializedBucketPatch = new BucketPatch(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedBucketPatch.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedBucketPatch.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedBucketPatch.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedBucketPatch.innerProperties = BucketPatchProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedBucketPatch.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedBucketPatch; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerPatchProperties.java new file mode 100644 index 000000000000..fb2ac45421c2 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerPatchProperties.java @@ -0,0 +1,128 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Properties of the server managing the lifecycle of volume buckets. + */ +@Fluent +public final class BucketServerPatchProperties implements JsonSerializable { + /* + * The host part of the bucket URL, resolving to the bucket IP address and allowed by the server certificate. + */ + private String fqdn; + + /* + * A base64-encoded PEM file, which includes both the bucket server's certificate and private key. It is used to + * authenticate the user and allows access to volume data in a read-only manner. + */ + private String certificateObject; + + /** + * Creates an instance of BucketServerPatchProperties class. + */ + public BucketServerPatchProperties() { + } + + /** + * Get the fqdn property: The host part of the bucket URL, resolving to the bucket IP address and allowed by the + * server certificate. + * + * @return the fqdn value. + */ + public String fqdn() { + return this.fqdn; + } + + /** + * Set the fqdn property: The host part of the bucket URL, resolving to the bucket IP address and allowed by the + * server certificate. + * + * @param fqdn the fqdn value to set. + * @return the BucketServerPatchProperties object itself. + */ + public BucketServerPatchProperties withFqdn(String fqdn) { + this.fqdn = fqdn; + return this; + } + + /** + * Get the certificateObject property: A base64-encoded PEM file, which includes both the bucket server's + * certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only + * manner. + * + * @return the certificateObject value. + */ + public String certificateObject() { + return this.certificateObject; + } + + /** + * Set the certificateObject property: A base64-encoded PEM file, which includes both the bucket server's + * certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only + * manner. + * + * @param certificateObject the certificateObject value to set. + * @return the BucketServerPatchProperties object itself. + */ + public BucketServerPatchProperties withCertificateObject(String certificateObject) { + this.certificateObject = certificateObject; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("fqdn", this.fqdn); + jsonWriter.writeStringField("certificateObject", this.certificateObject); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BucketServerPatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BucketServerPatchProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BucketServerPatchProperties. + */ + public static BucketServerPatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BucketServerPatchProperties deserializedBucketServerPatchProperties = new BucketServerPatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("fqdn".equals(fieldName)) { + deserializedBucketServerPatchProperties.fqdn = reader.getString(); + } else if ("certificateObject".equals(fieldName)) { + deserializedBucketServerPatchProperties.certificateObject = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBucketServerPatchProperties; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerProperties.java new file mode 100644 index 000000000000..79299bb8a4ea --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BucketServerProperties.java @@ -0,0 +1,180 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * Properties of the server managing the lifecycle of volume buckets. + */ +@Fluent +public final class BucketServerProperties implements JsonSerializable { + /* + * The host part of the bucket URL, resolving to the bucket IP address and allowed by the server certificate. + */ + private String fqdn; + + /* + * Certificate Common Name taken from the certificate installed on the bucket server + */ + private String certificateCommonName; + + /* + * The bucket server's certificate expiry date. + */ + private OffsetDateTime certificateExpiryDate; + + /* + * The bucket server's IPv4 address + */ + private String ipAddress; + + /* + * A base64-encoded PEM file, which includes both the bucket server's certificate and private key. It is used to + * authenticate the user and allows access to volume data in a read-only manner. + */ + private String certificateObject; + + /** + * Creates an instance of BucketServerProperties class. + */ + public BucketServerProperties() { + } + + /** + * Get the fqdn property: The host part of the bucket URL, resolving to the bucket IP address and allowed by the + * server certificate. + * + * @return the fqdn value. + */ + public String fqdn() { + return this.fqdn; + } + + /** + * Set the fqdn property: The host part of the bucket URL, resolving to the bucket IP address and allowed by the + * server certificate. + * + * @param fqdn the fqdn value to set. + * @return the BucketServerProperties object itself. + */ + public BucketServerProperties withFqdn(String fqdn) { + this.fqdn = fqdn; + return this; + } + + /** + * Get the certificateCommonName property: Certificate Common Name taken from the certificate installed on the + * bucket server. + * + * @return the certificateCommonName value. + */ + public String certificateCommonName() { + return this.certificateCommonName; + } + + /** + * Get the certificateExpiryDate property: The bucket server's certificate expiry date. + * + * @return the certificateExpiryDate value. + */ + public OffsetDateTime certificateExpiryDate() { + return this.certificateExpiryDate; + } + + /** + * Get the ipAddress property: The bucket server's IPv4 address. + * + * @return the ipAddress value. + */ + public String ipAddress() { + return this.ipAddress; + } + + /** + * Get the certificateObject property: A base64-encoded PEM file, which includes both the bucket server's + * certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only + * manner. + * + * @return the certificateObject value. + */ + public String certificateObject() { + return this.certificateObject; + } + + /** + * Set the certificateObject property: A base64-encoded PEM file, which includes both the bucket server's + * certificate and private key. It is used to authenticate the user and allows access to volume data in a read-only + * manner. + * + * @param certificateObject the certificateObject value to set. + * @return the BucketServerProperties object itself. + */ + public BucketServerProperties withCertificateObject(String certificateObject) { + this.certificateObject = certificateObject; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("fqdn", this.fqdn); + jsonWriter.writeStringField("certificateObject", this.certificateObject); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BucketServerProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BucketServerProperties if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the BucketServerProperties. + */ + public static BucketServerProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BucketServerProperties deserializedBucketServerProperties = new BucketServerProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("fqdn".equals(fieldName)) { + deserializedBucketServerProperties.fqdn = reader.getString(); + } else if ("certificateCommonName".equals(fieldName)) { + deserializedBucketServerProperties.certificateCommonName = reader.getString(); + } else if ("certificateExpiryDate".equals(fieldName)) { + deserializedBucketServerProperties.certificateExpiryDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("ipAddress".equals(fieldName)) { + deserializedBucketServerProperties.ipAddress = reader.getString(); + } else if ("certificateObject".equals(fieldName)) { + deserializedBucketServerProperties.certificateObject = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBucketServerProperties; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Buckets.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Buckets.java new file mode 100644 index 000000000000..2d41eb260979 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Buckets.java @@ -0,0 +1,225 @@ +// 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.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of Buckets. + */ +public interface Buckets { + /** + * Describes all buckets belonging to a volume + * + * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName); + + /** + * Describes all buckets belonging to a volume + * + * Describes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to + * the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of volume bucket resources as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); + + /** + * Describe a volume's bucket + * + * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, + * connect to the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume's bucket along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, + String bucketName, Context context); + + /** + * Describe a volume's bucket + * + * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, + * connect to the volume data contained in those buckets. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume's bucket. + */ + Bucket get(String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName); + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName); + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String bucketName, + Context context); + + /** + * Generate bucket access credentials + * + * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date + * and time of key pair (in UTC). + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair along with {@link Response}. + */ + Response generateCredentialsWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, String bucketName, BucketCredentialsExpiry body, Context context); + + /** + * Generate bucket access credentials + * + * Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date + * and time of key pair (in UTC). + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param bucketName The name of the bucket. + * @param body The bucket's Access and Secret key pair expiry time expressed as the number of days from now. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bucket Access Key, Secret Key, and Expiry date and time of the key pair. + */ + BucketGenerateCredentials generateCredentials(String resourceGroupName, String accountName, String poolName, + String volumeName, String bucketName, BucketCredentialsExpiry body); + + /** + * Describe a volume's bucket + * + * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, + * connect to the volume data contained in those buckets. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume's bucket along with {@link Response}. + */ + Bucket getById(String id); + + /** + * Describe a volume's bucket + * + * Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, + * connect to the volume data contained in those buckets. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the details of the specified volume's bucket along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Delete a volume's bucket + * + * Delete a volume's bucket. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new Bucket resource. + * + * @param name resource name. + * @return the first stage of the new Bucket definition. + */ + Bucket.DefinitionStages.Blank define(String name); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java index 439aa151a768..a4de2a68c44d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java @@ -106,6 +106,14 @@ public interface CapacityPool { */ Float utilizedThroughputMibps(); + /** + * Gets the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this + * will be accepted as input only for manual qosType pool with Flexible service level. + * + * @return the customThroughputMibps value. + */ + Float customThroughputMibps(); + /** * Gets the qosType property: The qos type of the pool. * @@ -241,8 +249,8 @@ interface WithServiceLevel { * The stage of the CapacityPool definition which contains all the minimum required properties for the resource * to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithQosType, - DefinitionStages.WithCoolAccess, DefinitionStages.WithEncryptionType { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithCustomThroughputMibps, + DefinitionStages.WithQosType, DefinitionStages.WithCoolAccess, DefinitionStages.WithEncryptionType { /** * Executes the create request. * @@ -272,6 +280,21 @@ interface WithTags { WithCreate withTags(Map tags); } + /** + * The stage of the CapacityPool definition allowing to specify customThroughputMibps. + */ + interface WithCustomThroughputMibps { + /** + * Specifies the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this + * pool and this will be accepted as input only for manual qosType pool with Flexible service level. + * + * @param customThroughputMibps Maximum throughput in MiB/s that can be achieved by this pool and this will + * be accepted as input only for manual qosType pool with Flexible service level. + * @return the next definition stage. + */ + WithCreate withCustomThroughputMibps(Float customThroughputMibps); + } + /** * The stage of the CapacityPool definition allowing to specify qosType. */ @@ -324,8 +347,8 @@ interface WithEncryptionType { /** * The template for CapacityPool update. */ - interface Update - extends UpdateStages.WithTags, UpdateStages.WithSize, UpdateStages.WithQosType, UpdateStages.WithCoolAccess { + interface Update extends UpdateStages.WithTags, UpdateStages.WithSize, UpdateStages.WithQosType, + UpdateStages.WithCoolAccess, UpdateStages.WithCustomThroughputMibps { /** * Executes the update request. * @@ -399,6 +422,21 @@ interface WithCoolAccess { */ Update withCoolAccess(Boolean coolAccess); } + + /** + * The stage of the CapacityPool update allowing to specify customThroughputMibps. + */ + interface WithCustomThroughputMibps { + /** + * Specifies the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this + * pool and this will be accepted as input only for manual qosType pool with Flexible service level. + * + * @param customThroughputMibps Maximum throughput in MiB/s that can be achieved by this pool and this will + * be accepted as input only for manual qosType pool with Flexible service level. + * @return the next definition stage. + */ + Update withCustomThroughputMibps(Float customThroughputMibps); + } } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java index e43fd6ab8cbc..28787795f85d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java @@ -172,6 +172,31 @@ public CapacityPoolPatch withCoolAccess(Boolean coolAccess) { return this; } + /** + * Get the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this + * will be accepted as input only for manual qosType pool with Flexible service level. + * + * @return the customThroughputMibps value. + */ + public Float customThroughputMibps() { + return this.innerProperties() == null ? null : this.innerProperties().customThroughputMibps(); + } + + /** + * Set the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this + * will be accepted as input only for manual qosType pool with Flexible service level. + * + * @param customThroughputMibps the customThroughputMibps value to set. + * @return the CapacityPoolPatch object itself. + */ + public CapacityPoolPatch withCustomThroughputMibps(Float customThroughputMibps) { + if (this.innerProperties() == null) { + this.innerProperties = new PoolPatchProperties(); + } + this.innerProperties().withCustomThroughputMibps(customThroughputMibps); + return this; + } + /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CifsUser.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CifsUser.java new file mode 100644 index 000000000000..01333bd46b4b --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CifsUser.java @@ -0,0 +1,95 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * CIFS username + * + * The effective CIFS username when accessing the volume data. + */ +@Fluent +public final class CifsUser implements JsonSerializable { + /* + * The CIFS user's username + */ + private String username; + + /** + * Creates an instance of CifsUser class. + */ + public CifsUser() { + } + + /** + * Get the username property: The CIFS user's username. + * + * @return the username value. + */ + public String username() { + return this.username; + } + + /** + * Set the username property: The CIFS user's username. + * + * @param username the username value to set. + * @return the CifsUser object itself. + */ + public CifsUser withUsername(String username) { + this.username = username; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("username", this.username); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CifsUser from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CifsUser if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IOException If an error occurs while reading the CifsUser. + */ + public static CifsUser fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CifsUser deserializedCifsUser = new CifsUser(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("username".equals(fieldName)) { + deserializedCifsUser.username = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCifsUser; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CredentialsStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CredentialsStatus.java new file mode 100644 index 000000000000..3c623824d7cf --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CredentialsStatus.java @@ -0,0 +1,60 @@ +// 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.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The bucket credentials status. There states: + * + * "NoCredentialsSet": Access and Secret key pair have not been generated. + * "CredentialsExpired": Access and Secret key pair have expired. + * "Active": The certificate has been installed and credentials are unexpired. + */ +public final class CredentialsStatus extends ExpandableStringEnum { + /** + * Static value NoCredentialsSet for CredentialsStatus. + */ + public static final CredentialsStatus NO_CREDENTIALS_SET = fromString("NoCredentialsSet"); + + /** + * Static value CredentialsExpired for CredentialsStatus. + */ + public static final CredentialsStatus CREDENTIALS_EXPIRED = fromString("CredentialsExpired"); + + /** + * Static value Active for CredentialsStatus. + */ + public static final CredentialsStatus ACTIVE = fromString("Active"); + + /** + * Creates a new instance of CredentialsStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CredentialsStatus() { + } + + /** + * Creates or finds a CredentialsStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding CredentialsStatus. + */ + public static CredentialsStatus fromString(String name) { + return fromString(name, CredentialsStatus.class); + } + + /** + * Gets known CredentialsStatus values. + * + * @return known CredentialsStatus values. + */ + public static Collection values() { + return values(CredentialsStatus.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java new file mode 100644 index 000000000000..fb747234bc48 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java @@ -0,0 +1,178 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Destination replication properties. + */ +@Fluent +public final class DestinationReplication implements JsonSerializable { + /* + * The resource ID of the remote volume + */ + private String resourceId; + + /* + * Indicates whether the replication is cross zone or cross region. + */ + private ReplicationType replicationType; + + /* + * The remote region for the destination volume. + */ + private String region; + + /* + * The remote zone for the destination volume. + */ + private String zone; + + /** + * Creates an instance of DestinationReplication class. + */ + public DestinationReplication() { + } + + /** + * Get the resourceId property: The resource ID of the remote volume. + * + * @return the resourceId value. + */ + public String resourceId() { + return this.resourceId; + } + + /** + * Set the resourceId property: The resource ID of the remote volume. + * + * @param resourceId the resourceId value to set. + * @return the DestinationReplication object itself. + */ + public DestinationReplication withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Get the replicationType property: Indicates whether the replication is cross zone or cross region. + * + * @return the replicationType value. + */ + public ReplicationType replicationType() { + return this.replicationType; + } + + /** + * Set the replicationType property: Indicates whether the replication is cross zone or cross region. + * + * @param replicationType the replicationType value to set. + * @return the DestinationReplication object itself. + */ + public DestinationReplication withReplicationType(ReplicationType replicationType) { + this.replicationType = replicationType; + return this; + } + + /** + * Get the region property: The remote region for the destination volume. + * + * @return the region value. + */ + public String region() { + return this.region; + } + + /** + * Set the region property: The remote region for the destination volume. + * + * @param region the region value to set. + * @return the DestinationReplication object itself. + */ + public DestinationReplication withRegion(String region) { + this.region = region; + return this; + } + + /** + * Get the zone property: The remote zone for the destination volume. + * + * @return the zone value. + */ + public String zone() { + return this.zone; + } + + /** + * Set the zone property: The remote zone for the destination volume. + * + * @param zone the zone value to set. + * @return the DestinationReplication object itself. + */ + public DestinationReplication withZone(String zone) { + this.zone = zone; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("resourceId", this.resourceId); + jsonWriter.writeStringField("replicationType", + this.replicationType == null ? null : this.replicationType.toString()); + jsonWriter.writeStringField("region", this.region); + jsonWriter.writeStringField("zone", this.zone); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DestinationReplication from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DestinationReplication if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the DestinationReplication. + */ + public static DestinationReplication fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DestinationReplication deserializedDestinationReplication = new DestinationReplication(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceId".equals(fieldName)) { + deserializedDestinationReplication.resourceId = reader.getString(); + } else if ("replicationType".equals(fieldName)) { + deserializedDestinationReplication.replicationType = ReplicationType.fromString(reader.getString()); + } else if ("region".equals(fieldName)) { + deserializedDestinationReplication.region = reader.getString(); + } else if ("zone".equals(fieldName)) { + deserializedDestinationReplication.zone = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDestinationReplication; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java index 2fd76144f364..15b02e5e0e29 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java @@ -27,6 +27,11 @@ public final class EncryptionIdentity implements JsonSerializable { + /** + * Static value ClusterPeerRequired for ExternalReplicationSetupStatus. + */ + public static final ExternalReplicationSetupStatus CLUSTER_PEER_REQUIRED = fromString("ClusterPeerRequired"); + + /** + * Static value ClusterPeerPending for ExternalReplicationSetupStatus. + */ + public static final ExternalReplicationSetupStatus CLUSTER_PEER_PENDING = fromString("ClusterPeerPending"); + + /** + * Static value VServerPeerRequired for ExternalReplicationSetupStatus. + */ + public static final ExternalReplicationSetupStatus VSERVER_PEER_REQUIRED = fromString("VServerPeerRequired"); + + /** + * Static value ReplicationCreateRequired for ExternalReplicationSetupStatus. + */ + public static final ExternalReplicationSetupStatus REPLICATION_CREATE_REQUIRED + = fromString("ReplicationCreateRequired"); + + /** + * Static value NoActionRequired for ExternalReplicationSetupStatus. + */ + public static final ExternalReplicationSetupStatus NO_ACTION_REQUIRED = fromString("NoActionRequired"); + + /** + * Creates a new instance of ExternalReplicationSetupStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ExternalReplicationSetupStatus() { + } + + /** + * Creates or finds a ExternalReplicationSetupStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding ExternalReplicationSetupStatus. + */ + public static ExternalReplicationSetupStatus fromString(String name) { + return fromString(name, ExternalReplicationSetupStatus.class); + } + + /** + * Gets known ExternalReplicationSetupStatus values. + * + * @return known ExternalReplicationSetupStatus values. + */ + public static Collection values() { + return values(ExternalReplicationSetupStatus.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileSystemUser.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileSystemUser.java new file mode 100644 index 000000000000..b5524b65a138 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileSystemUser.java @@ -0,0 +1,131 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * File System User + * + * File System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the + * user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be + * supplied, but not both. + */ +@Fluent +public final class FileSystemUser implements JsonSerializable { + /* + * The effective NFS User ID and Group ID when accessing the volume data. + */ + private NfsUser nfsUser; + + /* + * The effective CIFS username when accessing the volume data. + */ + private CifsUser cifsUser; + + /** + * Creates an instance of FileSystemUser class. + */ + public FileSystemUser() { + } + + /** + * Get the nfsUser property: The effective NFS User ID and Group ID when accessing the volume data. + * + * @return the nfsUser value. + */ + public NfsUser nfsUser() { + return this.nfsUser; + } + + /** + * Set the nfsUser property: The effective NFS User ID and Group ID when accessing the volume data. + * + * @param nfsUser the nfsUser value to set. + * @return the FileSystemUser object itself. + */ + public FileSystemUser withNfsUser(NfsUser nfsUser) { + this.nfsUser = nfsUser; + return this; + } + + /** + * Get the cifsUser property: The effective CIFS username when accessing the volume data. + * + * @return the cifsUser value. + */ + public CifsUser cifsUser() { + return this.cifsUser; + } + + /** + * Set the cifsUser property: The effective CIFS username when accessing the volume data. + * + * @param cifsUser the cifsUser value to set. + * @return the FileSystemUser object itself. + */ + public FileSystemUser withCifsUser(CifsUser cifsUser) { + this.cifsUser = cifsUser; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (nfsUser() != null) { + nfsUser().validate(); + } + if (cifsUser() != null) { + cifsUser().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("nfsUser", this.nfsUser); + jsonWriter.writeJsonField("cifsUser", this.cifsUser); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FileSystemUser from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FileSystemUser if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the FileSystemUser. + */ + public static FileSystemUser fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FileSystemUser deserializedFileSystemUser = new FileSystemUser(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nfsUser".equals(fieldName)) { + deserializedFileSystemUser.nfsUser = NfsUser.fromJson(reader); + } else if ("cifsUser".equals(fieldName)) { + deserializedFileSystemUser.cifsUser = CifsUser.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedFileSystemUser; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java new file mode 100644 index 000000000000..9d83b80b7f02 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java @@ -0,0 +1,213 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * LDAP configuration. + */ +@Fluent +public final class LdapConfiguration implements JsonSerializable { + /* + * Name of the LDAP configuration domain + */ + private String domain; + + /* + * List of LDAP server IP addresses (IPv4 only) for the LDAP domain. + */ + private List ldapServers; + + /* + * Specifies whether or not the LDAP traffic needs to be secured via TLS. + */ + private Boolean ldapOverTls; + + /* + * When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded ldap servers CA + * certificate. + */ + private String serverCACertificate; + + /* + * The CN host name used while generating the certificate, LDAP Over TLS requires the CN host name to create DNS + * host entry. + */ + private String certificateCNHost; + + /** + * Creates an instance of LdapConfiguration class. + */ + public LdapConfiguration() { + } + + /** + * Get the domain property: Name of the LDAP configuration domain. + * + * @return the domain value. + */ + public String domain() { + return this.domain; + } + + /** + * Set the domain property: Name of the LDAP configuration domain. + * + * @param domain the domain value to set. + * @return the LdapConfiguration object itself. + */ + public LdapConfiguration withDomain(String domain) { + this.domain = domain; + return this; + } + + /** + * Get the ldapServers property: List of LDAP server IP addresses (IPv4 only) for the LDAP domain. + * + * @return the ldapServers value. + */ + public List ldapServers() { + return this.ldapServers; + } + + /** + * Set the ldapServers property: List of LDAP server IP addresses (IPv4 only) for the LDAP domain. + * + * @param ldapServers the ldapServers value to set. + * @return the LdapConfiguration object itself. + */ + public LdapConfiguration withLdapServers(List ldapServers) { + this.ldapServers = ldapServers; + return this; + } + + /** + * Get the ldapOverTls property: Specifies whether or not the LDAP traffic needs to be secured via TLS. + * + * @return the ldapOverTls value. + */ + public Boolean ldapOverTls() { + return this.ldapOverTls; + } + + /** + * Set the ldapOverTls property: Specifies whether or not the LDAP traffic needs to be secured via TLS. + * + * @param ldapOverTls the ldapOverTls value to set. + * @return the LdapConfiguration object itself. + */ + public LdapConfiguration withLdapOverTls(Boolean ldapOverTls) { + this.ldapOverTls = ldapOverTls; + return this; + } + + /** + * Get the serverCACertificate property: When LDAP over SSL/TLS is enabled, the LDAP client is required to have + * base64 encoded ldap servers CA certificate. + * + * @return the serverCACertificate value. + */ + public String serverCACertificate() { + return this.serverCACertificate; + } + + /** + * Set the serverCACertificate property: When LDAP over SSL/TLS is enabled, the LDAP client is required to have + * base64 encoded ldap servers CA certificate. + * + * @param serverCACertificate the serverCACertificate value to set. + * @return the LdapConfiguration object itself. + */ + public LdapConfiguration withServerCACertificate(String serverCACertificate) { + this.serverCACertificate = serverCACertificate; + return this; + } + + /** + * Get the certificateCNHost property: The CN host name used while generating the certificate, LDAP Over TLS + * requires the CN host name to create DNS host entry. + * + * @return the certificateCNHost value. + */ + public String certificateCNHost() { + return this.certificateCNHost; + } + + /** + * Set the certificateCNHost property: The CN host name used while generating the certificate, LDAP Over TLS + * requires the CN host name to create DNS host entry. + * + * @param certificateCNHost the certificateCNHost value to set. + * @return the LdapConfiguration object itself. + */ + public LdapConfiguration withCertificateCNHost(String certificateCNHost) { + this.certificateCNHost = certificateCNHost; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("domain", this.domain); + jsonWriter.writeArrayField("ldapServers", this.ldapServers, (writer, element) -> writer.writeString(element)); + jsonWriter.writeBooleanField("ldapOverTLS", this.ldapOverTls); + jsonWriter.writeStringField("serverCACertificate", this.serverCACertificate); + jsonWriter.writeStringField("certificateCNHost", this.certificateCNHost); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LdapConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LdapConfiguration if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the LdapConfiguration. + */ + public static LdapConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LdapConfiguration deserializedLdapConfiguration = new LdapConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("domain".equals(fieldName)) { + deserializedLdapConfiguration.domain = reader.getString(); + } else if ("ldapServers".equals(fieldName)) { + List ldapServers = reader.readArray(reader1 -> reader1.getString()); + deserializedLdapConfiguration.ldapServers = ldapServers; + } else if ("ldapOverTLS".equals(fieldName)) { + deserializedLdapConfiguration.ldapOverTls = reader.getNullable(JsonReader::getBoolean); + } else if ("serverCACertificate".equals(fieldName)) { + deserializedLdapConfiguration.serverCACertificate = reader.getString(); + } else if ("certificateCNHost".equals(fieldName)) { + deserializedLdapConfiguration.certificateCNHost = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedLdapConfiguration; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapServerType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapServerType.java new file mode 100644 index 000000000000..05b5a0f91593 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapServerType.java @@ -0,0 +1,53 @@ +// 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.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * ldapServerType + * + * The type of the LDAP server. + */ +public final class LdapServerType extends ExpandableStringEnum { + /** + * Static value ActiveDirectory for LdapServerType. + */ + public static final LdapServerType ACTIVE_DIRECTORY = fromString("ActiveDirectory"); + + /** + * Static value OpenLDAP for LdapServerType. + */ + public static final LdapServerType OPEN_LDAP = fromString("OpenLDAP"); + + /** + * Creates a new instance of LdapServerType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public LdapServerType() { + } + + /** + * Creates or finds a LdapServerType from its string representation. + * + * @param name a name to look for. + * @return the corresponding LdapServerType. + */ + public static LdapServerType fromString(String name) { + return fromString(name, LdapServerType.class); + } + + /** + * Gets known LdapServerType values. + * + * @return known LdapServerType values. + */ + public static Collection values() { + return values(LdapServerType.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.java new file mode 100644 index 000000000000..743dd7e29be5 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.java @@ -0,0 +1,34 @@ +// 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.models; + +import com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner; +import java.util.List; + +/** + * An immutable client-side representation of ListQuotaReportResponse. + */ +public interface ListQuotaReportResponse { + /** + * Gets the value property: List of volume quota report records. + * + * @return the value value. + */ + List value(); + + /** + * Gets the nextLink property: URL to get the next set of results. + * + * @return the nextLink value. + */ + String nextLink(); + + /** + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResponseInner object. + * + * @return the inner object. + */ + ListQuotaReportResponseInner innerModel(); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MultiAdStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MultiAdStatus.java new file mode 100644 index 000000000000..89b96c73f21c --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MultiAdStatus.java @@ -0,0 +1,53 @@ +// 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.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * multiAdStatus + * + * MultiAD Status for the account. + */ +public final class MultiAdStatus extends ExpandableStringEnum { + /** + * Static value Disabled for MultiAdStatus. + */ + public static final MultiAdStatus DISABLED = fromString("Disabled"); + + /** + * Static value Enabled for MultiAdStatus. + */ + public static final MultiAdStatus ENABLED = fromString("Enabled"); + + /** + * Creates a new instance of MultiAdStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public MultiAdStatus() { + } + + /** + * Creates or finds a MultiAdStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding MultiAdStatus. + */ + public static MultiAdStatus fromString(String name) { + return fromString(name, MultiAdStatus.class); + } + + /** + * Gets known MultiAdStatus values. + * + * @return known MultiAdStatus values. + */ + public static Collection values() { + return values(MultiAdStatus.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java index 7da136ac980d..92a4dfe306b4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java @@ -100,6 +100,28 @@ public interface NetAppAccount { */ Boolean disableShowmount(); + /** + * Gets the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp + * accounts in the subscription and region and only affect non ldap NFSv4 volumes. + * + * @return the nfsV4IdDomain value. + */ + String nfsV4IdDomain(); + + /** + * Gets the multiAdStatus property: MultiAD Status for the account. + * + * @return the multiAdStatus value. + */ + MultiAdStatus multiAdStatus(); + + /** + * Gets the ldapConfiguration property: LDAP Configuration for the account. + * + * @return the ldapConfiguration value. + */ + LdapConfiguration ldapConfiguration(); + /** * Gets the region of the resource. * @@ -184,7 +206,8 @@ interface WithResourceGroup { * to be created, but also allows for any other optional properties to be specified. */ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, - DefinitionStages.WithActiveDirectories, DefinitionStages.WithEncryption { + DefinitionStages.WithActiveDirectories, DefinitionStages.WithEncryption, DefinitionStages.WithNfsV4IdDomain, + DefinitionStages.WithLdapConfiguration { /** * Executes the create request. * @@ -252,6 +275,34 @@ interface WithEncryption { */ WithCreate withEncryption(AccountEncryption encryption); } + + /** + * The stage of the NetAppAccount definition allowing to specify nfsV4IdDomain. + */ + interface WithNfsV4IdDomain { + /** + * Specifies the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all + * NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes.. + * + * @param nfsV4IdDomain Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts + * in the subscription and region and only affect non ldap NFSv4 volumes. + * @return the next definition stage. + */ + WithCreate withNfsV4IdDomain(String nfsV4IdDomain); + } + + /** + * The stage of the NetAppAccount definition allowing to specify ldapConfiguration. + */ + interface WithLdapConfiguration { + /** + * Specifies the ldapConfiguration property: LDAP Configuration for the account.. + * + * @param ldapConfiguration LDAP Configuration for the account. + * @return the next definition stage. + */ + WithCreate withLdapConfiguration(LdapConfiguration ldapConfiguration); + } } /** @@ -265,7 +316,7 @@ interface WithEncryption { * The template for NetAppAccount update. */ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithActiveDirectories, - UpdateStages.WithEncryption { + UpdateStages.WithEncryption, UpdateStages.WithNfsV4IdDomain, UpdateStages.WithLdapConfiguration { /** * Executes the update request. * @@ -337,6 +388,34 @@ interface WithEncryption { */ Update withEncryption(AccountEncryption encryption); } + + /** + * The stage of the NetAppAccount update allowing to specify nfsV4IdDomain. + */ + interface WithNfsV4IdDomain { + /** + * Specifies the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all + * NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes.. + * + * @param nfsV4IdDomain Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts + * in the subscription and region and only affect non ldap NFSv4 volumes. + * @return the next definition stage. + */ + Update withNfsV4IdDomain(String nfsV4IdDomain); + } + + /** + * The stage of the NetAppAccount update allowing to specify ldapConfiguration. + */ + interface WithLdapConfiguration { + /** + * Specifies the ldapConfiguration property: LDAP Configuration for the account.. + * + * @param ldapConfiguration LDAP Configuration for the account. + * @return the next definition stage. + */ + Update withLdapConfiguration(LdapConfiguration ldapConfiguration); + } } /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java index 5fc459941670..02f096ae13ff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java @@ -192,6 +192,63 @@ public Boolean disableShowmount() { return this.innerProperties() == null ? null : this.innerProperties().disableShowmount(); } + /** + * Get the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp + * accounts in the subscription and region and only affect non ldap NFSv4 volumes. + * + * @return the nfsV4IdDomain value. + */ + public String nfsV4IdDomain() { + return this.innerProperties() == null ? null : this.innerProperties().nfsV4IdDomain(); + } + + /** + * Set the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp + * accounts in the subscription and region and only affect non ldap NFSv4 volumes. + * + * @param nfsV4IdDomain the nfsV4IdDomain value to set. + * @return the NetAppAccountPatch object itself. + */ + public NetAppAccountPatch withNfsV4IdDomain(String nfsV4IdDomain) { + if (this.innerProperties() == null) { + this.innerProperties = new AccountProperties(); + } + this.innerProperties().withNfsV4IdDomain(nfsV4IdDomain); + return this; + } + + /** + * Get the multiAdStatus property: MultiAD Status for the account. + * + * @return the multiAdStatus value. + */ + public MultiAdStatus multiAdStatus() { + return this.innerProperties() == null ? null : this.innerProperties().multiAdStatus(); + } + + /** + * Get the ldapConfiguration property: LDAP Configuration for the account. + * + * @return the ldapConfiguration value. + */ + public LdapConfiguration ldapConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().ldapConfiguration(); + } + + /** + * Set the ldapConfiguration property: LDAP Configuration for the account. + * + * @param ldapConfiguration the ldapConfiguration value to set. + * @return the NetAppAccountPatch object itself. + */ + public NetAppAccountPatch withLdapConfiguration(LdapConfiguration ldapConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new AccountProperties(); + } + this.innerProperties().withLdapConfiguration(ldapConfiguration); + return this; + } + /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java index 5cf1dcac7d97..18b63483f609 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java @@ -23,7 +23,7 @@ public interface NetAppResourceQuotaLimits { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. */ - PagedIterable list(String location); + PagedIterable list(String location); /** * Get quota limits @@ -37,7 +37,7 @@ public interface NetAppResourceQuotaLimits { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the default and current limits for quotas as paginated response with {@link PagedIterable}. */ - PagedIterable list(String location, Context context); + PagedIterable list(String location, Context context); /** * Get quota limits @@ -52,7 +52,7 @@ public interface NetAppResourceQuotaLimits { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the default and current subscription quota limit along with {@link Response}. */ - Response getWithResponse(String location, String quotaLimitName, Context context); + Response getWithResponse(String location, String quotaLimitName, Context context); /** * Get quota limits @@ -66,5 +66,5 @@ public interface NetAppResourceQuotaLimits { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the default and current subscription quota limit. */ - SubscriptionQuotaItem get(String location, String quotaLimitName); + QuotaItem get(String location, String quotaLimitName); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java new file mode 100644 index 000000000000..e4b1e46d3fd1 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java @@ -0,0 +1,77 @@ +// 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.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of NetAppResourceQuotaLimitsAccounts. + */ +public interface NetAppResourceQuotaLimitsAccounts { + /** + * Gets a list of quota limits for all quotas that are under account. + * + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets a list of quota limits for all quotas that are under account. + * + * Gets a list of quota limits for all quotas that are under account. Currently PoolsPerAccount is the only one. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of quota limits for all quotas that are under account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the quota limits for the specific quota that is provided under the account. + * + * Get the default, current and usages account quota limit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default, current and usages account quota limit along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, String quotaLimitName, + Context context); + + /** + * Gets the quota limits for the specific quota that is provided under the account. + * + * Get the default, current and usages account quota limit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param quotaLimitName The name of the Quota Limit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the default, current and usages account quota limit. + */ + QuotaItem get(String resourceGroupName, String accountName, String quotaLimitName); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java new file mode 100644 index 000000000000..c6b94eea66e4 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java @@ -0,0 +1,70 @@ +// 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.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of NetAppResourceUsages. + */ +public interface NetAppResourceUsages { + /** + * Get usages + * + * Get current subscription usages. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usages as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String location); + + /** + * Get usages + * + * Get current subscription usages. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usages as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String location, Context context); + + /** + * Get specific type of usage + * + * Get current subscription usage of the specific type. + * + * @param location The name of the Azure region. + * @param usageType The type of usage. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usage of the specific type along with {@link Response}. + */ + Response getWithResponse(String location, String usageType, Context context); + + /** + * Get specific type of usage + * + * Get current subscription usage of the specific type. + * + * @param location The name of the Azure region. + * @param usageType The type of usage. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return current subscription usage of the specific type. + */ + UsageResult get(String location, String usageType); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetappProvisioningState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetappProvisioningState.java new file mode 100644 index 000000000000..e60dd90819ef --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetappProvisioningState.java @@ -0,0 +1,76 @@ +// 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.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Provisioning state of the resource. + */ +public final class NetappProvisioningState extends ExpandableStringEnum { + /** + * Static value Succeeded for NetappProvisioningState. + */ + public static final NetappProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Static value Failed for NetappProvisioningState. + */ + public static final NetappProvisioningState FAILED = fromString("Failed"); + + /** + * Static value Canceled for NetappProvisioningState. + */ + public static final NetappProvisioningState CANCELED = fromString("Canceled"); + + /** + * Static value Provisioning for NetappProvisioningState. + */ + public static final NetappProvisioningState PROVISIONING = fromString("Provisioning"); + + /** + * Static value Updating for NetappProvisioningState. + */ + public static final NetappProvisioningState UPDATING = fromString("Updating"); + + /** + * Static value Deleting for NetappProvisioningState. + */ + public static final NetappProvisioningState DELETING = fromString("Deleting"); + + /** + * Static value Accepted for NetappProvisioningState. + */ + public static final NetappProvisioningState ACCEPTED = fromString("Accepted"); + + /** + * Creates a new instance of NetappProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public NetappProvisioningState() { + } + + /** + * Creates or finds a NetappProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding NetappProvisioningState. + */ + public static NetappProvisioningState fromString(String name) { + return fromString(name, NetappProvisioningState.class); + } + + /** + * Gets known NetappProvisioningState values. + * + * @return known NetappProvisioningState values. + */ + public static Collection values() { + return values(NetappProvisioningState.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NfsUser.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NfsUser.java new file mode 100644 index 000000000000..961a42b40f06 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NfsUser.java @@ -0,0 +1,123 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * NFS user details + * + * The effective NFS User ID and Group ID when accessing the volume data. + */ +@Fluent +public final class NfsUser implements JsonSerializable { + /* + * The NFS user's UID + */ + private Long userId; + + /* + * The NFS user's GID + */ + private Long groupId; + + /** + * Creates an instance of NfsUser class. + */ + public NfsUser() { + } + + /** + * Get the userId property: The NFS user's UID. + * + * @return the userId value. + */ + public Long userId() { + return this.userId; + } + + /** + * Set the userId property: The NFS user's UID. + * + * @param userId the userId value to set. + * @return the NfsUser object itself. + */ + public NfsUser withUserId(Long userId) { + this.userId = userId; + return this; + } + + /** + * Get the groupId property: The NFS user's GID. + * + * @return the groupId value. + */ + public Long groupId() { + return this.groupId; + } + + /** + * Set the groupId property: The NFS user's GID. + * + * @param groupId the groupId value to set. + * @return the NfsUser object itself. + */ + public NfsUser withGroupId(Long groupId) { + this.groupId = groupId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("userId", this.userId); + jsonWriter.writeNumberField("groupId", this.groupId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NfsUser from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NfsUser if the JsonReader was pointing to an instance of it, or null if it was pointing to + * JSON null. + * @throws IOException If an error occurs while reading the NfsUser. + */ + public static NfsUser fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NfsUser deserializedNfsUser = new NfsUser(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("userId".equals(fieldName)) { + deserializedNfsUser.userId = reader.getNullable(JsonReader::getLong); + } else if ("groupId".equals(fieldName)) { + deserializedNfsUser.groupId = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedNfsUser; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java index aeb694cf2774..d3265913aa56 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java @@ -24,6 +24,11 @@ public final class OperationListResult implements JsonSerializable value; + /* + * URL to get the next set of operation list results (if there are any). + */ + private String nextLink; + /** * Creates an instance of OperationListResult class. */ @@ -50,6 +55,15 @@ public OperationListResult withValue(List value) { return this; } + /** + * Get the nextLink property: URL to get the next set of operation list results (if there are any). + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + /** * Validates the instance. * @@ -89,6 +103,8 @@ public static OperationListResult fromJson(JsonReader jsonReader) throws IOExcep if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> OperationInner.fromJson(reader1)); deserializedOperationListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedOperationListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItem.java similarity index 78% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItem.java index 82460e375806..8cf335327eee 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItem.java @@ -5,12 +5,12 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.management.SystemData; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; +import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; /** - * An immutable client-side representation of SubscriptionQuotaItem. + * An immutable client-side representation of QuotaItem. */ -public interface SubscriptionQuotaItem { +public interface QuotaItem { /** * Gets the id property: Fully qualified resource Id for the resource. * @@ -54,9 +54,16 @@ public interface SubscriptionQuotaItem { Integer defaultProperty(); /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner object. + * Gets the usage property: The usage quota value. + * + * @return the usage value. + */ + Integer usage(); + + /** + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner object. * * @return the inner object. */ - SubscriptionQuotaItemInner innerModel(); + QuotaItemInner innerModel(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItemList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItemList.java new file mode 100644 index 000000000000..c3619941bd17 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaItemList.java @@ -0,0 +1,127 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.fluent.models.QuotaItemInner; +import java.io.IOException; +import java.util.List; + +/** + * List of Quota Items. + */ +@Fluent +public final class QuotaItemList implements JsonSerializable { + /* + * A list of QuotaItems + */ + private List value; + + /* + * URL to get the next set of results. + */ + private String nextLink; + + /** + * Creates an instance of QuotaItemList class. + */ + public QuotaItemList() { + } + + /** + * Get the value property: A list of QuotaItems. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: A list of QuotaItems. + * + * @param value the value value to set. + * @return the QuotaItemList object itself. + */ + public QuotaItemList withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: URL to get the next set of results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: URL to get the next set of results. + * + * @param nextLink the nextLink value to set. + * @return the QuotaItemList object itself. + */ + public QuotaItemList withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of QuotaItemList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of QuotaItemList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the QuotaItemList. + */ + public static QuotaItemList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + QuotaItemList deserializedQuotaItemList = new QuotaItemList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> QuotaItemInner.fromJson(reader1)); + deserializedQuotaItemList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedQuotaItemList.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedQuotaItemList; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaReport.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaReport.java new file mode 100644 index 000000000000..a30e5c5d9e71 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaReport.java @@ -0,0 +1,238 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Quota report record properties. + */ +@Fluent +public final class QuotaReport implements JsonSerializable { + /* + * Type of quota + */ + private Type quotaType; + + /* + * UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ + * command for the user or group and SID can be found by running + */ + private String quotaTarget; + + /* + * Specifies the current usage in kibibytes for the user/group quota. + */ + private Long quotaLimitUsedInKiBs; + + /* + * Specifies the total size limit in kibibytes for the user/group quota. + */ + private Long quotaLimitTotalInKiBs; + + /* + * Percentage of used size compared to total size. + */ + private Float percentageUsed; + + /* + * Flag to indicate whether the quota is derived from default quota. + */ + private Boolean isDerivedQuota; + + /** + * Creates an instance of QuotaReport class. + */ + public QuotaReport() { + } + + /** + * Get the quotaType property: Type of quota. + * + * @return the quotaType value. + */ + public Type quotaType() { + return this.quotaType; + } + + /** + * Set the quotaType property: Type of quota. + * + * @param quotaType the quotaType value to set. + * @return the QuotaReport object itself. + */ + public QuotaReport withQuotaType(Type quotaType) { + this.quotaType = quotaType; + return this; + } + + /** + * Get the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found + * by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount + * where name='user-name' get sid>. + * + * @return the quotaTarget value. + */ + public String quotaTarget() { + return this.quotaTarget; + } + + /** + * Set the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found + * by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount + * where name='user-name' get sid>. + * + * @param quotaTarget the quotaTarget value to set. + * @return the QuotaReport object itself. + */ + public QuotaReport withQuotaTarget(String quotaTarget) { + this.quotaTarget = quotaTarget; + return this; + } + + /** + * Get the quotaLimitUsedInKiBs property: Specifies the current usage in kibibytes for the user/group quota. + * + * @return the quotaLimitUsedInKiBs value. + */ + public Long quotaLimitUsedInKiBs() { + return this.quotaLimitUsedInKiBs; + } + + /** + * Set the quotaLimitUsedInKiBs property: Specifies the current usage in kibibytes for the user/group quota. + * + * @param quotaLimitUsedInKiBs the quotaLimitUsedInKiBs value to set. + * @return the QuotaReport object itself. + */ + public QuotaReport withQuotaLimitUsedInKiBs(Long quotaLimitUsedInKiBs) { + this.quotaLimitUsedInKiBs = quotaLimitUsedInKiBs; + return this; + } + + /** + * Get the quotaLimitTotalInKiBs property: Specifies the total size limit in kibibytes for the user/group quota. + * + * @return the quotaLimitTotalInKiBs value. + */ + public Long quotaLimitTotalInKiBs() { + return this.quotaLimitTotalInKiBs; + } + + /** + * Set the quotaLimitTotalInKiBs property: Specifies the total size limit in kibibytes for the user/group quota. + * + * @param quotaLimitTotalInKiBs the quotaLimitTotalInKiBs value to set. + * @return the QuotaReport object itself. + */ + public QuotaReport withQuotaLimitTotalInKiBs(Long quotaLimitTotalInKiBs) { + this.quotaLimitTotalInKiBs = quotaLimitTotalInKiBs; + return this; + } + + /** + * Get the percentageUsed property: Percentage of used size compared to total size. + * + * @return the percentageUsed value. + */ + public Float percentageUsed() { + return this.percentageUsed; + } + + /** + * Set the percentageUsed property: Percentage of used size compared to total size. + * + * @param percentageUsed the percentageUsed value to set. + * @return the QuotaReport object itself. + */ + public QuotaReport withPercentageUsed(Float percentageUsed) { + this.percentageUsed = percentageUsed; + return this; + } + + /** + * Get the isDerivedQuota property: Flag to indicate whether the quota is derived from default quota. + * + * @return the isDerivedQuota value. + */ + public Boolean isDerivedQuota() { + return this.isDerivedQuota; + } + + /** + * Set the isDerivedQuota property: Flag to indicate whether the quota is derived from default quota. + * + * @param isDerivedQuota the isDerivedQuota value to set. + * @return the QuotaReport object itself. + */ + public QuotaReport withIsDerivedQuota(Boolean isDerivedQuota) { + this.isDerivedQuota = isDerivedQuota; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("quotaType", this.quotaType == null ? null : this.quotaType.toString()); + jsonWriter.writeStringField("quotaTarget", this.quotaTarget); + jsonWriter.writeNumberField("quotaLimitUsedInKiBs", this.quotaLimitUsedInKiBs); + jsonWriter.writeNumberField("quotaLimitTotalInKiBs", this.quotaLimitTotalInKiBs); + jsonWriter.writeNumberField("percentageUsed", this.percentageUsed); + jsonWriter.writeBooleanField("isDerivedQuota", this.isDerivedQuota); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of QuotaReport from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of QuotaReport if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the QuotaReport. + */ + public static QuotaReport fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + QuotaReport deserializedQuotaReport = new QuotaReport(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("quotaType".equals(fieldName)) { + deserializedQuotaReport.quotaType = Type.fromString(reader.getString()); + } else if ("quotaTarget".equals(fieldName)) { + deserializedQuotaReport.quotaTarget = reader.getString(); + } else if ("quotaLimitUsedInKiBs".equals(fieldName)) { + deserializedQuotaReport.quotaLimitUsedInKiBs = reader.getNullable(JsonReader::getLong); + } else if ("quotaLimitTotalInKiBs".equals(fieldName)) { + deserializedQuotaReport.quotaLimitTotalInKiBs = reader.getNullable(JsonReader::getLong); + } else if ("percentageUsed".equals(fieldName)) { + deserializedQuotaReport.percentageUsed = reader.getNullable(JsonReader::getFloat); + } else if ("isDerivedQuota".equals(fieldName)) { + deserializedQuotaReport.isDerivedQuota = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedQuotaReport; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java index 5667c07c15b7..b5c1d8b7e298 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * Replication properties. @@ -46,6 +47,22 @@ public final class ReplicationObject implements JsonSerializable destinationReplications; + + /* + * Property that only applies to external replications. Provides a machine-readable value for the status of the + * external replication setup. + */ + private ExternalReplicationSetupStatus externalReplicationSetupStatus; + + /* + * Contains human-readable instructions on what the next step is to finish the external replication setup. + */ + private String externalReplicationSetupInfo; + /** * Creates an instance of ReplicationObject class. */ @@ -71,18 +88,6 @@ public EndpointType endpointType() { return this.endpointType; } - /** - * Set the endpointType property: Indicates whether the local volume is the source or destination for the Volume - * Replication. - * - * @param endpointType the endpointType value to set. - * @return the ReplicationObject object itself. - */ - public ReplicationObject withEndpointType(EndpointType endpointType) { - this.endpointType = endpointType; - return this; - } - /** * Get the replicationSchedule property: Schedule. * @@ -167,6 +172,35 @@ public ReplicationObject withRemoteVolumeRegion(String remoteVolumeRegion) { return this; } + /** + * Get the destinationReplications property: A list of destination replications. + * + * @return the destinationReplications value. + */ + public List destinationReplications() { + return this.destinationReplications; + } + + /** + * Get the externalReplicationSetupStatus property: Property that only applies to external replications. Provides a + * machine-readable value for the status of the external replication setup. + * + * @return the externalReplicationSetupStatus value. + */ + public ExternalReplicationSetupStatus externalReplicationSetupStatus() { + return this.externalReplicationSetupStatus; + } + + /** + * Get the externalReplicationSetupInfo property: Contains human-readable instructions on what the next step is to + * finish the external replication setup. + * + * @return the externalReplicationSetupInfo value. + */ + public String externalReplicationSetupInfo() { + return this.externalReplicationSetupInfo; + } + /** * Validates the instance. * @@ -176,6 +210,9 @@ public void validate() { if (remotePath() != null) { remotePath().validate(); } + if (destinationReplications() != null) { + destinationReplications().forEach(e -> e.validate()); + } } /** @@ -184,7 +221,6 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); jsonWriter.writeStringField("replicationSchedule", this.replicationSchedule == null ? null : this.replicationSchedule.toString()); jsonWriter.writeStringField("remoteVolumeResourceId", this.remoteVolumeResourceId); @@ -221,6 +257,15 @@ public static ReplicationObject fromJson(JsonReader jsonReader) throws IOExcepti deserializedReplicationObject.remotePath = RemotePath.fromJson(reader); } else if ("remoteVolumeRegion".equals(fieldName)) { deserializedReplicationObject.remoteVolumeRegion = reader.getString(); + } else if ("destinationReplications".equals(fieldName)) { + List destinationReplications + = reader.readArray(reader1 -> DestinationReplication.fromJson(reader1)); + deserializedReplicationObject.destinationReplications = destinationReplications; + } else if ("externalReplicationSetupStatus".equals(fieldName)) { + deserializedReplicationObject.externalReplicationSetupStatus + = ExternalReplicationSetupStatus.fromString(reader.getString()); + } else if ("externalReplicationSetupInfo".equals(fieldName)) { + deserializedReplicationObject.externalReplicationSetupInfo = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java new file mode 100644 index 000000000000..36f09f42710b --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java @@ -0,0 +1,51 @@ +// 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.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Indicates whether the replication is cross zone or cross region. + */ +public final class ReplicationType extends ExpandableStringEnum { + /** + * Static value CrossRegionReplication for ReplicationType. + */ + public static final ReplicationType CROSS_REGION_REPLICATION = fromString("CrossRegionReplication"); + + /** + * Static value CrossZoneReplication for ReplicationType. + */ + public static final ReplicationType CROSS_ZONE_REPLICATION = fromString("CrossZoneReplication"); + + /** + * Creates a new instance of ReplicationType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ReplicationType() { + } + + /** + * Creates or finds a ReplicationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ReplicationType. + */ + public static ReplicationType fromString(String name) { + return fromString(name, ReplicationType.class); + } + + /** + * Gets known ReplicationType values. + * + * @return known ReplicationType values. + */ + public static Collection values() { + return values(ReplicationType.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java index 50199244bda4..e4f0cb97a054 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java @@ -33,6 +33,11 @@ public final class ServiceLevel extends ExpandableStringEnum { */ public static final ServiceLevel STANDARD_ZRS = fromString("StandardZRS"); + /** + * Static value Flexible for ServiceLevel. + */ + public static final ServiceLevel FLEXIBLE = fromString("Flexible"); + /** * Creates a new instance of ServiceLevel value. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java deleted file mode 100644 index 3533aa8a5ae9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java +++ /dev/null @@ -1,100 +0,0 @@ -// 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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; -import java.io.IOException; -import java.util.List; - -/** - * List of Subscription Quota Items. - */ -@Fluent -public final class SubscriptionQuotaItemList implements JsonSerializable { - /* - * A list of SubscriptionQuotaItems - */ - private List value; - - /** - * Creates an instance of SubscriptionQuotaItemList class. - */ - public SubscriptionQuotaItemList() { - } - - /** - * Get the value property: A list of SubscriptionQuotaItems. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: A list of SubscriptionQuotaItems. - * - * @param value the value value to set. - * @return the SubscriptionQuotaItemList object itself. - */ - public SubscriptionQuotaItemList withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SubscriptionQuotaItemList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SubscriptionQuotaItemList if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IOException If an error occurs while reading the SubscriptionQuotaItemList. - */ - public static SubscriptionQuotaItemList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SubscriptionQuotaItemList deserializedSubscriptionQuotaItemList = new SubscriptionQuotaItemList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> SubscriptionQuotaItemInner.fromJson(reader1)); - deserializedSubscriptionQuotaItemList.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedSubscriptionQuotaItemList; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Type.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Type.java index 7e6c467bdb64..abe9a850b6b0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Type.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Type.java @@ -10,7 +10,7 @@ /** * quotaType * - * Type of quota. + * Type of quota rule. */ public final class Type extends ExpandableStringEnum { /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java new file mode 100644 index 000000000000..5ceaa6565eeb --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java @@ -0,0 +1,121 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The name of the usage. + */ +@Fluent +public final class UsageName implements JsonSerializable { + /* + * The name of the usage. + */ + private String value; + + /* + * The localized name of the usage. + */ + private String localizedValue; + + /** + * Creates an instance of UsageName class. + */ + public UsageName() { + } + + /** + * Get the value property: The name of the usage. + * + * @return the value value. + */ + public String value() { + return this.value; + } + + /** + * Set the value property: The name of the usage. + * + * @param value the value value to set. + * @return the UsageName object itself. + */ + public UsageName withValue(String value) { + this.value = value; + return this; + } + + /** + * Get the localizedValue property: The localized name of the usage. + * + * @return the localizedValue value. + */ + public String localizedValue() { + return this.localizedValue; + } + + /** + * Set the localizedValue property: The localized name of the usage. + * + * @param localizedValue the localizedValue value to set. + * @return the UsageName object itself. + */ + public UsageName withLocalizedValue(String localizedValue) { + this.localizedValue = localizedValue; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("value", this.value); + jsonWriter.writeStringField("localizedValue", this.localizedValue); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UsageName from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UsageName if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IOException If an error occurs while reading the UsageName. + */ + public static UsageName fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UsageName deserializedUsageName = new UsageName(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + deserializedUsageName.value = reader.getString(); + } else if ("localizedValue".equals(fieldName)) { + deserializedUsageName.localizedValue = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUsageName; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java new file mode 100644 index 000000000000..d23f1134a2ee --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java @@ -0,0 +1,54 @@ +// 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.models; + +import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner; + +/** + * An immutable client-side representation of UsageResult. + */ +public interface UsageResult { + /** + * Gets the id property: The id of the usage. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the usage. + * + * @return the name value. + */ + UsageName name(); + + /** + * Gets the currentValue property: The current usage value for the subscription. + * + * @return the currentValue value. + */ + Integer currentValue(); + + /** + * Gets the limit property: The limit of the usage. + * + * @return the limit value. + */ + Integer limit(); + + /** + * Gets the unit property: The unit of the usage. + * + * @return the unit value. + */ + String unit(); + + /** + * Gets the inner com.azure.resourcemanager.netapp.fluent.models.UsageResultInner object. + * + * @return the inner object. + */ + UsageResultInner innerModel(); +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsagesListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsagesListResult.java new file mode 100644 index 000000000000..31542ca15c2e --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UsagesListResult.java @@ -0,0 +1,127 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner; +import java.io.IOException; +import java.util.List; + +/** + * Usages result. + */ +@Fluent +public final class UsagesListResult implements JsonSerializable { + /* + * A list of usages + */ + private List value; + + /* + * URL to get the next set of results. + */ + private String nextLink; + + /** + * Creates an instance of UsagesListResult class. + */ + public UsagesListResult() { + } + + /** + * Get the value property: A list of usages. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: A list of usages. + * + * @param value the value value to set. + * @return the UsagesListResult object itself. + */ + public UsagesListResult withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: URL to get the next set of results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: URL to get the next set of results. + * + * @param nextLink the nextLink value to set. + * @return the UsagesListResult object itself. + */ + public UsagesListResult withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UsagesListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UsagesListResult if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the UsagesListResult. + */ + public static UsagesListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UsagesListResult deserializedUsagesListResult = new UsagesListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> UsageResultInner.fromJson(reader1)); + deserializedUsagesListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedUsagesListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUsagesListResult; + }); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java index 48d9c7d66fce..71843ee7eecd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java @@ -202,7 +202,7 @@ public interface Volume { /** * Gets the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. + * set type to DataProtection. For creating clone volume, set type to ShortTermClone. * * @return the volumeType value. */ @@ -216,6 +216,16 @@ public interface Volume { */ VolumePropertiesDataProtection dataProtection(); + /** + * Gets the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, + * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically + * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term + * clone volume, set the property as accepted. + * + * @return the acceptGrowCapacityPoolForShortTermCloneSplit value. + */ + AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit(); + /** * Gets the isRestoring property: Restoring. * @@ -319,6 +329,13 @@ public interface Volume { */ Boolean ldapEnabled(); + /** + * Gets the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. + * + * @return the ldapServerType value. + */ + LdapServerType ldapServerType(); + /** * Gets the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. * @@ -362,7 +379,10 @@ public interface Volume { * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. + * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, + * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user + * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain + * as its last saved value only. * * @return the unixPermissions value. */ @@ -512,6 +532,20 @@ public interface Volume { */ String originatingResourceId(); + /** + * Gets the inheritedSizeInBytes property: Space shared by short term clone volume with parent volume in bytes. + * + * @return the inheritedSizeInBytes value. + */ + Long inheritedSizeInBytes(); + + /** + * Gets the language property: Language supported for volume. + * + * @return the language value. + */ + VolumeLanguage language(); + /** * Gets the region of the resource. * @@ -650,20 +684,20 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithZon DefinitionStages.WithServiceLevel, DefinitionStages.WithExportPolicy, DefinitionStages.WithProtocolTypes, DefinitionStages.WithSnapshotId, DefinitionStages.WithDeleteBaseSnapshot, DefinitionStages.WithBackupId, DefinitionStages.WithNetworkFeatures, DefinitionStages.WithVolumeType, DefinitionStages.WithDataProtection, - DefinitionStages.WithIsRestoring, DefinitionStages.WithSnapshotDirectoryVisible, - DefinitionStages.WithKerberosEnabled, DefinitionStages.WithSecurityStyle, - DefinitionStages.WithSmbEncryption, DefinitionStages.WithSmbAccessBasedEnumeration, - DefinitionStages.WithSmbNonBrowsable, DefinitionStages.WithSmbContinuouslyAvailable, - DefinitionStages.WithThroughputMibps, DefinitionStages.WithEncryptionKeySource, - DefinitionStages.WithKeyVaultPrivateEndpointResourceId, DefinitionStages.WithLdapEnabled, - DefinitionStages.WithCoolAccess, DefinitionStages.WithCoolnessPeriod, - DefinitionStages.WithCoolAccessRetrievalPolicy, DefinitionStages.WithCoolAccessTieringPolicy, - DefinitionStages.WithUnixPermissions, DefinitionStages.WithAvsDataStore, - DefinitionStages.WithIsDefaultQuotaEnabled, DefinitionStages.WithDefaultUserQuotaInKiBs, - DefinitionStages.WithDefaultGroupQuotaInKiBs, DefinitionStages.WithCapacityPoolResourceId, - DefinitionStages.WithProximityPlacementGroup, DefinitionStages.WithVolumeSpecName, - DefinitionStages.WithPlacementRules, DefinitionStages.WithEnableSubvolumes, - DefinitionStages.WithIsLargeVolume { + DefinitionStages.WithAcceptGrowCapacityPoolForShortTermCloneSplit, + DefinitionStages.WithSnapshotDirectoryVisible, DefinitionStages.WithKerberosEnabled, + DefinitionStages.WithSecurityStyle, DefinitionStages.WithSmbEncryption, + DefinitionStages.WithSmbAccessBasedEnumeration, DefinitionStages.WithSmbNonBrowsable, + DefinitionStages.WithSmbContinuouslyAvailable, DefinitionStages.WithThroughputMibps, + DefinitionStages.WithEncryptionKeySource, DefinitionStages.WithKeyVaultPrivateEndpointResourceId, + DefinitionStages.WithLdapEnabled, DefinitionStages.WithLdapServerType, DefinitionStages.WithCoolAccess, + DefinitionStages.WithCoolnessPeriod, DefinitionStages.WithCoolAccessRetrievalPolicy, + DefinitionStages.WithCoolAccessTieringPolicy, DefinitionStages.WithUnixPermissions, + DefinitionStages.WithAvsDataStore, DefinitionStages.WithIsDefaultQuotaEnabled, + DefinitionStages.WithDefaultUserQuotaInKiBs, DefinitionStages.WithDefaultGroupQuotaInKiBs, + DefinitionStages.WithCapacityPoolResourceId, DefinitionStages.WithProximityPlacementGroup, + DefinitionStages.WithVolumeSpecName, DefinitionStages.WithPlacementRules, + DefinitionStages.WithEnableSubvolumes, DefinitionStages.WithIsLargeVolume, DefinitionStages.WithLanguage { /** * Executes the create request. * @@ -807,10 +841,10 @@ interface WithNetworkFeatures { interface WithVolumeType { /** * Specifies the volumeType property: What type of volume is this. For destination volumes in Cross Region - * Replication, set type to DataProtection. + * Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone. * * @param volumeType What type of volume is this. For destination volumes in Cross Region Replication, set - * type to DataProtection. + * type to DataProtection. For creating clone volume, set type to ShortTermClone. * @return the next definition stage. */ WithCreate withVolumeType(String volumeType); @@ -832,16 +866,23 @@ interface WithDataProtection { } /** - * The stage of the Volume definition allowing to specify isRestoring. + * The stage of the Volume definition allowing to specify acceptGrowCapacityPoolForShortTermCloneSplit. */ - interface WithIsRestoring { + interface WithAcceptGrowCapacityPoolForShortTermCloneSplit { /** - * Specifies the isRestoring property: Restoring. + * Specifies the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term + * clone volume, if the parent pool does not have enough space to accommodate the volume after split, it + * will be automatically resized, which will lead to increased billing. To accept capacity pool size auto + * grow and create a short term clone volume, set the property as accepted.. * - * @param isRestoring Restoring. + * @param acceptGrowCapacityPoolForShortTermCloneSplit While auto splitting the short term clone volume, if + * the parent pool does not have enough space to accommodate the volume after split, it will be + * automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and + * create a short term clone volume, set the property as accepted. * @return the next definition stage. */ - WithCreate withIsRestoring(Boolean isRestoring); + WithCreate withAcceptGrowCapacityPoolForShortTermCloneSplit( + AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit); } /** @@ -1010,6 +1051,19 @@ interface WithLdapEnabled { WithCreate withLdapEnabled(Boolean ldapEnabled); } + /** + * The stage of the Volume definition allowing to specify ldapServerType. + */ + interface WithLdapServerType { + /** + * Specifies the ldapServerType property: Specifies the type of LDAP server for a given NFS volume.. + * + * @param ldapServerType Specifies the type of LDAP server for a given NFS volume. + * @return the next definition stage. + */ + WithCreate withLdapServerType(LdapServerType ldapServerType); + } + /** * The stage of the Volume definition allowing to specify coolAccess. */ @@ -1095,13 +1149,19 @@ interface WithUnixPermissions { * First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects * permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for * other users in the same group. the fourth for other users not in the group. 0755 - gives - * read/write/execute permissions to owner and read/execute to group and other users.. + * read/write/execute permissions to owner and read/execute to group and other users. Avoid passing null + * value for unixPermissions in volume update operation, As per the behavior, If Null value is passed then + * user-visible unixPermissions value will became null, and user will not be able to get unixPermissions + * value. On safer side, actual unixPermissions value on volume will remain as its last saved value only.. * * @param unixPermissions UNIX permissions for NFS volume accepted in octal 4 digit format. First digit * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission * for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users * in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute - * permissions to owner and read/execute to group and other users. + * permissions to owner and read/execute to group and other users. Avoid passing null value for + * unixPermissions in volume update operation, As per the behavior, If Null value is passed then + * user-visible unixPermissions value will became null, and user will not be able to get unixPermissions + * value. On safer side, actual unixPermissions value on volume will remain as its last saved value only. * @return the next definition stage. */ WithCreate withUnixPermissions(String unixPermissions); @@ -1246,6 +1306,19 @@ interface WithIsLargeVolume { */ WithCreate withIsLargeVolume(Boolean isLargeVolume); } + + /** + * The stage of the Volume definition allowing to specify language. + */ + interface WithLanguage { + /** + * Specifies the language property: Language supported for volume.. + * + * @param language Language supported for volume. + * @return the next definition stage. + */ + WithCreate withLanguage(VolumeLanguage language); + } } /** @@ -1659,6 +1732,28 @@ interface WithSmbNonBrowsable { */ void resetCifsPassword(Context context); + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void splitCloneFromParent(); + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void splitCloneFromParent(Context context); + /** * Break file locks * @@ -1710,6 +1805,30 @@ interface WithSmbNonBrowsable { GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListForLdapUserRequest body, Context context); + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume. + */ + ListQuotaReportResponse listQuotaReport(); + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume. + */ + ListQuotaReportResponse listQuotaReport(Context context); + /** * Break volume replication * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java index 5571ccacfb0d..677f458dd39f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java @@ -455,7 +455,7 @@ public List mountTargets() { /** * Get the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. + * set type to DataProtection. For creating clone volume, set type to ShortTermClone. * * @return the volumeType value. */ @@ -465,7 +465,7 @@ public String volumeType() { /** * Set the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, - * set type to DataProtection. + * set type to DataProtection. For creating clone volume, set type to ShortTermClone. * * @param volumeType the volumeType value to set. * @return the VolumeGroupVolumeProperties object itself. @@ -504,28 +504,48 @@ public VolumeGroupVolumeProperties withDataProtection(VolumePropertiesDataProtec } /** - * Get the isRestoring property: Restoring. + * Get the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, + * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically + * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term + * clone volume, set the property as accepted. * - * @return the isRestoring value. + * @return the acceptGrowCapacityPoolForShortTermCloneSplit value. */ - public Boolean isRestoring() { - return this.innerProperties() == null ? null : this.innerProperties().isRestoring(); + public AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit() { + return this.innerProperties() == null + ? null + : this.innerProperties().acceptGrowCapacityPoolForShortTermCloneSplit(); } /** - * Set the isRestoring property: Restoring. + * Set the acceptGrowCapacityPoolForShortTermCloneSplit property: While auto splitting the short term clone volume, + * if the parent pool does not have enough space to accommodate the volume after split, it will be automatically + * resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term + * clone volume, set the property as accepted. * - * @param isRestoring the isRestoring value to set. + * @param acceptGrowCapacityPoolForShortTermCloneSplit the acceptGrowCapacityPoolForShortTermCloneSplit value to + * set. * @return the VolumeGroupVolumeProperties object itself. */ - public VolumeGroupVolumeProperties withIsRestoring(Boolean isRestoring) { + public VolumeGroupVolumeProperties withAcceptGrowCapacityPoolForShortTermCloneSplit( + AcceptGrowCapacityPoolForShortTermCloneSplit acceptGrowCapacityPoolForShortTermCloneSplit) { if (this.innerProperties() == null) { this.innerProperties = new VolumeProperties(); } - this.innerProperties().withIsRestoring(isRestoring); + this.innerProperties() + .withAcceptGrowCapacityPoolForShortTermCloneSplit(acceptGrowCapacityPoolForShortTermCloneSplit); return this; } + /** + * Get the isRestoring property: Restoring. + * + * @return the isRestoring value. + */ + public Boolean isRestoring() { + return this.innerProperties() == null ? null : this.innerProperties().isRestoring(); + } + /** * Get the snapshotDirectoryVisible property: If enabled (true) the volume will contain a read-only snapshot * directory which provides access to each of the volume's snapshots (defaults to true). @@ -812,6 +832,29 @@ public VolumeGroupVolumeProperties withLdapEnabled(Boolean ldapEnabled) { return this; } + /** + * Get the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. + * + * @return the ldapServerType value. + */ + public LdapServerType ldapServerType() { + return this.innerProperties() == null ? null : this.innerProperties().ldapServerType(); + } + + /** + * Set the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. + * + * @param ldapServerType the ldapServerType value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withLdapServerType(LdapServerType ldapServerType) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withLdapServerType(ldapServerType); + return this; + } + /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. * @@ -930,7 +973,10 @@ public VolumeGroupVolumeProperties withCoolAccessTieringPolicy(CoolAccessTiering * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. + * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, + * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user + * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain + * as its last saved value only. * * @return the unixPermissions value. */ @@ -943,7 +989,10 @@ public String unixPermissions() { * selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the * owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same * group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and - * read/execute to group and other users. + * read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, + * As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user + * will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain + * as its last saved value only. * * @param unixPermissions the unixPermissions value to set. * @return the VolumeGroupVolumeProperties object itself. @@ -1281,6 +1330,38 @@ public String originatingResourceId() { return this.innerProperties() == null ? null : this.innerProperties().originatingResourceId(); } + /** + * Get the inheritedSizeInBytes property: Space shared by short term clone volume with parent volume in bytes. + * + * @return the inheritedSizeInBytes value. + */ + public Long inheritedSizeInBytes() { + return this.innerProperties() == null ? null : this.innerProperties().inheritedSizeInBytes(); + } + + /** + * Get the language property: Language supported for volume. + * + * @return the language value. + */ + public VolumeLanguage language() { + return this.innerProperties() == null ? null : this.innerProperties().language(); + } + + /** + * Set the language property: Language supported for volume. + * + * @param language the language value to set. + * @return the VolumeGroupVolumeProperties object itself. + */ + public VolumeGroupVolumeProperties withLanguage(VolumeLanguage language) { + if (this.innerProperties() == null) { + this.innerProperties = new VolumeProperties(); + } + this.innerProperties().withLanguage(language); + return this; + } + /** * Validates the instance. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeLanguage.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeLanguage.java new file mode 100644 index 000000000000..02c49feff81b --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeLanguage.java @@ -0,0 +1,388 @@ +// 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.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * VolumeLanguage + * + * Language supported for volume. + */ +public final class VolumeLanguage extends ExpandableStringEnum { + /** + * Static value c.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage C_UTF_8 = fromString("c.utf-8"); + + /** + * Static value utf8mb4 for VolumeLanguage. + */ + public static final VolumeLanguage UTF8MB4 = fromString("utf8mb4"); + + /** + * Static value ar for VolumeLanguage. + */ + public static final VolumeLanguage AR = fromString("ar"); + + /** + * Static value ar.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage AR_UTF_8 = fromString("ar.utf-8"); + + /** + * Static value hr for VolumeLanguage. + */ + public static final VolumeLanguage HR = fromString("hr"); + + /** + * Static value hr.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage HR_UTF_8 = fromString("hr.utf-8"); + + /** + * Static value cs for VolumeLanguage. + */ + public static final VolumeLanguage CS = fromString("cs"); + + /** + * Static value cs.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage CS_UTF_8 = fromString("cs.utf-8"); + + /** + * Static value da for VolumeLanguage. + */ + public static final VolumeLanguage DA = fromString("da"); + + /** + * Static value da.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage DA_UTF_8 = fromString("da.utf-8"); + + /** + * Static value nl for VolumeLanguage. + */ + public static final VolumeLanguage NL = fromString("nl"); + + /** + * Static value nl.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage NL_UTF_8 = fromString("nl.utf-8"); + + /** + * Static value en for VolumeLanguage. + */ + public static final VolumeLanguage EN = fromString("en"); + + /** + * Static value en.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage EN_UTF_8 = fromString("en.utf-8"); + + /** + * Static value fi for VolumeLanguage. + */ + public static final VolumeLanguage FI = fromString("fi"); + + /** + * Static value fi.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage FI_UTF_8 = fromString("fi.utf-8"); + + /** + * Static value fr for VolumeLanguage. + */ + public static final VolumeLanguage FR = fromString("fr"); + + /** + * Static value fr.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage FR_UTF_8 = fromString("fr.utf-8"); + + /** + * Static value de for VolumeLanguage. + */ + public static final VolumeLanguage DE = fromString("de"); + + /** + * Static value de.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage DE_UTF_8 = fromString("de.utf-8"); + + /** + * Static value he for VolumeLanguage. + */ + public static final VolumeLanguage HE = fromString("he"); + + /** + * Static value he.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage HE_UTF_8 = fromString("he.utf-8"); + + /** + * Static value hu for VolumeLanguage. + */ + public static final VolumeLanguage HU = fromString("hu"); + + /** + * Static value hu.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage HU_UTF_8 = fromString("hu.utf-8"); + + /** + * Static value it for VolumeLanguage. + */ + public static final VolumeLanguage IT = fromString("it"); + + /** + * Static value it.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage IT_UTF_8 = fromString("it.utf-8"); + + /** + * Static value ja for VolumeLanguage. + */ + public static final VolumeLanguage JA = fromString("ja"); + + /** + * Static value ja.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage JA_UTF_8 = fromString("ja.utf-8"); + + /** + * Static value ja-v1 for VolumeLanguage. + */ + public static final VolumeLanguage JA_V1 = fromString("ja-v1"); + + /** + * Static value ja-v1.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage JA_V1_UTF_8 = fromString("ja-v1.utf-8"); + + /** + * Static value ja-jp.pck for VolumeLanguage. + */ + public static final VolumeLanguage JA_JP_PCK = fromString("ja-jp.pck"); + + /** + * Static value ja-jp.pck.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage JA_JP_PCK_UTF_8 = fromString("ja-jp.pck.utf-8"); + + /** + * Static value ja-jp.932 for VolumeLanguage. + */ + public static final VolumeLanguage JA_JP_932 = fromString("ja-jp.932"); + + /** + * Static value ja-jp.932.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage JA_JP_932_UTF_8 = fromString("ja-jp.932.utf-8"); + + /** + * Static value ja-jp.pck-v2 for VolumeLanguage. + */ + public static final VolumeLanguage JA_JP_PCK_V2 = fromString("ja-jp.pck-v2"); + + /** + * Static value ja-jp.pck-v2.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage JA_JP_PCK_V2_UTF_8 = fromString("ja-jp.pck-v2.utf-8"); + + /** + * Static value ko for VolumeLanguage. + */ + public static final VolumeLanguage KO = fromString("ko"); + + /** + * Static value ko.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage KO_UTF_8 = fromString("ko.utf-8"); + + /** + * Static value no for VolumeLanguage. + */ + public static final VolumeLanguage NO = fromString("no"); + + /** + * Static value no.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage NO_UTF_8 = fromString("no.utf-8"); + + /** + * Static value pl for VolumeLanguage. + */ + public static final VolumeLanguage PL = fromString("pl"); + + /** + * Static value pl.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage PL_UTF_8 = fromString("pl.utf-8"); + + /** + * Static value pt for VolumeLanguage. + */ + public static final VolumeLanguage PT = fromString("pt"); + + /** + * Static value pt.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage PT_UTF_8 = fromString("pt.utf-8"); + + /** + * Static value c for VolumeLanguage. + */ + public static final VolumeLanguage C = fromString("c"); + + /** + * Static value ro for VolumeLanguage. + */ + public static final VolumeLanguage RO = fromString("ro"); + + /** + * Static value ro.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage RO_UTF_8 = fromString("ro.utf-8"); + + /** + * Static value ru for VolumeLanguage. + */ + public static final VolumeLanguage RU = fromString("ru"); + + /** + * Static value ru.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage RU_UTF_8 = fromString("ru.utf-8"); + + /** + * Static value zh for VolumeLanguage. + */ + public static final VolumeLanguage ZH = fromString("zh"); + + /** + * Static value zh.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage ZH_UTF_8 = fromString("zh.utf-8"); + + /** + * Static value zh.gbk for VolumeLanguage. + */ + public static final VolumeLanguage ZH_GBK = fromString("zh.gbk"); + + /** + * Static value zh.gbk.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage ZH_GBK_UTF_8 = fromString("zh.gbk.utf-8"); + + /** + * Static value zh-tw.big5 for VolumeLanguage. + */ + public static final VolumeLanguage ZH_TW_BIG5 = fromString("zh-tw.big5"); + + /** + * Static value zh-tw.big5.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage ZH_TW_BIG5_UTF_8 = fromString("zh-tw.big5.utf-8"); + + /** + * Static value zh-tw for VolumeLanguage. + */ + public static final VolumeLanguage ZH_TW = fromString("zh-tw"); + + /** + * Static value zh-tw.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage ZH_TW_UTF_8 = fromString("zh-tw.utf-8"); + + /** + * Static value sk for VolumeLanguage. + */ + public static final VolumeLanguage SK = fromString("sk"); + + /** + * Static value sk.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage SK_UTF_8 = fromString("sk.utf-8"); + + /** + * Static value sl for VolumeLanguage. + */ + public static final VolumeLanguage SL = fromString("sl"); + + /** + * Static value sl.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage SL_UTF_8 = fromString("sl.utf-8"); + + /** + * Static value es for VolumeLanguage. + */ + public static final VolumeLanguage ES = fromString("es"); + + /** + * Static value es.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage ES_UTF_8 = fromString("es.utf-8"); + + /** + * Static value sv for VolumeLanguage. + */ + public static final VolumeLanguage SV = fromString("sv"); + + /** + * Static value sv.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage SV_UTF_8 = fromString("sv.utf-8"); + + /** + * Static value tr for VolumeLanguage. + */ + public static final VolumeLanguage TR = fromString("tr"); + + /** + * Static value tr.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage TR_UTF_8 = fromString("tr.utf-8"); + + /** + * Static value en-us for VolumeLanguage. + */ + public static final VolumeLanguage EN_US = fromString("en-us"); + + /** + * Static value en-us.utf-8 for VolumeLanguage. + */ + public static final VolumeLanguage EN_US_UTF_8 = fromString("en-us.utf-8"); + + /** + * Creates a new instance of VolumeLanguage value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VolumeLanguage() { + } + + /** + * Creates or finds a VolumeLanguage from its string representation. + * + * @param name a name to look for. + * @return the corresponding VolumeLanguage. + */ + public static VolumeLanguage fromString(String name) { + return fromString(name, VolumeLanguage.class); + } + + /** + * Gets known VolumeLanguage values. + * + * @return known VolumeLanguage values. + */ + public static Collection values() { + return values(VolumeLanguage.class); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java index 21701962e706..1e5865b37180 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java @@ -211,6 +211,38 @@ void revert(String resourceGroupName, String accountName, String poolName, Strin void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName); + + /** + * Split clone from parent volume + * + * Split operation to convert clone volume to an independent volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void splitCloneFromParent(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); + /** * Break file locks * @@ -281,6 +313,41 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String resourceG GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context); + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume. + */ + ListQuotaReportResponse listQuotaReport(String resourceGroupName, String accountName, String poolName, + String volumeName); + + /** + * Lists Quota Report for the volume + * + * Returns report of quotas for the volume. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account. + * @param poolName The name of the capacity pool. + * @param volumeName The name of the volume. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return quota Report for volume. + */ + ListQuotaReportResponse listQuotaReport(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); + /** * Break volume replication * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json index 0246a7db37cb..183452463677 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.netapp.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.netapp.implementation.BackupVaultsClientImpl$BackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderAccountsClientImpl$BackupsUnderAccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderBackupVaultsClientImpl$BackupsUnderBackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesClientImpl$BackupsUnderVolumesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsClientImpl$NetAppResourceQuotaLimitsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosClientImpl$NetAppResourceRegionInfosService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourcesClientImpl$NetAppResourcesService"],["com.azure.resourcemanager.netapp.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.netapp.implementation.PoolsClientImpl$PoolsService"],["com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesClientImpl$SnapshotPoliciesService"],["com.azure.resourcemanager.netapp.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.netapp.implementation.SubvolumesClientImpl$SubvolumesService"],["com.azure.resourcemanager.netapp.implementation.VolumeGroupsClientImpl$VolumeGroupsService"],["com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesClientImpl$VolumeQuotaRulesService"],["com.azure.resourcemanager.netapp.implementation.VolumesClientImpl$VolumesService"]] \ No newline at end of file +[["com.azure.resourcemanager.netapp.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.netapp.implementation.BackupVaultsClientImpl$BackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderAccountsClientImpl$BackupsUnderAccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderBackupVaultsClientImpl$BackupsUnderBackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesClientImpl$BackupsUnderVolumesService"],["com.azure.resourcemanager.netapp.implementation.BucketsClientImpl$BucketsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsAccountsClientImpl$NetAppResourceQuotaLimitsAccountsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsClientImpl$NetAppResourceQuotaLimitsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosClientImpl$NetAppResourceRegionInfosService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceUsagesClientImpl$NetAppResourceUsagesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourcesClientImpl$NetAppResourcesService"],["com.azure.resourcemanager.netapp.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.netapp.implementation.PoolsClientImpl$PoolsService"],["com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesClientImpl$SnapshotPoliciesService"],["com.azure.resourcemanager.netapp.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.netapp.implementation.SubvolumesClientImpl$SubvolumesService"],["com.azure.resourcemanager.netapp.implementation.VolumeGroupsClientImpl$VolumeGroupsService"],["com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesClientImpl$VolumeQuotaRulesService"],["com.azure.resourcemanager.netapp.implementation.VolumesClientImpl$VolumesService"]] \ No newline at end of file diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java index 6f57cb199456..222bcd9234c9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java @@ -13,8 +13,8 @@ */ public final class AccountsChangeKeyVaultSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_ChangeKeyVault.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Accounts_ChangeKeyVault.json */ /** * Sample code: Accounts_ChangeKeyVault. @@ -27,9 +27,9 @@ public static void accountsChangeKeyVault(com.azure.resourcemanager.netapp.NetAp .withKeyName("fakeTokenPlaceholder") .withKeyVaultResourceId("fakeTokenPlaceholder") .withKeyVaultPrivateEndpoints(Arrays.asList(new KeyVaultPrivateEndpoint().withVirtualNetworkId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1") .withPrivateEndpointId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"))), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"))), com.azure.core.util.Context.NONE); } } 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 73aaa0d75f62..465cd2d4e15d 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 @@ -12,8 +12,8 @@ */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -25,8 +25,8 @@ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Accounts_CreateOrUpdateAD.json */ /** * Sample code: Accounts_CreateOrUpdateWithActiveDirectory. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java index 2a2b68e4391b..766da14f7b5d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java @@ -10,7 +10,7 @@ public final class AccountsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java index 82e8cc2fe29e..b4fb4816e3ef 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class AccountsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_Get.json */ /** * Sample code: Accounts_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java index c8f680fd10d6..4313d743373d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsGetChangeKeyVaultInformationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Accounts_GetChangeKeyVaultInformation.json */ /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java index 98fa57e08d5d..202454911d48 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class AccountsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_List.json */ /** * Sample code: Accounts_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java index b7147bd9a521..51cb369a20aa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java @@ -9,8 +9,8 @@ */ public final class AccountsListSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Accounts_ListBySubscription.json */ /** * Sample code: Accounts_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java index 13d5069682cd..aa60a3d1eca5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java @@ -9,8 +9,8 @@ */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Accounts_RenewCredentials.json */ /** * Sample code: Accounts_RenewCredentials. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java index 5d4b423750fc..3a03c50a5f8c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java @@ -11,7 +11,7 @@ */ public final class AccountsTransitionToCmkSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Accounts_TransitionEncryptionKey.json */ /** @@ -22,9 +22,9 @@ public final class AccountsTransitionToCmkSamples { 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") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1") .withPrivateEndpointId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java index a5cf48069ed9..1a89bb6026ff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java @@ -14,7 +14,7 @@ public final class AccountsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Accounts_Update.json */ /** * Sample code: Accounts_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java index 9a76d98a4214..d18289904fdb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java @@ -10,7 +10,8 @@ public final class BackupPoliciesCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Create. + * json */ /** * Sample code: BackupPolicies_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java index 0dcf33ee4c87..2466c3452031 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java @@ -10,7 +10,8 @@ public final class BackupPoliciesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Delete. + * json */ /** * Sample code: BackupPolicies_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java index c76fb5b1140a..eb12c4eaa3a3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java @@ -10,7 +10,8 @@ public final class BackupPoliciesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Get. + * json */ /** * Sample code: Backups_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java index 9bda9c6c397d..fac481bac59c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java @@ -10,7 +10,8 @@ public final class BackupPoliciesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_List. + * json */ /** * Sample code: BackupPolicies_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java index 3b3161407a3d..8ad4379bcfc5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java @@ -12,7 +12,8 @@ public final class BackupPoliciesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupPolicies_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupPolicies_Update. + * json */ /** * Sample code: BackupPolicies_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java index 6081a41b51e8..3625b24b07e3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java @@ -10,7 +10,8 @@ public final class BackupVaultsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Create. + * json */ /** * Sample code: BackupVault_CreateOrUpdate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java index 7ff7d6ba7670..6d280741b433 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java @@ -10,7 +10,8 @@ public final class BackupVaultsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Delete. + * json */ /** * Sample code: BackupVaults_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java index 7a88331f3193..0517b494f1c5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java @@ -10,7 +10,7 @@ public final class BackupVaultsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Get.json */ /** * Sample code: BackupVaults_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java index 1318269c3ef2..bafae045ecf7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java @@ -10,7 +10,7 @@ public final class BackupVaultsListByNetAppAccountSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_List.json */ /** * Sample code: BackupVaults_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java index add662a46355..d80bff867781 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java @@ -14,7 +14,8 @@ public final class BackupVaultsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupVaults_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/BackupVaults_Update. + * json */ /** * Sample code: BackupVaults_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java index 3a6c6fd7abef..c3000b68cadb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java @@ -9,9 +9,8 @@ */ public final class BackupsCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Create. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderBackupVault_Create.json */ /** * Sample code: BackupsUnderBackupVault_Create. @@ -23,7 +22,7 @@ public static void backupsUnderBackupVaultCreate(com.azure.resourcemanager.netap .define("backup1") .withExistingBackupVault("myRG", "account1", "backupVault1") .withVolumeResourceId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1") .withLabel("myLabel") .create(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java index 7c13d5ea3ede..6d5aeb503457 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java @@ -9,9 +9,8 @@ */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Delete. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderBackupVault_Delete.json */ /** * Sample code: BackupsUnderBackupVault_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java index 4bdb3d86f840..dcc84b83ea98 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java @@ -9,8 +9,8 @@ */ public final class BackupsGetLatestStatusSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_LatestBackupStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_LatestBackupStatus.json */ /** * Sample code: Volumes_BackupStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java index 38152b757e9c..37fe6ad94a1c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java @@ -9,9 +9,8 @@ */ public final class BackupsGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Get. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderBackupVault_Get.json */ /** * Sample code: BackupsUnderBackupVault_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java index 4f4719055587..c6951d67b5f4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java @@ -9,9 +9,8 @@ */ public final class BackupsGetVolumeLatestRestoreStatusSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_LatestRestoreStatus. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_LatestRestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java index 5dd4a7ff09d6..566635f82d72 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java @@ -9,9 +9,8 @@ */ public final class BackupsListByVaultSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_List. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderBackupVault_List.json */ /** * Sample code: Backups_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java index 2a437e2b7ae8..56f6c145f168 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java @@ -11,9 +11,8 @@ */ public final class BackupsUnderAccountMigrateBackupsSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderAccount_Migrate. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderAccount_Migrate.json */ /** * Sample code: BackupsUnderAccount_Migrate. @@ -23,7 +22,7 @@ public final class BackupsUnderAccountMigrateBackupsSamples { 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"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java index 58e1b2d544a1..75d0bf29be53 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java @@ -12,7 +12,7 @@ */ public final class BackupsUnderBackupVaultRestoreFilesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * BackupsUnderBackupVault_SingleFileRestore.json */ /** @@ -25,7 +25,7 @@ public static void backupsSingleFileRestore(com.azure.resourcemanager.netapp.Net .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"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java index 8fde385112b2..26eae217c3a2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java @@ -11,8 +11,8 @@ */ public final class BackupsUnderVolumeMigrateBackupsSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderVolume_Migrate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderVolume_Migrate.json */ /** * Sample code: BackupsUnderVolume_Migrate. @@ -22,7 +22,7 @@ public final class BackupsUnderVolumeMigrateBackupsSamples { 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"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java index 77fe9b72c20e..4ff22670ced8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java @@ -11,9 +11,8 @@ */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/BackupsUnderBackupVault_Update. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * BackupsUnderBackupVault_Update.json */ /** * Sample code: BackupsUnderBackupVault_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..8a7ec6022629 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java @@ -0,0 +1,36 @@ +// 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.resourcemanager.netapp.models.BucketServerProperties; +import com.azure.resourcemanager.netapp.models.FileSystemUser; +import com.azure.resourcemanager.netapp.models.NfsUser; + +/** + * Samples for Buckets CreateOrUpdate. + */ +public final class BucketsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Buckets_CreateOrUpdate + * .json + */ + /** + * Sample code: Buckets_CreateOrUpdate. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets() + .define("bucket1") + .withExistingVolume("myRG", "account1", "pool1", "volume1") + .withPath("/path") + .withFileSystemUser(new FileSystemUser().withNfsUser(new NfsUser().withUserId(1001L).withGroupId(1000L))) + .withServer(new BucketServerProperties().withFqdn("fullyqualified.domainname.com") + .withCertificateObject( + "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURuVENDQW9XZ0F3SUJBZ0lRR3FXdnRxeHBvSTFJV3Z4VGdJbElWREFOQmdrcWhraUc5dzBCQVFzRkFEQlYKTVJNd0VRWUtDWkltaVpQeUxHUUJHUllEWTI5dE1SY3dGUVlLQ1pJbWlaUHlMR1FCR1JZSGFHRnlhV3R5WWpFbApNQ01HQTFVRUF4TWNhR0Z5YVd0eVlpMVhTVTR0TWtKUFZrRkZTMEkwTkVJdFEwRXRNakFlRncweU1EQTFNRFV3Ck56TTVORGxhRncweU1EQTFNRFl3TnpRNU5EaGFNRlV4RXpBUkJnb0praWFKay9Jc1pBRVpGZ05qYjIweEZ6QVYKQmdvSmtpYUprL0lzWkFFWkZnZG9ZWEpwYTNKaU1TVXdJd1lEVlFRREV4eG9ZWEpwYTNKaUxWZEpUaTB5UWs5VwpRVVZMUWpRMFFpMURRUzB5TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFqMHByCnhaaXpNaDBqYnRwN1ZOc0JrRVJ2MVpZT0MzMEtqaGRWdEExRm1MeFM2cXlycmpMZUdXOXRSd2ZnUkR0eVBodTIKZVJTcVpTUjF6Z1hZR0s0Nys3Y3F0YnB2UElOektCb0dOWERIVTNxVWlleXJWSjFDVzRKNjJodUdrbUV1VVVkMApKMXBxNTVxbjk1SmRUbWh1dmZlTUxxeHB5c01nbGVnY281ZFhoN0hsQkhwaTNKMFN4ZnhVWmxKMVZiOFJZVEZhCkJiMGFlTVZaRzRKeVREaktiMlR1TmFXOG1aUE5vOFBMRDRocjdndFNZUEQvQ1dVVGV5QlpoZC9LTzNPczlWVEIKYmpLUGtWd0J2WEs2SlFMSGprNFBHS3VYZDhaWVFyajBtOWNIZDNmcWNYTXlQUnQ2TlJ4ak0yMTUxckFzSkVhNgpWZC9ta056akpXalBrT2VZUVFJREFRQUJvMmt3WnpBVEJna3JCZ0VFQVlJM0ZBSUVCaDRFQUVNQVFUQU9CZ05WCkhROEJBZjhFQkFNQ0FZWXdEd1lEVlIwVEFRSC9CQVV3QXdFQi96QWRCZ05WSFE0RUZnUVVDVEc2ODJSay9kMysKWGtHa0VMakRFMjI4ZjNnd0VBWUpLd1lCQkFHQ054VUJCQU1DQVFBd0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQgpBR1RjTTNnWExIU05wS014RHEvUFpZbWZCMmNlN3VhMmxxbXpzZSt4QmthSTE0WXdzZE5ZQjZBVTNFWDM3QWpZCjd3bm9xQzY1N0U2RVhTODVDckoyNXJNTHo4OEtONGI3cUg5RUowSS9XVHg5YTdUT0ZENENWQThuL0xwNGh1Ym4KNlBFalY5NFlZWXBXTG1hTkkvbGFReWsxSHVJbDFSTCttVDFnSWQ4ZWZXZ1UvNmlVVEw3eGMrdjkyNHBuTHhISwpOSnNTV3c0NFk5a0R5SU9KOXFjWUlBN1lhTkxPZTRjSysvQlRvdDh0dVVKT1hHLzdBRmtxR2EyQVA4MmFZOStKCnkwSmU2OG5nTHJ1dVU4VHpneVpqdkFHcTRrVEVOdWFoaFdHVC9KWkEzOXhSNUV4MmNMUUplcE5NdnlZbUZ3Z1UKME8zYlA0OWNBVFVCMXoyQ3Y5aTRQbVk9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K")) + .create(); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java new file mode 100644 index 000000000000..481baff23491 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java @@ -0,0 +1,23 @@ +// 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; + +/** + * Samples for Buckets Delete. + */ +public final class BucketsDeleteSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Buckets_Delete.json + */ + /** + * Sample code: Buckets_Delete. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets().delete("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java new file mode 100644 index 000000000000..3e4178d95705 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java @@ -0,0 +1,27 @@ +// 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.resourcemanager.netapp.models.BucketCredentialsExpiry; + +/** + * Samples for Buckets GenerateCredentials. + */ +public final class BucketsGenerateCredentialsSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Buckets_GenerateCredentials.json + */ + /** + * Sample code: Buckets_GenerateCredentials. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsGenerateCredentials(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets() + .generateCredentialsWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", + new BucketCredentialsExpiry().withKeyPairExpiryDays(3), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java new file mode 100644 index 000000000000..404eb311fbc9 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java @@ -0,0 +1,24 @@ +// 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; + +/** + * Samples for Buckets Get. + */ +public final class BucketsGetSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Buckets_Get.json + */ + /** + * Sample code: Buckets_Get. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets() + .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java new file mode 100644 index 000000000000..549584356f27 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java @@ -0,0 +1,23 @@ +// 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; + +/** + * Samples for Buckets List. + */ +public final class BucketsListSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Buckets_List.json + */ + /** + * Sample code: Buckets_List. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.buckets().list("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java new file mode 100644 index 000000000000..662b7e25370e --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java @@ -0,0 +1,33 @@ +// 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.resourcemanager.netapp.models.Bucket; +import com.azure.resourcemanager.netapp.models.BucketServerPatchProperties; + +/** + * Samples for Buckets Update. + */ +public final class BucketsUpdateSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Buckets_Update.json + */ + /** + * Sample code: Buckets_Update. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void bucketsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + Bucket resource = manager.buckets() + .getWithResponse("myRG", "account1", "pool1", "volume1", "bucket1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withServer(new BucketServerPatchProperties().withFqdn("fullyqualified.domainname.com") + .withCertificateObject( + "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURuVENDQW9XZ0F3SUJBZ0lRR3FXdnRxeHBvSTFJV3Z4VGdJbElWREFOQmdrcWhraUc5dzBCQVFzRkFEQlYKTVJNd0VRWUtDWkltaVpQeUxHUUJHUllEWTI5dE1SY3dGUVlLQ1pJbWlaUHlMR1FCR1JZSGFHRnlhV3R5WWpFbApNQ01HQTFVRUF4TWNhR0Z5YVd0eVlpMVhTVTR0TWtKUFZrRkZTMEkwTkVJdFEwRXRNakFlRncweU1EQTFNRFV3Ck56TTVORGxhRncweU1EQTFNRFl3TnpRNU5EaGFNRlV4RXpBUkJnb0praWFKay9Jc1pBRVpGZ05qYjIweEZ6QVYKQmdvSmtpYUprL0lzWkFFWkZnZG9ZWEpwYTNKaU1TVXdJd1lEVlFRREV4eG9ZWEpwYTNKaUxWZEpUaTB5UWs5VwpRVVZMUWpRMFFpMURRUzB5TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFqMHByCnhaaXpNaDBqYnRwN1ZOc0JrRVJ2MVpZT0MzMEtqaGRWdEExRm1MeFM2cXlycmpMZUdXOXRSd2ZnUkR0eVBodTIKZVJTcVpTUjF6Z1hZR0s0Nys3Y3F0YnB2UElOektCb0dOWERIVTNxVWlleXJWSjFDVzRKNjJodUdrbUV1VVVkMApKMXBxNTVxbjk1SmRUbWh1dmZlTUxxeHB5c01nbGVnY281ZFhoN0hsQkhwaTNKMFN4ZnhVWmxKMVZiOFJZVEZhCkJiMGFlTVZaRzRKeVREaktiMlR1TmFXOG1aUE5vOFBMRDRocjdndFNZUEQvQ1dVVGV5QlpoZC9LTzNPczlWVEIKYmpLUGtWd0J2WEs2SlFMSGprNFBHS3VYZDhaWVFyajBtOWNIZDNmcWNYTXlQUnQ2TlJ4ak0yMTUxckFzSkVhNgpWZC9ta056akpXalBrT2VZUVFJREFRQUJvMmt3WnpBVEJna3JCZ0VFQVlJM0ZBSUVCaDRFQUVNQVFUQU9CZ05WCkhROEJBZjhFQkFNQ0FZWXdEd1lEVlIwVEFRSC9CQVV3QXdFQi96QWRCZ05WSFE0RUZnUVVDVEc2ODJSay9kMysKWGtHa0VMakRFMjI4ZjNnd0VBWUpLd1lCQkFHQ054VUJCQU1DQVFBd0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQgpBR1RjTTNnWExIU05wS014RHEvUFpZbWZCMmNlN3VhMmxxbXpzZSt4QmthSTE0WXdzZE5ZQjZBVTNFWDM3QWpZCjd3bm9xQzY1N0U2RVhTODVDckoyNXJNTHo4OEtONGI3cUg5RUowSS9XVHg5YTdUT0ZENENWQThuL0xwNGh1Ym4KNlBFalY5NFlZWXBXTG1hTkkvbGFReWsxSHVJbDFSTCttVDFnSWQ4ZWZXZ1UvNmlVVEw3eGMrdjkyNHBuTHhISwpOSnNTV3c0NFk5a0R5SU9KOXFjWUlBN1lhTkxPZTRjSysvQlRvdDh0dVVKT1hHLzdBRmtxR2EyQVA4MmFZOStKCnkwSmU2OG5nTHJ1dVU4VHpneVpqdkFHcTRrVEVOdWFoaFdHVC9KWkEzOXhSNUV4MmNMUUplcE5NdnlZbUZ3Z1UKME8zYlA0OWNBVFVCMXoyQ3Y5aTRQbVk9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K")) + .apply(); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java index 2e39d9c2d605..59a72392b51c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java @@ -11,8 +11,8 @@ */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. @@ -24,7 +24,7 @@ public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.Ne .checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest() .withName("my-exact-filepth") .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java index 5b0dbe33d040..a99f0639f6d7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java @@ -13,7 +13,8 @@ public final class NetAppResourceCheckNameAvailabilitySamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckNameAvailability.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/CheckNameAvailability. + * json */ /** * Sample code: CheckNameAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java index c2ac91733ba8..4e82e1aebaf9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java @@ -13,7 +13,8 @@ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/CheckQuotaAvailability.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/CheckQuotaAvailability + * .json */ /** * Sample code: CheckQuotaAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java index cd74147f4e28..c665a020a19e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java @@ -11,8 +11,8 @@ */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. @@ -24,7 +24,7 @@ public static void networkSiblingSetQuery(com.azure.resourcemanager.netapp.NetAp .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"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java index b95fc47f544a..78af69f0df22 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java @@ -10,7 +10,7 @@ public final class NetAppResourceQueryRegionInfoSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfo.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/RegionInfo.json */ /** * Sample code: RegionInfo_Query. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java new file mode 100644 index 000000000000..f6105e354f33 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java @@ -0,0 +1,25 @@ +// 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; + +/** + * Samples for NetAppResourceQuotaLimitsAccount Get. + */ +public final class NetAppResourceQuotaLimitsAccountGetSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/QuotaLimitsAccount_Get + * .json + */ + /** + * Sample code: Volumes_RestoreStatus. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.netAppResourceQuotaLimitsAccounts() + .getWithResponse("myRG", "myAccount", "poolsPerAccount", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java new file mode 100644 index 000000000000..fcf7498b86a6 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java @@ -0,0 +1,23 @@ +// 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; + +/** + * Samples for NetAppResourceQuotaLimitsAccount List. + */ +public final class NetAppResourceQuotaLimitsAccountListSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * QuotaLimitsAccount_List.json + */ + /** + * Sample code: Volumes_RestoreStatus. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.netAppResourceQuotaLimitsAccounts().list("myRG", "myAccount", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java index 5dc735ac2638..f34ad6ea8702 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java @@ -10,7 +10,7 @@ public final class NetAppResourceQuotaLimitsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/QuotaLimits_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/QuotaLimits_Get.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java index cf02a81d15cb..2ed09621550d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java @@ -10,7 +10,7 @@ public final class NetAppResourceQuotaLimitsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/QuotaLimits_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/QuotaLimits_List.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java index 1e980a2c12b0..660856a50b9c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java @@ -10,7 +10,7 @@ public final class NetAppResourceRegionInfosGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfos_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/RegionInfos_Get.json */ /** * Sample code: RegionInfos_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java index 1ddfe1d92fd7..b7bb50ddf8c4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java @@ -10,7 +10,7 @@ public final class NetAppResourceRegionInfosListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/RegionInfos_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/RegionInfos_List.json */ /** * Sample code: RegionInfos_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java index b7b418702b83..4196d1f0b396 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java @@ -12,8 +12,8 @@ */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. @@ -25,7 +25,7 @@ public static void networkFeaturesUpdate(com.azure.resourcemanager.netapp.NetApp .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") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet") .withNetworkSiblingSetStateId("12345_44420.8001578125") .withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java new file mode 100644 index 000000000000..50ab72f0768a --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java @@ -0,0 +1,24 @@ +// 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; + +/** + * Samples for NetAppResourceUsages Get. + */ +public final class NetAppResourceUsagesGetSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Usages_Get.json + */ + /** + * Sample code: Usages_Get. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void usagesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.netAppResourceUsages() + .getWithResponse("eastus", "totalTibsPerSubscription", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java new file mode 100644 index 000000000000..f32cb4fe0518 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java @@ -0,0 +1,23 @@ +// 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; + +/** + * Samples for NetAppResourceUsages List. + */ +public final class NetAppResourceUsagesListSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Usages_List.json + */ + /** + * Sample code: Usages_List. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void usagesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.netAppResourceUsages().list("eastus", com.azure.core.util.Context.NONE); + } +} 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 index 00a2f7e0bd67..d883c232b890 100644 --- 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 @@ -10,7 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/OperationList.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/OperationList.json */ /** * Sample code: OperationList. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java index b5f06b56854b..1cc419bef168 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java @@ -13,7 +13,8 @@ public final class PoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_CreateOrUpdate.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_CreateOrUpdate. + * json */ /** * Sample code: Pools_CreateOrUpdate. @@ -30,4 +31,26 @@ public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFi .withQosType(QosType.AUTO) .create(); } + + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-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(); + } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java index db2c90975f06..bc5c37d12929 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java @@ -10,7 +10,7 @@ public final class PoolsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_Delete.json */ /** * Sample code: Pools_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java index 2d7f37fed6e1..93ca4685fd1a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java @@ -8,9 +8,22 @@ * Samples for Pools Get. */ public final class PoolsGetSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-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); + } + /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_Get.json */ /** * Sample code: Pools_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java index 5e978e1e9c7f..c030bc0755a7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java @@ -10,7 +10,7 @@ public final class PoolsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_List.json */ /** * Sample code: Pools_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java index ecf0b741c61d..cf9bdfad0f43 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java @@ -12,7 +12,7 @@ public final class PoolsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -24,4 +24,20 @@ public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManag = manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue(); resource.update().apply(); } + + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-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(); + } } 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 21544f70893d..fe6122b58a05 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 @@ -14,8 +14,8 @@ */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java index 153577c8845a..559ada1a23e6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java @@ -9,8 +9,8 @@ */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java index 1855d6f96cdd..4b108a9e3aa2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java @@ -10,7 +10,8 @@ public final class SnapshotPoliciesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/SnapshotPolicies_Get. + * json */ /** * Sample code: SnapshotPolicies_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java index 6ad01038cce0..254c238ee0ab 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java @@ -10,7 +10,8 @@ public final class SnapshotPoliciesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/SnapshotPolicies_List. + * json */ /** * Sample code: SnapshotPolicies_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java index 430ee5c034e9..699455f89872 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java @@ -9,9 +9,8 @@ */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_ListVolumes. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java index 41f2ff002554..ee2409461040 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java @@ -15,8 +15,8 @@ */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java index 45a02153d036..608377af5dfe 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java index 81d823a78e91..4618511929e7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java index b4c16df088a6..930be8f90192 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java index 600ef6cd5b23..4dd64e2e4786 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_List.json */ /** * Sample code: Snapshots_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java index f57f36de25ed..89cdd61b1248 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java @@ -12,9 +12,8 @@ */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_SingleFileRestore. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Snapshots_SingleFileRestore.json */ /** * Sample code: Snapshots_SingleFileRestore. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java index 0ca3e6c91c66..83f2da0c3739 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateSamples.java @@ -14,7 +14,7 @@ public final class SnapshotsUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Snapshots_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Snapshots_Update.json */ /** * Sample code: Snapshots_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java index fbb8508b75b1..eaeae32e9e39 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java @@ -10,7 +10,7 @@ public final class SubvolumesCreateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Create.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Create.json */ /** * Sample code: Subvolumes_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java index 4ac0c3711a81..5c879baa3e9a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java @@ -10,7 +10,7 @@ public final class SubvolumesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Delete.json */ /** * Sample code: Subvolumes_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java index dab6f78a04ed..3cf27102d84b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java @@ -10,7 +10,8 @@ public final class SubvolumesGetMetadataSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Metadata.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Metadata. + * json */ /** * Sample code: Subvolumes_Metadata. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java index 7a6db65659fc..9dfef798019e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java @@ -10,7 +10,7 @@ public final class SubvolumesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Get.json */ /** * Sample code: Subvolumes_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java index d212f36f8ab3..9c4106321909 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java @@ -10,7 +10,7 @@ public final class SubvolumesListByVolumeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_List.json */ /** * Sample code: Subvolumes_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java index 231d531b192e..92db0bab99cd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java @@ -12,7 +12,7 @@ public final class SubvolumesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Subvolumes_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Subvolumes_Update.json */ /** * Sample code: Subvolumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java index 2850e3752324..d4e8e9673bc5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java @@ -17,9 +17,8 @@ */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Create_SapHana. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_Create_SapHana.json */ /** * Sample code: VolumeGroups_Create_SapHana. @@ -56,12 +55,12 @@ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.Ne .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") .withVolumeSpecName("data"), new VolumeGroupVolumeProperties().withName("test-log-mnt00001") .withCreationToken("fakeTokenPlaceholder") @@ -84,12 +83,12 @@ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.Ne .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") .withVolumeSpecName("log"), new VolumeGroupVolumeProperties().withName("test-shared") .withCreationToken("fakeTokenPlaceholder") @@ -112,12 +111,12 @@ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.Ne .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") .withVolumeSpecName("shared"), new VolumeGroupVolumeProperties().withName("test-data-backup") .withCreationToken("fakeTokenPlaceholder") @@ -140,12 +139,12 @@ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.Ne .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") .withVolumeSpecName("data-backup"), new VolumeGroupVolumeProperties().withName("test-log-backup") .withCreationToken("fakeTokenPlaceholder") @@ -168,19 +167,19 @@ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.Ne .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") .withVolumeSpecName("log-backup"))) .create(); } /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_Create_Oracle.json */ /** * Sample code: VolumeGroups_Create_Oracle. @@ -218,10 +217,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data1"), new VolumeGroupVolumeProperties().withName("test-ora-data2") .withZones(Arrays.asList("1")) @@ -245,10 +244,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data2"), new VolumeGroupVolumeProperties().withName("test-ora-data3") .withZones(Arrays.asList("1")) @@ -272,10 +271,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data3"), new VolumeGroupVolumeProperties().withName("test-ora-data4") .withZones(Arrays.asList("1")) @@ -299,10 +298,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data4"), new VolumeGroupVolumeProperties().withName("test-ora-data5") .withZones(Arrays.asList("1")) @@ -326,10 +325,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data5"), new VolumeGroupVolumeProperties().withName("test-ora-data6") .withZones(Arrays.asList("1")) @@ -353,10 +352,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data6"), new VolumeGroupVolumeProperties().withName("test-ora-data7") .withZones(Arrays.asList("1")) @@ -380,10 +379,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data7"), new VolumeGroupVolumeProperties().withName("test-ora-data8") .withZones(Arrays.asList("1")) @@ -407,10 +406,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-data8"), new VolumeGroupVolumeProperties().withName("test-ora-log") .withZones(Arrays.asList("1")) @@ -434,10 +433,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-log"), new VolumeGroupVolumeProperties().withName("test-ora-log-mirror") .withZones(Arrays.asList("1")) @@ -461,10 +460,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-log-mirror"), new VolumeGroupVolumeProperties().withName("test-ora-binary") .withZones(Arrays.asList("1")) @@ -488,10 +487,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-binary"), new VolumeGroupVolumeProperties().withName("test-ora-backup") .withZones(Arrays.asList("1")) @@ -515,10 +514,10 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net .withHasRootAccess(true)))) .withProtocolTypes(Arrays.asList("NFSv4.1")) .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withThroughputMibps(10.0F) .withCapacityPoolResourceId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1") .withVolumeSpecName("ora-backup"))) .create(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java index a3d0f248933e..3f06cfa18a65 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java @@ -10,7 +10,8 @@ public final class VolumeGroupsDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/VolumeGroups_Delete. + * json */ /** * Sample code: VolumeGroups_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java index f82ee0f62e3a..a043a1a8987b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java @@ -9,8 +9,8 @@ */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. @@ -22,8 +22,8 @@ public static void volumeGroupsGetSapHana(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_Get_Oracle.json */ /** * Sample code: VolumeGroups_Get_Oracle. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java index 5b05da68802d..935d19c90570 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java @@ -9,8 +9,8 @@ */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. @@ -22,8 +22,8 @@ public static void volumeGroupsListOracle(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeGroups_List_SapHana.json */ /** * Sample code: VolumeGroups_List_SapHana. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java index 443a6bcb643c..672041764048 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java @@ -11,8 +11,8 @@ */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeQuotaRules_Create.json */ /** * Sample code: VolumeQuotaRules_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java index acda72f50220..109e43a629fa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java @@ -9,8 +9,8 @@ */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeQuotaRules_Delete.json */ /** * Sample code: VolumeQuotaRules_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java index 2e34cdbef05b..314062cbefc7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java @@ -10,7 +10,8 @@ public final class VolumeQuotaRulesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/VolumeQuotaRules_Get. + * json */ /** * Sample code: VolumeQuotaRules_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java index b4cac1ef24d5..0d0dd5faf686 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java @@ -10,7 +10,8 @@ public final class VolumeQuotaRulesListByVolumeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/VolumeQuotaRules_List. + * json */ /** * Sample code: VolumeQuotaRules_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java index 359af3f5263c..8826a00827a2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java @@ -11,8 +11,8 @@ */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * VolumeQuotaRules_Update.json */ /** * Sample code: VolumeQuotaRules_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java index df361d43c987..f9c8ae469db8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesAuthorizeExternalReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Volumes_AuthorizeExternalReplication.json */ /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java index a3c5f15ea6d9..f728ae21f3cf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java @@ -11,9 +11,8 @@ */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_AuthorizeReplication. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -24,7 +23,7 @@ public static void volumesAuthorizeReplication(com.azure.resourcemanager.netapp. manager.volumes() .authorizeReplication("myRG", "account1", "pool1", "volume1", new AuthorizeRequest().withRemoteVolumeResourceId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java index 19ef4dc5a2fe..f97bc2fb514a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java @@ -12,7 +12,8 @@ public final class VolumesBreakFileLocksSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_BreakFileLocks.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_BreakFileLocks + * .json */ /** * Sample code: Volumes_BreakFileLocks. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java index 61ab54141b21..87501ccaaf73 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java @@ -11,8 +11,8 @@ */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java index 453d3e23604a..711ab793bee5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java @@ -12,7 +12,8 @@ public final class VolumesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_CreateOrUpdate.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_CreateOrUpdate + * .json */ /** * Sample code: Volumes_CreateOrUpdate. @@ -27,7 +28,7 @@ public static void volumesCreateOrUpdate(com.azure.resourcemanager.netapp.NetApp .withCreationToken("my-unique-file-path") .withUsageThreshold(107374182400L) .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") .withServiceLevel(ServiceLevel.PREMIUM) .create(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java index 92f7f3a26609..d3f9b2f8f53c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java @@ -9,8 +9,8 @@ */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java index 7f638aec98da..4b2dea502c3b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java @@ -10,7 +10,7 @@ public final class VolumesDeleteSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Delete.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java index 838e3936af97..0b7ce73e8a72 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesFinalizeExternalReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Volumes_FinalizeExternalReplication.json */ /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java index 37a2a65a98ed..d1a7226e87df 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java @@ -9,8 +9,8 @@ */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_FinalizeRelocation.json */ /** * Sample code: Volumes_FinalizeRelocation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java index 0d8bf2d1afbb..6f004da6f6b0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java @@ -10,7 +10,7 @@ public final class VolumesGetSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Get.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Get.json */ /** * Sample code: Volumes_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java index 555d371635b5..b611f2995d38 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java @@ -12,7 +12,8 @@ public final class VolumesListGetGroupIdListForLdapUserSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/GroupIdListForLDAPUser.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/GroupIdListForLDAPUser + * .json */ /** * Sample code: GetGroupIdListForUser. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java new file mode 100644 index 000000000000..e7d671cea548 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java @@ -0,0 +1,23 @@ +// 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; + +/** + * Samples for Volumes ListQuotaReport. + */ +public final class VolumesListQuotaReportSamples { + /* + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ListQuotaReport.json + */ + /** + * Sample code: ListQuotaReport. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void listQuotaReport(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.volumes().listQuotaReport("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java index d97bb05a9f5b..540f291bb958 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java @@ -9,8 +9,8 @@ */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ListReplications.json */ /** * Sample code: Volumes_ListReplications. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java index 261fe3bc27c6..246b42a081ab 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java @@ -10,7 +10,7 @@ public final class VolumesListSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_List.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_List.json */ /** * Sample code: Volumes_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java index b3e79c92eaec..62f76608f3e2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java @@ -12,9 +12,8 @@ */ public final class VolumesPeerExternalClusterSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_PeerExternalCluster. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_PeerExternalCluster.json */ /** * Sample code: Volumes_PeerExternalCluster. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java index e8b7ef28bba0..68d72f41f86b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesPerformReplicationTransferSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Volumes_PerformReplicationTransfer.json */ /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java index bc53409dd86c..e3a9b3d613da 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java @@ -12,7 +12,8 @@ public final class VolumesPoolChangeSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_PoolChange.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_PoolChange. + * json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -22,7 +23,7 @@ public final class VolumesPoolChangeSamples { public static void volumesAuthorizeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.volumes() .poolChange("myRG", "account1", "pool1", "volume1", new PoolChangeRequest().withNewPoolResourceId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java index 501d6de16499..607f5178f937 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesPopulateAvailabilityZoneSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/ + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ * Volumes_PopulateAvailabilityZones.json */ /** diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java index c80e86a7aec4..f506cd171a2e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java @@ -9,9 +9,8 @@ */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReInitializeReplication - * .json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java index 28bbb51a9dcd..5fbb79546585 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java @@ -11,9 +11,8 @@ */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReestablishReplication. - * json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ReestablishReplication.json */ /** * Sample code: Volumes_ReestablishReplication. @@ -24,7 +23,7 @@ public static void volumesReestablishReplication(com.azure.resourcemanager.netap manager.volumes() .reestablishReplication("myRG", "account1", "pool1", "volume1", new ReestablishReplicationRequest().withSourceVolumeId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java index e0e19da866b0..e501187fc3e5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java @@ -12,7 +12,7 @@ public final class VolumesRelocateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Relocate.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Relocate.json */ /** * Sample code: Volumes_Relocate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java index db3d82d53d9e..ce187dbac6ff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java @@ -9,8 +9,8 @@ */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java index 53e124eaed49..e79ab9a634d1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java @@ -9,8 +9,8 @@ */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ResetCifsPassword.json */ /** * Sample code: Volumes_ResetCifsPassword. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java index 6c3efba46062..e80fda1df2ba 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java @@ -9,8 +9,8 @@ */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java index 63157aa8aed1..555777a306ed 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java @@ -9,8 +9,8 @@ */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/ + * Volumes_RevertRelocation.json */ /** * Sample code: Volumes_RevertRelocation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java index 88d73ef79d68..33f7f226ef02 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java @@ -12,7 +12,7 @@ public final class VolumesRevertSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Revert.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. @@ -22,7 +22,7 @@ public final class VolumesRevertSamples { public static void volumesRevert(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager.volumes() .revert("myRG", "account1", "pool1", "volume1", new VolumeRevert().withSnapshotId( - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"), + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java new file mode 100644 index 000000000000..4bdb95b5c420 --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java @@ -0,0 +1,25 @@ +// 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; + +/** + * Samples for Volumes SplitCloneFromParent. + */ +public final class VolumesSplitCloneFromParentSamples { + /* + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_SplitClone. + * json + */ + /** + * Sample code: Volumes_SplitClone. + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void volumesSplitClone(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.volumes() + .splitCloneFromParent("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java index 960b6c3fc2eb..1a079cbe5df6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java @@ -12,7 +12,7 @@ public final class VolumesUpdateSamples { /* * x-ms-original-file: - * specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_Update.json + * specification/netapp/resource-manager/Microsoft.NetApp/preview/2025-01-01-preview/examples/Volumes_Update.json */ /** * Sample code: Volumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java deleted file mode 100644 index 870a906a7700..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AccountsRenewCredentialsMockTests { - @Test - public void testRenewCredentials() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.accounts().renewCredentials("qvdaeyyguxakjsq", "hzbezkgi", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AuthorizeRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AuthorizeRequestTests.java deleted file mode 100644 index 0b82ecd814b5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AuthorizeRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.AuthorizeRequest; -import org.junit.jupiter.api.Assertions; - -public final class AuthorizeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AuthorizeRequest model - = BinaryData.fromString("{\"remoteVolumeResourceId\":\"d\"}").toObject(AuthorizeRequest.class); - Assertions.assertEquals("d", model.remoteVolumeResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AuthorizeRequest model = new AuthorizeRequest().withRemoteVolumeResourceId("d"); - model = BinaryData.fromObject(model).toObject(AuthorizeRequest.class); - Assertions.assertEquals("d", model.remoteVolumeResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupInnerTests.java deleted file mode 100644 index 0715848bc71c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupInnerTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupInner; -import org.junit.jupiter.api.Assertions; - -public final class BackupInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupInner model = BinaryData.fromString( - "{\"properties\":{\"backupId\":\"zukxitmmqtgqq\",\"creationDate\":\"2021-05-22T07:03:57Z\",\"provisioningState\":\"n\",\"size\":7842491154861301070,\"label\":\"juisavokqdzf\",\"backupType\":\"Manual\",\"failureReason\":\"vjlfrqtt\",\"volumeResourceId\":\"ajlkatnw\",\"useExistingSnapshot\":false,\"snapshotName\":\"pidkqqfkuvscxkdm\",\"backupPolicyResourceId\":\"govibrxkpmloazu\"},\"id\":\"ocbgoorbteoyb\",\"name\":\"hjxa\",\"type\":\"vvjgslor\"}") - .toObject(BackupInner.class); - Assertions.assertEquals("juisavokqdzf", model.label()); - Assertions.assertEquals("ajlkatnw", model.volumeResourceId()); - Assertions.assertEquals(false, model.useExistingSnapshot()); - Assertions.assertEquals("pidkqqfkuvscxkdm", model.snapshotName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupInner model = new BackupInner().withLabel("juisavokqdzf") - .withVolumeResourceId("ajlkatnw") - .withUseExistingSnapshot(false) - .withSnapshotName("pidkqqfkuvscxkdm"); - model = BinaryData.fromObject(model).toObject(BackupInner.class); - Assertions.assertEquals("juisavokqdzf", model.label()); - Assertions.assertEquals("ajlkatnw", model.volumeResourceId()); - Assertions.assertEquals(false, model.useExistingSnapshot()); - Assertions.assertEquals("pidkqqfkuvscxkdm", model.snapshotName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchPropertiesTests.java deleted file mode 100644 index c597cc13004c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupPatchProperties; -import org.junit.jupiter.api.Assertions; - -public final class BackupPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPatchProperties model - = BinaryData.fromString("{\"label\":\"nwqjnoba\"}").toObject(BackupPatchProperties.class); - Assertions.assertEquals("nwqjnoba", model.label()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPatchProperties model = new BackupPatchProperties().withLabel("nwqjnoba"); - model = BinaryData.fromObject(model).toObject(BackupPatchProperties.class); - Assertions.assertEquals("nwqjnoba", model.label()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchTests.java deleted file mode 100644 index 9ea2860a5fd9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPatchTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.BackupPatch; -import org.junit.jupiter.api.Assertions; - -public final class BackupPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPatch model = BinaryData.fromString("{\"properties\":{\"label\":\"gsj\"}}").toObject(BackupPatch.class); - Assertions.assertEquals("gsj", model.label()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPatch model = new BackupPatch().withLabel("gsj"); - model = BinaryData.fromObject(model).toObject(BackupPatch.class); - Assertions.assertEquals("gsj", model.label()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java deleted file mode 100644 index ef582257e233..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupPolicy; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupPoliciesCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"etag\":\"qw\",\"properties\":{\"backupPolicyId\":\"d\",\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":999177682,\"weeklyBackupsToKeep\":1674371037,\"monthlyBackupsToKeep\":703161426,\"volumesAssigned\":1221271560,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"gwgcl\",\"volumeResourceId\":\"oebqinjipn\",\"backupsCount\":296049099,\"policyEnabled\":true}]},\"location\":\"lafcbahh\",\"tags\":{\"w\":\"ofoiy\",\"ndviauogphuartvt\":\"filkmkkholv\"},\"id\":\"ukyefchnmnahmnxh\",\"name\":\"xjqirwrweoox\",\"type\":\"fifhxwrsnew\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - BackupPolicy response = manager.backupPolicies() - .define("vsg") - .withRegion("xmcuqud") - .withExistingNetAppAccount("fr", "xousxauzl") - .withTags(mapOf("dkvgfabuiyjibuzp", "clxyn")) - .withDailyBackupsToKeep(1994434352) - .withWeeklyBackupsToKeep(468470130) - .withMonthlyBackupsToKeep(1587731345) - .withEnabled(false) - .create(); - - Assertions.assertEquals("lafcbahh", response.location()); - Assertions.assertEquals("ofoiy", response.tags().get("w")); - Assertions.assertEquals(999177682, response.dailyBackupsToKeep()); - Assertions.assertEquals(1674371037, response.weeklyBackupsToKeep()); - Assertions.assertEquals(703161426, response.monthlyBackupsToKeep()); - Assertions.assertEquals(true, response.enabled()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java deleted file mode 100644 index 99a788b2aa37..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupPoliciesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.backupPolicies() - .delete("picrmnzhrgmqgjsx", "pqcbfrmbodthsq", "gvriibakclac", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java deleted file mode 100644 index d6f3fdc1c1f9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupPolicy; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"etag\":\"lqivbgkcv\",\"properties\":{\"backupPolicyId\":\"pzvuqdflvo\",\"provisioningState\":\"yp\",\"dailyBackupsToKeep\":401021303,\"weeklyBackupsToKeep\":38455799,\"monthlyBackupsToKeep\":783120706,\"volumesAssigned\":1879073988,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"j\",\"volumeResourceId\":\"idibgqjxgpn\",\"backupsCount\":1622110038,\"policyEnabled\":true},{\"volumeName\":\"gpikqmh\",\"volumeResourceId\":\"owjrmzvuporqz\",\"backupsCount\":1356794202,\"policyEnabled\":true}]},\"location\":\"vkfvxcnqmxqpswok\",\"tags\":{\"gdhbe\":\"hl\"},\"id\":\"zqkzszuwi\",\"name\":\"tglxx\",\"type\":\"ljfp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - BackupPolicy response = manager.backupPolicies() - .getWithResponse("zkc", "yxrxmunj", "xvglnkvxlxp", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vkfvxcnqmxqpswok", response.location()); - Assertions.assertEquals("hl", response.tags().get("gdhbe")); - Assertions.assertEquals(401021303, response.dailyBackupsToKeep()); - Assertions.assertEquals(38455799, response.weeklyBackupsToKeep()); - Assertions.assertEquals(783120706, response.monthlyBackupsToKeep()); - Assertions.assertEquals(true, response.enabled()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java deleted file mode 100644 index 72e7a312c8fe..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupPolicy; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupPoliciesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"etag\":\"ujztcz\",\"properties\":{\"backupPolicyId\":\"qjtwhauu\",\"provisioningState\":\"prnjletlxsmr\",\"dailyBackupsToKeep\":436134303,\"weeklyBackupsToKeep\":2070557844,\"monthlyBackupsToKeep\":453207888,\"volumesAssigned\":2066157212,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"yn\",\"volumeResourceId\":\"lqwzdvpiwhxqsz\",\"backupsCount\":1059489407,\"policyEnabled\":true}]},\"location\":\"quhuxylrj\",\"tags\":{\"kfkyjp\":\"ygjbmzyospspsh\"},\"id\":\"sp\",\"name\":\"pssdfppyogtie\",\"type\":\"ujtv\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.backupPolicies().list("quvre", "mrnjh", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("quhuxylrj", response.iterator().next().location()); - Assertions.assertEquals("ygjbmzyospspsh", response.iterator().next().tags().get("kfkyjp")); - Assertions.assertEquals(436134303, response.iterator().next().dailyBackupsToKeep()); - Assertions.assertEquals(2070557844, response.iterator().next().weeklyBackupsToKeep()); - Assertions.assertEquals(453207888, response.iterator().next().monthlyBackupsToKeep()); - Assertions.assertEquals(false, response.iterator().next().enabled()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java deleted file mode 100644 index c02a1c94cf45..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner; -import com.azure.resourcemanager.netapp.models.BackupPoliciesList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupPoliciesListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPoliciesList model = BinaryData.fromString( - "{\"value\":[{\"etag\":\"ggicccnxqhue\",\"properties\":{\"backupPolicyId\":\"ktt\",\"provisioningState\":\"tvlz\",\"dailyBackupsToKeep\":798208756,\"weeklyBackupsToKeep\":471536025,\"monthlyBackupsToKeep\":218184123,\"volumesAssigned\":1311146203,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"u\",\"volumeResourceId\":\"ypbsfgytguslfead\",\"backupsCount\":358703588,\"policyEnabled\":true},{\"volumeName\":\"yhejhzisxgfp\",\"volumeResourceId\":\"olppvksrpqvujz\",\"backupsCount\":126730684,\"policyEnabled\":false}]},\"location\":\"dw\",\"tags\":{\"dl\":\"swibyr\",\"hfwpracstwit\":\"h\"},\"id\":\"khevxccedc\",\"name\":\"nmdyodnwzxl\",\"type\":\"jc\"},{\"etag\":\"hlt\",\"properties\":{\"backupPolicyId\":\"gcxn\",\"provisioningState\":\"vwxqibyqunyo\",\"dailyBackupsToKeep\":2001486807,\"weeklyBackupsToKeep\":1090974611,\"monthlyBackupsToKeep\":1597116231,\"volumesAssigned\":351776134,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"fvpdbo\",\"volumeResourceId\":\"cizsjqlhkrribdei\",\"backupsCount\":1262026177,\"policyEnabled\":false},{\"volumeName\":\"ghvxndzwmkrefa\",\"volumeResourceId\":\"jorwkqnyhgbij\",\"backupsCount\":1741167059,\"policyEnabled\":true},{\"volumeName\":\"zs\",\"volumeResourceId\":\"bibsystawfsdjpvk\",\"backupsCount\":250834954,\"policyEnabled\":true}]},\"location\":\"kzbzkdvncjabudu\",\"tags\":{\"hmouwqlgzrfze\":\"akmokzhjjklf\",\"lbjbsyb\":\"yebizikayuh\"},\"id\":\"qwrvtldgmfp\",\"name\":\"vm\",\"type\":\"ipaslthaqfxssmwu\"},{\"etag\":\"bdsrez\",\"properties\":{\"backupPolicyId\":\"rhneuyowq\",\"provisioningState\":\"wyt\",\"dailyBackupsToKeep\":372277345,\"weeklyBackupsToKeep\":97621763,\"monthlyBackupsToKeep\":1145560346,\"volumesAssigned\":1229797985,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"mejzanlfzxia\",\"volumeResourceId\":\"mbzonokix\",\"backupsCount\":115638191,\"policyEnabled\":false},{\"volumeName\":\"gzpfrla\",\"volumeResourceId\":\"zrnw\",\"backupsCount\":409653705,\"policyEnabled\":true},{\"volumeName\":\"pwp\",\"volumeResourceId\":\"lwbtlhf\",\"backupsCount\":901371312,\"policyEnabled\":false}]},\"location\":\"szfjvfbgofelja\",\"tags\":{\"ojnal\":\"mqhldvrii\",\"qhhahhxvrhmzkwpj\":\"hfkvtvsexsowuel\",\"ughftqsx\":\"wws\"},\"id\":\"qxujxukndxd\",\"name\":\"grjguufzd\",\"type\":\"syqtfi\"},{\"etag\":\"hbotzingamvppho\",\"properties\":{\"backupPolicyId\":\"qzudphq\",\"provisioningState\":\"vdkfwynwcvtbvk\",\"dailyBackupsToKeep\":1479821561,\"weeklyBackupsToKeep\":911796600,\"monthlyBackupsToKeep\":1206519159,\"volumesAssigned\":565781188,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"wp\",\"volumeResourceId\":\"p\",\"backupsCount\":219155482,\"policyEnabled\":false},{\"volumeName\":\"sgvvsccyajguq\",\"volumeResourceId\":\"wygzlvdnkfxusem\",\"backupsCount\":1095077901,\"policyEnabled\":true}]},\"location\":\"hapfcqdpsqx\",\"tags\":{\"mgccelvezrypq\":\"svuo\",\"kerqwkyh\":\"mfe\",\"pg\":\"ob\"},\"id\":\"edkowepbqpcrfk\",\"name\":\"wccsnjvcdwxlpqek\",\"type\":\"tn\"}]}") - .toObject(BackupPoliciesList.class); - Assertions.assertEquals("dw", model.value().get(0).location()); - Assertions.assertEquals("swibyr", model.value().get(0).tags().get("dl")); - Assertions.assertEquals(798208756, model.value().get(0).dailyBackupsToKeep()); - Assertions.assertEquals(471536025, model.value().get(0).weeklyBackupsToKeep()); - Assertions.assertEquals(218184123, model.value().get(0).monthlyBackupsToKeep()); - Assertions.assertEquals(true, model.value().get(0).enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPoliciesList model = new BackupPoliciesList().withValue(Arrays.asList( - new BackupPolicyInner().withLocation("dw") - .withTags(mapOf("dl", "swibyr", "hfwpracstwit", "h")) - .withDailyBackupsToKeep(798208756) - .withWeeklyBackupsToKeep(471536025) - .withMonthlyBackupsToKeep(218184123) - .withEnabled(true), - new BackupPolicyInner().withLocation("kzbzkdvncjabudu") - .withTags(mapOf("hmouwqlgzrfze", "akmokzhjjklf", "lbjbsyb", "yebizikayuh")) - .withDailyBackupsToKeep(2001486807) - .withWeeklyBackupsToKeep(1090974611) - .withMonthlyBackupsToKeep(1597116231) - .withEnabled(true), - new BackupPolicyInner().withLocation("szfjvfbgofelja") - .withTags(mapOf("ojnal", "mqhldvrii", "qhhahhxvrhmzkwpj", "hfkvtvsexsowuel", "ughftqsx", "wws")) - .withDailyBackupsToKeep(372277345) - .withWeeklyBackupsToKeep(97621763) - .withMonthlyBackupsToKeep(1145560346) - .withEnabled(false), - new BackupPolicyInner().withLocation("hapfcqdpsqx") - .withTags(mapOf("mgccelvezrypq", "svuo", "kerqwkyh", "mfe", "pg", "ob")) - .withDailyBackupsToKeep(1479821561) - .withWeeklyBackupsToKeep(911796600) - .withMonthlyBackupsToKeep(1206519159) - .withEnabled(true))); - model = BinaryData.fromObject(model).toObject(BackupPoliciesList.class); - Assertions.assertEquals("dw", model.value().get(0).location()); - Assertions.assertEquals("swibyr", model.value().get(0).tags().get("dl")); - Assertions.assertEquals(798208756, model.value().get(0).dailyBackupsToKeep()); - Assertions.assertEquals(471536025, model.value().get(0).weeklyBackupsToKeep()); - Assertions.assertEquals(218184123, model.value().get(0).monthlyBackupsToKeep()); - Assertions.assertEquals(true, model.value().get(0).enabled()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java deleted file mode 100644 index 9f375aa2dcfb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPolicyInner model = BinaryData.fromString( - "{\"etag\":\"tjsyin\",\"properties\":{\"backupPolicyId\":\"fq\",\"provisioningState\":\"mtdh\",\"dailyBackupsToKeep\":709166537,\"weeklyBackupsToKeep\":1330472875,\"monthlyBackupsToKeep\":1700439966,\"volumesAssigned\":811019553,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"w\",\"volumeResourceId\":\"irryuzhlh\",\"backupsCount\":904307607,\"policyEnabled\":false},{\"volumeName\":\"qqaatjinrvgou\",\"volumeResourceId\":\"fiibfggjioolvr\",\"backupsCount\":1483667739,\"policyEnabled\":true}]},\"location\":\"k\",\"tags\":{\"vblm\":\"qwjygvja\",\"byrqufeg\":\"vkzuhbxvvyhgso\",\"mctlpdngitv\":\"uvwzfbnh\",\"grhbpn\":\"bmhrixkwmyijejv\"},\"id\":\"ixexcc\",\"name\":\"dreaxh\",\"type\":\"exdrrvqahqkg\"}") - .toObject(BackupPolicyInner.class); - Assertions.assertEquals("k", model.location()); - Assertions.assertEquals("qwjygvja", model.tags().get("vblm")); - Assertions.assertEquals(709166537, model.dailyBackupsToKeep()); - Assertions.assertEquals(1330472875, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1700439966, model.monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPolicyInner model = new BackupPolicyInner().withLocation("k") - .withTags(mapOf("vblm", "qwjygvja", "byrqufeg", "vkzuhbxvvyhgso", "mctlpdngitv", "uvwzfbnh", "grhbpn", - "bmhrixkwmyijejv")) - .withDailyBackupsToKeep(709166537) - .withWeeklyBackupsToKeep(1330472875) - .withMonthlyBackupsToKeep(1700439966) - .withEnabled(false); - model = BinaryData.fromObject(model).toObject(BackupPolicyInner.class); - Assertions.assertEquals("k", model.location()); - Assertions.assertEquals("qwjygvja", model.tags().get("vblm")); - Assertions.assertEquals(709166537, model.dailyBackupsToKeep()); - Assertions.assertEquals(1330472875, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1700439966, model.monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.enabled()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java deleted file mode 100644 index 6261a45ee28e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.BackupPolicyPatch; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupPolicyPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPolicyPatch model = BinaryData.fromString( - "{\"properties\":{\"backupPolicyId\":\"vfelfktgplcrpwj\",\"provisioningState\":\"znoigbrn\",\"dailyBackupsToKeep\":509080980,\"weeklyBackupsToKeep\":820542416,\"monthlyBackupsToKeep\":1312335759,\"volumesAssigned\":650056423,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"oqkag\",\"volumeResourceId\":\"sxtta\",\"backupsCount\":1689987065,\"policyEnabled\":true},{\"volumeName\":\"aa\",\"volumeResourceId\":\"xdtnkdmkqjjlw\",\"backupsCount\":953269937,\"policyEnabled\":true}]},\"location\":\"kpyouaibrebqaay\",\"tags\":{\"ttezlw\":\"ixqtn\",\"pqqmted\":\"ffiakp\",\"wau\":\"tmmjihyeozph\"},\"id\":\"qncygupkvi\",\"name\":\"mdscwxqupev\",\"type\":\"hfstotxhojujbyp\"}") - .toObject(BackupPolicyPatch.class); - Assertions.assertEquals("kpyouaibrebqaay", model.location()); - Assertions.assertEquals("ixqtn", model.tags().get("ttezlw")); - Assertions.assertEquals(509080980, model.dailyBackupsToKeep()); - Assertions.assertEquals(820542416, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1312335759, model.monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPolicyPatch model = new BackupPolicyPatch().withLocation("kpyouaibrebqaay") - .withTags(mapOf("ttezlw", "ixqtn", "pqqmted", "ffiakp", "wau", "tmmjihyeozph")) - .withDailyBackupsToKeep(509080980) - .withWeeklyBackupsToKeep(820542416) - .withMonthlyBackupsToKeep(1312335759) - .withEnabled(false); - model = BinaryData.fromObject(model).toObject(BackupPolicyPatch.class); - Assertions.assertEquals("kpyouaibrebqaay", model.location()); - Assertions.assertEquals("ixqtn", model.tags().get("ttezlw")); - Assertions.assertEquals(509080980, model.dailyBackupsToKeep()); - Assertions.assertEquals(820542416, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1312335759, model.monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.enabled()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java deleted file mode 100644 index c12d511ed039..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties; -import org.junit.jupiter.api.Assertions; - -public final class BackupPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPolicyProperties model = BinaryData.fromString( - "{\"backupPolicyId\":\"pwijnhy\",\"provisioningState\":\"vfycxzb\",\"dailyBackupsToKeep\":1564652638,\"weeklyBackupsToKeep\":1626035296,\"monthlyBackupsToKeep\":1844906639,\"volumesAssigned\":561750427,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"pyostronzmyhgfi\",\"volumeResourceId\":\"sxkm\",\"backupsCount\":115360224,\"policyEnabled\":false}]}") - .toObject(BackupPolicyProperties.class); - Assertions.assertEquals(1564652638, model.dailyBackupsToKeep()); - Assertions.assertEquals(1626035296, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1844906639, model.monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPolicyProperties model = new BackupPolicyProperties().withDailyBackupsToKeep(1564652638) - .withWeeklyBackupsToKeep(1626035296) - .withMonthlyBackupsToKeep(1844906639) - .withEnabled(false); - model = BinaryData.fromObject(model).toObject(BackupPolicyProperties.class); - Assertions.assertEquals(1564652638, model.dailyBackupsToKeep()); - Assertions.assertEquals(1626035296, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1844906639, model.monthlyBackupsToKeep()); - Assertions.assertEquals(false, model.enabled()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPropertiesTests.java deleted file mode 100644 index dd25ba97a954..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPropertiesTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupProperties; -import org.junit.jupiter.api.Assertions; - -public final class BackupPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupProperties model = BinaryData.fromString( - "{\"backupId\":\"lmywwtkgkxnyed\",\"creationDate\":\"2021-04-02T22:41:49Z\",\"provisioningState\":\"vudtjuewbcihx\",\"size\":8529210988663924924,\"label\":\"j\",\"backupType\":\"Manual\",\"failureReason\":\"ybvpay\",\"volumeResourceId\":\"kkudzp\",\"useExistingSnapshot\":false,\"snapshotName\":\"plmag\",\"backupPolicyResourceId\":\"cyohpfkyrkdbd\"}") - .toObject(BackupProperties.class); - Assertions.assertEquals("j", model.label()); - Assertions.assertEquals("kkudzp", model.volumeResourceId()); - Assertions.assertEquals(false, model.useExistingSnapshot()); - Assertions.assertEquals("plmag", model.snapshotName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupProperties model = new BackupProperties().withLabel("j") - .withVolumeResourceId("kkudzp") - .withUseExistingSnapshot(false) - .withSnapshotName("plmag"); - model = BinaryData.fromObject(model).toObject(BackupProperties.class); - Assertions.assertEquals("j", model.label()); - Assertions.assertEquals("kkudzp", model.volumeResourceId()); - Assertions.assertEquals(false, model.useExistingSnapshot()); - Assertions.assertEquals("plmag", model.snapshotName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java deleted file mode 100644 index 4621e19cda80..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.BackupRestoreFiles; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BackupRestoreFilesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupRestoreFiles model = BinaryData.fromString( - "{\"fileList\":[\"eewchpxlktw\",\"uziycsl\",\"vu\"],\"restoreFilePath\":\"ztcktyh\",\"destinationVolumeId\":\"tqedcgzulwm\"}") - .toObject(BackupRestoreFiles.class); - Assertions.assertEquals("eewchpxlktw", model.fileList().get(0)); - Assertions.assertEquals("ztcktyh", model.restoreFilePath()); - Assertions.assertEquals("tqedcgzulwm", model.destinationVolumeId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupRestoreFiles model = new BackupRestoreFiles().withFileList(Arrays.asList("eewchpxlktw", "uziycsl", "vu")) - .withRestoreFilePath("ztcktyh") - .withDestinationVolumeId("tqedcgzulwm"); - model = BinaryData.fromObject(model).toObject(BackupRestoreFiles.class); - Assertions.assertEquals("eewchpxlktw", model.fileList().get(0)); - Assertions.assertEquals("ztcktyh", model.restoreFilePath()); - Assertions.assertEquals("tqedcgzulwm", model.destinationVolumeId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupStatusInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupStatusInnerTests.java deleted file mode 100644 index 8a830433ac9d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupStatusInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner; - -public final class BackupStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupStatusInner model = BinaryData.fromString( - "{\"healthy\":true,\"relationshipStatus\":\"Failed\",\"mirrorState\":\"Broken\",\"unhealthyReason\":\"s\",\"errorMessage\":\"dotcubiipuip\",\"lastTransferSize\":7194165159471944548,\"lastTransferType\":\"macjekn\",\"totalTransferBytes\":1517216245064921581,\"transferProgressBytes\":7133413366116679058}") - .toObject(BackupStatusInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupStatusInner model = new BackupStatusInner(); - model = BinaryData.fromObject(model).toObject(BackupStatusInner.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultInnerTests.java deleted file mode 100644 index 348a13f5692d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultInnerTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupVaultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupVaultInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"jvlpjxxkzbr\"},\"location\":\"geivsiykzkdncj\",\"tags\":{\"apzwyrpgog\":\"nbzoggcu\",\"yjt\":\"qxepnylbfuaj\",\"byfmowuxr\":\"vofqzhvfc\",\"xfzwi\":\"jpvd\"},\"id\":\"vwzjbhyz\",\"name\":\"xjrk\",\"type\":\"mbtrnegvmnvu\"}") - .toObject(BackupVaultInner.class); - Assertions.assertEquals("geivsiykzkdncj", model.location()); - Assertions.assertEquals("nbzoggcu", model.tags().get("apzwyrpgog")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupVaultInner model = new BackupVaultInner().withLocation("geivsiykzkdncj") - .withTags( - mapOf("apzwyrpgog", "nbzoggcu", "yjt", "qxepnylbfuaj", "byfmowuxr", "vofqzhvfc", "xfzwi", "jpvd")); - model = BinaryData.fromObject(model).toObject(BackupVaultInner.class); - Assertions.assertEquals("geivsiykzkdncj", model.location()); - Assertions.assertEquals("nbzoggcu", model.tags().get("apzwyrpgog")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java deleted file mode 100644 index 7af4d09934cf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPatchTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.BackupVaultPatch; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupVaultPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupVaultPatch model - = BinaryData.fromString("{\"tags\":{\"rriloz\":\"vestmjl\"}}").toObject(BackupVaultPatch.class); - Assertions.assertEquals("vestmjl", model.tags().get("rriloz")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupVaultPatch model = new BackupVaultPatch().withTags(mapOf("rriloz", "vestmjl")); - model = BinaryData.fromObject(model).toObject(BackupVaultPatch.class); - Assertions.assertEquals("vestmjl", model.tags().get("rriloz")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java deleted file mode 100644 index 10de68c5dad9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultPropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupVaultProperties; - -public final class BackupVaultPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupVaultProperties model - = BinaryData.fromString("{\"provisioningState\":\"qvldspastjbkkd\"}").toObject(BackupVaultProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupVaultProperties model = new BackupVaultProperties(); - model = BinaryData.fromObject(model).toObject(BackupVaultProperties.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java deleted file mode 100644 index 982d5b191656..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupVault; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupVaultsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"location\":\"uihywart\",\"tags\":{\"emmucfxh\":\"hkixkykxdssj\",\"s\":\"kkflrmymyincqlhr\",\"iiiovgqcgxuugq\":\"sl\",\"e\":\"ctotiowlx\"},\"id\":\"dptjgwdtgukranb\",\"name\":\"wphqlkccuzgygqw\",\"type\":\"hoi\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - BackupVault response = manager.backupVaults() - .define("blycsxzujksr") - .withRegion("bidyv") - .withExistingNetAppAccount("ywaeeczgf", "ukklelss") - .withTags(mapOf("paxwkufyk", "wxvgpiudeugfsxze")) - .create(); - - Assertions.assertEquals("uihywart", response.location()); - Assertions.assertEquals("hkixkykxdssj", response.tags().get("emmucfxh")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java deleted file mode 100644 index e141e8da0f1c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupVault; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupVaultsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"sqowxwc\"},\"location\":\"likytwvczcswka\",\"tags\":{\"b\":\"jyfdvlv\",\"th\":\"rnfxtgddp\",\"naoyank\":\"hn\",\"swankltytmh\":\"oe\"},\"id\":\"roznnhdrlktgj\",\"name\":\"sggux\",\"type\":\"eml\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - BackupVault response = manager.backupVaults() - .getWithResponse("o", "gkkumuikjcj", "aztb", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("likytwvczcswka", response.location()); - Assertions.assertEquals("jyfdvlv", response.tags().get("b")); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java deleted file mode 100644 index 8cf0972edcbf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupVault; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupVaultsListByNetAppAccountMockTests { - @Test - public void testListByNetAppAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"jqo\"},\"location\":\"pihehce\",\"tags\":{\"kfrexcrseqwjks\":\"mrqbrjbbmpxdlv\",\"zhxogjggsvo\":\"hud\",\"hrkmdyomkxfbvfbh\":\"jkxibda\"},\"id\":\"y\",\"name\":\"rhpw\",\"type\":\"gddeimaw\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.backupVaults().listByNetAppAccount("qejo", "ovyrrleaesinu", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pihehce", response.iterator().next().location()); - Assertions.assertEquals("mrqbrjbbmpxdlv", response.iterator().next().tags().get("kfrexcrseqwjks")); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java deleted file mode 100644 index 49fde8a366ba..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner; -import com.azure.resourcemanager.netapp.models.BackupVaultsList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BackupVaultsListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupVaultsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"viacegfnmntfpmv\"},\"location\":\"mfnczd\",\"tags\":{\"lxlllchpo\":\"b\",\"hfuk\":\"bzevwrd\",\"fcvlerch\":\"vsjcswsmystuluqy\"},\"id\":\"qbmfpjbabwidf\",\"name\":\"xsspuunnoxyhk\",\"type\":\"g\"}],\"nextLink\":\"drihpfhoqcaaewda\"}") - .toObject(BackupVaultsList.class); - Assertions.assertEquals("mfnczd", model.value().get(0).location()); - Assertions.assertEquals("b", model.value().get(0).tags().get("lxlllchpo")); - Assertions.assertEquals("drihpfhoqcaaewda", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupVaultsList model = new BackupVaultsList() - .withValue(Arrays.asList(new BackupVaultInner().withLocation("mfnczd") - .withTags(mapOf("lxlllchpo", "b", "hfuk", "bzevwrd", "fcvlerch", "vsjcswsmystuluqy")))) - .withNextLink("drihpfhoqcaaewda"); - model = BinaryData.fromObject(model).toObject(BackupVaultsList.class); - Assertions.assertEquals("mfnczd", model.value().get(0).location()); - Assertions.assertEquals("b", model.value().get(0).tags().get("lxlllchpo")); - Assertions.assertEquals("drihpfhoqcaaewda", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java deleted file mode 100644 index 05d1aa150d54..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Backup; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupsCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"backupId\":\"fhjirwgdnqzbrfk\",\"creationDate\":\"2021-02-01T12:15:25Z\",\"provisioningState\":\"Succeeded\",\"size\":4152875994708456428,\"label\":\"xcdglj\",\"backupType\":\"Scheduled\",\"failureReason\":\"ua\",\"volumeResourceId\":\"htomflrytswfp\",\"useExistingSnapshot\":true,\"snapshotName\":\"ycxnmskw\",\"backupPolicyResourceId\":\"jjyslurlps\"},\"id\":\"kvp\",\"name\":\"dwqslsrhmpqvw\",\"type\":\"skondcbrwimu\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - Backup response = manager.backups() - .define("nmzlanru") - .withExistingBackupVault("agpgdph", "vdulajv", "ejchcsrlz") - .withVolumeResourceId("gydlhqv") - .withLabel("hlaiwd") - .withUseExistingSnapshot(true) - .withSnapshotName("xybafiqgea") - .create(); - - Assertions.assertEquals("xcdglj", response.label()); - Assertions.assertEquals("htomflrytswfp", response.volumeResourceId()); - Assertions.assertEquals(true, response.useExistingSnapshot()); - Assertions.assertEquals("ycxnmskw", response.snapshotName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java deleted file mode 100644 index 55379c4cb470..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupsGetLatestStatusWithResponseMockTests { - @Test - public void testGetLatestStatusWithResponse() throws Exception { - String responseStr - = "{\"healthy\":false,\"relationshipStatus\":\"Unknown\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"r\",\"errorMessage\":\"uyzlw\",\"lastTransferSize\":5515716031108163936,\"lastTransferType\":\"hoocl\",\"totalTransferBytes\":839239832013822699,\"transferProgressBytes\":3448292460840142228}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - BackupStatus response = manager.backups() - .getLatestStatusWithResponse("pjrtws", "hv", "uic", "hvtrrmhwrbfdpyf", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java deleted file mode 100644 index 9459dfdd9977..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.RestoreStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupsGetVolumeLatestRestoreStatusWithResponseMockTests { - @Test - public void testGetVolumeLatestRestoreStatusWithResponse() throws Exception { - String responseStr - = "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Broken\",\"unhealthyReason\":\"zj\",\"errorMessage\":\"refqy\",\"totalTransferBytes\":9207554581349131081}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - RestoreStatus response = manager.backups() - .getVolumeLatestRestoreStatusWithResponse("mczjkm", "ykyujxsg", "hsrrryejylmbkz", "dnigrfihot", - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java deleted file mode 100644 index 5ef5b9be13e0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Backup; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"backupId\":\"vvtzejetjkl\",\"creationDate\":\"2021-03-04T18:59:07Z\",\"provisioningState\":\"yjuzkdb\",\"size\":700409671675457936,\"label\":\"rzvh\",\"backupType\":\"Manual\",\"failureReason\":\"rhtgvgzpcrrkol\",\"volumeResourceId\":\"w\",\"useExistingSnapshot\":false,\"snapshotName\":\"mwrokcdxfzzzwyja\",\"backupPolicyResourceId\":\"tlhguynuchl\"},\"id\":\"ltxdwhmozu\",\"name\":\"gzvlnsnn\",\"type\":\"zfpafolpymwamxqz\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - Backup response = manager.backups() - .getWithResponse("z", "iblkujr", "lfojuidjp", "uyjucejikzo", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("rzvh", response.label()); - Assertions.assertEquals("w", response.volumeResourceId()); - Assertions.assertEquals(false, response.useExistingSnapshot()); - Assertions.assertEquals("mwrokcdxfzzzwyja", response.snapshotName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java deleted file mode 100644 index 12a45476d52c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Backup; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupsListByVaultMockTests { - @Test - public void testListByVault() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"backupId\":\"qaxsipietgbebjf\",\"creationDate\":\"2021-08-07T23:47:59Z\",\"provisioningState\":\"oichdlpnfpubnt\",\"size\":6824297515299919028,\"label\":\"viqsowsaaelcattc\",\"backupType\":\"Scheduled\",\"failureReason\":\"lrvkmjc\",\"volumeResourceId\":\"mjvlgfgg\",\"useExistingSnapshot\":false,\"snapshotName\":\"y\",\"backupPolicyResourceId\":\"zrzbjpsfxs\"},\"id\":\"ztlvtmvagbwidqlv\",\"name\":\"ukoveofi\",\"type\":\"rvjfnmjmvlw\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.backups().listByVault("oihiqak", "diw", "brkwpzdqt", "hcspo", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("viqsowsaaelcattc", response.iterator().next().label()); - Assertions.assertEquals("mjvlgfgg", response.iterator().next().volumeResourceId()); - Assertions.assertEquals(false, response.iterator().next().useExistingSnapshot()); - Assertions.assertEquals("y", response.iterator().next().snapshotName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListTests.java deleted file mode 100644 index 16bd267c553f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.BackupInner; -import com.azure.resourcemanager.netapp.models.BackupsList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BackupsListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"backupId\":\"dvoqyt\",\"creationDate\":\"2021-11-02T20:40:47Z\",\"provisioningState\":\"wb\",\"size\":5557233869903086465,\"label\":\"vutpthjoxo\",\"backupType\":\"Manual\",\"failureReason\":\"ksbpimlqoljx\",\"volumeResourceId\":\"cgxxlxs\",\"useExistingSnapshot\":true,\"snapshotName\":\"vizqzdwl\",\"backupPolicyResourceId\":\"lyoupfgfbkju\"},\"id\":\"yhgk\",\"name\":\"minsgowzf\",\"type\":\"tsttktlahbq\"}],\"nextLink\":\"tx\"}") - .toObject(BackupsList.class); - Assertions.assertEquals("vutpthjoxo", model.value().get(0).label()); - Assertions.assertEquals("cgxxlxs", model.value().get(0).volumeResourceId()); - Assertions.assertEquals(true, model.value().get(0).useExistingSnapshot()); - Assertions.assertEquals("vizqzdwl", model.value().get(0).snapshotName()); - Assertions.assertEquals("tx", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupsList model = new BackupsList().withValue(Arrays.asList(new BackupInner().withLabel("vutpthjoxo") - .withVolumeResourceId("cgxxlxs") - .withUseExistingSnapshot(true) - .withSnapshotName("vizqzdwl"))).withNextLink("tx"); - model = BinaryData.fromObject(model).toObject(BackupsList.class); - Assertions.assertEquals("vutpthjoxo", model.value().get(0).label()); - Assertions.assertEquals("cgxxlxs", model.value().get(0).volumeResourceId()); - Assertions.assertEquals(true, model.value().get(0).useExistingSnapshot()); - Assertions.assertEquals("vizqzdwl", model.value().get(0).snapshotName()); - Assertions.assertEquals("tx", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java deleted file mode 100644 index b849b48490ec..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; -import org.junit.jupiter.api.Assertions; - -public final class BackupsMigrationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupsMigrationRequest model - = BinaryData.fromString("{\"backupVaultId\":\"rqzz\"}").toObject(BackupsMigrationRequest.class); - Assertions.assertEquals("rqzz", model.backupVaultId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupsMigrationRequest model = new BackupsMigrationRequest().withBackupVaultId("rqzz"); - model = BinaryData.fromObject(model).toObject(BackupsMigrationRequest.class); - Assertions.assertEquals("rqzz", model.backupVaultId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakFileLocksRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakFileLocksRequestTests.java deleted file mode 100644 index 7f3dde7e9a43..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakFileLocksRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; -import org.junit.jupiter.api.Assertions; - -public final class BreakFileLocksRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BreakFileLocksRequest model - = BinaryData.fromString("{\"clientIp\":\"fsynljphuop\",\"confirmRunningDisruptiveOperation\":true}") - .toObject(BreakFileLocksRequest.class); - Assertions.assertEquals("fsynljphuop", model.clientIp()); - Assertions.assertEquals(true, model.confirmRunningDisruptiveOperation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BreakFileLocksRequest model - = new BreakFileLocksRequest().withClientIp("fsynljphuop").withConfirmRunningDisruptiveOperation(true); - model = BinaryData.fromObject(model).toObject(BreakFileLocksRequest.class); - Assertions.assertEquals("fsynljphuop", model.clientIp()); - Assertions.assertEquals(true, model.confirmRunningDisruptiveOperation()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakReplicationRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakReplicationRequestTests.java deleted file mode 100644 index fee942f4e888..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakReplicationRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; -import org.junit.jupiter.api.Assertions; - -public final class BreakReplicationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BreakReplicationRequest model - = BinaryData.fromString("{\"forceBreakReplication\":true}").toObject(BreakReplicationRequest.class); - Assertions.assertEquals(true, model.forceBreakReplication()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BreakReplicationRequest model = new BreakReplicationRequest().withForceBreakReplication(true); - model = BinaryData.fromObject(model).toObject(BreakReplicationRequest.class); - Assertions.assertEquals(true, model.forceBreakReplication()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java deleted file mode 100644 index 1a0ea54bf4bb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CapacityPoolInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CapacityPoolInner model = BinaryData.fromString( - "{\"etag\":\"bexrmcq\",\"properties\":{\"poolId\":\"ycnojvknmefqsg\",\"size\":2641489064592308886,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"pjyzhpv\",\"totalThroughputMibps\":87.25675,\"utilizedThroughputMibps\":3.2978177,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"location\":\"mwlxk\",\"tags\":{\"n\":\"fhzovawjvzunluth\",\"pjzu\":\"rnxipei\",\"xdult\":\"e\",\"umveekgpwozuhkf\":\"kzbbtd\"},\"id\":\"bsjyofdx\",\"name\":\"uusdttouwa\",\"type\":\"oekqvk\"}") - .toObject(CapacityPoolInner.class); - Assertions.assertEquals("mwlxk", model.location()); - Assertions.assertEquals("fhzovawjvzunluth", model.tags().get("n")); - Assertions.assertEquals(2641489064592308886L, model.size()); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CapacityPoolInner model = new CapacityPoolInner().withLocation("mwlxk") - .withTags(mapOf("n", "fhzovawjvzunluth", "pjzu", "rnxipei", "xdult", "e", "umveekgpwozuhkf", "kzbbtd")) - .withSize(2641489064592308886L) - .withServiceLevel(ServiceLevel.ULTRA) - .withQosType(QosType.MANUAL) - .withCoolAccess(false) - .withEncryptionType(EncryptionType.DOUBLE); - model = BinaryData.fromObject(model).toObject(CapacityPoolInner.class); - Assertions.assertEquals("mwlxk", model.location()); - Assertions.assertEquals("fhzovawjvzunluth", model.tags().get("n")); - Assertions.assertEquals(2641489064592308886L, model.size()); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java deleted file mode 100644 index d885041ec33a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; -import com.azure.resourcemanager.netapp.models.CapacityPoolList; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CapacityPoolListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CapacityPoolList model = BinaryData.fromString( - "{\"value\":[{\"etag\":\"bpzkafkuwbc\",\"properties\":{\"poolId\":\"wbme\",\"size\":7252038308965637311,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"v\",\"totalThroughputMibps\":77.41172,\"utilizedThroughputMibps\":64.93837,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"location\":\"eemaofmxagkvtme\",\"tags\":{\"hvljuahaquh\":\"krh\",\"aex\":\"dhmdua\",\"vxpvgomz\":\"pvfadmwsrcr\"},\"id\":\"fmisg\",\"name\":\"bnbbeldawkz\",\"type\":\"ali\"},{\"etag\":\"rqhakauha\",\"properties\":{\"poolId\":\"sfwxosowzxc\",\"size\":2516732809766062265,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"ooxdjebwpuc\",\"totalThroughputMibps\":83.48158,\"utilizedThroughputMibps\":65.76169,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"location\":\"civyhzceuo\",\"tags\":{\"ueiotwmcdyt\":\"rw\",\"it\":\"x\",\"hniskxfbkpyc\":\"nrjawgqwg\"},\"id\":\"klwndnhjdauwhv\",\"name\":\"l\",\"type\":\"zbtd\"},{\"etag\":\"ujznb\",\"properties\":{\"poolId\":\"ow\",\"size\":3222705953592047297,\"serviceLevel\":\"Premium\",\"provisioningState\":\"qlveualupjmkh\",\"totalThroughputMibps\":23.892725,\"utilizedThroughputMibps\":43.313354,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"location\":\"riplrbpbewtg\",\"tags\":{\"xzvlvqhjkbegib\":\"blcg\",\"wrtz\":\"nmxiebwwaloayqc\",\"ngmtsavjcb\":\"uzgwyzmhtx\"},\"id\":\"wxqpsrknftguvri\",\"name\":\"hprwmdyv\",\"type\":\"qtayri\"}],\"nextLink\":\"ro\"}") - .toObject(CapacityPoolList.class); - Assertions.assertEquals("eemaofmxagkvtme", model.value().get(0).location()); - Assertions.assertEquals("krh", model.value().get(0).tags().get("hvljuahaquh")); - Assertions.assertEquals(7252038308965637311L, model.value().get(0).size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.value().get(0).serviceLevel()); - Assertions.assertEquals(QosType.AUTO, model.value().get(0).qosType()); - Assertions.assertEquals(false, model.value().get(0).coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.value().get(0).encryptionType()); - Assertions.assertEquals("ro", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CapacityPoolList model = new CapacityPoolList().withValue(Arrays.asList( - new CapacityPoolInner().withLocation("eemaofmxagkvtme") - .withTags(mapOf("hvljuahaquh", "krh", "aex", "dhmdua", "vxpvgomz", "pvfadmwsrcr")) - .withSize(7252038308965637311L) - .withServiceLevel(ServiceLevel.STANDARD_ZRS) - .withQosType(QosType.AUTO) - .withCoolAccess(false) - .withEncryptionType(EncryptionType.DOUBLE), - new CapacityPoolInner().withLocation("civyhzceuo") - .withTags(mapOf("ueiotwmcdyt", "rw", "it", "x", "hniskxfbkpyc", "nrjawgqwg")) - .withSize(2516732809766062265L) - .withServiceLevel(ServiceLevel.STANDARD_ZRS) - .withQosType(QosType.MANUAL) - .withCoolAccess(false) - .withEncryptionType(EncryptionType.SINGLE), - new CapacityPoolInner().withLocation("riplrbpbewtg") - .withTags(mapOf("xzvlvqhjkbegib", "blcg", "wrtz", "nmxiebwwaloayqc", "ngmtsavjcb", "uzgwyzmhtx")) - .withSize(3222705953592047297L) - .withServiceLevel(ServiceLevel.PREMIUM) - .withQosType(QosType.AUTO) - .withCoolAccess(false) - .withEncryptionType(EncryptionType.SINGLE))) - .withNextLink("ro"); - model = BinaryData.fromObject(model).toObject(CapacityPoolList.class); - Assertions.assertEquals("eemaofmxagkvtme", model.value().get(0).location()); - Assertions.assertEquals("krh", model.value().get(0).tags().get("hvljuahaquh")); - Assertions.assertEquals(7252038308965637311L, model.value().get(0).size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.value().get(0).serviceLevel()); - Assertions.assertEquals(QosType.AUTO, model.value().get(0).qosType()); - Assertions.assertEquals(false, model.value().get(0).coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.value().get(0).encryptionType()); - Assertions.assertEquals("ro", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java deleted file mode 100644 index 687cfba493e1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.CapacityPoolPatch; -import com.azure.resourcemanager.netapp.models.QosType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CapacityPoolPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CapacityPoolPatch model = BinaryData.fromString( - "{\"properties\":{\"size\":7703908538660559056,\"qosType\":\"Auto\",\"coolAccess\":true},\"location\":\"znelixhnrztfolh\",\"tags\":{\"dtpnapnyiropuhp\":\"knalaulppg\",\"gqgitxmedjvcsl\":\"gvpgy\",\"wwncwzzhxgk\":\"n\"},\"id\":\"rmgucnap\",\"name\":\"t\",\"type\":\"oellwp\"}") - .toObject(CapacityPoolPatch.class); - Assertions.assertEquals("znelixhnrztfolh", model.location()); - Assertions.assertEquals("knalaulppg", model.tags().get("dtpnapnyiropuhp")); - Assertions.assertEquals(7703908538660559056L, model.size()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CapacityPoolPatch model = new CapacityPoolPatch().withLocation("znelixhnrztfolh") - .withTags(mapOf("dtpnapnyiropuhp", "knalaulppg", "gqgitxmedjvcsl", "gvpgy", "wwncwzzhxgk", "n")) - .withSize(7703908538660559056L) - .withQosType(QosType.AUTO) - .withCoolAccess(true); - model = BinaryData.fromObject(model).toObject(CapacityPoolPatch.class); - Assertions.assertEquals("znelixhnrztfolh", model.location()); - Assertions.assertEquals("knalaulppg", model.tags().get("dtpnapnyiropuhp")); - Assertions.assertEquals(7703908538660559056L, model.size()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java deleted file mode 100644 index c295ab32954a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner; -import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType; -import org.junit.jupiter.api.Assertions; - -public final class CheckAvailabilityResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckAvailabilityResponseInner model = BinaryData - .fromString("{\"isAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"czwtruwiqzbqjv\"}") - .toObject(CheckAvailabilityResponseInner.class); - Assertions.assertEquals(true, model.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, model.reason()); - Assertions.assertEquals("czwtruwiqzbqjv", model.message()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckAvailabilityResponseInner model = new CheckAvailabilityResponseInner().withIsAvailable(true) - .withReason(InAvailabilityReasonType.ALREADY_EXISTS) - .withMessage("czwtruwiqzbqjv"); - model = BinaryData.fromObject(model).toObject(CheckAvailabilityResponseInner.class); - Assertions.assertEquals(true, model.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, model.reason()); - Assertions.assertEquals("czwtruwiqzbqjv", model.message()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java deleted file mode 100644 index 05aef84dd7d1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ClusterPeerCommandResponseInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class ClusterPeerCommandResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterPeerCommandResponseInner model = BinaryData.fromString("{\"peerAcceptCommand\":\"ukghimdblxgw\"}") - .toObject(ClusterPeerCommandResponseInner.class); - Assertions.assertEquals("ukghimdblxgw", model.peerAcceptCommand()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPeerCommandResponseInner model - = new ClusterPeerCommandResponseInner().withPeerAcceptCommand("ukghimdblxgw"); - model = BinaryData.fromObject(model).toObject(ClusterPeerCommandResponseInner.class); - Assertions.assertEquals("ukghimdblxgw", model.peerAcceptCommand()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java deleted file mode 100644 index 61cfd89180cf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.DailySchedule; -import org.junit.jupiter.api.Assertions; - -public final class DailyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DailySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":631648587,\"hour\":2100538893,\"minute\":648975494,\"usedBytes\":1997277075464106267}") - .toObject(DailySchedule.class); - Assertions.assertEquals(631648587, model.snapshotsToKeep()); - Assertions.assertEquals(2100538893, model.hour()); - Assertions.assertEquals(648975494, model.minute()); - Assertions.assertEquals(1997277075464106267L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DailySchedule model = new DailySchedule().withSnapshotsToKeep(631648587) - .withHour(2100538893) - .withMinute(648975494) - .withUsedBytes(1997277075464106267L); - model = BinaryData.fromObject(model).toObject(DailySchedule.class); - Assertions.assertEquals(631648587, model.snapshotsToKeep()); - Assertions.assertEquals(2100538893, model.hour()); - Assertions.assertEquals(648975494, model.minute()); - Assertions.assertEquals(1997277075464106267L, model.usedBytes()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DimensionTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DimensionTests.java deleted file mode 100644 index 5bdc411ce2b1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DimensionTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.Dimension; -import org.junit.jupiter.api.Assertions; - -public final class DimensionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Dimension model = BinaryData.fromString("{\"name\":\"mddystkiiux\",\"displayName\":\"yudxorrqnbp\"}") - .toObject(Dimension.class); - Assertions.assertEquals("mddystkiiux", model.name()); - Assertions.assertEquals("yudxorrqnbp", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Dimension model = new Dimension().withName("mddystkiiux").withDisplayName("yudxorrqnbp"); - model = BinaryData.fromObject(model).toObject(Dimension.class); - Assertions.assertEquals("mddystkiiux", model.name()); - Assertions.assertEquals("yudxorrqnbp", model.displayName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java deleted file mode 100644 index 96a6ec56bdff..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.EncryptionIdentity; -import org.junit.jupiter.api.Assertions; - -public final class EncryptionIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EncryptionIdentity model = BinaryData - .fromString("{\"principalId\":\"ogtwrupqsxvnmi\",\"userAssignedIdentity\":\"kvceoveilovnotyf\"}") - .toObject(EncryptionIdentity.class); - Assertions.assertEquals("kvceoveilovnotyf", model.userAssignedIdentity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EncryptionIdentity model = new EncryptionIdentity().withUserAssignedIdentity("kvceoveilovnotyf"); - model = BinaryData.fromObject(model).toObject(EncryptionIdentity.class); - Assertions.assertEquals("kvceoveilovnotyf", model.userAssignedIdentity()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java deleted file mode 100644 index b5728acf178b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; -import org.junit.jupiter.api.Assertions; - -public final class EncryptionTransitionRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EncryptionTransitionRequest model = BinaryData - .fromString("{\"virtualNetworkId\":\"qugxywpmueefjzwf\",\"privateEndpointId\":\"kqujidsuyono\"}") - .toObject(EncryptionTransitionRequest.class); - Assertions.assertEquals("qugxywpmueefjzwf", model.virtualNetworkId()); - Assertions.assertEquals("kqujidsuyono", model.privateEndpointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EncryptionTransitionRequest model = new EncryptionTransitionRequest().withVirtualNetworkId("qugxywpmueefjzwf") - .withPrivateEndpointId("kqujidsuyono"); - model = BinaryData.fromObject(model).toObject(EncryptionTransitionRequest.class); - Assertions.assertEquals("qugxywpmueefjzwf", model.virtualNetworkId()); - Assertions.assertEquals("kqujidsuyono", model.privateEndpointId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ExportPolicyRuleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ExportPolicyRuleTests.java deleted file mode 100644 index 1b6c1ff0a8c5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ExportPolicyRuleTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.ChownMode; -import com.azure.resourcemanager.netapp.models.ExportPolicyRule; -import org.junit.jupiter.api.Assertions; - -public final class ExportPolicyRuleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExportPolicyRule model = BinaryData.fromString( - "{\"ruleIndex\":151199466,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"ygmi\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"}") - .toObject(ExportPolicyRule.class); - Assertions.assertEquals(151199466, model.ruleIndex()); - Assertions.assertEquals(true, model.unixReadOnly()); - Assertions.assertEquals(true, model.unixReadWrite()); - Assertions.assertEquals(true, model.kerberos5ReadOnly()); - Assertions.assertEquals(true, model.kerberos5ReadWrite()); - Assertions.assertEquals(true, model.kerberos5IReadOnly()); - Assertions.assertEquals(true, model.kerberos5IReadWrite()); - Assertions.assertEquals(false, model.kerberos5PReadOnly()); - Assertions.assertEquals(false, model.kerberos5PReadWrite()); - Assertions.assertEquals(false, model.cifs()); - Assertions.assertEquals(true, model.nfsv3()); - Assertions.assertEquals(false, model.nfsv41()); - Assertions.assertEquals("ygmi", model.allowedClients()); - Assertions.assertEquals(true, model.hasRootAccess()); - Assertions.assertEquals(ChownMode.RESTRICTED, model.chownMode()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExportPolicyRule model = new ExportPolicyRule().withRuleIndex(151199466) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(true) - .withNfsv41(false) - .withAllowedClients("ygmi") - .withHasRootAccess(true) - .withChownMode(ChownMode.RESTRICTED); - model = BinaryData.fromObject(model).toObject(ExportPolicyRule.class); - Assertions.assertEquals(151199466, model.ruleIndex()); - Assertions.assertEquals(true, model.unixReadOnly()); - Assertions.assertEquals(true, model.unixReadWrite()); - Assertions.assertEquals(true, model.kerberos5ReadOnly()); - Assertions.assertEquals(true, model.kerberos5ReadWrite()); - Assertions.assertEquals(true, model.kerberos5IReadOnly()); - Assertions.assertEquals(true, model.kerberos5IReadWrite()); - Assertions.assertEquals(false, model.kerberos5PReadOnly()); - Assertions.assertEquals(false, model.kerberos5PReadWrite()); - Assertions.assertEquals(false, model.cifs()); - Assertions.assertEquals(true, model.nfsv3()); - Assertions.assertEquals(false, model.nfsv41()); - Assertions.assertEquals("ygmi", model.allowedClients()); - Assertions.assertEquals(true, model.hasRootAccess()); - Assertions.assertEquals(ChownMode.RESTRICTED, model.chownMode()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java deleted file mode 100644 index ee696435cbf0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class FilePathAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FilePathAvailabilityRequest model = BinaryData - .fromString("{\"name\":\"ovm\",\"subnetId\":\"okacspk\",\"availabilityZone\":\"hzdobpxjmflbvvnc\"}") - .toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("ovm", model.name()); - Assertions.assertEquals("okacspk", model.subnetId()); - Assertions.assertEquals("hzdobpxjmflbvvnc", model.availabilityZone()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FilePathAvailabilityRequest model = new FilePathAvailabilityRequest().withName("ovm") - .withSubnetId("okacspk") - .withAvailabilityZone("hzdobpxjmflbvvnc"); - model = BinaryData.fromObject(model).toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("ovm", model.name()); - Assertions.assertEquals("okacspk", model.subnetId()); - Assertions.assertEquals("hzdobpxjmflbvvnc", model.availabilityZone()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserRequestTests.java deleted file mode 100644 index 79dde852b57d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; -import org.junit.jupiter.api.Assertions; - -public final class GetGroupIdListForLdapUserRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetGroupIdListForLdapUserRequest model - = BinaryData.fromString("{\"username\":\"lqiyntorzihl\"}").toObject(GetGroupIdListForLdapUserRequest.class); - Assertions.assertEquals("lqiyntorzihl", model.username()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetGroupIdListForLdapUserRequest model = new GetGroupIdListForLdapUserRequest().withUsername("lqiyntorzihl"); - model = BinaryData.fromObject(model).toObject(GetGroupIdListForLdapUserRequest.class); - Assertions.assertEquals("lqiyntorzihl", model.username()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserResponseInnerTests.java deleted file mode 100644 index 33e69fea432f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserResponseInnerTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class GetGroupIdListForLdapUserResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetGroupIdListForLdapUserResponseInner model - = BinaryData.fromString("{\"groupIdsForLdapUser\":[\"jswsrmslyz\",\"pzbchck\"]}") - .toObject(GetGroupIdListForLdapUserResponseInner.class); - Assertions.assertEquals("jswsrmslyz", model.groupIdsForLdapUser().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetGroupIdListForLdapUserResponseInner model = new GetGroupIdListForLdapUserResponseInner() - .withGroupIdsForLdapUser(Arrays.asList("jswsrmslyz", "pzbchck")); - model = BinaryData.fromObject(model).toObject(GetGroupIdListForLdapUserResponseInner.class); - Assertions.assertEquals("jswsrmslyz", model.groupIdsForLdapUser().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java deleted file mode 100644 index a7c51e2d251c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.HourlySchedule; -import org.junit.jupiter.api.Assertions; - -public final class HourlyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HourlySchedule model = BinaryData - .fromString("{\"snapshotsToKeep\":1161774579,\"minute\":83276112,\"usedBytes\":9085826358534396336}") - .toObject(HourlySchedule.class); - Assertions.assertEquals(1161774579, model.snapshotsToKeep()); - Assertions.assertEquals(83276112, model.minute()); - Assertions.assertEquals(9085826358534396336L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HourlySchedule model = new HourlySchedule().withSnapshotsToKeep(1161774579) - .withMinute(83276112) - .withUsedBytes(9085826358534396336L); - model = BinaryData.fromObject(model).toObject(HourlySchedule.class); - Assertions.assertEquals(1161774579, model.snapshotsToKeep()); - Assertions.assertEquals(83276112, model.minute()); - Assertions.assertEquals(9085826358534396336L, model.usedBytes()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java deleted file mode 100644 index c73df44f1326..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.KeyVaultPrivateEndpoint; -import org.junit.jupiter.api.Assertions; - -public final class KeyVaultPrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KeyVaultPrivateEndpoint model - = BinaryData.fromString("{\"virtualNetworkId\":\"moyrxvwfudwpz\",\"privateEndpointId\":\"xhdzhlrqjbhckf\"}") - .toObject(KeyVaultPrivateEndpoint.class); - Assertions.assertEquals("moyrxvwfudwpz", model.virtualNetworkId()); - Assertions.assertEquals("xhdzhlrqjbhckf", model.privateEndpointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KeyVaultPrivateEndpoint model = new KeyVaultPrivateEndpoint().withVirtualNetworkId("moyrxvwfudwpz") - .withPrivateEndpointId("xhdzhlrqjbhckf"); - model = BinaryData.fromObject(model).toObject(KeyVaultPrivateEndpoint.class); - Assertions.assertEquals("moyrxvwfudwpz", model.virtualNetworkId()); - Assertions.assertEquals("xhdzhlrqjbhckf", model.privateEndpointId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java deleted file mode 100644 index e69d769fc5af..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.LdapSearchScopeOpt; -import org.junit.jupiter.api.Assertions; - -public final class LdapSearchScopeOptTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LdapSearchScopeOpt model = BinaryData.fromString( - "{\"userDN\":\"ckhsmtxpsieb\",\"groupDN\":\"hvpesapskrdqm\",\"groupMembershipFilter\":\"jdhtldwkyzxu\"}") - .toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("ckhsmtxpsieb", model.userDN()); - Assertions.assertEquals("hvpesapskrdqm", model.groupDN()); - Assertions.assertEquals("jdhtldwkyzxu", model.groupMembershipFilter()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LdapSearchScopeOpt model = new LdapSearchScopeOpt().withUserDN("ckhsmtxpsieb") - .withGroupDN("hvpesapskrdqm") - .withGroupMembershipFilter("jdhtldwkyzxu"); - model = BinaryData.fromObject(model).toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("ckhsmtxpsieb", model.userDN()); - Assertions.assertEquals("hvpesapskrdqm", model.groupDN()); - Assertions.assertEquals("jdhtldwkyzxu", model.groupMembershipFilter()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsTests.java deleted file mode 100644 index 44687ec5f58f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; -import com.azure.resourcemanager.netapp.models.EndpointType; -import com.azure.resourcemanager.netapp.models.ListReplications; -import com.azure.resourcemanager.netapp.models.ReplicationSchedule; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ListReplicationsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ListReplications model = BinaryData.fromString( - "{\"value\":[{\"replicationId\":\"mwzn\",\"endpointType\":\"dst\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"nsorgjhxbldt\",\"remoteVolumeRegion\":\"wrlkdmtn\"},{\"replicationId\":\"ok\",\"endpointType\":\"src\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"d\",\"remoteVolumeRegion\":\"gsyocogj\"},{\"replicationId\":\"dtbnnha\",\"endpointType\":\"dst\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"kvci\",\"remoteVolumeRegion\":\"nvpamq\"},{\"replicationId\":\"qqu\",\"endpointType\":\"src\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"wggxkallat\",\"remoteVolumeRegion\":\"lwuip\"}]}") - .toObject(ListReplications.class); - Assertions.assertEquals(EndpointType.DST, model.value().get(0).endpointType()); - Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.value().get(0).replicationSchedule()); - Assertions.assertEquals("nsorgjhxbldt", model.value().get(0).remoteVolumeResourceId()); - Assertions.assertEquals("wrlkdmtn", model.value().get(0).remoteVolumeRegion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ListReplications model = new ListReplications().withValue(Arrays.asList( - new ReplicationInner().withEndpointType(EndpointType.DST) - .withReplicationSchedule(ReplicationSchedule.ONE_ZEROMINUTELY) - .withRemoteVolumeResourceId("nsorgjhxbldt") - .withRemoteVolumeRegion("wrlkdmtn"), - new ReplicationInner().withEndpointType(EndpointType.SRC) - .withReplicationSchedule(ReplicationSchedule.HOURLY) - .withRemoteVolumeResourceId("d") - .withRemoteVolumeRegion("gsyocogj"), - new ReplicationInner().withEndpointType(EndpointType.DST) - .withReplicationSchedule(ReplicationSchedule.DAILY) - .withRemoteVolumeResourceId("kvci") - .withRemoteVolumeRegion("nvpamq"), - new ReplicationInner().withEndpointType(EndpointType.SRC) - .withReplicationSchedule(ReplicationSchedule.DAILY) - .withRemoteVolumeResourceId("wggxkallat") - .withRemoteVolumeRegion("lwuip"))); - model = BinaryData.fromObject(model).toObject(ListReplications.class); - Assertions.assertEquals(EndpointType.DST, model.value().get(0).endpointType()); - Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.value().get(0).replicationSchedule()); - Assertions.assertEquals("nsorgjhxbldt", model.value().get(0).remoteVolumeResourceId()); - Assertions.assertEquals("wrlkdmtn", model.value().get(0).remoteVolumeRegion()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LogSpecificationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LogSpecificationTests.java deleted file mode 100644 index 7b5a5f3ee066..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LogSpecificationTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.LogSpecification; -import org.junit.jupiter.api.Assertions; - -public final class LogSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogSpecification model = BinaryData.fromString("{\"name\":\"zvyifqrvkdvj\",\"displayName\":\"lrmv\"}") - .toObject(LogSpecification.class); - Assertions.assertEquals("zvyifqrvkdvj", model.name()); - Assertions.assertEquals("lrmv", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogSpecification model = new LogSpecification().withName("zvyifqrvkdvj").withDisplayName("lrmv"); - model = BinaryData.fromObject(model).toObject(LogSpecification.class); - Assertions.assertEquals("zvyifqrvkdvj", model.name()); - Assertions.assertEquals("lrmv", model.displayName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java deleted file mode 100644 index a63a2438c55a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.netapp.models.UserAssignedIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedServiceIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"ffc8f9ec-c146-4461-ad09-20b556560ae3\",\"tenantId\":\"90206e44-1b6e-4fe7-ac0d-05ccf8f00c7d\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"nxdhbt\":{\"principalId\":\"f4ceed15-b816-4747-bead-595262ba4518\",\"clientId\":\"6c510a4a-25fb-4160-a053-1633ede03a47\"}}}") - .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedServiceIdentity model - = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("nxdhbt", new UserAssignedIdentity())); - model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MetricSpecificationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MetricSpecificationTests.java deleted file mode 100644 index f1cd079ed407..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MetricSpecificationTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.Dimension; -import com.azure.resourcemanager.netapp.models.MetricAggregationType; -import com.azure.resourcemanager.netapp.models.MetricSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MetricSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MetricSpecification model = BinaryData.fromString( - "{\"name\":\"whybcib\",\"displayName\":\"vdcsitynn\",\"displayDescription\":\"mdectehfiqscjey\",\"unit\":\"hezrkgq\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"mkqsleyyv\"],\"internalMetricName\":\"qjpkcattpngjcrc\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"pjhvmdajvnys\",\"sourceMdmNamespace\":\"nqecanoaeup\",\"dimensions\":[{\"name\":\"ltrpmopj\",\"displayName\":\"matuok\"},{\"name\":\"fu\",\"displayName\":\"aodsfcpkv\"},{\"name\":\"dpuozmyz\",\"displayName\":\"agfuaxbezyiu\"},{\"name\":\"ktwh\",\"displayName\":\"xw\"}],\"aggregationType\":\"wqsmbsur\",\"fillGapWithZero\":true,\"category\":\"o\",\"resourceIdDimensionNameOverride\":\"ocfs\",\"isInternal\":false}") - .toObject(MetricSpecification.class); - Assertions.assertEquals("whybcib", model.name()); - Assertions.assertEquals("vdcsitynn", model.displayName()); - Assertions.assertEquals("mdectehfiqscjey", model.displayDescription()); - Assertions.assertEquals("hezrkgq", model.unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, model.supportedAggregationTypes().get(0)); - Assertions.assertEquals("mkqsleyyv", model.supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("qjpkcattpngjcrc", model.internalMetricName()); - Assertions.assertEquals(true, model.enableRegionalMdmAccount()); - Assertions.assertEquals("pjhvmdajvnys", model.sourceMdmAccount()); - Assertions.assertEquals("nqecanoaeup", model.sourceMdmNamespace()); - Assertions.assertEquals("ltrpmopj", model.dimensions().get(0).name()); - Assertions.assertEquals("matuok", model.dimensions().get(0).displayName()); - Assertions.assertEquals("wqsmbsur", model.aggregationType()); - Assertions.assertEquals(true, model.fillGapWithZero()); - Assertions.assertEquals("o", model.category()); - Assertions.assertEquals("ocfs", model.resourceIdDimensionNameOverride()); - Assertions.assertEquals(false, model.isInternal()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetricSpecification model = new MetricSpecification().withName("whybcib") - .withDisplayName("vdcsitynn") - .withDisplayDescription("mdectehfiqscjey") - .withUnit("hezrkgq") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE, - MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("mkqsleyyv")) - .withInternalMetricName("qjpkcattpngjcrc") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("pjhvmdajvnys") - .withSourceMdmNamespace("nqecanoaeup") - .withDimensions(Arrays.asList(new Dimension().withName("ltrpmopj").withDisplayName("matuok"), - new Dimension().withName("fu").withDisplayName("aodsfcpkv"), - new Dimension().withName("dpuozmyz").withDisplayName("agfuaxbezyiu"), - new Dimension().withName("ktwh").withDisplayName("xw"))) - .withAggregationType("wqsmbsur") - .withFillGapWithZero(true) - .withCategory("o") - .withResourceIdDimensionNameOverride("ocfs") - .withIsInternal(false); - model = BinaryData.fromObject(model).toObject(MetricSpecification.class); - Assertions.assertEquals("whybcib", model.name()); - Assertions.assertEquals("vdcsitynn", model.displayName()); - Assertions.assertEquals("mdectehfiqscjey", model.displayDescription()); - Assertions.assertEquals("hezrkgq", model.unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, model.supportedAggregationTypes().get(0)); - Assertions.assertEquals("mkqsleyyv", model.supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("qjpkcattpngjcrc", model.internalMetricName()); - Assertions.assertEquals(true, model.enableRegionalMdmAccount()); - Assertions.assertEquals("pjhvmdajvnys", model.sourceMdmAccount()); - Assertions.assertEquals("nqecanoaeup", model.sourceMdmNamespace()); - Assertions.assertEquals("ltrpmopj", model.dimensions().get(0).name()); - Assertions.assertEquals("matuok", model.dimensions().get(0).displayName()); - Assertions.assertEquals("wqsmbsur", model.aggregationType()); - Assertions.assertEquals(true, model.fillGapWithZero()); - Assertions.assertEquals("o", model.category()); - Assertions.assertEquals("ocfs", model.resourceIdDimensionNameOverride()); - Assertions.assertEquals(false, model.isInternal()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java deleted file mode 100644 index a7bba97032a7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.MonthlySchedule; -import org.junit.jupiter.api.Assertions; - -public final class MonthlyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MonthlySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":1037639668,\"daysOfMonth\":\"ux\",\"hour\":69904268,\"minute\":1823569828,\"usedBytes\":1533657771044530360}") - .toObject(MonthlySchedule.class); - Assertions.assertEquals(1037639668, model.snapshotsToKeep()); - Assertions.assertEquals("ux", model.daysOfMonth()); - Assertions.assertEquals(69904268, model.hour()); - Assertions.assertEquals(1823569828, model.minute()); - Assertions.assertEquals(1533657771044530360L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MonthlySchedule model = new MonthlySchedule().withSnapshotsToKeep(1037639668) - .withDaysOfMonth("ux") - .withHour(69904268) - .withMinute(1823569828) - .withUsedBytes(1533657771044530360L); - model = BinaryData.fromObject(model).toObject(MonthlySchedule.class); - Assertions.assertEquals(1037639668, model.snapshotsToKeep()); - Assertions.assertEquals("ux", model.daysOfMonth()); - Assertions.assertEquals(69904268, model.hour()); - Assertions.assertEquals(1823569828, model.minute()); - Assertions.assertEquals(1533657771044530360L, model.usedBytes()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MountTargetPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MountTargetPropertiesTests.java deleted file mode 100644 index e7dc53bf52a5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MountTargetPropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; -import org.junit.jupiter.api.Assertions; - -public final class MountTargetPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MountTargetProperties model = BinaryData.fromString( - "{\"mountTargetId\":\"ndslgnayqigynduh\",\"fileSystemId\":\"vhqlkthumaqo\",\"ipAddress\":\"gycdu\",\"smbServerFqdn\":\"r\"}") - .toObject(MountTargetProperties.class); - Assertions.assertEquals("vhqlkthumaqo", model.fileSystemId()); - Assertions.assertEquals("r", model.smbServerFqdn()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MountTargetProperties model - = new MountTargetProperties().withFileSystemId("vhqlkthumaqo").withSmbServerFqdn("r"); - model = BinaryData.fromObject(model).toObject(MountTargetProperties.class); - Assertions.assertEquals("vhqlkthumaqo", model.fileSystemId()); - Assertions.assertEquals("r", model.smbServerFqdn()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java deleted file mode 100644 index 3c987a11243e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourceQuotaLimitsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"current\":437881905,\"default\":1054969690},\"id\":\"kneuvyinzqo\",\"name\":\"fvpgshoxgsg\",\"type\":\"p\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - SubscriptionQuotaItem response = manager.netAppResourceQuotaLimits() - .getWithResponse("mtggu", "pijrajcivmmghf", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java deleted file mode 100644 index 731a3003310e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourceQuotaLimitsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"current\":1056443499,\"default\":2111689562},\"id\":\"xcjzhqizxfpxt\",\"name\":\"qscjavftjuh\",\"type\":\"qaz\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.netAppResourceQuotaLimits().list("h", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java deleted file mode 100644 index 23c8fc83defb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.RegionInfoResource; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourceRegionInfosGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"storageToNetworkProximity\":\"AcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"gpmuneqsxvmhfbuz\",\"isAvailable\":false}]},\"id\":\"sasbhu\",\"name\":\"ypoh\",\"type\":\"uemsly\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - RegionInfoResource response = manager.netAppResourceRegionInfos() - .getWithResponse("hhzjhfj", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(RegionStorageToNetworkProximity.ACROSS_T2, response.storageToNetworkProximity()); - Assertions.assertEquals("gpmuneqsxvmhfbuz", response.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(false, response.availabilityZoneMappings().get(0).isAvailable()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java deleted file mode 100644 index ae71ff503ed2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.RegionInfoResource; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourceRegionInfosListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"Default\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"vl\",\"isAvailable\":false},{\"availabilityZone\":\"qusrdvetnws\",\"isAvailable\":false},{\"availabilityZone\":\"nwlduycvuzhyrmew\",\"isAvailable\":true}]},\"id\":\"ekdxuku\",\"name\":\"gsjj\",\"type\":\"undxgketw\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.netAppResourceRegionInfos().list("gzdjtxvzf", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(RegionStorageToNetworkProximity.DEFAULT, - response.iterator().next().storageToNetworkProximity()); - Assertions.assertEquals("vl", response.iterator().next().availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(false, response.iterator().next().availabilityZoneMappings().get(0).isAvailable()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java deleted file mode 100644 index a539761c811c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CheckAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; -import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests { - @Test - public void testCheckFilePathAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"cojocqwogfnzjvus\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - CheckAvailabilityResponse response = manager.netAppResources() - .checkFilePathAvailabilityWithResponse("vodggxdbee", - new FilePathAvailabilityRequest().withName("mieknlraria") - .withSubnetId("wiuagydwqf") - .withAvailabilityZone("lyr"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("cojocqwogfnzjvus", response.message()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index 4ab7ed442f2b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CheckAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes; -import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType; -import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"zqlqhyc\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - CheckAvailabilityResponse response = manager.netAppResources() - .checkNameAvailabilityWithResponse("srvhmgorffuki", - new ResourceNameAvailabilityRequest().withName("cvwmzhwplefa") - .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS) - .withResourceGroup("xilcbtgnhnzey"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("zqlqhyc", response.message()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java deleted file mode 100644 index b4faee1e19b9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CheckAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes; -import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType; -import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests { - @Test - public void testCheckQuotaAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"kb\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - CheckAvailabilityResponse response = manager.netAppResources() - .checkQuotaAvailabilityWithResponse("zldmozuxy", - new QuotaAvailabilityRequest().withName("fsbtkad") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES) - .withResourceGroup("s"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("kb", response.message()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java deleted file mode 100644 index 78a4c98c2ab1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.NetworkFeatures; -import com.azure.resourcemanager.netapp.models.NetworkSiblingSet; -import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests { - @Test - public void testQueryNetworkSiblingSetWithResponse() throws Exception { - String responseStr - = "{\"networkSiblingSetId\":\"ekqvgqouwif\",\"subnetId\":\"pjwyiv\",\"networkSiblingSetStateId\":\"kfxcvhrfs\",\"networkFeatures\":\"Standard_Basic\",\"provisioningState\":\"Updating\",\"nicInfoList\":[{\"ipAddress\":\"ikteusqczkvyk\",\"volumeResourceIds\":[\"byjaffmmf\",\"lcqcuubgqibrt\",\"lmetttwgdslqxi\"]},{\"ipAddress\":\"rmooizqse\",\"volumeResourceIds\":[\"iut\",\"xapzhyrpet\"]},{\"ipAddress\":\"e\",\"volumeResourceIds\":[\"xslhvnhlabrqnkk\",\"jcjbt\"]},{\"ipAddress\":\"aehvvibrxjjstoq\",\"volumeResourceIds\":[\"tpkxztmoobklft\"]}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - NetworkSiblingSet response = manager.netAppResources() - .queryNetworkSiblingSetWithResponse("tzbsrgnowcjhf", - new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("mvec").withSubnetId("ctxmwoteyowcluq"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ekqvgqouwif", response.networkSiblingSetId()); - Assertions.assertEquals("pjwyiv", response.subnetId()); - Assertions.assertEquals("kfxcvhrfs", response.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, response.networkFeatures()); - Assertions.assertEquals("byjaffmmf", response.nicInfoList().get(0).volumeResourceIds().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java deleted file mode 100644 index abe955f78657..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.RegionInfo; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesQueryRegionInfoWithResponseMockTests { - @Test - public void testQueryRegionInfoWithResponse() throws Exception { - String responseStr - = "{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"pe\",\"isAvailable\":false},{\"availabilityZone\":\"qdhcu\",\"isAvailable\":false},{\"availabilityZone\":\"lcwkhihihlhz\",\"isAvailable\":false}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - RegionInfo response = manager.netAppResources() - .queryRegionInfoWithResponse("grjqctojcmi", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, - response.storageToNetworkProximity()); - Assertions.assertEquals("pe", response.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(false, response.availabilityZoneMappings().get(0).isAvailable()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java deleted file mode 100644 index 6851e9ba8309..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.NetworkFeatures; -import com.azure.resourcemanager.netapp.models.NetworkSiblingSet; -import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesUpdateNetworkSiblingSetMockTests { - @Test - public void testUpdateNetworkSiblingSet() throws Exception { - String responseStr - = "{\"networkSiblingSetId\":\"uktalhsnvkcdmxz\",\"subnetId\":\"oaimlnw\",\"networkSiblingSetStateId\":\"aomylwea\",\"networkFeatures\":\"Basic_Standard\",\"provisioningState\":\"Failed\",\"nicInfoList\":[{\"ipAddress\":\"wwnpj\",\"volumeResourceIds\":[\"zswpchwa\"]},{\"ipAddress\":\"bousn\",\"volumeResourceIds\":[\"gfewetwlyxgnc\",\"ykxhdjh\",\"immbcx\"]}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - NetworkSiblingSet response = manager.netAppResources() - .updateNetworkSiblingSet("dgfcwqmp", - new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("maqxzhemjyh") - .withSubnetId("hujswtwkozzwcul") - .withNetworkSiblingSetStateId("bawpfajnjwltlwt") - .withNetworkFeatures(NetworkFeatures.BASIC), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("uktalhsnvkcdmxz", response.networkSiblingSetId()); - Assertions.assertEquals("oaimlnw", response.subnetId()); - Assertions.assertEquals("aomylwea", response.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, response.networkFeatures()); - Assertions.assertEquals("zswpchwa", response.nicInfoList().get(0).volumeResourceIds().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java deleted file mode 100644 index 08a49ecb9849..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.NetworkSiblingSetInner; -import com.azure.resourcemanager.netapp.models.NetworkFeatures; -import com.azure.resourcemanager.netapp.models.NicInfo; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NetworkSiblingSetInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkSiblingSetInner model = BinaryData.fromString( - "{\"networkSiblingSetId\":\"gsncghkjeszz\",\"subnetId\":\"ijhtxf\",\"networkSiblingSetStateId\":\"xbf\",\"networkFeatures\":\"Basic_Standard\",\"provisioningState\":\"Succeeded\",\"nicInfoList\":[{\"ipAddress\":\"vecxgodebfqkk\",\"volumeResourceIds\":[\"pukgriwflzlfb\",\"zpuzycisp\"]},{\"ipAddress\":\"zahmgkbrpyydhibn\",\"volumeResourceIds\":[\"kpikadrgvt\",\"agnb\",\"ynhijggme\",\"fsiarbutr\"]},{\"ipAddress\":\"pnazzm\",\"volumeResourceIds\":[\"unmpxttd\",\"hrbnlankxmyskpbh\"]},{\"ipAddress\":\"btkcxywnytnrsyn\",\"volumeResourceIds\":[\"dybyxczfclhaa\",\"dbabp\",\"lwrq\"]}]}") - .toObject(NetworkSiblingSetInner.class); - Assertions.assertEquals("gsncghkjeszz", model.networkSiblingSetId()); - Assertions.assertEquals("ijhtxf", model.subnetId()); - Assertions.assertEquals("xbf", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); - Assertions.assertEquals("pukgriwflzlfb", model.nicInfoList().get(0).volumeResourceIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkSiblingSetInner model = new NetworkSiblingSetInner().withNetworkSiblingSetId("gsncghkjeszz") - .withSubnetId("ijhtxf") - .withNetworkSiblingSetStateId("xbf") - .withNetworkFeatures(NetworkFeatures.BASIC_STANDARD) - .withNicInfoList( - Arrays.asList(new NicInfo().withVolumeResourceIds(Arrays.asList("pukgriwflzlfb", "zpuzycisp")), - new NicInfo().withVolumeResourceIds(Arrays.asList("kpikadrgvt", "agnb", "ynhijggme", "fsiarbutr")), - new NicInfo().withVolumeResourceIds(Arrays.asList("unmpxttd", "hrbnlankxmyskpbh")), - new NicInfo().withVolumeResourceIds(Arrays.asList("dybyxczfclhaa", "dbabp", "lwrq")))); - model = BinaryData.fromObject(model).toObject(NetworkSiblingSetInner.class); - Assertions.assertEquals("gsncghkjeszz", model.networkSiblingSetId()); - Assertions.assertEquals("ijhtxf", model.subnetId()); - Assertions.assertEquals("xbf", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); - Assertions.assertEquals("pukgriwflzlfb", model.nicInfoList().get(0).volumeResourceIds().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java deleted file mode 100644 index a65097a0ae1d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.NicInfo; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NicInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NicInfo model = BinaryData.fromString("{\"ipAddress\":\"ktsthsucocmny\",\"volumeResourceIds\":[\"t\"]}") - .toObject(NicInfo.class); - Assertions.assertEquals("t", model.volumeResourceIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NicInfo model = new NicInfo().withVolumeResourceIds(Arrays.asList("t")); - model = BinaryData.fromObject(model).toObject(NicInfo.class); - Assertions.assertEquals("t", model.volumeResourceIds().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationDisplayTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationDisplayTests.java deleted file mode 100644 index 9be1f2d76dfe..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationDisplayTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"cndvkaozwyiftyhx\",\"resource\":\"rokft\",\"operation\":\"olniwpwcukjf\",\"description\":\"iawxklry\"}") - .toObject(OperationDisplay.class); - Assertions.assertEquals("cndvkaozwyiftyhx", model.provider()); - Assertions.assertEquals("rokft", model.resource()); - Assertions.assertEquals("olniwpwcukjf", model.operation()); - Assertions.assertEquals("iawxklry", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay().withProvider("cndvkaozwyiftyhx") - .withResource("rokft") - .withOperation("olniwpwcukjf") - .withDescription("iawxklry"); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - Assertions.assertEquals("cndvkaozwyiftyhx", model.provider()); - Assertions.assertEquals("rokft", model.resource()); - Assertions.assertEquals("olniwpwcukjf", model.operation()); - Assertions.assertEquals("iawxklry", model.description()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationInnerTests.java deleted file mode 100644 index b212936d44ad..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationInnerTests.java +++ /dev/null @@ -1,175 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.OperationInner; -import com.azure.resourcemanager.netapp.models.Dimension; -import com.azure.resourcemanager.netapp.models.LogSpecification; -import com.azure.resourcemanager.netapp.models.MetricAggregationType; -import com.azure.resourcemanager.netapp.models.MetricSpecification; -import com.azure.resourcemanager.netapp.models.OperationDisplay; -import com.azure.resourcemanager.netapp.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = BinaryData.fromString( - "{\"name\":\"rd\",\"display\":{\"provider\":\"ewnwreitjzyfl\",\"resource\":\"arhmofcqhsmy\",\"operation\":\"kdtmlxhekuk\",\"description\":\"txukcdmp\"},\"origin\":\"cryuan\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"xtayr\",\"displayName\":\"m\",\"displayDescription\":\"fp\",\"unit\":\"qobmtukk\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"fxti\"],\"internalMetricName\":\"pzvgnwzsymglzufc\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"hdbihan\",\"sourceMdmNamespace\":\"hfcbjysa\",\"dimensions\":[{}],\"aggregationType\":\"xqhabi\",\"fillGapWithZero\":false,\"category\":\"xwczbyscnp\",\"resourceIdDimensionNameOverride\":\"uhivyqniw\",\"isInternal\":false},{\"name\":\"k\",\"displayName\":\"dumjgrtfwvuk\",\"displayDescription\":\"audccsnhs\",\"unit\":\"nyejhkryhtnap\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"yemkkvnip\"],\"internalMetricName\":\"xzjnchgejs\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"ailzydehojwyahu\",\"sourceMdmNamespace\":\"npmqnjaqwixjspro\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"utegjvwmfdats\",\"fillGapWithZero\":true,\"category\":\"pjhulsuuvmkj\",\"resourceIdDimensionNameOverride\":\"k\",\"isInternal\":false},{\"name\":\"dio\",\"displayName\":\"pslwejdpvw\",\"displayDescription\":\"oqpsoa\",\"unit\":\"tazak\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"yffdfdos\",\"gexpaojakhmsbz\",\"hcrzevd\"],\"internalMetricName\":\"lxaolthqtrgqjbp\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"inzgvfcj\",\"sourceMdmNamespace\":\"zoxxjtf\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"wfzitonpeqfpjk\",\"fillGapWithZero\":true,\"category\":\"fpdvhpfxxypi\",\"resourceIdDimensionNameOverride\":\"nmayhuybb\",\"isInternal\":true},{\"name\":\"epoo\",\"displayName\":\"nuvamiheogna\",\"displayDescription\":\"zxtheotusivyevcc\",\"unit\":\"ihnhun\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"gxg\",\"spemvtzfk\",\"fublj\"],\"internalMetricName\":\"xqeofjaeqjhqjba\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"mjqulngsn\",\"sourceMdmNamespace\":\"bybkzgcwrwclxx\",\"dimensions\":[{},{}],\"aggregationType\":\"douskcqvkocrcjdk\",\"fillGapWithZero\":false,\"category\":\"xbnjbiksq\",\"resourceIdDimensionNameOverride\":\"lssai\",\"isInternal\":false}],\"logSpecifications\":[{\"name\":\"zlljfmppeebvm\",\"displayName\":\"sabkyqduujitcjcz\"},{\"name\":\"evndh\",\"displayName\":\"wpdappdsbdkv\"},{\"name\":\"wjfeusnhutjel\",\"displayName\":\"rl\"},{\"name\":\"ugjzzdatqxhocdge\",\"displayName\":\"lgphu\"}]}}}") - .toObject(OperationInner.class); - Assertions.assertEquals("rd", model.name()); - Assertions.assertEquals("ewnwreitjzyfl", model.display().provider()); - Assertions.assertEquals("arhmofcqhsmy", model.display().resource()); - Assertions.assertEquals("kdtmlxhekuk", model.display().operation()); - Assertions.assertEquals("txukcdmp", model.display().description()); - Assertions.assertEquals("cryuan", model.origin()); - Assertions.assertEquals("xtayr", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("m", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("fp", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("qobmtukk", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("fxti", - model.serviceSpecification().metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("pzvgnwzsymglzufc", - model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("hdbihan", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("hfcbjysa", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("xqhabi", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("xwczbyscnp", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("uhivyqniw", - model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("zlljfmppeebvm", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("sabkyqduujitcjcz", - model.serviceSpecification().logSpecifications().get(0).displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = new OperationInner().withName("rd") - .withDisplay(new OperationDisplay().withProvider("ewnwreitjzyfl") - .withResource("arhmofcqhsmy") - .withOperation("kdtmlxhekuk") - .withDescription("txukcdmp")) - .withOrigin("cryuan") - .withServiceSpecification(new ServiceSpecification() - .withMetricSpecifications(Arrays.asList(new MetricSpecification().withName("xtayr") - .withDisplayName("m") - .withDisplayDescription("fp") - .withUnit("qobmtukk") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("fxti")) - .withInternalMetricName("pzvgnwzsymglzufc") - .withEnableRegionalMdmAccount(false) - .withSourceMdmAccount("hdbihan") - .withSourceMdmNamespace("hfcbjysa") - .withDimensions(Arrays.asList(new Dimension())) - .withAggregationType("xqhabi") - .withFillGapWithZero(false) - .withCategory("xwczbyscnp") - .withResourceIdDimensionNameOverride("uhivyqniw") - .withIsInternal(false), - new MetricSpecification().withName("k") - .withDisplayName("dumjgrtfwvuk") - .withDisplayDescription("audccsnhs") - .withUnit("nyejhkryhtnap") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("yemkkvnip")) - .withInternalMetricName("xzjnchgejs") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("ailzydehojwyahu") - .withSourceMdmNamespace("npmqnjaqwixjspro") - .withDimensions( - Arrays.asList(new Dimension(), new Dimension(), new Dimension(), new Dimension())) - .withAggregationType("utegjvwmfdats") - .withFillGapWithZero(true) - .withCategory("pjhulsuuvmkj") - .withResourceIdDimensionNameOverride("k") - .withIsInternal(false), - new MetricSpecification().withName("dio") - .withDisplayName("pslwejdpvw") - .withDisplayDescription("oqpsoa") - .withUnit("tazak") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE, - MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("yffdfdos", "gexpaojakhmsbz", "hcrzevd")) - .withInternalMetricName("lxaolthqtrgqjbp") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("inzgvfcj") - .withSourceMdmNamespace("zoxxjtf") - .withDimensions( - Arrays.asList(new Dimension(), new Dimension(), new Dimension(), new Dimension())) - .withAggregationType("wfzitonpeqfpjk") - .withFillGapWithZero(true) - .withCategory("fpdvhpfxxypi") - .withResourceIdDimensionNameOverride("nmayhuybb") - .withIsInternal(true), - new MetricSpecification().withName("epoo") - .withDisplayName("nuvamiheogna") - .withDisplayDescription("zxtheotusivyevcc") - .withUnit("ihnhun") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE, - MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("gxg", "spemvtzfk", "fublj")) - .withInternalMetricName("xqeofjaeqjhqjba") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("mjqulngsn") - .withSourceMdmNamespace("bybkzgcwrwclxx") - .withDimensions(Arrays.asList(new Dimension(), new Dimension())) - .withAggregationType("douskcqvkocrcjdk") - .withFillGapWithZero(false) - .withCategory("xbnjbiksq") - .withResourceIdDimensionNameOverride("lssai") - .withIsInternal(false))) - .withLogSpecifications( - Arrays.asList(new LogSpecification().withName("zlljfmppeebvm").withDisplayName("sabkyqduujitcjcz"), - new LogSpecification().withName("evndh").withDisplayName("wpdappdsbdkv"), - new LogSpecification().withName("wjfeusnhutjel").withDisplayName("rl"), - new LogSpecification().withName("ugjzzdatqxhocdge").withDisplayName("lgphu")))); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - Assertions.assertEquals("rd", model.name()); - Assertions.assertEquals("ewnwreitjzyfl", model.display().provider()); - Assertions.assertEquals("arhmofcqhsmy", model.display().resource()); - Assertions.assertEquals("kdtmlxhekuk", model.display().operation()); - Assertions.assertEquals("txukcdmp", model.display().description()); - Assertions.assertEquals("cryuan", model.origin()); - Assertions.assertEquals("xtayr", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("m", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("fp", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("qobmtukk", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("fxti", - model.serviceSpecification().metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("pzvgnwzsymglzufc", - model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("hdbihan", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("hfcbjysa", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("xqhabi", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("xwczbyscnp", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("uhivyqniw", - model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("zlljfmppeebvm", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("sabkyqduujitcjcz", - model.serviceSpecification().logSpecifications().get(0).displayName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationListResultTests.java deleted file mode 100644 index 65c3cf79d34a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationListResultTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.OperationInner; -import com.azure.resourcemanager.netapp.models.LogSpecification; -import com.azure.resourcemanager.netapp.models.MetricSpecification; -import com.azure.resourcemanager.netapp.models.OperationDisplay; -import com.azure.resourcemanager.netapp.models.OperationListResult; -import com.azure.resourcemanager.netapp.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"quvgjxpybczme\",\"display\":{\"provider\":\"zopbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"ownoizhw\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{}],\"logSpecifications\":[{},{}]}}},{\"name\":\"qijgkd\",\"display\":{\"provider\":\"azlobcufpdznrbt\",\"resource\":\"qjnqglhqgnufoooj\",\"operation\":\"ifsqesaagdfmg\",\"description\":\"lhjxr\"},\"origin\":\"kwm\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{}],\"logSpecifications\":[{},{},{},{}]}}},{\"name\":\"to\",\"display\":{\"provider\":\"a\",\"resource\":\"ajpsquc\",\"operation\":\"o\",\"description\":\"dkfo\"},\"origin\":\"nygj\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{},{}],\"logSpecifications\":[{}]}}}]}") - .toObject(OperationListResult.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals("zopbsphrupidgs", model.value().get(0).display().provider()); - Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().resource()); - Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().operation()); - Assertions.assertEquals("zehtbmu", model.value().get(0).display().description()); - Assertions.assertEquals("ownoizhw", model.value().get(0).origin()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResult model = new OperationListResult().withValue(Arrays.asList( - new OperationInner().withName("quvgjxpybczme") - .withDisplay(new OperationDisplay().withProvider("zopbsphrupidgs") - .withResource("bejhphoycmsxa") - .withOperation("hdxbmtqio") - .withDescription("zehtbmu")) - .withOrigin("ownoizhw") - .withServiceSpecification(new ServiceSpecification() - .withMetricSpecifications(Arrays.asList(new MetricSpecification(), new MetricSpecification())) - .withLogSpecifications(Arrays.asList(new LogSpecification(), new LogSpecification()))), - new OperationInner().withName("qijgkd") - .withDisplay(new OperationDisplay().withProvider("azlobcufpdznrbt") - .withResource("qjnqglhqgnufoooj") - .withOperation("ifsqesaagdfmg") - .withDescription("lhjxr")) - .withOrigin("kwm") - .withServiceSpecification(new ServiceSpecification() - .withMetricSpecifications(Arrays.asList(new MetricSpecification(), new MetricSpecification())) - .withLogSpecifications(Arrays.asList(new LogSpecification(), new LogSpecification(), - new LogSpecification(), new LogSpecification()))), - new OperationInner().withName("to") - .withDisplay(new OperationDisplay().withProvider("a") - .withResource("ajpsquc") - .withOperation("o") - .withDescription("dkfo")) - .withOrigin("nygj") - .withServiceSpecification(new ServiceSpecification() - .withMetricSpecifications( - Arrays.asList(new MetricSpecification(), new MetricSpecification(), new MetricSpecification())) - .withLogSpecifications(Arrays.asList(new LogSpecification()))))); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals("zopbsphrupidgs", model.value().get(0).display().provider()); - Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().resource()); - Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().operation()); - Assertions.assertEquals("zehtbmu", model.value().get(0).display().description()); - Assertions.assertEquals("ownoizhw", model.value().get(0).origin()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationPropertiesTests.java deleted file mode 100644 index 86941fee3f2d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationPropertiesTests.java +++ /dev/null @@ -1,152 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.OperationProperties; -import com.azure.resourcemanager.netapp.models.Dimension; -import com.azure.resourcemanager.netapp.models.LogSpecification; -import com.azure.resourcemanager.netapp.models.MetricAggregationType; -import com.azure.resourcemanager.netapp.models.MetricSpecification; -import com.azure.resourcemanager.netapp.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationProperties model = BinaryData.fromString( - "{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"basyy\",\"displayName\":\"ddhsgcbacphe\",\"displayDescription\":\"ot\",\"unit\":\"qgoulznd\",\"supportedAggregationTypes\":[\"Average\"],\"supportedTimeGrainTypes\":[\"kgfg\",\"bmadgak\",\"qsrxybzqqed\"],\"internalMetricName\":\"tbciqfouflmm\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"modmglougpb\",\"sourceMdmNamespace\":\"tmut\",\"dimensions\":[{\"name\":\"ta\",\"displayName\":\"pwgcuertu\"},{\"name\":\"dosvqwhbmdgbbjf\",\"displayName\":\"gmbmbexppbh\"},{\"name\":\"qrolfpf\",\"displayName\":\"algbquxigjyjg\"},{\"name\":\"aoyfhrtxilnerkuj\",\"displayName\":\"vlejuvfqa\"}],\"aggregationType\":\"lyxwjkcprbnwbx\",\"fillGapWithZero\":false,\"category\":\"bvpyss\",\"resourceIdDimensionNameOverride\":\"nruj\",\"isInternal\":true},{\"name\":\"muouqfp\",\"displayName\":\"zw\",\"displayDescription\":\"g\",\"unit\":\"tnwu\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"fizuckyf\",\"hr\",\"idf\"],\"internalMetricName\":\"wdzuhtymwisd\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"wxmnteiwao\",\"sourceMdmNamespace\":\"km\",\"dimensions\":[{\"name\":\"mxdcufufsrp\",\"displayName\":\"zidnsezcxtbzsgfy\"}],\"aggregationType\":\"sne\",\"fillGapWithZero\":true,\"category\":\"z\",\"resourceIdDimensionNameOverride\":\"iachbo\",\"isInternal\":true},{\"name\":\"nrosfqpte\",\"displayName\":\"zzvypyqrimzinp\",\"displayDescription\":\"wjdk\",\"unit\":\"soodqxhcrmnoh\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"soifiyipjxsqw\",\"gr\",\"bznorcjxvsnby\"],\"internalMetricName\":\"abnmocpcyshu\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"bl\",\"sourceMdmNamespace\":\"gpbtoqcjmklj\",\"dimensions\":[{\"name\":\"idtqajzyu\",\"displayName\":\"kudjkrlkhb\"},{\"name\":\"fepgzgq\",\"displayName\":\"zloc\"}],\"aggregationType\":\"c\",\"fillGapWithZero\":true,\"category\":\"rhhbcs\",\"resourceIdDimensionNameOverride\":\"ummajtjaod\",\"isInternal\":true}],\"logSpecifications\":[{\"name\":\"xkqpxo\",\"displayName\":\"jionpimexgstxgc\"},{\"name\":\"dg\",\"displayName\":\"ajrmvdjwzrlovmc\"},{\"name\":\"hijco\",\"displayName\":\"ctbzaq\"}]}}") - .toObject(OperationProperties.class); - Assertions.assertEquals("basyy", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("ddhsgcbacphe", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("ot", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("qgoulznd", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("kgfg", - model.serviceSpecification().metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("tbciqfouflmm", - model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("modmglougpb", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("tmut", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("ta", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("pwgcuertu", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("lyxwjkcprbnwbx", - model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("bvpyss", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("nruj", - model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("xkqpxo", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("jionpimexgstxgc", - model.serviceSpecification().logSpecifications().get(0).displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationProperties model = new OperationProperties().withServiceSpecification(new ServiceSpecification() - .withMetricSpecifications(Arrays.asList( - new MetricSpecification().withName("basyy") - .withDisplayName("ddhsgcbacphe") - .withDisplayDescription("ot") - .withUnit("qgoulznd") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("kgfg", "bmadgak", "qsrxybzqqed")) - .withInternalMetricName("tbciqfouflmm") - .withEnableRegionalMdmAccount(false) - .withSourceMdmAccount("modmglougpb") - .withSourceMdmNamespace("tmut") - .withDimensions(Arrays.asList(new Dimension().withName("ta").withDisplayName("pwgcuertu"), - new Dimension().withName("dosvqwhbmdgbbjf").withDisplayName("gmbmbexppbh"), - new Dimension().withName("qrolfpf").withDisplayName("algbquxigjyjg"), - new Dimension().withName("aoyfhrtxilnerkuj").withDisplayName("vlejuvfqa"))) - .withAggregationType("lyxwjkcprbnwbx") - .withFillGapWithZero(false) - .withCategory("bvpyss") - .withResourceIdDimensionNameOverride("nruj") - .withIsInternal(true), - new MetricSpecification().withName("muouqfp") - .withDisplayName("zw") - .withDisplayDescription("g") - .withUnit("tnwu") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("fizuckyf", "hr", "idf")) - .withInternalMetricName("wdzuhtymwisd") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("wxmnteiwao") - .withSourceMdmNamespace("km") - .withDimensions( - Arrays.asList(new Dimension().withName("mxdcufufsrp").withDisplayName("zidnsezcxtbzsgfy"))) - .withAggregationType("sne") - .withFillGapWithZero(true) - .withCategory("z") - .withResourceIdDimensionNameOverride("iachbo") - .withIsInternal(true), - new MetricSpecification().withName("nrosfqpte") - .withDisplayName("zzvypyqrimzinp") - .withDisplayDescription("wjdk") - .withUnit("soodqxhcrmnoh") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("soifiyipjxsqw", "gr", "bznorcjxvsnby")) - .withInternalMetricName("abnmocpcyshu") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("bl") - .withSourceMdmNamespace("gpbtoqcjmklj") - .withDimensions(Arrays.asList(new Dimension().withName("idtqajzyu").withDisplayName("kudjkrlkhb"), - new Dimension().withName("fepgzgq").withDisplayName("zloc"))) - .withAggregationType("c") - .withFillGapWithZero(true) - .withCategory("rhhbcs") - .withResourceIdDimensionNameOverride("ummajtjaod") - .withIsInternal(true))) - .withLogSpecifications( - Arrays.asList(new LogSpecification().withName("xkqpxo").withDisplayName("jionpimexgstxgc"), - new LogSpecification().withName("dg").withDisplayName("ajrmvdjwzrlovmc"), - new LogSpecification().withName("hijco").withDisplayName("ctbzaq")))); - model = BinaryData.fromObject(model).toObject(OperationProperties.class); - Assertions.assertEquals("basyy", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("ddhsgcbacphe", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("ot", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("qgoulznd", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("kgfg", - model.serviceSpecification().metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("tbciqfouflmm", - model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, - model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("modmglougpb", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("tmut", - model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("ta", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("pwgcuertu", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("lyxwjkcprbnwbx", - model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("bvpyss", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("nruj", - model.serviceSpecification().metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("xkqpxo", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("jionpimexgstxgc", - model.serviceSpecification().logSpecifications().get(0).displayName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java deleted file mode 100644 index bd7661979b17..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.MetricAggregationType; -import com.azure.resourcemanager.netapp.models.Operation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"jvpglydzgk\",\"display\":{\"provider\":\"eevt\",\"resource\":\"pryu\",\"operation\":\"wytpzdmovz\",\"description\":\"va\"},\"origin\":\"zqadf\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"glae\",\"displayName\":\"ndtic\",\"displayDescription\":\"pvz\",\"unit\":\"qtmldgxo\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"pkc\"],\"internalMetricName\":\"yzriykhy\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"jlb\",\"sourceMdmNamespace\":\"qvkjlmxho\",\"dimensions\":[{},{},{}],\"aggregationType\":\"hdwdi\",\"fillGapWithZero\":true,\"category\":\"nraauzz\",\"resourceIdDimensionNameOverride\":\"jazysdzhezwwvaiq\",\"isInternal\":false},{\"name\":\"fonkphhqyikvyla\",\"displayName\":\"avluwmncs\",\"displayDescription\":\"ijf\",\"unit\":\"vpo\",\"supportedAggregationTypes\":[\"Average\"],\"supportedTimeGrainTypes\":[\"gbdhuzqgnjdg\",\"ynscl\"],\"internalMetricName\":\"hzvhxnkomtkubo\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"vdxzxhihfrbbc\",\"sourceMdmNamespace\":\"qagt\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"lfkqojpy\",\"fillGapWithZero\":false,\"category\":\"rdcnifmzzsdy\",\"resourceIdDimensionNameOverride\":\"rnysux\",\"isInternal\":true}],\"logSpecifications\":[{\"name\":\"g\",\"displayName\":\"hocxvdfffwafqrou\"},{\"name\":\"spave\",\"displayName\":\"r\"},{\"name\":\"bunzozudh\",\"displayName\":\"gkmoyxcdyuibhmfd\"},{\"name\":\"zydvfvf\",\"displayName\":\"naeo\"}]}}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("jvpglydzgk", response.iterator().next().name()); - Assertions.assertEquals("eevt", response.iterator().next().display().provider()); - Assertions.assertEquals("pryu", response.iterator().next().display().resource()); - Assertions.assertEquals("wytpzdmovz", response.iterator().next().display().operation()); - Assertions.assertEquals("va", response.iterator().next().display().description()); - Assertions.assertEquals("zqadf", response.iterator().next().origin()); - Assertions.assertEquals("glae", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("ndtic", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("pvz", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("qtmldgxo", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - response.iterator() - .next() - .serviceSpecification() - .metricSpecifications() - .get(0) - .supportedAggregationTypes() - .get(0)); - Assertions.assertEquals("pkc", - response.iterator() - .next() - .serviceSpecification() - .metricSpecifications() - .get(0) - .supportedTimeGrainTypes() - .get(0)); - Assertions.assertEquals("yzriykhy", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(true, - response.iterator().next().serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("jlb", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("qvkjlmxho", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("hdwdi", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(true, - response.iterator().next().serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("nraauzz", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("jazysdzhezwwvaiq", - response.iterator() - .next() - .serviceSpecification() - .metricSpecifications() - .get(0) - .resourceIdDimensionNameOverride()); - Assertions.assertEquals(false, - response.iterator().next().serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("g", - response.iterator().next().serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("hocxvdfffwafqrou", - response.iterator().next().serviceSpecification().logSpecifications().get(0).displayName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PeerClusterForVolumeMigrationRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PeerClusterForVolumeMigrationRequestTests.java deleted file mode 100644 index a54191ce99f6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PeerClusterForVolumeMigrationRequestTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PeerClusterForVolumeMigrationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PeerClusterForVolumeMigrationRequest model - = BinaryData.fromString("{\"peerIpAddresses\":[\"ygdvwv\",\"piohgwxrtfu\",\"xepxgyqagvrvmn\"]}") - .toObject(PeerClusterForVolumeMigrationRequest.class); - Assertions.assertEquals("ygdvwv", model.peerIpAddresses().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PeerClusterForVolumeMigrationRequest model = new PeerClusterForVolumeMigrationRequest() - .withPeerIpAddresses(Arrays.asList("ygdvwv", "piohgwxrtfu", "xepxgyqagvrvmn")); - model = BinaryData.fromObject(model).toObject(PeerClusterForVolumeMigrationRequest.class); - Assertions.assertEquals("ygdvwv", model.peerIpAddresses().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java deleted file mode 100644 index e0f8b128d2fc..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolChangeRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.PoolChangeRequest; -import org.junit.jupiter.api.Assertions; - -public final class PoolChangeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PoolChangeRequest model - = BinaryData.fromString("{\"newPoolResourceId\":\"rey\"}").toObject(PoolChangeRequest.class); - Assertions.assertEquals("rey", model.newPoolResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PoolChangeRequest model = new PoolChangeRequest().withNewPoolResourceId("rey"); - model = BinaryData.fromObject(model).toObject(PoolChangeRequest.class); - Assertions.assertEquals("rey", model.newPoolResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java deleted file mode 100644 index 7e29ec32b48e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties; -import com.azure.resourcemanager.netapp.models.QosType; -import org.junit.jupiter.api.Assertions; - -public final class PoolPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PoolPatchProperties model - = BinaryData.fromString("{\"size\":946944160211123587,\"qosType\":\"Manual\",\"coolAccess\":true}") - .toObject(PoolPatchProperties.class); - Assertions.assertEquals(946944160211123587L, model.size()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PoolPatchProperties model - = new PoolPatchProperties().withSize(946944160211123587L).withQosType(QosType.MANUAL).withCoolAccess(true); - model = BinaryData.fromObject(model).toObject(PoolPatchProperties.class); - Assertions.assertEquals(946944160211123587L, model.size()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java deleted file mode 100644 index 221e129f62ea..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.PoolProperties; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import org.junit.jupiter.api.Assertions; - -public final class PoolPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PoolProperties model = BinaryData.fromString( - "{\"poolId\":\"nsmvbxwyj\",\"size\":9187109765948314327,\"serviceLevel\":\"Premium\",\"provisioningState\":\"caalnjixisxyaw\",\"totalThroughputMibps\":82.835205,\"utilizedThroughputMibps\":64.62957,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Single\"}") - .toObject(PoolProperties.class); - Assertions.assertEquals(9187109765948314327L, model.size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PoolProperties model = new PoolProperties().withSize(9187109765948314327L) - .withServiceLevel(ServiceLevel.PREMIUM) - .withQosType(QosType.MANUAL) - .withCoolAccess(true) - .withEncryptionType(EncryptionType.SINGLE); - model = BinaryData.fromObject(model).toObject(PoolProperties.class); - Assertions.assertEquals(9187109765948314327L, model.size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java deleted file mode 100644 index d13f1362d26b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CapacityPool; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PoolsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"etag\":\"qxnmwmqt\",\"properties\":{\"poolId\":\"xyi\",\"size\":8723326269402268094,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"Succeeded\",\"totalThroughputMibps\":15.086746,\"utilizedThroughputMibps\":61.958694,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"location\":\"dqmeqwigpibudq\",\"tags\":{\"ybpmzznrtffyaq\":\"eb\",\"hvseufuqyrx\":\"tmhheioqa\",\"dgamquhiosrsj\":\"dlcgqlsismjqfr\"},\"id\":\"ivfcdisyirnx\",\"name\":\"hcz\",\"type\":\"xrxzbujrtr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - CapacityPool response = manager.pools() - .define("pifhpfeoajvgcxtx") - .withRegion("wsldrizetpwbr") - .withExistingNetAppAccount("bwnhhtql", "ehgpp") - .withSize(8087831620363185447L) - .withServiceLevel(ServiceLevel.STANDARD) - .withTags(mapOf("qzmiza", "libph", "ankjpdnjzh", "a", "lmuoyxprimrsopte", "joylh", "wxdzaumweoohgu", - "cjmeislstvasy")) - .withQosType(QosType.AUTO) - .withCoolAccess(false) - .withEncryptionType(EncryptionType.DOUBLE) - .create(); - - Assertions.assertEquals("dqmeqwigpibudq", response.location()); - Assertions.assertEquals("eb", response.tags().get("ybpmzznrtffyaq")); - Assertions.assertEquals(8723326269402268094L, response.size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, response.serviceLevel()); - Assertions.assertEquals(QosType.MANUAL, response.qosType()); - Assertions.assertEquals(false, response.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, response.encryptionType()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java deleted file mode 100644 index 02c6683639e3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CapacityPool; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PoolsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"etag\":\"rcxfailcfxwmdb\",\"properties\":{\"poolId\":\"dfgsftufqobrj\",\"size\":3034279146046559675,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"cc\",\"totalThroughputMibps\":18.878342,\"utilizedThroughputMibps\":32.467564,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"location\":\"rzvul\",\"tags\":{\"roylaxxu\":\"aeranokqgukkjqnv\",\"sfjbjsvg\":\"cdisd\",\"lxgccknfnwmbtm\":\"rwhryvycytd\",\"hchrphkmcrjdqn\":\"pdvjdhttzaefedx\"},\"id\":\"dfzpbgtgkylkdg\",\"name\":\"rjeuut\",\"type\":\"wxezwzhok\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - CapacityPool response - = manager.pools().getWithResponse("m", "es", "kdlpa", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("rzvul", response.location()); - Assertions.assertEquals("aeranokqgukkjqnv", response.tags().get("roylaxxu")); - Assertions.assertEquals(3034279146046559675L, response.size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, response.serviceLevel()); - Assertions.assertEquals(QosType.AUTO, response.qosType()); - Assertions.assertEquals(false, response.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, response.encryptionType()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java deleted file mode 100644 index f9ff95e43ed6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CapacityPool; -import com.azure.resourcemanager.netapp.models.EncryptionType; -import com.azure.resourcemanager.netapp.models.QosType; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PoolsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"etag\":\"zddrt\",\"properties\":{\"poolId\":\"doj\",\"size\":3326683287722087129,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"vrefdeesv\",\"totalThroughputMibps\":14.100099,\"utilizedThroughputMibps\":78.21149,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"location\":\"prtujwsawdd\",\"tags\":{\"itvtzeexavo\":\"abxvi\",\"dmdqb\":\"tfgle\",\"cbslhhx\":\"pypqtgsfj\"},\"id\":\"db\",\"name\":\"vodhtn\",\"type\":\"irudh\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.pools().list("cxcktpi", "merteeammxqiek", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("prtujwsawdd", response.iterator().next().location()); - Assertions.assertEquals("abxvi", response.iterator().next().tags().get("itvtzeexavo")); - Assertions.assertEquals(3326683287722087129L, response.iterator().next().size()); - Assertions.assertEquals(ServiceLevel.ULTRA, response.iterator().next().serviceLevel()); - Assertions.assertEquals(QosType.MANUAL, response.iterator().next().qosType()); - Assertions.assertEquals(false, response.iterator().next().coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, response.iterator().next().encryptionType()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java deleted file mode 100644 index 4b418c550619..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest; -import org.junit.jupiter.api.Assertions; - -public final class QueryNetworkSiblingSetRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QueryNetworkSiblingSetRequest model - = BinaryData.fromString("{\"networkSiblingSetId\":\"uujqgidokgjljyo\",\"subnetId\":\"gvcl\"}") - .toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("uujqgidokgjljyo", model.networkSiblingSetId()); - Assertions.assertEquals("gvcl", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QueryNetworkSiblingSetRequest model - = new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("uujqgidokgjljyo").withSubnetId("gvcl"); - model = BinaryData.fromObject(model).toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("uujqgidokgjljyo", model.networkSiblingSetId()); - Assertions.assertEquals("gvcl", model.subnetId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java deleted file mode 100644 index 3fe57d8bc098..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes; -import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class QuotaAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - QuotaAvailabilityRequest model = BinaryData - .fromString( - "{\"name\":\"rkcciwwzjuqk\",\"type\":\"Microsoft.NetApp/netAppAccounts\",\"resourceGroup\":\"sa\"}") - .toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("rkcciwwzjuqk", model.name()); - Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS, model.type()); - Assertions.assertEquals("sa", model.resourceGroup()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuotaAvailabilityRequest model = new QuotaAvailabilityRequest().withName("rkcciwwzjuqk") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS) - .withResourceGroup("sa"); - model = BinaryData.fromObject(model).toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("rkcciwwzjuqk", model.name()); - Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS, model.type()); - Assertions.assertEquals("sa", model.resourceGroup()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReestablishReplicationRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReestablishReplicationRequestTests.java deleted file mode 100644 index 44e4fd7ed2b3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReestablishReplicationRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; -import org.junit.jupiter.api.Assertions; - -public final class ReestablishReplicationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReestablishReplicationRequest model = BinaryData.fromString("{\"sourceVolumeId\":\"ioxiysuiizyn\"}") - .toObject(ReestablishReplicationRequest.class); - Assertions.assertEquals("ioxiysuiizyn", model.sourceVolumeId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReestablishReplicationRequest model = new ReestablishReplicationRequest().withSourceVolumeId("ioxiysuiizyn"); - model = BinaryData.fromObject(model).toObject(ReestablishReplicationRequest.class); - Assertions.assertEquals("ioxiysuiizyn", model.sourceVolumeId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java deleted file mode 100644 index be85868daaac..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem; -import org.junit.jupiter.api.Assertions; - -public final class RegionInfoAvailabilityZoneMappingsItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RegionInfoAvailabilityZoneMappingsItem model - = BinaryData.fromString("{\"availabilityZone\":\"fbishcbkha\",\"isAvailable\":false}") - .toObject(RegionInfoAvailabilityZoneMappingsItem.class); - Assertions.assertEquals("fbishcbkha", model.availabilityZone()); - Assertions.assertEquals(false, model.isAvailable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfoAvailabilityZoneMappingsItem model - = new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("fbishcbkha").withIsAvailable(false); - model = BinaryData.fromObject(model).toObject(RegionInfoAvailabilityZoneMappingsItem.class); - Assertions.assertEquals("fbishcbkha", model.availabilityZone()); - Assertions.assertEquals(false, model.isAvailable()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java deleted file mode 100644 index 1a62697c1398..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner; -import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RegionInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RegionInfoInner model = BinaryData.fromString( - "{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"c\",\"isAvailable\":true},{\"availabilityZone\":\"sdpydnfyhxdeoejz\",\"isAvailable\":false},{\"availabilityZone\":\"fsj\",\"isAvailable\":true}]}") - .toObject(RegionInfoInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, - model.storageToNetworkProximity()); - Assertions.assertEquals("c", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, model.availabilityZoneMappings().get(0).isAvailable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfoInner model - = new RegionInfoInner().withStorageToNetworkProximity(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2) - .withAvailabilityZoneMappings(Arrays.asList( - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("c").withIsAvailable(true), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("sdpydnfyhxdeoejz") - .withIsAvailable(false), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("fsj").withIsAvailable(true))); - model = BinaryData.fromObject(model).toObject(RegionInfoInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, - model.storageToNetworkProximity()); - Assertions.assertEquals("c", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, model.availabilityZoneMappings().get(0).isAvailable()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java deleted file mode 100644 index 011c73568ad8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner; -import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RegionInfoResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RegionInfoResourceInner model = BinaryData.fromString( - "{\"properties\":{\"storageToNetworkProximity\":\"T2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"nkymuctqhjfbebrj\",\"isAvailable\":true},{\"availabilityZone\":\"fuwutttxf\",\"isAvailable\":false},{\"availabilityZone\":\"i\",\"isAvailable\":true}]},\"id\":\"epcyvahfnlj\",\"name\":\"yq\",\"type\":\"j\"}") - .toObject(RegionInfoResourceInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T2, model.storageToNetworkProximity()); - Assertions.assertEquals("nkymuctqhjfbebrj", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, model.availabilityZoneMappings().get(0).isAvailable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfoResourceInner model = new RegionInfoResourceInner() - .withStorageToNetworkProximity(RegionStorageToNetworkProximity.T2) - .withAvailabilityZoneMappings(Arrays.asList( - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("nkymuctqhjfbebrj") - .withIsAvailable(true), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("fuwutttxf").withIsAvailable(false), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("i").withIsAvailable(true))); - model = BinaryData.fromObject(model).toObject(RegionInfoResourceInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T2, model.storageToNetworkProximity()); - Assertions.assertEquals("nkymuctqhjfbebrj", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, model.availabilityZoneMappings().get(0).isAvailable()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java deleted file mode 100644 index 22ea9c7ca417..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner; -import com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem; -import com.azure.resourcemanager.netapp.models.RegionInfosList; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RegionInfosListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RegionInfosList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"g\",\"isAvailable\":true},{\"availabilityZone\":\"uxwgipwho\",\"isAvailable\":false},{\"availabilityZone\":\"gshwankixz\",\"isAvailable\":true},{\"availabilityZone\":\"eputtmrywnuzoqf\",\"isAvailable\":true}]},\"id\":\"zrnkcqvyxlwh\",\"name\":\"lsicohoqqnwv\",\"type\":\"ryavwhheunmmqh\"},{\"properties\":{\"storageToNetworkProximity\":\"T1\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"ocukoklyax\",\"isAvailable\":false},{\"availabilityZone\":\"uqszfk\",\"isAvailable\":true}]},\"id\":\"ewrmjmwvvjektc\",\"name\":\"senhwlrs\",\"type\":\"frzpwvlqdqgb\"}],\"nextLink\":\"ylihkaetckt\"}") - .toObject(RegionInfosList.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, - model.value().get(0).storageToNetworkProximity()); - Assertions.assertEquals("g", model.value().get(0).availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, model.value().get(0).availabilityZoneMappings().get(0).isAvailable()); - Assertions.assertEquals("ylihkaetckt", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RegionInfosList model = new RegionInfosList().withValue(Arrays.asList(new RegionInfoResourceInner() - .withStorageToNetworkProximity(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2) - .withAvailabilityZoneMappings(Arrays.asList( - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("g").withIsAvailable(true), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("uxwgipwho").withIsAvailable(false), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("gshwankixz").withIsAvailable(true), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("eputtmrywnuzoqf") - .withIsAvailable(true))), - new RegionInfoResourceInner().withStorageToNetworkProximity(RegionStorageToNetworkProximity.T1) - .withAvailabilityZoneMappings(Arrays.asList( - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("ocukoklyax") - .withIsAvailable(false), - new RegionInfoAvailabilityZoneMappingsItem().withAvailabilityZone("uqszfk") - .withIsAvailable(true))))) - .withNextLink("ylihkaetckt"); - model = BinaryData.fromObject(model).toObject(RegionInfosList.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, - model.value().get(0).storageToNetworkProximity()); - Assertions.assertEquals("g", model.value().get(0).availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertEquals(true, model.value().get(0).availabilityZoneMappings().get(0).isAvailable()); - Assertions.assertEquals("ylihkaetckt", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RemotePathTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RemotePathTests.java deleted file mode 100644 index ed55cc679bd7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RemotePathTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.RemotePath; -import org.junit.jupiter.api.Assertions; - -public final class RemotePathTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RemotePath model = BinaryData - .fromString( - "{\"externalHostName\":\"zxmhhvhgu\",\"serverName\":\"eodkwobda\",\"volumeName\":\"xtibqdxbxwakbog\"}") - .toObject(RemotePath.class); - Assertions.assertEquals("zxmhhvhgu", model.externalHostname()); - Assertions.assertEquals("eodkwobda", model.serverName()); - Assertions.assertEquals("xtibqdxbxwakbog", model.volumeName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RemotePath model = new RemotePath().withExternalHostname("zxmhhvhgu") - .withServerName("eodkwobda") - .withVolumeName("xtibqdxbxwakbog"); - model = BinaryData.fromObject(model).toObject(RemotePath.class); - Assertions.assertEquals("zxmhhvhgu", model.externalHostname()); - Assertions.assertEquals("eodkwobda", model.serverName()); - Assertions.assertEquals("xtibqdxbxwakbog", model.volumeName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.java deleted file mode 100644 index 4c9fcb473c98..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; -import com.azure.resourcemanager.netapp.models.EndpointType; -import com.azure.resourcemanager.netapp.models.ReplicationSchedule; -import org.junit.jupiter.api.Assertions; - -public final class ReplicationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationInner model = BinaryData.fromString( - "{\"replicationId\":\"cjzkzivgvvcna\",\"endpointType\":\"src\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"nxxmueedndrdv\",\"remoteVolumeRegion\":\"kwqqtchealmf\"}") - .toObject(ReplicationInner.class); - Assertions.assertEquals(EndpointType.SRC, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.replicationSchedule()); - Assertions.assertEquals("nxxmueedndrdv", model.remoteVolumeResourceId()); - Assertions.assertEquals("kwqqtchealmf", model.remoteVolumeRegion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationInner model = new ReplicationInner().withEndpointType(EndpointType.SRC) - .withReplicationSchedule(ReplicationSchedule.ONE_ZEROMINUTELY) - .withRemoteVolumeResourceId("nxxmueedndrdv") - .withRemoteVolumeRegion("kwqqtchealmf"); - model = BinaryData.fromObject(model).toObject(ReplicationInner.class); - Assertions.assertEquals(EndpointType.SRC, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.replicationSchedule()); - Assertions.assertEquals("nxxmueedndrdv", model.remoteVolumeResourceId()); - Assertions.assertEquals("kwqqtchealmf", model.remoteVolumeRegion()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationObjectTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationObjectTests.java deleted file mode 100644 index ed2467e80325..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationObjectTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.EndpointType; -import com.azure.resourcemanager.netapp.models.RemotePath; -import com.azure.resourcemanager.netapp.models.ReplicationObject; -import com.azure.resourcemanager.netapp.models.ReplicationSchedule; -import org.junit.jupiter.api.Assertions; - -public final class ReplicationObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationObject model = BinaryData.fromString( - "{\"replicationId\":\"shhszhedplvwiw\",\"endpointType\":\"src\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"esl\",\"remotePath\":{\"externalHostName\":\"k\",\"serverName\":\"wtppjflcxogaoko\",\"volumeName\":\"z\"},\"remoteVolumeRegion\":\"sikvmkqzeqqkdlt\"}") - .toObject(ReplicationObject.class); - Assertions.assertEquals(EndpointType.SRC, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.DAILY, model.replicationSchedule()); - Assertions.assertEquals("esl", model.remoteVolumeResourceId()); - Assertions.assertEquals("k", model.remotePath().externalHostname()); - Assertions.assertEquals("wtppjflcxogaoko", model.remotePath().serverName()); - Assertions.assertEquals("z", model.remotePath().volumeName()); - Assertions.assertEquals("sikvmkqzeqqkdlt", model.remoteVolumeRegion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationObject model = new ReplicationObject().withEndpointType(EndpointType.SRC) - .withReplicationSchedule(ReplicationSchedule.DAILY) - .withRemoteVolumeResourceId("esl") - .withRemotePath( - new RemotePath().withExternalHostname("k").withServerName("wtppjflcxogaoko").withVolumeName("z")) - .withRemoteVolumeRegion("sikvmkqzeqqkdlt"); - model = BinaryData.fromObject(model).toObject(ReplicationObject.class); - Assertions.assertEquals(EndpointType.SRC, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.DAILY, model.replicationSchedule()); - Assertions.assertEquals("esl", model.remoteVolumeResourceId()); - Assertions.assertEquals("k", model.remotePath().externalHostname()); - Assertions.assertEquals("wtppjflcxogaoko", model.remotePath().serverName()); - Assertions.assertEquals("z", model.remotePath().volumeName()); - Assertions.assertEquals("sikvmkqzeqqkdlt", model.remoteVolumeRegion()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationStatusInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationStatusInnerTests.java deleted file mode 100644 index 78bc12656486..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationStatusInnerTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner; -import com.azure.resourcemanager.netapp.models.MirrorState; -import com.azure.resourcemanager.netapp.models.RelationshipStatus; -import org.junit.jupiter.api.Assertions; - -public final class ReplicationStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationStatusInner model = BinaryData.fromString( - "{\"healthy\":false,\"relationshipStatus\":\"Unknown\",\"mirrorState\":\"Broken\",\"totalProgress\":\"yhqmibzyhwi\",\"errorMessage\":\"mypyynpcdpu\"}") - .toObject(ReplicationStatusInner.class); - Assertions.assertEquals(false, model.healthy()); - Assertions.assertEquals(RelationshipStatus.UNKNOWN, model.relationshipStatus()); - Assertions.assertEquals(MirrorState.BROKEN, model.mirrorState()); - Assertions.assertEquals("yhqmibzyhwi", model.totalProgress()); - Assertions.assertEquals("mypyynpcdpu", model.errorMessage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationStatusInner model = new ReplicationStatusInner().withHealthy(false) - .withRelationshipStatus(RelationshipStatus.UNKNOWN) - .withMirrorState(MirrorState.BROKEN) - .withTotalProgress("yhqmibzyhwi") - .withErrorMessage("mypyynpcdpu"); - model = BinaryData.fromObject(model).toObject(ReplicationStatusInner.class); - Assertions.assertEquals(false, model.healthy()); - Assertions.assertEquals(RelationshipStatus.UNKNOWN, model.relationshipStatus()); - Assertions.assertEquals(MirrorState.BROKEN, model.mirrorState()); - Assertions.assertEquals("yhqmibzyhwi", model.totalProgress()); - Assertions.assertEquals("mypyynpcdpu", model.errorMessage()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java deleted file mode 100644 index fb22e1b2d793..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes; -import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class ResourceNameAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceNameAvailabilityRequest model = BinaryData.fromString( - "{\"name\":\"d\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots\",\"resourceGroup\":\"atkpnp\"}") - .toObject(ResourceNameAvailabilityRequest.class); - Assertions.assertEquals("d", model.name()); - Assertions.assertEquals( - CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, model.type()); - Assertions.assertEquals("atkpnp", model.resourceGroup()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceNameAvailabilityRequest model = new ResourceNameAvailabilityRequest().withName("d") - .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS) - .withResourceGroup("atkpnp"); - model = BinaryData.fromObject(model).toObject(ResourceNameAvailabilityRequest.class); - Assertions.assertEquals("d", model.name()); - Assertions.assertEquals( - CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, model.type()); - Assertions.assertEquals("atkpnp", model.resourceGroup()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RestoreStatusInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RestoreStatusInnerTests.java deleted file mode 100644 index 73f42620d10e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RestoreStatusInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner; - -public final class RestoreStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestoreStatusInner model = BinaryData.fromString( - "{\"healthy\":false,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"mblrrilbywd\",\"errorMessage\":\"miccwrwfscjfnyn\",\"totalTransferBytes\":8587420366319258397}") - .toObject(RestoreStatusInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestoreStatusInner model = new RestoreStatusInner(); - model = BinaryData.fromObject(model).toObject(RestoreStatusInner.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ServiceSpecificationTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ServiceSpecificationTests.java deleted file mode 100644 index a04135dc8351..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ServiceSpecificationTests.java +++ /dev/null @@ -1,116 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.Dimension; -import com.azure.resourcemanager.netapp.models.LogSpecification; -import com.azure.resourcemanager.netapp.models.MetricAggregationType; -import com.azure.resourcemanager.netapp.models.MetricSpecification; -import com.azure.resourcemanager.netapp.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ServiceSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceSpecification model = BinaryData.fromString( - "{\"metricSpecifications\":[{\"name\":\"cbkbfkg\",\"displayName\":\"dkexxppofm\",\"displayDescription\":\"x\",\"unit\":\"jpgd\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"pmouexhdz\",\"i\",\"qeojnxqbzvddntw\",\"deicbtwnpzao\"],\"internalMetricName\":\"uhrhcffcyddgl\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"jqkwpyeicx\",\"sourceMdmNamespace\":\"ciwqvhk\",\"dimensions\":[{\"name\":\"igdtopbob\",\"displayName\":\"ghmewuam\"},{\"name\":\"hrzayvvtpgvdf\",\"displayName\":\"otkftutqxlngx\"},{\"name\":\"fgugnxkrxdqmid\",\"displayName\":\"hzrvqd\"}],\"aggregationType\":\"bhj\",\"fillGapWithZero\":false,\"category\":\"ehoqfbowskan\",\"resourceIdDimensionNameOverride\":\"tzlcuiywgqywgn\",\"isInternal\":true},{\"name\":\"nhzgpphrcgyn\",\"displayName\":\"cpecfvmmcoofs\",\"displayDescription\":\"zevgb\",\"unit\":\"jqabcypmivkwlzuv\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"bacfionlebxetq\",\"tzxdpnqbqqwx\"],\"internalMetricName\":\"feallnwsu\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"jampmngnzscxaqw\",\"sourceMdmNamespace\":\"chcbonqvpkvlrxnj\",\"dimensions\":[{\"name\":\"ipheoflokeyyien\",\"displayName\":\"dlwtgrhpdj\"},{\"name\":\"umasxazjpq\",\"displayName\":\"gual\"}],\"aggregationType\":\"xxhejjzzvd\",\"fillGapWithZero\":true,\"category\":\"dslfhotwmcy\",\"resourceIdDimensionNameOverride\":\"wlbjnpgacftade\",\"isInternal\":true}],\"logSpecifications\":[{\"name\":\"fsoppusuesnzw\",\"displayName\":\"jbavorxzdm\"},{\"name\":\"ctbqvudwx\",\"displayName\":\"dnvowg\"},{\"name\":\"jugwdkcglhsl\",\"displayName\":\"jdyggdtji\"},{\"name\":\"b\",\"displayName\":\"ofqweykhmenevfye\"}]}") - .toObject(ServiceSpecification.class); - Assertions.assertEquals("cbkbfkg", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("dkexxppofm", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("x", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("jpgd", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("pmouexhdz", model.metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("uhrhcffcyddgl", model.metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("jqkwpyeicx", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("ciwqvhk", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("igdtopbob", model.metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("ghmewuam", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("bhj", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("ehoqfbowskan", model.metricSpecifications().get(0).category()); - Assertions.assertEquals("tzlcuiywgqywgn", - model.metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("fsoppusuesnzw", model.logSpecifications().get(0).name()); - Assertions.assertEquals("jbavorxzdm", model.logSpecifications().get(0).displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceSpecification model = new ServiceSpecification() - .withMetricSpecifications(Arrays.asList( - new MetricSpecification().withName("cbkbfkg") - .withDisplayName("dkexxppofm") - .withDisplayDescription("x") - .withUnit("jpgd") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE, - MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("pmouexhdz", "i", "qeojnxqbzvddntw", "deicbtwnpzao")) - .withInternalMetricName("uhrhcffcyddgl") - .withEnableRegionalMdmAccount(false) - .withSourceMdmAccount("jqkwpyeicx") - .withSourceMdmNamespace("ciwqvhk") - .withDimensions( - Arrays.asList(new Dimension().withName("igdtopbob").withDisplayName("ghmewuam"), - new Dimension().withName("hrzayvvtpgvdf").withDisplayName("otkftutqxlngx"), - new Dimension().withName("fgugnxkrxdqmid").withDisplayName("hzrvqd"))) - .withAggregationType("bhj") - .withFillGapWithZero(false) - .withCategory("ehoqfbowskan") - .withResourceIdDimensionNameOverride("tzlcuiywgqywgn") - .withIsInternal(true), - new MetricSpecification().withName("nhzgpphrcgyn") - .withDisplayName("cpecfvmmcoofs") - .withDisplayDescription("zevgb") - .withUnit("jqabcypmivkwlzuv") - .withSupportedAggregationTypes( - Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.AVERAGE)) - .withSupportedTimeGrainTypes(Arrays.asList("bacfionlebxetq", "tzxdpnqbqqwx")) - .withInternalMetricName("feallnwsu") - .withEnableRegionalMdmAccount(true) - .withSourceMdmAccount("jampmngnzscxaqw") - .withSourceMdmNamespace("chcbonqvpkvlrxnj") - .withDimensions( - Arrays.asList(new Dimension().withName("ipheoflokeyyien").withDisplayName("dlwtgrhpdj"), - new Dimension().withName("umasxazjpq").withDisplayName("gual"))) - .withAggregationType("xxhejjzzvd") - .withFillGapWithZero(true) - .withCategory("dslfhotwmcy") - .withResourceIdDimensionNameOverride("wlbjnpgacftade") - .withIsInternal(true))) - .withLogSpecifications( - Arrays.asList(new LogSpecification().withName("fsoppusuesnzw").withDisplayName("jbavorxzdm"), - new LogSpecification().withName("ctbqvudwx").withDisplayName("dnvowg"), - new LogSpecification().withName("jugwdkcglhsl").withDisplayName("jdyggdtji"), - new LogSpecification().withName("b").withDisplayName("ofqweykhmenevfye"))); - model = BinaryData.fromObject(model).toObject(ServiceSpecification.class); - Assertions.assertEquals("cbkbfkg", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("dkexxppofm", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("x", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("jpgd", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("pmouexhdz", model.metricSpecifications().get(0).supportedTimeGrainTypes().get(0)); - Assertions.assertEquals("uhrhcffcyddgl", model.metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("jqkwpyeicx", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("ciwqvhk", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("igdtopbob", model.metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("ghmewuam", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("bhj", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("ehoqfbowskan", model.metricSpecifications().get(0).category()); - Assertions.assertEquals("tzlcuiywgqywgn", - model.metricSpecifications().get(0).resourceIdDimensionNameOverride()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("fsoppusuesnzw", model.logSpecifications().get(0).name()); - Assertions.assertEquals("jbavorxzdm", model.logSpecifications().get(0).displayName()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java deleted file mode 100644 index 3041ee703ded..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotInner model = BinaryData.fromString( - "{\"location\":\"moadsuvarmy\",\"properties\":{\"snapshotId\":\"jsjqbjhhyx\",\"created\":\"2021-08-08T09:59:53Z\",\"provisioningState\":\"yc\"},\"id\":\"uhpkxkgymar\",\"name\":\"qnajxqugj\",\"type\":\"ky\"}") - .toObject(SnapshotInner.class); - Assertions.assertEquals("moadsuvarmy", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotInner model = new SnapshotInner().withLocation("moadsuvarmy"); - model = BinaryData.fromObject(model).toObject(SnapshotInner.class); - Assertions.assertEquals("moadsuvarmy", model.location()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java deleted file mode 100644 index cb09b666586b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java +++ /dev/null @@ -1,97 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -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.SnapshotPolicy; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotPoliciesCreateWithResponseMockTests { - @Test - public void testCreateWithResponse() throws Exception { - String responseStr - = "{\"etag\":\"kdk\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":2145222324,\"minute\":211340974,\"usedBytes\":2755469222712772213},\"dailySchedule\":{\"snapshotsToKeep\":1667262093,\"hour\":1385405898,\"minute\":1193273500,\"usedBytes\":1035962610522456238},\"weeklySchedule\":{\"snapshotsToKeep\":644079964,\"day\":\"eyirdhlisngw\",\"hour\":1258635298,\"minute\":1354932365,\"usedBytes\":7225725672768775525},\"monthlySchedule\":{\"snapshotsToKeep\":21737184,\"daysOfMonth\":\"pqxpx\",\"hour\":1760888733,\"minute\":2135849980,\"usedBytes\":3198963628835972526},\"enabled\":false,\"provisioningState\":\"iixtmkzj\"},\"location\":\"viirhgfgrws\",\"tags\":{\"zvzbglbyv\":\"ra\",\"rgxffmshkw\":\"ctctbrxkjz\",\"qaclnapxbiy\":\"bkgozxwopdbydpi\",\"nfsm\":\"nugj\"},\"id\":\"cttuxuu\",\"name\":\"i\",\"type\":\"flqo\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - SnapshotPolicy response = manager.snapshotPolicies() - .define("laprlt") - .withRegion("lmjjyuo") - .withExistingNetAppAccount("ktcqio", "mgbzahgxqdlyrtl") - .withTags(mapOf("lbfjkwr", "obaxkjeytu")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1452545825) - .withMinute(1574788888) - .withUsedBytes(4404103409694460959L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1340564567) - .withHour(1515346381) - .withMinute(226736084) - .withUsedBytes(9185198515701434959L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(860612333) - .withDay("l") - .withHour(101279026) - .withMinute(1797453594) - .withUsedBytes(448677184186092036L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(721207223) - .withDaysOfMonth("av") - .withHour(1704124687) - .withMinute(1319470940) - .withUsedBytes(1465450309959087886L)) - .withEnabled(false) - .create(); - - Assertions.assertEquals("viirhgfgrws", response.location()); - Assertions.assertEquals("ra", response.tags().get("zvzbglbyv")); - Assertions.assertEquals(2145222324, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(211340974, response.hourlySchedule().minute()); - Assertions.assertEquals(2755469222712772213L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(1667262093, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1385405898, response.dailySchedule().hour()); - Assertions.assertEquals(1193273500, response.dailySchedule().minute()); - Assertions.assertEquals(1035962610522456238L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(644079964, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("eyirdhlisngw", response.weeklySchedule().day()); - Assertions.assertEquals(1258635298, response.weeklySchedule().hour()); - Assertions.assertEquals(1354932365, response.weeklySchedule().minute()); - Assertions.assertEquals(7225725672768775525L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(21737184, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("pqxpx", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1760888733, response.monthlySchedule().hour()); - Assertions.assertEquals(2135849980, response.monthlySchedule().minute()); - Assertions.assertEquals(3198963628835972526L, response.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, response.enabled()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java deleted file mode 100644 index df77c2a22254..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotPoliciesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.snapshotPolicies().delete("tsxoatftgz", "npbs", "vefloccsrmozihmi", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java deleted file mode 100644 index 729f533e1d11..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SnapshotPolicy; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"etag\":\"yxgvelfcld\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1806892496,\"minute\":667519337,\"usedBytes\":3451295234524077317},\"dailySchedule\":{\"snapshotsToKeep\":1949096000,\"hour\":228727125,\"minute\":1462697228,\"usedBytes\":7919003630386505885},\"weeklySchedule\":{\"snapshotsToKeep\":885473318,\"day\":\"wjizcilnghgsh\",\"hour\":884114239,\"minute\":1075398674,\"usedBytes\":1841698857513805001},\"monthlySchedule\":{\"snapshotsToKeep\":732294522,\"daysOfMonth\":\"lxqzvn\",\"hour\":1381551038,\"minute\":1534178183,\"usedBytes\":8510007533425740916},\"enabled\":false,\"provisioningState\":\"amikzebrqbsm\"},\"location\":\"ziqgfuh\",\"tags\":{\"czznvfbycjsxj\":\"ruswhv\",\"vumwmxqh\":\"wix\"},\"id\":\"dvnoamldsehaohdj\",\"name\":\"hflzokxco\",\"type\":\"pelnjetag\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - SnapshotPolicy response = manager.snapshotPolicies() - .getWithResponse("yinljqe", "qwhix", "onsts", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ziqgfuh", response.location()); - Assertions.assertEquals("ruswhv", response.tags().get("czznvfbycjsxj")); - Assertions.assertEquals(1806892496, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(667519337, response.hourlySchedule().minute()); - Assertions.assertEquals(3451295234524077317L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(1949096000, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(228727125, response.dailySchedule().hour()); - Assertions.assertEquals(1462697228, response.dailySchedule().minute()); - Assertions.assertEquals(7919003630386505885L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(885473318, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("wjizcilnghgsh", response.weeklySchedule().day()); - Assertions.assertEquals(884114239, response.weeklySchedule().hour()); - Assertions.assertEquals(1075398674, response.weeklySchedule().minute()); - Assertions.assertEquals(1841698857513805001L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(732294522, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("lxqzvn", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1381551038, response.monthlySchedule().hour()); - Assertions.assertEquals(1534178183, response.monthlySchedule().minute()); - Assertions.assertEquals(8510007533425740916L, response.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, response.enabled()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java deleted file mode 100644 index 2bdc2c9c908a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SnapshotPolicy; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotPoliciesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"etag\":\"n\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1310458507,\"minute\":416565759,\"usedBytes\":363191384797208698},\"dailySchedule\":{\"snapshotsToKeep\":362710224,\"hour\":2027194811,\"minute\":1192657678,\"usedBytes\":8283915751167918851},\"weeklySchedule\":{\"snapshotsToKeep\":691935711,\"day\":\"zelfwyfwl\",\"hour\":953163194,\"minute\":139746588,\"usedBytes\":979869830822712459},\"monthlySchedule\":{\"snapshotsToKeep\":1420965357,\"daysOfMonth\":\"lafzvaylptr\",\"hour\":294199057,\"minute\":1346932281,\"usedBytes\":3411367963754147437},\"enabled\":false,\"provisioningState\":\"chcxwaxfewzj\"},\"location\":\"exfdeqvhpsylk\",\"tags\":{\"jrgywwpgjxsn\":\"kbffmbmx\",\"jgicgaao\":\"tf\"},\"id\":\"pttaqutd\",\"name\":\"wemxswvruunzz\",\"type\":\"gehkfkimrtixokff\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.snapshotPolicies().list("nktwfansnvpdibmi", "ostbzbkiwb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("exfdeqvhpsylk", response.iterator().next().location()); - Assertions.assertEquals("kbffmbmx", response.iterator().next().tags().get("jrgywwpgjxsn")); - Assertions.assertEquals(1310458507, response.iterator().next().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(416565759, response.iterator().next().hourlySchedule().minute()); - Assertions.assertEquals(363191384797208698L, response.iterator().next().hourlySchedule().usedBytes()); - Assertions.assertEquals(362710224, response.iterator().next().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(2027194811, response.iterator().next().dailySchedule().hour()); - Assertions.assertEquals(1192657678, response.iterator().next().dailySchedule().minute()); - Assertions.assertEquals(8283915751167918851L, response.iterator().next().dailySchedule().usedBytes()); - Assertions.assertEquals(691935711, response.iterator().next().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("zelfwyfwl", response.iterator().next().weeklySchedule().day()); - Assertions.assertEquals(953163194, response.iterator().next().weeklySchedule().hour()); - Assertions.assertEquals(139746588, response.iterator().next().weeklySchedule().minute()); - Assertions.assertEquals(979869830822712459L, response.iterator().next().weeklySchedule().usedBytes()); - Assertions.assertEquals(1420965357, response.iterator().next().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("lafzvaylptr", response.iterator().next().monthlySchedule().daysOfMonth()); - Assertions.assertEquals(294199057, response.iterator().next().monthlySchedule().hour()); - Assertions.assertEquals(1346932281, response.iterator().next().monthlySchedule().minute()); - Assertions.assertEquals(3411367963754147437L, response.iterator().next().monthlySchedule().usedBytes()); - Assertions.assertEquals(false, response.iterator().next().enabled()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java deleted file mode 100644 index 1a5b7aea5847..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java +++ /dev/null @@ -1,124 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner; -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.SnapshotPoliciesList; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotPoliciesListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotPoliciesList model = BinaryData.fromString( - "{\"value\":[{\"etag\":\"yvayffimrzr\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":641301519,\"minute\":1575788840,\"usedBytes\":2600368177720718932},\"dailySchedule\":{\"snapshotsToKeep\":2124595132,\"hour\":779817958,\"minute\":2105512839,\"usedBytes\":8870331151727110664},\"weeklySchedule\":{\"snapshotsToKeep\":473497877,\"day\":\"yyceuzsoi\",\"hour\":414197490,\"minute\":862946119,\"usedBytes\":2021331363267121666},\"monthlySchedule\":{\"snapshotsToKeep\":1839855586,\"daysOfMonth\":\"zvaytdwkqbr\",\"hour\":1725477484,\"minute\":749295202,\"usedBytes\":134576264669262403},\"enabled\":true,\"provisioningState\":\"livpdt\"},\"location\":\"r\",\"tags\":{\"uyfxrxxleptramxj\":\"qoaxoruzfgs\"},\"id\":\"zwl\",\"name\":\"nwxuqlcvydyp\",\"type\":\"tdooaoj\"},{\"etag\":\"iodkooebwnujhem\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":191965310,\"minute\":640428654,\"usedBytes\":5638108058648089710},\"dailySchedule\":{\"snapshotsToKeep\":1291411043,\"hour\":1997229408,\"minute\":291950475,\"usedBytes\":6410034847924566454},\"weeklySchedule\":{\"snapshotsToKeep\":896449803,\"day\":\"cjvefkdlfo\",\"hour\":1252976241,\"minute\":1706699033,\"usedBytes\":5309095811404897814},\"monthlySchedule\":{\"snapshotsToKeep\":1709159088,\"daysOfMonth\":\"pulpqblylsyxk\",\"hour\":648285682,\"minute\":1830521196,\"usedBytes\":1136404486876218562},\"enabled\":true,\"provisioningState\":\"gxsds\"},\"location\":\"e\",\"tags\":{\"icvi\":\"bzkfzbeyvpn\",\"jjxd\":\"v\"},\"id\":\"rbuukzclewyhmlwp\",\"name\":\"ztzp\",\"type\":\"fn\"}]}") - .toObject(SnapshotPoliciesList.class); - Assertions.assertEquals("r", model.value().get(0).location()); - Assertions.assertEquals("qoaxoruzfgs", model.value().get(0).tags().get("uyfxrxxleptramxj")); - Assertions.assertEquals(641301519, model.value().get(0).hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1575788840, model.value().get(0).hourlySchedule().minute()); - Assertions.assertEquals(2600368177720718932L, model.value().get(0).hourlySchedule().usedBytes()); - Assertions.assertEquals(2124595132, model.value().get(0).dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(779817958, model.value().get(0).dailySchedule().hour()); - Assertions.assertEquals(2105512839, model.value().get(0).dailySchedule().minute()); - Assertions.assertEquals(8870331151727110664L, model.value().get(0).dailySchedule().usedBytes()); - Assertions.assertEquals(473497877, model.value().get(0).weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("yyceuzsoi", model.value().get(0).weeklySchedule().day()); - Assertions.assertEquals(414197490, model.value().get(0).weeklySchedule().hour()); - Assertions.assertEquals(862946119, model.value().get(0).weeklySchedule().minute()); - Assertions.assertEquals(2021331363267121666L, model.value().get(0).weeklySchedule().usedBytes()); - Assertions.assertEquals(1839855586, model.value().get(0).monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("zvaytdwkqbr", model.value().get(0).monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1725477484, model.value().get(0).monthlySchedule().hour()); - Assertions.assertEquals(749295202, model.value().get(0).monthlySchedule().minute()); - Assertions.assertEquals(134576264669262403L, model.value().get(0).monthlySchedule().usedBytes()); - Assertions.assertEquals(true, model.value().get(0).enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotPoliciesList model = new SnapshotPoliciesList().withValue(Arrays.asList( - new SnapshotPolicyInner().withLocation("r") - .withTags(mapOf("uyfxrxxleptramxj", "qoaxoruzfgs")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(641301519) - .withMinute(1575788840) - .withUsedBytes(2600368177720718932L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(2124595132) - .withHour(779817958) - .withMinute(2105512839) - .withUsedBytes(8870331151727110664L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(473497877) - .withDay("yyceuzsoi") - .withHour(414197490) - .withMinute(862946119) - .withUsedBytes(2021331363267121666L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1839855586) - .withDaysOfMonth("zvaytdwkqbr") - .withHour(1725477484) - .withMinute(749295202) - .withUsedBytes(134576264669262403L)) - .withEnabled(true), - new SnapshotPolicyInner().withLocation("e") - .withTags(mapOf("icvi", "bzkfzbeyvpn", "jjxd", "v")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(191965310) - .withMinute(640428654) - .withUsedBytes(5638108058648089710L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1291411043) - .withHour(1997229408) - .withMinute(291950475) - .withUsedBytes(6410034847924566454L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(896449803) - .withDay("cjvefkdlfo") - .withHour(1252976241) - .withMinute(1706699033) - .withUsedBytes(5309095811404897814L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1709159088) - .withDaysOfMonth("pulpqblylsyxk") - .withHour(648285682) - .withMinute(1830521196) - .withUsedBytes(1136404486876218562L)) - .withEnabled(true))); - model = BinaryData.fromObject(model).toObject(SnapshotPoliciesList.class); - Assertions.assertEquals("r", model.value().get(0).location()); - Assertions.assertEquals("qoaxoruzfgs", model.value().get(0).tags().get("uyfxrxxleptramxj")); - Assertions.assertEquals(641301519, model.value().get(0).hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1575788840, model.value().get(0).hourlySchedule().minute()); - Assertions.assertEquals(2600368177720718932L, model.value().get(0).hourlySchedule().usedBytes()); - Assertions.assertEquals(2124595132, model.value().get(0).dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(779817958, model.value().get(0).dailySchedule().hour()); - Assertions.assertEquals(2105512839, model.value().get(0).dailySchedule().minute()); - Assertions.assertEquals(8870331151727110664L, model.value().get(0).dailySchedule().usedBytes()); - Assertions.assertEquals(473497877, model.value().get(0).weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("yyceuzsoi", model.value().get(0).weeklySchedule().day()); - Assertions.assertEquals(414197490, model.value().get(0).weeklySchedule().hour()); - Assertions.assertEquals(862946119, model.value().get(0).weeklySchedule().minute()); - Assertions.assertEquals(2021331363267121666L, model.value().get(0).weeklySchedule().usedBytes()); - Assertions.assertEquals(1839855586, model.value().get(0).monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("zvaytdwkqbr", model.value().get(0).monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1725477484, model.value().get(0).monthlySchedule().hour()); - Assertions.assertEquals(749295202, model.value().get(0).monthlySchedule().minute()); - Assertions.assertEquals(134576264669262403L, model.value().get(0).monthlySchedule().usedBytes()); - Assertions.assertEquals(true, model.value().get(0).enabled()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java deleted file mode 100644 index c35a17f75c7d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java +++ /dev/null @@ -1,102 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner; -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; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotPolicyInner model = BinaryData.fromString( - "{\"etag\":\"kwyfzqwhxxbuyqax\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1280631673,\"minute\":608343994,\"usedBytes\":5894027165628852811},\"dailySchedule\":{\"snapshotsToKeep\":1872827948,\"hour\":411799174,\"minute\":110839155,\"usedBytes\":1269488169933236475},\"weeklySchedule\":{\"snapshotsToKeep\":1325987050,\"day\":\"cwsobqwcs\",\"hour\":1806206586,\"minute\":358085488,\"usedBytes\":1296933680465064139},\"monthlySchedule\":{\"snapshotsToKeep\":1589501712,\"daysOfMonth\":\"pfuvglsbjjca\",\"hour\":1995846414,\"minute\":1075232734,\"usedBytes\":652867049720214090},\"enabled\":false,\"provisioningState\":\"ncormrlxqtvcof\"},\"location\":\"f\",\"tags\":{\"bgdknnqv\":\"gj\",\"sgsahmkycgr\":\"aznqntoru\",\"s\":\"uwjuetaeburuvdmo\",\"tpuqujmq\":\"zlxwabmqoefkifr\"},\"id\":\"gkfbtndoaong\",\"name\":\"jcntuj\",\"type\":\"tcje\"}") - .toObject(SnapshotPolicyInner.class); - Assertions.assertEquals("f", model.location()); - Assertions.assertEquals("gj", model.tags().get("bgdknnqv")); - Assertions.assertEquals(1280631673, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(608343994, model.hourlySchedule().minute()); - Assertions.assertEquals(5894027165628852811L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1872827948, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(411799174, model.dailySchedule().hour()); - Assertions.assertEquals(110839155, model.dailySchedule().minute()); - Assertions.assertEquals(1269488169933236475L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(1325987050, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("cwsobqwcs", model.weeklySchedule().day()); - Assertions.assertEquals(1806206586, model.weeklySchedule().hour()); - Assertions.assertEquals(358085488, model.weeklySchedule().minute()); - Assertions.assertEquals(1296933680465064139L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(1589501712, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("pfuvglsbjjca", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1995846414, model.monthlySchedule().hour()); - Assertions.assertEquals(1075232734, model.monthlySchedule().minute()); - Assertions.assertEquals(652867049720214090L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotPolicyInner model = new SnapshotPolicyInner().withLocation("f") - .withTags(mapOf("bgdknnqv", "gj", "sgsahmkycgr", "aznqntoru", "s", "uwjuetaeburuvdmo", "tpuqujmq", - "zlxwabmqoefkifr")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1280631673) - .withMinute(608343994) - .withUsedBytes(5894027165628852811L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1872827948) - .withHour(411799174) - .withMinute(110839155) - .withUsedBytes(1269488169933236475L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(1325987050) - .withDay("cwsobqwcs") - .withHour(1806206586) - .withMinute(358085488) - .withUsedBytes(1296933680465064139L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(1589501712) - .withDaysOfMonth("pfuvglsbjjca") - .withHour(1995846414) - .withMinute(1075232734) - .withUsedBytes(652867049720214090L)) - .withEnabled(false); - model = BinaryData.fromObject(model).toObject(SnapshotPolicyInner.class); - Assertions.assertEquals("f", model.location()); - Assertions.assertEquals("gj", model.tags().get("bgdknnqv")); - Assertions.assertEquals(1280631673, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(608343994, model.hourlySchedule().minute()); - Assertions.assertEquals(5894027165628852811L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1872827948, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(411799174, model.dailySchedule().hour()); - Assertions.assertEquals(110839155, model.dailySchedule().minute()); - Assertions.assertEquals(1269488169933236475L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(1325987050, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("cwsobqwcs", model.weeklySchedule().day()); - Assertions.assertEquals(1806206586, model.weeklySchedule().hour()); - Assertions.assertEquals(358085488, model.weeklySchedule().minute()); - Assertions.assertEquals(1296933680465064139L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(1589501712, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("pfuvglsbjjca", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1995846414, model.monthlySchedule().hour()); - Assertions.assertEquals(1075232734, model.monthlySchedule().minute()); - Assertions.assertEquals(652867049720214090L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, model.enabled()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java deleted file mode 100644 index 962509556dc8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java +++ /dev/null @@ -1,101 +0,0 @@ -// 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.BinaryData; -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.SnapshotPolicyPatch; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotPolicyPatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotPolicyPatch model = BinaryData.fromString( - "{\"location\":\"uximerqfobw\",\"id\":\"nkbykutwpfhp\",\"name\":\"m\",\"type\":\"skdsnfdsdoakg\",\"tags\":{\"pusdstt\":\"mkkzevdlhe\"},\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":221713689,\"minute\":1374887959,\"usedBytes\":8961912277389186223},\"dailySchedule\":{\"snapshotsToKeep\":764265895,\"hour\":963593520,\"minute\":1707404477,\"usedBytes\":6280653773540023560},\"weeklySchedule\":{\"snapshotsToKeep\":127978460,\"day\":\"zr\",\"hour\":1964426059,\"minute\":632499232,\"usedBytes\":3176004789206636237},\"monthlySchedule\":{\"snapshotsToKeep\":130436359,\"daysOfMonth\":\"zkopb\",\"hour\":1224978784,\"minute\":2010767026,\"usedBytes\":3596766973567409685},\"enabled\":true,\"provisioningState\":\"hziuiefozbhdms\"}}") - .toObject(SnapshotPolicyPatch.class); - Assertions.assertEquals("uximerqfobw", model.location()); - Assertions.assertEquals("mkkzevdlhe", model.tags().get("pusdstt")); - Assertions.assertEquals(221713689, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1374887959, model.hourlySchedule().minute()); - Assertions.assertEquals(8961912277389186223L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(764265895, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(963593520, model.dailySchedule().hour()); - Assertions.assertEquals(1707404477, model.dailySchedule().minute()); - Assertions.assertEquals(6280653773540023560L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(127978460, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("zr", model.weeklySchedule().day()); - Assertions.assertEquals(1964426059, model.weeklySchedule().hour()); - Assertions.assertEquals(632499232, model.weeklySchedule().minute()); - Assertions.assertEquals(3176004789206636237L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(130436359, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("zkopb", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1224978784, model.monthlySchedule().hour()); - Assertions.assertEquals(2010767026, model.monthlySchedule().minute()); - Assertions.assertEquals(3596766973567409685L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(true, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotPolicyPatch model = new SnapshotPolicyPatch().withLocation("uximerqfobw") - .withTags(mapOf("pusdstt", "mkkzevdlhe")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(221713689) - .withMinute(1374887959) - .withUsedBytes(8961912277389186223L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(764265895) - .withHour(963593520) - .withMinute(1707404477) - .withUsedBytes(6280653773540023560L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(127978460) - .withDay("zr") - .withHour(1964426059) - .withMinute(632499232) - .withUsedBytes(3176004789206636237L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(130436359) - .withDaysOfMonth("zkopb") - .withHour(1224978784) - .withMinute(2010767026) - .withUsedBytes(3596766973567409685L)) - .withEnabled(true); - model = BinaryData.fromObject(model).toObject(SnapshotPolicyPatch.class); - Assertions.assertEquals("uximerqfobw", model.location()); - Assertions.assertEquals("mkkzevdlhe", model.tags().get("pusdstt")); - Assertions.assertEquals(221713689, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1374887959, model.hourlySchedule().minute()); - Assertions.assertEquals(8961912277389186223L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(764265895, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(963593520, model.dailySchedule().hour()); - Assertions.assertEquals(1707404477, model.dailySchedule().minute()); - Assertions.assertEquals(6280653773540023560L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(127978460, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("zr", model.weeklySchedule().day()); - Assertions.assertEquals(1964426059, model.weeklySchedule().hour()); - Assertions.assertEquals(632499232, model.weeklySchedule().minute()); - Assertions.assertEquals(3176004789206636237L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(130436359, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("zkopb", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1224978784, model.monthlySchedule().hour()); - Assertions.assertEquals(2010767026, model.monthlySchedule().minute()); - Assertions.assertEquals(3596766973567409685L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(true, model.enabled()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java deleted file mode 100644 index 70d9df17b65b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties; -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; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotPolicyProperties model = BinaryData.fromString( - "{\"hourlySchedule\":{\"snapshotsToKeep\":659482239,\"minute\":456630661,\"usedBytes\":4579200553418378126},\"dailySchedule\":{\"snapshotsToKeep\":229411798,\"hour\":242462331,\"minute\":1248397235,\"usedBytes\":8938255747572389920},\"weeklySchedule\":{\"snapshotsToKeep\":242787208,\"day\":\"ybxarzgszu\",\"hour\":37759464,\"minute\":1319234884,\"usedBytes\":4059865532309630153},\"monthlySchedule\":{\"snapshotsToKeep\":2028743450,\"daysOfMonth\":\"mciodhkhazxkhn\",\"hour\":240189382,\"minute\":1895789611,\"usedBytes\":4122808446567257102},\"enabled\":true,\"provisioningState\":\"okdwb\"}") - .toObject(SnapshotPolicyProperties.class); - Assertions.assertEquals(659482239, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(456630661, model.hourlySchedule().minute()); - Assertions.assertEquals(4579200553418378126L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(229411798, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(242462331, model.dailySchedule().hour()); - Assertions.assertEquals(1248397235, model.dailySchedule().minute()); - Assertions.assertEquals(8938255747572389920L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(242787208, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("ybxarzgszu", model.weeklySchedule().day()); - Assertions.assertEquals(37759464, model.weeklySchedule().hour()); - Assertions.assertEquals(1319234884, model.weeklySchedule().minute()); - Assertions.assertEquals(4059865532309630153L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(2028743450, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("mciodhkhazxkhn", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(240189382, model.monthlySchedule().hour()); - Assertions.assertEquals(1895789611, model.monthlySchedule().minute()); - Assertions.assertEquals(4122808446567257102L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(true, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotPolicyProperties model = new SnapshotPolicyProperties() - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(659482239) - .withMinute(456630661) - .withUsedBytes(4579200553418378126L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(229411798) - .withHour(242462331) - .withMinute(1248397235) - .withUsedBytes(8938255747572389920L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(242787208) - .withDay("ybxarzgszu") - .withHour(37759464) - .withMinute(1319234884) - .withUsedBytes(4059865532309630153L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(2028743450) - .withDaysOfMonth("mciodhkhazxkhn") - .withHour(240189382) - .withMinute(1895789611) - .withUsedBytes(4122808446567257102L)) - .withEnabled(true); - model = BinaryData.fromObject(model).toObject(SnapshotPolicyProperties.class); - Assertions.assertEquals(659482239, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(456630661, model.hourlySchedule().minute()); - Assertions.assertEquals(4579200553418378126L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(229411798, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(242462331, model.dailySchedule().hour()); - Assertions.assertEquals(1248397235, model.dailySchedule().minute()); - Assertions.assertEquals(8938255747572389920L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(242787208, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("ybxarzgszu", model.weeklySchedule().day()); - Assertions.assertEquals(37759464, model.weeklySchedule().hour()); - Assertions.assertEquals(1319234884, model.weeklySchedule().minute()); - Assertions.assertEquals(4059865532309630153L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(2028743450, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("mciodhkhazxkhn", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(240189382, model.monthlySchedule().hour()); - Assertions.assertEquals(1895789611, model.monthlySchedule().minute()); - Assertions.assertEquals(4122808446567257102L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(true, model.enabled()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java deleted file mode 100644 index 3b2d9476af20..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotProperties; - -public final class SnapshotPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotProperties model = BinaryData - .fromString( - "{\"snapshotId\":\"beddgssofw\",\"created\":\"2021-08-12T00:48:32Z\",\"provisioningState\":\"alkrmn\"}") - .toObject(SnapshotProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotProperties model = new SnapshotProperties(); - model = BinaryData.fromObject(model).toObject(SnapshotProperties.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java deleted file mode 100644 index 783aa96346c0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotRestoreFilesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotRestoreFiles model - = BinaryData.fromString("{\"filePaths\":[\"jpxac\"],\"destinationPath\":\"udfnbyxba\"}") - .toObject(SnapshotRestoreFiles.class); - Assertions.assertEquals("jpxac", model.filePaths().get(0)); - Assertions.assertEquals("udfnbyxba", model.destinationPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotRestoreFiles model - = new SnapshotRestoreFiles().withFilePaths(Arrays.asList("jpxac")).withDestinationPath("udfnbyxba"); - model = BinaryData.fromObject(model).toObject(SnapshotRestoreFiles.class); - Assertions.assertEquals("jpxac", model.filePaths().get(0)); - Assertions.assertEquals("udfnbyxba", model.destinationPath()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java deleted file mode 100644 index 5f0f169695e5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.snapshots() - .delete("iiqbi", "htmwwinh", "hfqpofv", "bcblemb", "kbwvqvxkdiv", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java deleted file mode 100644 index c66229bfa0fb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Snapshot; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"location\":\"ickpz\",\"properties\":{\"snapshotId\":\"opmx\",\"created\":\"2021-03-28T13:12:17Z\",\"provisioningState\":\"clt\"},\"id\":\"edexxmlfm\",\"name\":\"qscazuawxtz\",\"type\":\"puamwabzxr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - Snapshot response = manager.snapshots() - .getWithResponse("ojphslhc", "wjutifdwfmv", "gorqjbttzh", "aglkafhon", "juj", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ickpz", response.location()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java deleted file mode 100644 index a69945d85df3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Snapshot; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"location\":\"hv\",\"properties\":{\"snapshotId\":\"kvntjlrigjkskyri\",\"created\":\"2020-12-31T15:34:24Z\",\"provisioningState\":\"idsxwaabzmifry\"},\"id\":\"nmmaxrizkzob\",\"name\":\"opxlhslnelxieixy\",\"type\":\"llxecwc\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.snapshots() - .list("jqg", "cfhmlrqryxyn", "nzrdpsovwxz", "ptgoeiybbabp", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hv", response.iterator().next().location()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java deleted file mode 100644 index fbbe26adcf8e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; -import com.azure.resourcemanager.netapp.models.SnapshotsList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SnapshotsListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotsList model = BinaryData.fromString( - "{\"value\":[{\"location\":\"aw\",\"properties\":{\"snapshotId\":\"ivx\",\"created\":\"2021-12-04T11:19:32Z\",\"provisioningState\":\"lpcirelsf\"},\"id\":\"enwabfatk\",\"name\":\"ddxbjhwuaanoz\",\"type\":\"osphyoul\"},{\"location\":\"jrvxaglrv\",\"properties\":{\"snapshotId\":\"wosytxitcskf\",\"created\":\"2021-07-26T14:22:18Z\",\"provisioningState\":\"umiekkezzi\"},\"id\":\"ly\",\"name\":\"jhdgqggebdunyga\",\"type\":\"qidbqfatpxllrxcy\"}]}") - .toObject(SnapshotsList.class); - Assertions.assertEquals("aw", model.value().get(0).location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotsList model = new SnapshotsList().withValue( - Arrays.asList(new SnapshotInner().withLocation("aw"), new SnapshotInner().withLocation("jrvxaglrv"))); - model = BinaryData.fromObject(model).toObject(SnapshotsList.class); - Assertions.assertEquals("aw", model.value().get(0).location()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java deleted file mode 100644 index 2adbf9f9ebac..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotsRestoreFilesMockTests { - @Test - public void testRestoreFiles() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.snapshots() - .restoreFiles("ihebwtsw", "zuwfmdur", "gegizvcjfel", "sdjubggbqigkxkbs", "zgakgacyrcmj", - new SnapshotRestoreFiles().withFilePaths(Arrays.asList("spofapvuhry", "ni", "frzgbzjed", "st")) - .withDestinationPath("nlvxbcuii"), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateMockTests.java deleted file mode 100644 index feff12715080..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Snapshot; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SnapshotsUpdateMockTests { - @Test - public void testUpdate() throws Exception { - String responseStr - = "{\"location\":\"mv\",\"properties\":{\"snapshotId\":\"tayx\",\"created\":\"2021-06-26T17:58:31Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"vsqltnzoibgsxg\",\"name\":\"xfyqonmpqoxwdo\",\"type\":\"dbxiqx\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - Snapshot response = manager.snapshots() - .update("xcushs", "haivm", "yasflvgsgzwy", "akoi", "knsmjblmljhlnymz", "datatqyryuzcbmqqv", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mv", response.location()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.java deleted file mode 100644 index 1952ff6bba4c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; - -public final class SubscriptionQuotaItemInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubscriptionQuotaItemInner model = BinaryData.fromString( - "{\"properties\":{\"current\":124550903,\"default\":1175944343},\"id\":\"kbldngkpocipa\",\"name\":\"yxoegukgjnp\",\"type\":\"ucgygevqz\"}") - .toObject(SubscriptionQuotaItemInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubscriptionQuotaItemInner model = new SubscriptionQuotaItemInner(); - model = BinaryData.fromObject(model).toObject(SubscriptionQuotaItemInner.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemListTests.java deleted file mode 100644 index 221aa7cfa312..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemListTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; -import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItemList; -import java.util.Arrays; - -public final class SubscriptionQuotaItemListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubscriptionQuotaItemList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"current\":1916962672,\"default\":972559338},\"id\":\"kg\",\"name\":\"sauuimj\",\"type\":\"vxieduugidyj\"},{\"properties\":{\"current\":857489891,\"default\":786534004},\"id\":\"svexcsonpclhoco\",\"name\":\"slkevle\",\"type\":\"gz\"},{\"properties\":{\"current\":635098272,\"default\":1240175495},\"id\":\"faxkffeii\",\"name\":\"hl\",\"type\":\"m\"},{\"properties\":{\"current\":72720177,\"default\":1090911341},\"id\":\"mzsb\",\"name\":\"zoggigrxwburvjxx\",\"type\":\"nspydptkoenkoukn\"}]}") - .toObject(SubscriptionQuotaItemList.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubscriptionQuotaItemList model - = new SubscriptionQuotaItemList().withValue(Arrays.asList(new SubscriptionQuotaItemInner(), - new SubscriptionQuotaItemInner(), new SubscriptionQuotaItemInner(), new SubscriptionQuotaItemInner())); - model = BinaryData.fromObject(model).toObject(SubscriptionQuotaItemList.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemPropertiesTests.java deleted file mode 100644 index 6f48a1e70ccd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemPropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemProperties; - -public final class SubscriptionQuotaItemPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubscriptionQuotaItemProperties model = BinaryData.fromString("{\"current\":278176639,\"default\":599264802}") - .toObject(SubscriptionQuotaItemProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubscriptionQuotaItemProperties model = new SubscriptionQuotaItemProperties(); - model = BinaryData.fromObject(model).toObject(SubscriptionQuotaItemProperties.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java deleted file mode 100644 index 1eee26b03f3f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumeInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumeInfoInner model = BinaryData.fromString( - "{\"properties\":{\"path\":\"vbquwr\",\"size\":6955991643413022423,\"parentPath\":\"gohbuffkmrq\",\"provisioningState\":\"vvhmxtdrj\"},\"id\":\"tac\",\"name\":\"ebjvewzcjzn\",\"type\":\"wcpmguaadraufac\"}") - .toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("vbquwr", model.path()); - Assertions.assertEquals(6955991643413022423L, model.size()); - Assertions.assertEquals("gohbuffkmrq", model.parentPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeInfoInner model - = new SubvolumeInfoInner().withPath("vbquwr").withSize(6955991643413022423L).withParentPath("gohbuffkmrq"); - model = BinaryData.fromObject(model).toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("vbquwr", model.path()); - Assertions.assertEquals(6955991643413022423L, model.size()); - Assertions.assertEquals("gohbuffkmrq", model.parentPath()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java deleted file mode 100644 index 633a8a7038d1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumeModelInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumeModelInner model = BinaryData.fromString( - "{\"id\":\"klvxwmyg\",\"name\":\"pgpqchiszepnnb\",\"type\":\"rxgibbd\",\"properties\":{\"path\":\"onfo\",\"parentPath\":\"uors\",\"size\":8150670572969062689,\"bytesUsed\":5619179077709143106,\"permissions\":\"lhlv\",\"creationTimeStamp\":\"2021-01-24T14:33:20Z\",\"accessedTimeStamp\":\"2021-08-29T14:02:44Z\",\"modifiedTimeStamp\":\"2021-05-23T19:05:13Z\",\"changedTimeStamp\":\"2021-03-16T20:13:21Z\",\"provisioningState\":\"wzsoldweyuqdunv\"}}") - .toObject(SubvolumeModelInner.class); - Assertions.assertEquals("onfo", model.path()); - Assertions.assertEquals("uors", model.parentPath()); - Assertions.assertEquals(8150670572969062689L, model.size()); - Assertions.assertEquals(5619179077709143106L, model.bytesUsed()); - Assertions.assertEquals("lhlv", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-24T14:33:20Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-29T14:02:44Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-23T19:05:13Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-16T20:13:21Z"), model.changedTimestamp()); - Assertions.assertEquals("wzsoldweyuqdunv", model.provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeModelInner model = new SubvolumeModelInner().withPath("onfo") - .withParentPath("uors") - .withSize(8150670572969062689L) - .withBytesUsed(5619179077709143106L) - .withPermissions("lhlv") - .withCreationTimestamp(OffsetDateTime.parse("2021-01-24T14:33:20Z")) - .withAccessedTimestamp(OffsetDateTime.parse("2021-08-29T14:02:44Z")) - .withModifiedTimestamp(OffsetDateTime.parse("2021-05-23T19:05:13Z")) - .withChangedTimestamp(OffsetDateTime.parse("2021-03-16T20:13:21Z")) - .withProvisioningState("wzsoldweyuqdunv"); - model = BinaryData.fromObject(model).toObject(SubvolumeModelInner.class); - Assertions.assertEquals("onfo", model.path()); - Assertions.assertEquals("uors", model.parentPath()); - Assertions.assertEquals(8150670572969062689L, model.size()); - Assertions.assertEquals(5619179077709143106L, model.bytesUsed()); - Assertions.assertEquals("lhlv", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-24T14:33:20Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-29T14:02:44Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-23T19:05:13Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-16T20:13:21Z"), model.changedTimestamp()); - Assertions.assertEquals("wzsoldweyuqdunv", model.provisioningState()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java deleted file mode 100644 index fe7ca664b7db..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelProperties; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumeModelPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumeModelProperties model = BinaryData.fromString( - "{\"path\":\"nrwrbiork\",\"parentPath\":\"lywjhh\",\"size\":6322848214394065275,\"bytesUsed\":3127614334065666845,\"permissions\":\"v\",\"creationTimeStamp\":\"2021-07-20T04:17:10Z\",\"accessedTimeStamp\":\"2021-04-28T21:19:50Z\",\"modifiedTimeStamp\":\"2020-12-27T23:16:18Z\",\"changedTimeStamp\":\"2021-10-29T08:24:04Z\",\"provisioningState\":\"ufiqndieuzaof\"}") - .toObject(SubvolumeModelProperties.class); - Assertions.assertEquals("nrwrbiork", model.path()); - Assertions.assertEquals("lywjhh", model.parentPath()); - Assertions.assertEquals(6322848214394065275L, model.size()); - Assertions.assertEquals(3127614334065666845L, model.bytesUsed()); - Assertions.assertEquals("v", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T04:17:10Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-28T21:19:50Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-27T23:16:18Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-29T08:24:04Z"), model.changedTimestamp()); - Assertions.assertEquals("ufiqndieuzaof", model.provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeModelProperties model = new SubvolumeModelProperties().withPath("nrwrbiork") - .withParentPath("lywjhh") - .withSize(6322848214394065275L) - .withBytesUsed(3127614334065666845L) - .withPermissions("v") - .withCreationTimestamp(OffsetDateTime.parse("2021-07-20T04:17:10Z")) - .withAccessedTimestamp(OffsetDateTime.parse("2021-04-28T21:19:50Z")) - .withModifiedTimestamp(OffsetDateTime.parse("2020-12-27T23:16:18Z")) - .withChangedTimestamp(OffsetDateTime.parse("2021-10-29T08:24:04Z")) - .withProvisioningState("ufiqndieuzaof"); - model = BinaryData.fromObject(model).toObject(SubvolumeModelProperties.class); - Assertions.assertEquals("nrwrbiork", model.path()); - Assertions.assertEquals("lywjhh", model.parentPath()); - Assertions.assertEquals(6322848214394065275L, model.size()); - Assertions.assertEquals(3127614334065666845L, model.bytesUsed()); - Assertions.assertEquals("v", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T04:17:10Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-28T21:19:50Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-27T23:16:18Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-29T08:24:04Z"), model.changedTimestamp()); - Assertions.assertEquals("ufiqndieuzaof", model.provisioningState()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java deleted file mode 100644 index 390be57054e0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumePatchParamsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumePatchParams model - = BinaryData.fromString("{\"size\":5977101318302182370,\"path\":\"hminyflnorwmduv\"}") - .toObject(SubvolumePatchParams.class); - Assertions.assertEquals(5977101318302182370L, model.size()); - Assertions.assertEquals("hminyflnorwmduv", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumePatchParams model - = new SubvolumePatchParams().withSize(5977101318302182370L).withPath("hminyflnorwmduv"); - model = BinaryData.fromObject(model).toObject(SubvolumePatchParams.class); - Assertions.assertEquals(5977101318302182370L, model.size()); - Assertions.assertEquals("hminyflnorwmduv", model.path()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java deleted file mode 100644 index 595b3136c3ef..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.SubvolumePatchRequest; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumePatchRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumePatchRequest model - = BinaryData.fromString("{\"properties\":{\"size\":8719106593186514083,\"path\":\"sutujba\"}}") - .toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(8719106593186514083L, model.size()); - Assertions.assertEquals("sutujba", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumePatchRequest model = new SubvolumePatchRequest().withSize(8719106593186514083L).withPath("sutujba"); - model = BinaryData.fromObject(model).toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(8719106593186514083L, model.size()); - Assertions.assertEquals("sutujba", model.path()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java deleted file mode 100644 index eba2748b52e8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumeProperties model = BinaryData.fromString( - "{\"path\":\"ahzovajjziuxxp\",\"size\":8416190533050507867,\"parentPath\":\"kulfg\",\"provisioningState\":\"qubkw\"}") - .toObject(SubvolumeProperties.class); - Assertions.assertEquals("ahzovajjziuxxp", model.path()); - Assertions.assertEquals(8416190533050507867L, model.size()); - Assertions.assertEquals("kulfg", model.parentPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeProperties model = new SubvolumeProperties().withPath("ahzovajjziuxxp") - .withSize(8416190533050507867L) - .withParentPath("kulfg"); - model = BinaryData.fromObject(model).toObject(SubvolumeProperties.class); - Assertions.assertEquals("ahzovajjziuxxp", model.path()); - Assertions.assertEquals(8416190533050507867L, model.size()); - Assertions.assertEquals("kulfg", model.parentPath()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java deleted file mode 100644 index d7ef8931c334..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeInfo; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SubvolumesCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"path\":\"ohec\",\"size\":4724039728117987325,\"parentPath\":\"ndyqleal\",\"provisioningState\":\"Succeeded\"},\"id\":\"br\",\"name\":\"fjmzsyzfho\",\"type\":\"lhikcyychunsj\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - SubvolumeInfo response = manager.subvolumes() - .define("bsxtkcudfbsfarfs") - .withExistingVolume("orim", "rsrrmoucsofldp", "viyfcaabeolhbhlv", "mxuq") - .withPath("lkjxnqpvwgf") - .withSize(4335540278124764929L) - .withParentPath("ykizmdksaoaf") - .create(); - - Assertions.assertEquals("ohec", response.path()); - Assertions.assertEquals(4724039728117987325L, response.size()); - Assertions.assertEquals("ndyqleal", response.parentPath()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java deleted file mode 100644 index 1eea6cc0d0fc..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SubvolumesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.subvolumes().delete("fg", "qbawpcbbnzqcykn", "p", "ofyuicd", "zb", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java deleted file mode 100644 index b978a358c0d1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeModel; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SubvolumesGetMetadataMockTests { - @Test - public void testGetMetadata() throws Exception { - String responseStr - = "{\"id\":\"qboshbra\",\"name\":\"pyyrmfs\",\"type\":\"pavbo\",\"properties\":{\"path\":\"pdbwnupgahxkum\",\"parentPath\":\"jcaacfdmmcpugm\",\"size\":2799453974287418624,\"bytesUsed\":5289288139576843863,\"permissions\":\"hbzehewho\",\"creationTimeStamp\":\"2021-08-24T10:40:17Z\",\"accessedTimeStamp\":\"2021-07-22T20:31:39Z\",\"modifiedTimeStamp\":\"2021-02-23T10:26:16Z\",\"changedTimeStamp\":\"2021-07-12T10:48:01Z\",\"provisioningState\":\"Succeeded\"}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - SubvolumeModel response = manager.subvolumes() - .getMetadata("ybww", "bdvibidmhmwffpl", "muvapc", "ccrrvweyoxoyyu", "phaimmoi", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pdbwnupgahxkum", response.path()); - Assertions.assertEquals("jcaacfdmmcpugm", response.parentPath()); - Assertions.assertEquals(2799453974287418624L, response.size()); - Assertions.assertEquals(5289288139576843863L, response.bytesUsed()); - Assertions.assertEquals("hbzehewho", response.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-24T10:40:17Z"), response.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-22T20:31:39Z"), response.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-23T10:26:16Z"), response.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-12T10:48:01Z"), response.changedTimestamp()); - Assertions.assertEquals("Succeeded", response.provisioningState()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java deleted file mode 100644 index e0b7baa1d0b2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeInfo; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SubvolumesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"path\":\"rymo\",\"size\":8486820161769932410,\"parentPath\":\"klobdxnazpmk\",\"provisioningState\":\"mv\"},\"id\":\"f\",\"name\":\"zopjhbzxliohr\",\"type\":\"dd\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - SubvolumeInfo response = manager.subvolumes() - .getWithResponse("zna", "xbannovvoxc", "ytprwnwvroev", "tlyo", "rrrouuxvnsa", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("rymo", response.path()); - Assertions.assertEquals(8486820161769932410L, response.size()); - Assertions.assertEquals("klobdxnazpmk", response.parentPath()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java deleted file mode 100644 index ac80dbc1bba7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeInfo; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SubvolumesListByVolumeMockTests { - @Test - public void testListByVolume() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"path\":\"qxypokkhminq\",\"size\":6418388718617598308,\"parentPath\":\"ngnbdxxew\",\"provisioningState\":\"invudbch\"},\"id\":\"dtvqe\",\"name\":\"rqctmxxdtdd\",\"type\":\"flhuytxzv\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.subvolumes() - .listByVolume("kfuarenlv", "htkln", "nafvvkyfedev", "bo", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qxypokkhminq", response.iterator().next().path()); - Assertions.assertEquals(6418388718617598308L, response.iterator().next().size()); - Assertions.assertEquals("ngnbdxxew", response.iterator().next().parentPath()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java deleted file mode 100644 index 87a1ae4cb579..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; -import com.azure.resourcemanager.netapp.models.SubvolumesList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SubvolumesListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SubvolumesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"path\":\"tawc\",\"size\":5744786061005129903,\"parentPath\":\"hubskhudygooo\",\"provisioningState\":\"qfqjbvleorfm\"},\"id\":\"iqtqzfavyvnq\",\"name\":\"ybar\",\"type\":\"euayjkqabqgzsles\"}],\"nextLink\":\"bhernntiew\"}") - .toObject(SubvolumesList.class); - Assertions.assertEquals("tawc", model.value().get(0).path()); - Assertions.assertEquals(5744786061005129903L, model.value().get(0).size()); - Assertions.assertEquals("hubskhudygooo", model.value().get(0).parentPath()); - Assertions.assertEquals("bhernntiew", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumesList model = new SubvolumesList().withValue(Arrays.asList( - new SubvolumeInfoInner().withPath("tawc").withSize(5744786061005129903L).withParentPath("hubskhudygooo"))) - .withNextLink("bhernntiew"); - model = BinaryData.fromObject(model).toObject(SubvolumesList.class); - Assertions.assertEquals("tawc", model.value().get(0).path()); - Assertions.assertEquals(5744786061005129903L, model.value().get(0).size()); - Assertions.assertEquals("hubskhudygooo", model.value().get(0).parentPath()); - Assertions.assertEquals("bhernntiew", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponseInnerTests.java deleted file mode 100644 index f3fc3673e436..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SvmPeerCommandResponseInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class SvmPeerCommandResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SvmPeerCommandResponseInner model = BinaryData.fromString("{\"svmPeeringCommand\":\"fnjhfjxwmszkkfo\"}") - .toObject(SvmPeerCommandResponseInner.class); - Assertions.assertEquals("fnjhfjxwmszkkfo", model.svmPeeringCommand()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SvmPeerCommandResponseInner model = new SvmPeerCommandResponseInner().withSvmPeeringCommand("fnjhfjxwmszkkfo"); - model = BinaryData.fromObject(model).toObject(SvmPeerCommandResponseInner.class); - Assertions.assertEquals("fnjhfjxwmszkkfo", model.svmPeeringCommand()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java deleted file mode 100644 index f97a9aaada39..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.NetworkFeatures; -import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; -import org.junit.jupiter.api.Assertions; - -public final class UpdateNetworkSiblingSetRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateNetworkSiblingSetRequest model = BinaryData.fromString( - "{\"networkSiblingSetId\":\"bt\",\"subnetId\":\"wrqpue\",\"networkSiblingSetStateId\":\"ckzywbiexzfeyue\",\"networkFeatures\":\"Standard_Basic\"}") - .toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("bt", model.networkSiblingSetId()); - Assertions.assertEquals("wrqpue", model.subnetId()); - Assertions.assertEquals("ckzywbiexzfeyue", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateNetworkSiblingSetRequest model = new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("bt") - .withSubnetId("wrqpue") - .withNetworkSiblingSetStateId("ckzywbiexzfeyue") - .withNetworkFeatures(NetworkFeatures.STANDARD_BASIC); - model = BinaryData.fromObject(model).toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("bt", model.networkSiblingSetId()); - Assertions.assertEquals("wrqpue", model.subnetId()); - Assertions.assertEquals("ckzywbiexzfeyue", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java deleted file mode 100644 index 98a7d549f47c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.UserAssignedIdentity; - -public final class UserAssignedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedIdentity model = BinaryData.fromString( - "{\"principalId\":\"4b3ced31-5092-4786-b255-70aa21c5276d\",\"clientId\":\"3036db3a-7ee3-4dee-998f-06f401d1e400\"}") - .toObject(UserAssignedIdentity.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAssignedIdentity model = new UserAssignedIdentity(); - model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupPropertiesTests.java deleted file mode 100644 index 9c0e2e685715..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupPropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeBackupProperties; -import org.junit.jupiter.api.Assertions; - -public final class VolumeBackupPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeBackupProperties model = BinaryData - .fromString("{\"backupPolicyId\":\"riofzpyqse\",\"policyEnforced\":false,\"backupVaultId\":\"n\"}") - .toObject(VolumeBackupProperties.class); - Assertions.assertEquals("riofzpyqse", model.backupPolicyId()); - Assertions.assertEquals(false, model.policyEnforced()); - Assertions.assertEquals("n", model.backupVaultId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeBackupProperties model = new VolumeBackupProperties().withBackupPolicyId("riofzpyqse") - .withPolicyEnforced(false) - .withBackupVaultId("n"); - model = BinaryData.fromObject(model).toObject(VolumeBackupProperties.class); - Assertions.assertEquals("riofzpyqse", model.backupPolicyId()); - Assertions.assertEquals(false, model.policyEnforced()); - Assertions.assertEquals("n", model.backupVaultId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java deleted file mode 100644 index 0b11a3cad09e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeBackups; -import org.junit.jupiter.api.Assertions; - -public final class VolumeBackupsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeBackups model = BinaryData.fromString( - "{\"volumeName\":\"rjreafxts\",\"volumeResourceId\":\"mhjglikkxwslolb\",\"backupsCount\":1224144822,\"policyEnabled\":true}") - .toObject(VolumeBackups.class); - Assertions.assertEquals("rjreafxts", model.volumeName()); - Assertions.assertEquals("mhjglikkxwslolb", model.volumeResourceId()); - Assertions.assertEquals(1224144822, model.backupsCount()); - Assertions.assertEquals(true, model.policyEnabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeBackups model = new VolumeBackups().withVolumeName("rjreafxts") - .withVolumeResourceId("mhjglikkxwslolb") - .withBackupsCount(1224144822) - .withPolicyEnabled(true); - model = BinaryData.fromObject(model).toObject(VolumeBackups.class); - Assertions.assertEquals("rjreafxts", model.volumeName()); - Assertions.assertEquals("mhjglikkxwslolb", model.volumeResourceId()); - Assertions.assertEquals(1224144822, model.backupsCount()); - Assertions.assertEquals(true, model.policyEnabled()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java deleted file mode 100644 index 84c99e4e61d2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumeGroupsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumeGroups().delete("qwtehtuevr", "rljyoogwxhnsdu", "gwbsreurf", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesDataProtectionTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesDataProtectionTests.java deleted file mode 100644 index 511b3b5aab5f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesDataProtectionTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection; -import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class VolumePatchPropertiesDataProtectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePatchPropertiesDataProtection model = BinaryData.fromString( - "{\"backup\":{\"backupPolicyId\":\"jfqka\",\"policyEnforced\":false,\"backupVaultId\":\"ipfpubji\"},\"snapshot\":{\"snapshotPolicyId\":\"iftohqkvpu\"}}") - .toObject(VolumePatchPropertiesDataProtection.class); - Assertions.assertEquals("jfqka", model.backup().backupPolicyId()); - Assertions.assertEquals(false, model.backup().policyEnforced()); - Assertions.assertEquals("ipfpubji", model.backup().backupVaultId()); - Assertions.assertEquals("iftohqkvpu", model.snapshot().snapshotPolicyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePatchPropertiesDataProtection model = new VolumePatchPropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("jfqka") - .withPolicyEnforced(false) - .withBackupVaultId("ipfpubji")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("iftohqkvpu")); - model = BinaryData.fromObject(model).toObject(VolumePatchPropertiesDataProtection.class); - Assertions.assertEquals("jfqka", model.backup().backupPolicyId()); - Assertions.assertEquals(false, model.backup().policyEnforced()); - Assertions.assertEquals("ipfpubji", model.backup().backupVaultId()); - Assertions.assertEquals("iftohqkvpu", model.snapshot().snapshotPolicyId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesExportPolicyTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesExportPolicyTests.java deleted file mode 100644 index 3b9294d0bc8d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesExportPolicyTests.java +++ /dev/null @@ -1,102 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.ChownMode; -import com.azure.resourcemanager.netapp.models.ExportPolicyRule; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VolumePatchPropertiesExportPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePatchPropertiesExportPolicy model = BinaryData.fromString( - "{\"rules\":[{\"ruleIndex\":1951399012,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"k\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"},{\"ruleIndex\":270127219,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"reqnovvqfov\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"},{\"ruleIndex\":1676739337,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"nzar\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"}]}") - .toObject(VolumePatchPropertiesExportPolicy.class); - Assertions.assertEquals(1951399012, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(true, model.rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).unixReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).cifs()); - Assertions.assertEquals(false, model.rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.rules().get(0).nfsv41()); - Assertions.assertEquals("k", model.rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.RESTRICTED, model.rules().get(0).chownMode()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePatchPropertiesExportPolicy model = new VolumePatchPropertiesExportPolicy().withRules(Arrays.asList( - new ExportPolicyRule().withRuleIndex(1951399012) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(true) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("k") - .withHasRootAccess(false) - .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule().withRuleIndex(270127219) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("reqnovvqfov") - .withHasRootAccess(false) - .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule().withRuleIndex(1676739337) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("nzar") - .withHasRootAccess(true) - .withChownMode(ChownMode.RESTRICTED))); - model = BinaryData.fromObject(model).toObject(VolumePatchPropertiesExportPolicy.class); - Assertions.assertEquals(1951399012, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(true, model.rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).unixReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).cifs()); - Assertions.assertEquals(false, model.rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.rules().get(0).nfsv41()); - Assertions.assertEquals("k", model.rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.RESTRICTED, model.rules().get(0).chownMode()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesTests.java deleted file mode 100644 index 47fa624ea9ae..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesTests.java +++ /dev/null @@ -1,139 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties; -import com.azure.resourcemanager.netapp.models.ChownMode; -import com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy; -import com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy; -import com.azure.resourcemanager.netapp.models.ExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration; -import com.azure.resourcemanager.netapp.models.SmbNonBrowsable; -import com.azure.resourcemanager.netapp.models.VolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; -import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VolumePatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePatchProperties model = BinaryData.fromString( - "{\"serviceLevel\":\"StandardZRS\",\"usageThreshold\":4652181983896123622,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1838860649,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"qvmkcxo\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"}]},\"protocolTypes\":[\"xprglyatddc\",\"cbcuejrjxgciqi\",\"rhos\",\"sdqrhzoymibmrq\"],\"throughputMibps\":32.402683,\"dataProtection\":{\"backup\":{\"backupPolicyId\":\"fluszdtm\",\"policyEnforced\":true,\"backupVaultId\":\"ofyyvoqacpi\"},\"snapshot\":{\"snapshotPolicyId\":\"btgiwbwoenwas\"}},\"isDefaultQuotaEnabled\":false,\"defaultUserQuotaInKiBs\":9149907061758969702,\"defaultGroupQuotaInKiBs\":6553380675095809006,\"unixPermissions\":\"wbpokulpiujwaasi\",\"coolAccess\":false,\"coolnessPeriod\":1035814224,\"coolAccessRetrievalPolicy\":\"Never\",\"coolAccessTieringPolicy\":\"SnapshotOnly\",\"snapshotDirectoryVisible\":false,\"smbAccessBasedEnumeration\":\"Enabled\",\"smbNonBrowsable\":\"Enabled\"}") - .toObject(VolumePatchProperties.class); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.serviceLevel()); - Assertions.assertEquals(4652181983896123622L, model.usageThreshold()); - Assertions.assertEquals(1838860649, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadOnly()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).unixReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).cifs()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("qvmkcxo", model.exportPolicy().rules().get(0).allowedClients()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("xprglyatddc", model.protocolTypes().get(0)); - Assertions.assertEquals(32.402683F, model.throughputMibps()); - Assertions.assertEquals("fluszdtm", model.dataProtection().backup().backupPolicyId()); - Assertions.assertEquals(true, model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("ofyyvoqacpi", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("btgiwbwoenwas", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(false, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(9149907061758969702L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(6553380675095809006L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("wbpokulpiujwaasi", model.unixPermissions()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(1035814224, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.NEVER, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(CoolAccessTieringPolicy.SNAPSHOT_ONLY, model.coolAccessTieringPolicy()); - Assertions.assertEquals(false, model.snapshotDirectoryVisible()); - Assertions.assertEquals(SmbAccessBasedEnumeration.ENABLED, model.smbAccessBasedEnumeration()); - Assertions.assertEquals(SmbNonBrowsable.ENABLED, model.smbNonBrowsable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePatchProperties model = new VolumePatchProperties().withServiceLevel(ServiceLevel.STANDARD_ZRS) - .withUsageThreshold(4652181983896123622L) - .withExportPolicy(new VolumePatchPropertiesExportPolicy() - .withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1838860649) - .withUnixReadOnly(true) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(true) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("qvmkcxo") - .withHasRootAccess(true) - .withChownMode(ChownMode.UNRESTRICTED)))) - .withProtocolTypes(Arrays.asList("xprglyatddc", "cbcuejrjxgciqi", "rhos", "sdqrhzoymibmrq")) - .withThroughputMibps(32.402683F) - .withDataProtection(new VolumePatchPropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("fluszdtm") - .withPolicyEnforced(true) - .withBackupVaultId("ofyyvoqacpi")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("btgiwbwoenwas"))) - .withIsDefaultQuotaEnabled(false) - .withDefaultUserQuotaInKiBs(9149907061758969702L) - .withDefaultGroupQuotaInKiBs(6553380675095809006L) - .withUnixPermissions("wbpokulpiujwaasi") - .withCoolAccess(false) - .withCoolnessPeriod(1035814224) - .withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy.NEVER) - .withCoolAccessTieringPolicy(CoolAccessTieringPolicy.SNAPSHOT_ONLY) - .withSnapshotDirectoryVisible(false) - .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.ENABLED) - .withSmbNonBrowsable(SmbNonBrowsable.ENABLED); - model = BinaryData.fromObject(model).toObject(VolumePatchProperties.class); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.serviceLevel()); - Assertions.assertEquals(4652181983896123622L, model.usageThreshold()); - Assertions.assertEquals(1838860649, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadOnly()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).unixReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).cifs()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("qvmkcxo", model.exportPolicy().rules().get(0).allowedClients()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("xprglyatddc", model.protocolTypes().get(0)); - Assertions.assertEquals(32.402683F, model.throughputMibps()); - Assertions.assertEquals("fluszdtm", model.dataProtection().backup().backupPolicyId()); - Assertions.assertEquals(true, model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("ofyyvoqacpi", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("btgiwbwoenwas", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(false, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(9149907061758969702L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(6553380675095809006L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("wbpokulpiujwaasi", model.unixPermissions()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(1035814224, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.NEVER, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(CoolAccessTieringPolicy.SNAPSHOT_ONLY, model.coolAccessTieringPolicy()); - Assertions.assertEquals(false, model.snapshotDirectoryVisible()); - Assertions.assertEquals(SmbAccessBasedEnumeration.ENABLED, model.smbAccessBasedEnumeration()); - Assertions.assertEquals(SmbNonBrowsable.ENABLED, model.smbNonBrowsable()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchTests.java deleted file mode 100644 index 640bdf6fbee5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchTests.java +++ /dev/null @@ -1,204 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.ChownMode; -import com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy; -import com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy; -import com.azure.resourcemanager.netapp.models.ExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ServiceLevel; -import com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration; -import com.azure.resourcemanager.netapp.models.SmbNonBrowsable; -import com.azure.resourcemanager.netapp.models.VolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.VolumePatch; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection; -import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; -import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VolumePatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePatch model = BinaryData.fromString( - "{\"properties\":{\"serviceLevel\":\"StandardZRS\",\"usageThreshold\":3596731806020428455,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":506973706,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"gcj\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"},{\"ruleIndex\":1571088052,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"glkfg\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"},{\"ruleIndex\":458990624,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"zx\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1591350946,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"utiiswacf\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"}]},\"protocolTypes\":[\"wkfvhqcrailvp\",\"ppfufl\",\"wdmhdlxyjrxs\"],\"throughputMibps\":37.06115,\"dataProtection\":{\"backup\":{\"backupPolicyId\":\"ihgwqapnedgfbcv\",\"policyEnforced\":false,\"backupVaultId\":\"vpk\"},\"snapshot\":{\"snapshotPolicyId\":\"cvdrhvoodsot\"}},\"isDefaultQuotaEnabled\":false,\"defaultUserQuotaInKiBs\":596884672630210595,\"defaultGroupQuotaInKiBs\":4925429058781882288,\"unixPermissions\":\"vnhdldwmgxcxr\",\"coolAccess\":false,\"coolnessPeriod\":1073132708,\"coolAccessRetrievalPolicy\":\"Never\",\"coolAccessTieringPolicy\":\"SnapshotOnly\",\"snapshotDirectoryVisible\":true,\"smbAccessBasedEnumeration\":\"Disabled\",\"smbNonBrowsable\":\"Enabled\"},\"location\":\"jw\",\"tags\":{\"ggkzzlvmbmpa\":\"qsluicp\",\"yhrfouyftaakcpw\":\"modfvuefywsbpfvm\"},\"id\":\"yzvqt\",\"name\":\"nubexk\",\"type\":\"zksmondj\"}") - .toObject(VolumePatch.class); - Assertions.assertEquals("jw", model.location()); - Assertions.assertEquals("qsluicp", model.tags().get("ggkzzlvmbmpa")); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.serviceLevel()); - Assertions.assertEquals(3596731806020428455L, model.usageThreshold()); - Assertions.assertEquals(506973706, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).cifs()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("gcj", model.exportPolicy().rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.RESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("wkfvhqcrailvp", model.protocolTypes().get(0)); - Assertions.assertEquals(37.06115F, model.throughputMibps()); - Assertions.assertEquals("ihgwqapnedgfbcv", model.dataProtection().backup().backupPolicyId()); - Assertions.assertEquals(false, model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("vpk", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("cvdrhvoodsot", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(false, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(596884672630210595L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(4925429058781882288L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("vnhdldwmgxcxr", model.unixPermissions()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(1073132708, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.NEVER, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(CoolAccessTieringPolicy.SNAPSHOT_ONLY, model.coolAccessTieringPolicy()); - Assertions.assertEquals(true, model.snapshotDirectoryVisible()); - Assertions.assertEquals(SmbAccessBasedEnumeration.DISABLED, model.smbAccessBasedEnumeration()); - Assertions.assertEquals(SmbNonBrowsable.ENABLED, model.smbNonBrowsable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePatch model = new VolumePatch().withLocation("jw") - .withTags(mapOf("ggkzzlvmbmpa", "qsluicp", "yhrfouyftaakcpw", "modfvuefywsbpfvm")) - .withServiceLevel(ServiceLevel.STANDARD_ZRS) - .withUsageThreshold(3596731806020428455L) - .withExportPolicy(new VolumePatchPropertiesExportPolicy().withRules(Arrays.asList( - new ExportPolicyRule().withRuleIndex(506973706) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(true) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("gcj") - .withHasRootAccess(false) - .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule().withRuleIndex(1571088052) - .withUnixReadOnly(true) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(false) - .withCifs(true) - .withNfsv3(true) - .withNfsv41(true) - .withAllowedClients("glkfg") - .withHasRootAccess(false) - .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule().withRuleIndex(458990624) - .withUnixReadOnly(true) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(true) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("zx") - .withHasRootAccess(false) - .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule().withRuleIndex(1591350946) - .withUnixReadOnly(false) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(true) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("utiiswacf") - .withHasRootAccess(true) - .withChownMode(ChownMode.UNRESTRICTED)))) - .withProtocolTypes(Arrays.asList("wkfvhqcrailvp", "ppfufl", "wdmhdlxyjrxs")) - .withThroughputMibps(37.06115F) - .withDataProtection(new VolumePatchPropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("ihgwqapnedgfbcv") - .withPolicyEnforced(false) - .withBackupVaultId("vpk")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("cvdrhvoodsot"))) - .withIsDefaultQuotaEnabled(false) - .withDefaultUserQuotaInKiBs(596884672630210595L) - .withDefaultGroupQuotaInKiBs(4925429058781882288L) - .withUnixPermissions("vnhdldwmgxcxr") - .withCoolAccess(false) - .withCoolnessPeriod(1073132708) - .withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy.NEVER) - .withCoolAccessTieringPolicy(CoolAccessTieringPolicy.SNAPSHOT_ONLY) - .withSnapshotDirectoryVisible(true) - .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED) - .withSmbNonBrowsable(SmbNonBrowsable.ENABLED); - model = BinaryData.fromObject(model).toObject(VolumePatch.class); - Assertions.assertEquals("jw", model.location()); - Assertions.assertEquals("qsluicp", model.tags().get("ggkzzlvmbmpa")); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, model.serviceLevel()); - Assertions.assertEquals(3596731806020428455L, model.usageThreshold()); - Assertions.assertEquals(506973706, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).unixReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).cifs()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("gcj", model.exportPolicy().rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.RESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals("wkfvhqcrailvp", model.protocolTypes().get(0)); - Assertions.assertEquals(37.06115F, model.throughputMibps()); - Assertions.assertEquals("ihgwqapnedgfbcv", model.dataProtection().backup().backupPolicyId()); - Assertions.assertEquals(false, model.dataProtection().backup().policyEnforced()); - Assertions.assertEquals("vpk", model.dataProtection().backup().backupVaultId()); - Assertions.assertEquals("cvdrhvoodsot", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(false, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(596884672630210595L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(4925429058781882288L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("vnhdldwmgxcxr", model.unixPermissions()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(1073132708, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.NEVER, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(CoolAccessTieringPolicy.SNAPSHOT_ONLY, model.coolAccessTieringPolicy()); - Assertions.assertEquals(true, model.snapshotDirectoryVisible()); - Assertions.assertEquals(SmbAccessBasedEnumeration.DISABLED, model.smbAccessBasedEnumeration()); - Assertions.assertEquals(SmbNonBrowsable.ENABLED, model.smbNonBrowsable()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesDataProtectionTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesDataProtectionTests.java deleted file mode 100644 index 3c5f762feabf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesDataProtectionTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.EndpointType; -import com.azure.resourcemanager.netapp.models.RemotePath; -import com.azure.resourcemanager.netapp.models.ReplicationObject; -import com.azure.resourcemanager.netapp.models.ReplicationSchedule; -import com.azure.resourcemanager.netapp.models.VolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; -import com.azure.resourcemanager.netapp.models.VolumeRelocationProperties; -import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class VolumePropertiesDataProtectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePropertiesDataProtection model = BinaryData.fromString( - "{\"backup\":{\"backupPolicyId\":\"cym\",\"policyEnforced\":true,\"backupVaultId\":\"psslqlfmm\"},\"replication\":{\"replicationId\":\"bglzpswi\",\"endpointType\":\"dst\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"hzdxssadbzm\",\"remotePath\":{\"externalHostName\":\"dfznudaodv\",\"serverName\":\"zbn\",\"volumeName\":\"blylpstdbh\"},\"remoteVolumeRegion\":\"srzdzucerscdn\"},\"snapshot\":{\"snapshotPolicyId\":\"vfiwjmygtdss\"},\"volumeRelocation\":{\"relocationRequested\":true,\"readyToBeFinalized\":true}}") - .toObject(VolumePropertiesDataProtection.class); - Assertions.assertEquals("cym", model.backup().backupPolicyId()); - Assertions.assertEquals(true, model.backup().policyEnforced()); - Assertions.assertEquals("psslqlfmm", model.backup().backupVaultId()); - Assertions.assertEquals(EndpointType.DST, model.replication().endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replication().replicationSchedule()); - Assertions.assertEquals("hzdxssadbzm", model.replication().remoteVolumeResourceId()); - Assertions.assertEquals("dfznudaodv", model.replication().remotePath().externalHostname()); - Assertions.assertEquals("zbn", model.replication().remotePath().serverName()); - Assertions.assertEquals("blylpstdbh", model.replication().remotePath().volumeName()); - Assertions.assertEquals("srzdzucerscdn", model.replication().remoteVolumeRegion()); - Assertions.assertEquals("vfiwjmygtdss", model.snapshot().snapshotPolicyId()); - Assertions.assertEquals(true, model.volumeRelocation().relocationRequested()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePropertiesDataProtection model = new VolumePropertiesDataProtection() - .withBackup(new VolumeBackupProperties().withBackupPolicyId("cym") - .withPolicyEnforced(true) - .withBackupVaultId("psslqlfmm")) - .withReplication(new ReplicationObject().withEndpointType(EndpointType.DST) - .withReplicationSchedule(ReplicationSchedule.HOURLY) - .withRemoteVolumeResourceId("hzdxssadbzm") - .withRemotePath(new RemotePath().withExternalHostname("dfznudaodv") - .withServerName("zbn") - .withVolumeName("blylpstdbh")) - .withRemoteVolumeRegion("srzdzucerscdn")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("vfiwjmygtdss")) - .withVolumeRelocation(new VolumeRelocationProperties().withRelocationRequested(true)); - model = BinaryData.fromObject(model).toObject(VolumePropertiesDataProtection.class); - Assertions.assertEquals("cym", model.backup().backupPolicyId()); - Assertions.assertEquals(true, model.backup().policyEnforced()); - Assertions.assertEquals("psslqlfmm", model.backup().backupVaultId()); - Assertions.assertEquals(EndpointType.DST, model.replication().endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replication().replicationSchedule()); - Assertions.assertEquals("hzdxssadbzm", model.replication().remoteVolumeResourceId()); - Assertions.assertEquals("dfznudaodv", model.replication().remotePath().externalHostname()); - Assertions.assertEquals("zbn", model.replication().remotePath().serverName()); - Assertions.assertEquals("blylpstdbh", model.replication().remotePath().volumeName()); - Assertions.assertEquals("srzdzucerscdn", model.replication().remoteVolumeRegion()); - Assertions.assertEquals("vfiwjmygtdss", model.snapshot().snapshotPolicyId()); - Assertions.assertEquals(true, model.volumeRelocation().relocationRequested()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesExportPolicyTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesExportPolicyTests.java deleted file mode 100644 index e013e866ce68..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesExportPolicyTests.java +++ /dev/null @@ -1,102 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.ChownMode; -import com.azure.resourcemanager.netapp.models.ExportPolicyRule; -import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VolumePropertiesExportPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePropertiesExportPolicy model = BinaryData.fromString( - "{\"rules\":[{\"ruleIndex\":92665469,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"vshqjohxcr\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1966093769,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"bsrfbj\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"},{\"ruleIndex\":1365200524,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"qtaruoujmkcjhwq\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"}]}") - .toObject(VolumePropertiesExportPolicy.class); - Assertions.assertEquals(92665469, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(false, model.rules().get(0).unixReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).unixReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).cifs()); - Assertions.assertEquals(true, model.rules().get(0).nfsv3()); - Assertions.assertEquals(false, model.rules().get(0).nfsv41()); - Assertions.assertEquals("vshqjohxcr", model.rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.rules().get(0).chownMode()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePropertiesExportPolicy model = new VolumePropertiesExportPolicy().withRules(Arrays.asList( - new ExportPolicyRule().withRuleIndex(92665469) - .withUnixReadOnly(false) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(false) - .withNfsv3(true) - .withNfsv41(false) - .withAllowedClients("vshqjohxcr") - .withHasRootAccess(false) - .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule().withRuleIndex(1966093769) - .withUnixReadOnly(false) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("bsrfbj") - .withHasRootAccess(false) - .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule().withRuleIndex(1365200524) - .withUnixReadOnly(true) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("qtaruoujmkcjhwq") - .withHasRootAccess(true) - .withChownMode(ChownMode.RESTRICTED))); - model = BinaryData.fromObject(model).toObject(VolumePropertiesExportPolicy.class); - Assertions.assertEquals(92665469, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(false, model.rules().get(0).unixReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).unixReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).cifs()); - Assertions.assertEquals(true, model.rules().get(0).nfsv3()); - Assertions.assertEquals(false, model.rules().get(0).nfsv41()); - Assertions.assertEquals("vshqjohxcr", model.rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.rules().get(0).chownMode()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java deleted file mode 100644 index 1367da14731f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner; -import com.azure.resourcemanager.netapp.models.Type; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VolumeQuotaRuleInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeQuotaRuleInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Accepted\",\"quotaSizeInKiBs\":7094966123838230661,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"fcdmqnrojlpijn\"},\"location\":\"xfrdd\",\"tags\":{\"ronasxift\":\"atiz\",\"zh\":\"zq\"},\"id\":\"tw\",\"name\":\"sgogczhonnxk\",\"type\":\"lgnyhmo\"}") - .toObject(VolumeQuotaRuleInner.class); - Assertions.assertEquals("xfrdd", model.location()); - Assertions.assertEquals("atiz", model.tags().get("ronasxift")); - Assertions.assertEquals(7094966123838230661L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("fcdmqnrojlpijn", model.quotaTarget()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeQuotaRuleInner model = new VolumeQuotaRuleInner().withLocation("xfrdd") - .withTags(mapOf("ronasxift", "atiz", "zh", "zq")) - .withQuotaSizeInKiBs(7094966123838230661L) - .withQuotaType(Type.INDIVIDUAL_GROUP_QUOTA) - .withQuotaTarget("fcdmqnrojlpijn"); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRuleInner.class); - Assertions.assertEquals("xfrdd", model.location()); - Assertions.assertEquals("atiz", model.tags().get("ronasxift")); - Assertions.assertEquals(7094966123838230661L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("fcdmqnrojlpijn", model.quotaTarget()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java deleted file mode 100644 index f2b58f7abe93..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VolumeQuotaRulePatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeQuotaRulePatch model = BinaryData.fromString( - "{\"tags\":{\"svbuswdvzyy\":\"xvcxgfrpdsofbshr\",\"awnopqgikyzirtxd\":\"ycnunvjsrtk\",\"ioilqukrydxtq\":\"uxzejntpsew\",\"ghhavgrvkffo\":\"ieoxorggufhyaomt\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":5645922877678061686,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"jmfxumvf\"}}") - .toObject(VolumeQuotaRulePatch.class); - Assertions.assertEquals("xvcxgfrpdsofbshr", model.tags().get("svbuswdvzyy")); - Assertions.assertEquals(5645922877678061686L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("jmfxumvf", model.quotaTarget()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeQuotaRulePatch model = new VolumeQuotaRulePatch() - .withTags(mapOf("svbuswdvzyy", "xvcxgfrpdsofbshr", "awnopqgikyzirtxd", "ycnunvjsrtk", "ioilqukrydxtq", - "uxzejntpsew", "ghhavgrvkffo", "ieoxorggufhyaomt")) - .withQuotaSizeInKiBs(5645922877678061686L) - .withQuotaType(Type.DEFAULT_USER_QUOTA) - .withQuotaTarget("jmfxumvf"); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRulePatch.class); - Assertions.assertEquals("xvcxgfrpdsofbshr", model.tags().get("svbuswdvzyy")); - Assertions.assertEquals(5645922877678061686L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("jmfxumvf", model.quotaTarget()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java deleted file mode 100644 index 757e39fda969..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumeQuotaRulesCreateMockTests { - @Test - public void testCreate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":4495626237459310184,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"urbuhhlkyqltq\"},\"location\":\"ogtu\",\"tags\":{\"n\":\"fdjktsysidfvclgl\",\"qogsfikayian\":\"uijtkbu\",\"t\":\"haru\",\"yjqtt\":\"iqxf\"},\"id\":\"wkpqhjpenuygbq\",\"name\":\"qqekewvnqvcdlgu\",\"type\":\"ucmfdj\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - VolumeQuotaRule response = manager.volumeQuotaRules() - .define("jbgdlfgtdysnaquf") - .withRegion("yjleziunjx") - .withExistingVolume("o", "gebx", "cnwfepbnwgfmxjg", "g") - .withTags(mapOf("qa", "antkwcegyamlbns", "m", "jjvpilguooqja", "hrtdtpdelq", "itgueiookjbs")) - .withQuotaSizeInKiBs(989283416847724320L) - .withQuotaType(Type.DEFAULT_USER_QUOTA) - .withQuotaTarget("jrwdkqz") - .create(); - - Assertions.assertEquals("ogtu", response.location()); - Assertions.assertEquals("fdjktsysidfvclgl", response.tags().get("n")); - Assertions.assertEquals(4495626237459310184L, response.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, response.quotaType()); - Assertions.assertEquals("urbuhhlkyqltq", response.quotaTarget()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java deleted file mode 100644 index 4d7e6a64ca08..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumeQuotaRulesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumeQuotaRules() - .delete("cbuewmrswnjlxuz", "hwpusxj", "aqehg", "dohzjq", "tu", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java deleted file mode 100644 index 8629d703b3b0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumeQuotaRulesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":907482374428904956,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"fjmyccxlzhco\"},\"location\":\"vnekhenlusfnrdtj\",\"tags\":{\"cq\":\"r\",\"uslvyjtcvuwkasi\":\"jvidttge\"},\"id\":\"iesfuug\",\"name\":\"tuqfecjxeygtu\",\"type\":\"xu\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - VolumeQuotaRule response = manager.volumeQuotaRules() - .getWithResponse("ctfjgtixr", "vzuyturmlmu", "wolba", "iropionszon", "pngajin", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vnekhenlusfnrdtj", response.location()); - Assertions.assertEquals("r", response.tags().get("cq")); - Assertions.assertEquals(907482374428904956L, response.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, response.quotaType()); - Assertions.assertEquals("fjmyccxlzhco", response.quotaTarget()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java deleted file mode 100644 index 667d6190df0d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumeQuotaRulesListByVolumeMockTests { - @Test - public void testListByVolume() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"quotaSizeInKiBs\":1476688386116323232,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"uahokq\"},\"location\":\"bkau\",\"tags\":{\"phwpnulaiywzej\":\"sh\",\"llndnpd\":\"whslwkoj\"},\"id\":\"rpqaf\",\"name\":\"fugsnnfhyetefy\",\"type\":\"oc\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.volumeQuotaRules() - .listByVolume("ozqvbubqmam", "sycxhxzgaz", "taboidvmf", "hppubowsepdfgkmt", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("bkau", response.iterator().next().location()); - Assertions.assertEquals("sh", response.iterator().next().tags().get("phwpnulaiywzej")); - Assertions.assertEquals(1476688386116323232L, response.iterator().next().quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, response.iterator().next().quotaType()); - Assertions.assertEquals("uahokq", response.iterator().next().quotaTarget()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java deleted file mode 100644 index bebce5cef1f7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRulesList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VolumeQuotaRulesListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeQuotaRulesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":4971111949791382837,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"yfwnylr\"},\"location\":\"o\",\"tags\":{\"vtylbfpncu\":\"tpkiwkkbnujry\",\"thtywub\":\"doiwi\",\"fdntwjchrdgoih\":\"cbihwqk\",\"luudfdlwggytsb\":\"umwctondz\"},\"id\":\"tov\",\"name\":\"tgseinqfiufxqkn\",\"type\":\"irgne\"}]}") - .toObject(VolumeQuotaRulesList.class); - Assertions.assertEquals("o", model.value().get(0).location()); - Assertions.assertEquals("tpkiwkkbnujry", model.value().get(0).tags().get("vtylbfpncu")); - Assertions.assertEquals(4971111949791382837L, model.value().get(0).quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("yfwnylr", model.value().get(0).quotaTarget()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeQuotaRulesList model - = new VolumeQuotaRulesList().withValue(Arrays.asList(new VolumeQuotaRuleInner().withLocation("o") - .withTags(mapOf("vtylbfpncu", "tpkiwkkbnujry", "thtywub", "doiwi", "fdntwjchrdgoih", "cbihwqk", - "luudfdlwggytsb", "umwctondz")) - .withQuotaSizeInKiBs(4971111949791382837L) - .withQuotaType(Type.INDIVIDUAL_GROUP_QUOTA) - .withQuotaTarget("yfwnylr"))); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRulesList.class); - Assertions.assertEquals("o", model.value().get(0).location()); - Assertions.assertEquals("tpkiwkkbnujry", model.value().get(0).tags().get("vtylbfpncu")); - Assertions.assertEquals(4971111949791382837L, model.value().get(0).quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("yfwnylr", model.value().get(0).quotaTarget()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map 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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java deleted file mode 100644 index fc1dd40ef74a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRulesProperties; -import com.azure.resourcemanager.netapp.models.Type; -import org.junit.jupiter.api.Assertions; - -public final class VolumeQuotaRulesPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeQuotaRulesProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":4099152250021383812,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"rghxjb\"}") - .toObject(VolumeQuotaRulesProperties.class); - Assertions.assertEquals(4099152250021383812L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("rghxjb", model.quotaTarget()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeQuotaRulesProperties model = new VolumeQuotaRulesProperties().withQuotaSizeInKiBs(4099152250021383812L) - .withQuotaType(Type.DEFAULT_USER_QUOTA) - .withQuotaTarget("rghxjb"); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRulesProperties.class); - Assertions.assertEquals(4099152250021383812L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("rghxjb", model.quotaTarget()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRelocationPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRelocationPropertiesTests.java deleted file mode 100644 index 18914d4f5775..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRelocationPropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeRelocationProperties; -import org.junit.jupiter.api.Assertions; - -public final class VolumeRelocationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeRelocationProperties model - = BinaryData.fromString("{\"relocationRequested\":false,\"readyToBeFinalized\":true}") - .toObject(VolumeRelocationProperties.class); - Assertions.assertEquals(false, model.relocationRequested()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeRelocationProperties model = new VolumeRelocationProperties().withRelocationRequested(false); - model = BinaryData.fromObject(model).toObject(VolumeRelocationProperties.class); - Assertions.assertEquals(false, model.relocationRequested()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRevertTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRevertTests.java deleted file mode 100644 index cda7b1e52efb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRevertTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeRevert; -import org.junit.jupiter.api.Assertions; - -public final class VolumeRevertTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeRevert model = BinaryData.fromString("{\"snapshotId\":\"sgplsakn\"}").toObject(VolumeRevert.class); - Assertions.assertEquals("sgplsakn", model.snapshotId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeRevert model = new VolumeRevert().withSnapshotId("sgplsakn"); - model = BinaryData.fromObject(model).toObject(VolumeRevert.class); - Assertions.assertEquals("sgplsakn", model.snapshotId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeSnapshotPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeSnapshotPropertiesTests.java deleted file mode 100644 index 05bb74538d82..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeSnapshotPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class VolumeSnapshotPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeSnapshotProperties model - = BinaryData.fromString("{\"snapshotPolicyId\":\"ndlkzgxhurip\"}").toObject(VolumeSnapshotProperties.class); - Assertions.assertEquals("ndlkzgxhurip", model.snapshotPolicyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeSnapshotProperties model = new VolumeSnapshotProperties().withSnapshotPolicyId("ndlkzgxhurip"); - model = BinaryData.fromObject(model).toObject(VolumeSnapshotProperties.class); - Assertions.assertEquals("ndlkzgxhurip", model.snapshotPolicyId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java deleted file mode 100644 index 267190b9f4a0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SvmPeerCommandResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesAuthorizeExternalReplicationMockTests { - @Test - public void testAuthorizeExternalReplication() throws Exception { - String responseStr = "{\"svmPeeringCommand\":\"pqhe\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - SvmPeerCommandResponse response = manager.volumes() - .authorizeExternalReplication("e", "pqxbkwvzgnzvdf", "zdix", "mqpnoda", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pqhe", response.svmPeeringCommand()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java deleted file mode 100644 index 39579b30c7d5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.AuthorizeRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesAuthorizeReplicationMockTests { - @Test - public void testAuthorizeReplication() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumes() - .authorizeReplication("tzfjltf", "nzcyjtotp", "opv", "bdb", - new AuthorizeRequest().withRemoteVolumeResourceId("gqqihedsvqwt"), com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java deleted file mode 100644 index 10dfba9186cd..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesBreakFileLocksMockTests { - @Test - public void testBreakFileLocks() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumes() - .breakFileLocks("jrcg", "gydcw", "oxjumvqqo", "ihrraiouaub", - new BreakFileLocksRequest().withClientIp("tloqxfuojrn").withConfirmRunningDisruptiveOperation(false), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java deleted file mode 100644 index c66473bd296c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesBreakReplicationMockTests { - @Test - public void testBreakReplication() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumes() - .breakReplication("dgug", "yzihgrkyuizabsn", "fpphoj", "evy", - new BreakReplicationRequest().withForceBreakReplication(false), com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java deleted file mode 100644 index dd25607af2e4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesDeleteReplicationMockTests { - @Test - public void testDeleteReplication() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumes() - .deleteReplication("oudorhcgyyp", "otwypundmb", "hu", "cmjkavlgorbmftpm", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java deleted file mode 100644 index 8ad48fdfa323..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesFinalizeRelocationMockTests { - @Test - public void testFinalizeRelocation() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumes().finalizeRelocation("cpilj", "a", "zv", "chndbnwie", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java deleted file mode 100644 index 1e1628e6476d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; -import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesListGetGroupIdListForLdapUserMockTests { - @Test - public void testListGetGroupIdListForLdapUser() throws Exception { - String responseStr = "{\"groupIdsForLdapUser\":[\"slzojh\",\"ctfnmdxotng\"]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - GetGroupIdListForLdapUserResponse response = manager.volumes() - .listGetGroupIdListForLdapUser("l", "z", "asccbiui", "zdlyjdfqw", - new GetGroupIdListForLdapUserRequest().withUsername("kyoqufdv"), com.azure.core.util.Context.NONE); - - Assertions.assertEquals("slzojh", response.groupIdsForLdapUser().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java deleted file mode 100644 index f70ca71cb93b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.EndpointType; -import com.azure.resourcemanager.netapp.models.Replication; -import com.azure.resourcemanager.netapp.models.ReplicationSchedule; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesListReplicationsMockTests { - @Test - public void testListReplications() throws Exception { - String responseStr - = "{\"value\":[{\"replicationId\":\"riypoqeyhlqhyk\",\"endpointType\":\"dst\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"znuciqdsm\",\"remoteVolumeRegion\":\"iitdfuxt\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.volumes() - .listReplications("wxacevehj", "uyxoaf", "aoqltfaey", "inmfgvxirp", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(EndpointType.DST, response.iterator().next().endpointType()); - Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, response.iterator().next().replicationSchedule()); - Assertions.assertEquals("znuciqdsm", response.iterator().next().remoteVolumeResourceId()); - Assertions.assertEquals("iitdfuxt", response.iterator().next().remoteVolumeRegion()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java deleted file mode 100644 index 5c487246d4c0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponse; -import com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesPeerExternalClusterMockTests { - @Test - public void testPeerExternalCluster() throws Exception { - String responseStr = "{\"peerAcceptCommand\":\"kbzefezrxcczurt\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ClusterPeerCommandResponse response = manager.volumes() - .peerExternalCluster( - "sufco", "dxbzlmcmuap", "vhdbevwqqxey", "ko", new PeerClusterForVolumeMigrationRequest() - .withPeerIpAddresses(Arrays.asList("zinkfkbgbzbowxeq", "clj", "ygvkzqkjj")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kbzefezrxcczurt", response.peerAcceptCommand()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java deleted file mode 100644 index 1be6b1d25917..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.PoolChangeRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesPoolChangeMockTests { - @Test - public void testPoolChange() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumes() - .poolChange("jptmcgsbost", "eln", "la", "utmzlbiojlvfhrbb", - new PoolChangeRequest().withNewPoolResourceId("neqvcwwyyurmo"), com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java deleted file mode 100644 index b3c42573fd09..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesReInitializeReplicationMockTests { - @Test - public void testReInitializeReplication() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumes() - .reInitializeReplication("mkyi", "cysihs", "qcwdhoh", "dtmcd", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java deleted file mode 100644 index 807bc5931b9b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.MirrorState; -import com.azure.resourcemanager.netapp.models.RelationshipStatus; -import com.azure.resourcemanager.netapp.models.ReplicationStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesReplicationStatusWithResponseMockTests { - @Test - public void testReplicationStatusWithResponse() throws Exception { - String responseStr - = "{\"healthy\":false,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Uninitialized\",\"totalProgress\":\"mq\",\"errorMessage\":\"qqxlajr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ReplicationStatus response = manager.volumes() - .replicationStatusWithResponse("sgzfczbg", "mfg", "eglqgleohibetn", "uankrrfxeeeb", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.healthy()); - Assertions.assertEquals(RelationshipStatus.TRANSFERRING, response.relationshipStatus()); - Assertions.assertEquals(MirrorState.UNINITIALIZED, response.mirrorState()); - Assertions.assertEquals("mq", response.totalProgress()); - Assertions.assertEquals("qqxlajr", response.errorMessage()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java deleted file mode 100644 index 58bbf1b05720..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesResyncReplicationMockTests { - @Test - public void testResyncReplication() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumes() - .resyncReplication("asiibmiybnnust", "nlj", "nmgixh", "mavmq", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java deleted file mode 100644 index 00c67238d14c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.VolumeRevert; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesRevertMockTests { - @Test - public void testRevert() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumes() - .revert("ntvlwijpsttexo", "qpwcyyufmh", "uncuw", "qspkcdqzhlctd", - new VolumeRevert().withSnapshotId("nqndyfpchrqbn"), com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java deleted file mode 100644 index fee00359fcc9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VolumesRevertRelocationMockTests { - @Test - public void testRevertRelocation() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.volumes() - .revertRelocation("olewjwi", "ubwefqs", "ap", "qtferrqwexjkmf", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java deleted file mode 100644 index 3a6e2797367a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// 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.BinaryData; -import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import org.junit.jupiter.api.Assertions; - -public final class WeeklyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WeeklySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":991988200,\"day\":\"frao\",\"hour\":1573760550,\"minute\":1614629592,\"usedBytes\":5941634021066560611}") - .toObject(WeeklySchedule.class); - Assertions.assertEquals(991988200, model.snapshotsToKeep()); - Assertions.assertEquals("frao", model.day()); - Assertions.assertEquals(1573760550, model.hour()); - Assertions.assertEquals(1614629592, model.minute()); - Assertions.assertEquals(5941634021066560611L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WeeklySchedule model = new WeeklySchedule().withSnapshotsToKeep(991988200) - .withDay("frao") - .withHour(1573760550) - .withMinute(1614629592) - .withUsedBytes(5941634021066560611L); - model = BinaryData.fromObject(model).toObject(WeeklySchedule.class); - Assertions.assertEquals(991988200, model.snapshotsToKeep()); - Assertions.assertEquals("frao", model.day()); - Assertions.assertEquals(1573760550, model.hour()); - Assertions.assertEquals(1614629592, model.minute()); - Assertions.assertEquals(5941634021066560611L, model.usedBytes()); - } -}