From 83e1ebd333b746625893f76ac9588947a5efd94a Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 27 Nov 2023 11:56:15 +0000 Subject: [PATCH] CodeGen from PR 26817 in Azure/azure-rest-api-specs Merge 0f158205fcba423e442c994eefc344b9366d9a91 into ce49dc019bdb679b874825a9040131e90dc4478f --- .../azure-resourcemanager-netapp/CHANGELOG.md | 4 +- .../azure-resourcemanager-netapp/README.md | 11 +- .../azure-resourcemanager-netapp/SAMPLE.md | 1624 ++---- .../azure-resourcemanager-netapp/pom.xml | 3 +- .../netapp/NetAppFilesManager.java | 109 +- .../netapp/fluent/AccountsClient.java | 164 +- .../netapp/fluent/BackupPoliciesClient.java | 144 +- .../netapp/fluent/BackupsClient.java | 24 +- .../netapp/fluent/NetAppManagementClient.java | 42 +- .../NetAppResourceQuotaLimitsClient.java | 36 +- .../netapp/fluent/NetAppResourcesClient.java | 144 +- .../netapp/fluent/OperationsClient.java | 16 +- .../netapp/fluent/PoolsClient.java | 136 +- .../netapp/fluent/SnapshotPoliciesClient.java | 96 +- .../netapp/fluent/SnapshotsClient.java | 275 +- .../netapp/fluent/SubvolumesClient.java | 265 +- .../netapp/fluent/VolumeGroupsClient.java | 112 +- .../netapp/fluent/VolumeQuotaRulesClient.java | 221 +- .../netapp/fluent/VolumesClient.java | 872 ++- .../fluent/models/AccountProperties.java | 22 +- .../fluent/models/BackupPolicyInner.java | 54 +- .../fluent/models/BackupPolicyProperties.java | 34 +- .../fluent/models/CapacityPoolInner.java | 90 +- .../CheckAvailabilityResponseInner.java | 30 +- ...etGroupIdListForLdapUserResponseInner.java | 14 +- .../fluent/models/MountTargetProperties.java | 60 +- .../fluent/models/NetAppAccountInner.java | 40 +- .../fluent/models/NetworkSiblingSetInner.java | 75 +- .../netapp/fluent/models/OperationInner.java | 28 +- .../fluent/models/OperationProperties.java | 14 +- .../fluent/models/PoolPatchProperties.java | 32 +- .../netapp/fluent/models/PoolProperties.java | 83 +- .../netapp/fluent/models/RegionInfoInner.java | 42 +- .../fluent/models/ReplicationInner.java | 32 +- .../fluent/models/ReplicationStatusInner.java | 30 +- .../fluent/models/RestoreStatusInner.java | 22 +- .../netapp/fluent/models/SnapshotInner.java | 37 +- .../fluent/models/SnapshotPolicyInner.java | 52 +- .../models/SnapshotPolicyProperties.java | 32 +- .../models/SnapshotPolicyVolumeListInner.java | 14 +- .../fluent/models/SnapshotProperties.java | 28 +- .../models/SubscriptionQuotaItemInner.java | 18 +- .../SubscriptionQuotaItemProperties.java | 14 +- .../fluent/models/SubvolumeInfoInner.java | 52 +- .../fluent/models/SubvolumeModelInner.java | 130 +- .../models/SubvolumeModelProperties.java | 140 +- .../fluent/models/SubvolumePatchParams.java | 38 +- .../fluent/models/SubvolumeProperties.java | 54 +- .../models/VolumeGroupDetailsInner.java | 32 +- .../fluent/models/VolumeGroupInner.java | 28 +- .../models/VolumeGroupListProperties.java | 16 +- .../fluent/models/VolumeGroupProperties.java | 20 +- .../netapp/fluent/models/VolumeInner.java | 399 +- .../fluent/models/VolumePatchProperties.java | 154 +- .../fluent/models/VolumeProperties.java | 432 +- .../fluent/models/VolumeQuotaRuleInner.java | 44 +- .../models/VolumeQuotaRulesProperties.java | 34 +- .../netapp/fluent/models/package-info.java | 4 +- .../netapp/fluent/package-info.java | 4 +- .../implementation/AccountsClientImpl.java | 1225 ++--- .../netapp/implementation/AccountsImpl.java | 73 +- .../BackupPoliciesClientImpl.java | 868 ++- .../implementation/BackupPoliciesImpl.java | 101 +- .../implementation/BackupPolicyImpl.java | 48 +- .../implementation/BackupsClientImpl.java | 143 +- .../netapp/implementation/BackupsImpl.java | 23 +- .../implementation/CapacityPoolImpl.java | 48 +- .../CheckAvailabilityResponseImpl.java | 3 +- ...GetGroupIdListForLdapUserResponseImpl.java | 3 +- .../implementation/NetAppAccountImpl.java | 45 +- .../NetAppManagementClientBuilder.java | 50 +- .../NetAppManagementClientImpl.java | 173 +- .../NetAppResourceQuotaLimitsClientImpl.java | 262 +- .../NetAppResourceQuotaLimitsImpl.java | 12 +- .../NetAppResourcesClientImpl.java | 821 ++- .../implementation/NetAppResourcesImpl.java | 65 +- .../implementation/NetworkSiblingSetImpl.java | 4 +- .../implementation/OperationsClientImpl.java | 96 +- .../netapp/implementation/OperationsImpl.java | 4 +- .../implementation/PoolsClientImpl.java | 906 ++-- .../netapp/implementation/PoolsImpl.java | 93 +- .../implementation/ReplicationStatusImpl.java | 4 +- .../implementation/RestoreStatusImpl.java | 4 +- .../netapp/implementation/SnapshotImpl.java | 52 +- .../SnapshotPoliciesClientImpl.java | 763 +-- .../implementation/SnapshotPoliciesImpl.java | 126 +- .../implementation/SnapshotPolicyImpl.java | 52 +- .../SnapshotPolicyVolumeListImpl.java | 9 +- .../implementation/SnapshotsClientImpl.java | 1328 ++--- .../netapp/implementation/SnapshotsImpl.java | 245 +- .../SubscriptionQuotaItemImpl.java | 4 +- .../implementation/SubvolumeInfoImpl.java | 71 +- .../implementation/SubvolumeModelImpl.java | 4 +- .../implementation/SubvolumesClientImpl.java | 1368 ++--- .../netapp/implementation/SubvolumesImpl.java | 215 +- .../netapp/implementation/Utils.java | 21 +- .../VolumeGroupDetailsImpl.java | 34 +- .../VolumeGroupsClientImpl.java | 665 +-- .../implementation/VolumeGroupsImpl.java | 109 +- .../netapp/implementation/VolumeImpl.java | 73 +- .../implementation/VolumeQuotaRuleImpl.java | 76 +- .../VolumeQuotaRulesClientImpl.java | 1062 ++-- .../implementation/VolumeQuotaRulesImpl.java | 197 +- .../implementation/VolumesClientImpl.java | 4707 +++++++---------- .../netapp/implementation/VolumesImpl.java | 326 +- .../netapp/implementation/package-info.java | 4 +- .../netapp/models/AccountEncryption.java | 24 +- .../netapp/models/Accounts.java | 94 +- .../netapp/models/ActiveDirectory.java | 114 +- .../netapp/models/ActiveDirectoryStatus.java | 30 +- .../netapp/models/ApplicationType.java | 18 +- .../netapp/models/AuthorizeRequest.java | 14 +- .../netapp/models/AvsDataStore.java | 18 +- .../netapp/models/BackupPolicies.java | 70 +- .../netapp/models/BackupPoliciesList.java | 14 +- .../netapp/models/BackupPolicy.java | 174 +- .../netapp/models/BackupPolicyPatch.java | 44 +- .../netapp/models/Backups.java | 24 +- .../netapp/models/BreakFileLocksRequest.java | 18 +- .../models/BreakReplicationRequest.java | 14 +- .../netapp/models/CapacityPool.java | 221 +- .../netapp/models/CapacityPoolList.java | 18 +- .../netapp/models/CapacityPoolPatch.java | 40 +- .../models/CheckAvailabilityResponse.java | 12 +- .../netapp/models/CheckNameResourceTypes.java | 42 +- .../models/CheckQuotaNameResourceTypes.java | 43 +- .../netapp/models/ChownMode.java | 14 +- .../models/CoolAccessRetrievalPolicy.java | 27 +- .../netapp/models/DailySchedule.java | 26 +- .../netapp/models/Dimension.java | 18 +- .../netapp/models/EnableSubvolumes.java | 18 +- .../netapp/models/EncryptionIdentity.java | 16 +- .../netapp/models/EncryptionKeySource.java | 14 +- .../netapp/models/EncryptionType.java | 20 +- .../netapp/models/EndpointType.java | 18 +- .../netapp/models/ExportPolicyRule.java | 86 +- .../netapp/models/FileAccessLogs.java | 14 +- .../models/FilePathAvailabilityRequest.java | 30 +- .../GetGroupIdListForLdapUserRequest.java | 20 +- .../GetGroupIdListForLdapUserResponse.java | 8 +- .../netapp/models/HourlySchedule.java | 22 +- .../models/InAvailabilityReasonType.java | 14 +- .../netapp/models/KeySource.java | 18 +- .../netapp/models/KeyVaultProperties.java | 42 +- .../netapp/models/KeyVaultStatus.java | 30 +- .../netapp/models/LdapSearchScopeOpt.java | 22 +- .../netapp/models/ListReplications.java | 14 +- .../netapp/models/LogSpecification.java | 18 +- .../netapp/models/ManagedServiceIdentity.java | 47 +- .../models/ManagedServiceIdentityType.java | 30 +- .../netapp/models/MetricAggregationType.java | 14 +- .../netapp/models/MetricSpecification.java | 74 +- .../netapp/models/MirrorState.java | 22 +- .../netapp/models/MonthlySchedule.java | 30 +- .../netapp/models/NetAppAccount.java | 165 +- .../netapp/models/NetAppAccountList.java | 18 +- .../netapp/models/NetAppAccountPatch.java | 36 +- .../models/NetAppResourceQuotaLimits.java | 36 +- .../netapp/models/NetAppResources.java | 116 +- .../netapp/models/NetworkFeatures.java | 26 +- .../netapp/models/NetworkSiblingSet.java | 34 +- .../NetworkSiblingSetProvisioningState.java | 26 +- .../netapp/models/NicInfo.java | 16 +- .../netapp/models/Operation.java | 14 +- .../netapp/models/OperationDisplay.java | 26 +- .../netapp/models/OperationListResult.java | 10 +- .../netapp/models/Operations.java | 16 +- .../netapp/models/PlacementKeyValuePairs.java | 34 +- .../netapp/models/PoolChangeRequest.java | 20 +- .../resourcemanager/netapp/models/Pools.java | 70 +- .../netapp/models/ProvisioningState.java | 42 +- .../netapp/models/QosType.java | 18 +- .../models/QueryNetworkSiblingSetRequest.java | 53 +- .../models/QuotaAvailabilityRequest.java | 38 +- .../models/ReestablishReplicationRequest.java | 14 +- .../netapp/models/RegionInfo.java | 18 +- ...egionInfoAvailabilityZoneMappingsItem.java | 18 +- .../RegionStorageToNetworkProximity.java | 42 +- .../netapp/models/RelationshipStatus.java | 28 +- .../netapp/models/RelocateVolumeRequest.java | 14 +- .../netapp/models/Replication.java | 14 +- .../netapp/models/ReplicationObject.java | 34 +- .../netapp/models/ReplicationSchedule.java | 22 +- .../netapp/models/ReplicationStatus.java | 16 +- .../ResourceNameAvailabilityRequest.java | 40 +- .../netapp/models/RestoreStatus.java | 18 +- .../netapp/models/SecurityStyle.java | 18 +- .../netapp/models/ServiceLevel.java | 26 +- .../netapp/models/ServiceSpecification.java | 18 +- .../models/SmbAccessBasedEnumeration.java | 18 +- .../netapp/models/SmbNonBrowsable.java | 18 +- .../netapp/models/Snapshot.java | 91 +- .../netapp/models/SnapshotPolicies.java | 46 +- .../netapp/models/SnapshotPoliciesList.java | 14 +- .../netapp/models/SnapshotPolicy.java | 182 +- .../netapp/models/SnapshotPolicyPatch.java | 48 +- .../models/SnapshotPolicyVolumeList.java | 8 +- .../netapp/models/SnapshotRestoreFiles.java | 23 +- .../netapp/models/Snapshots.java | 148 +- .../netapp/models/SnapshotsList.java | 14 +- .../netapp/models/SubscriptionQuotaItem.java | 18 +- .../models/SubscriptionQuotaItemList.java | 14 +- .../netapp/models/SubvolumeInfo.java | 157 +- .../netapp/models/SubvolumeModel.java | 68 +- .../netapp/models/SubvolumePatchRequest.java | 36 +- .../netapp/models/Subvolumes.java | 119 +- .../netapp/models/SubvolumesList.java | 18 +- .../resourcemanager/netapp/models/Type.java | 26 +- .../UpdateNetworkSiblingSetRequest.java | 93 +- .../netapp/models/UserAssignedIdentity.java | 14 +- .../resourcemanager/netapp/models/Volume.java | 1156 ++-- .../netapp/models/VolumeBackups.java | 22 +- .../netapp/models/VolumeGroup.java | 18 +- .../netapp/models/VolumeGroupDetails.java | 70 +- .../netapp/models/VolumeGroupList.java | 14 +- .../netapp/models/VolumeGroupMetadata.java | 64 +- .../models/VolumeGroupVolumeProperties.java | 404 +- .../netapp/models/VolumeGroups.java | 70 +- .../netapp/models/VolumeList.java | 18 +- .../netapp/models/VolumePatch.java | 152 +- .../VolumePatchPropertiesDataProtection.java | 14 +- .../VolumePatchPropertiesExportPolicy.java | 14 +- .../VolumePropertiesDataProtection.java | 22 +- .../models/VolumePropertiesExportPolicy.java | 14 +- .../netapp/models/VolumeQuotaRule.java | 149 +- .../netapp/models/VolumeQuotaRulePatch.java | 38 +- .../netapp/models/VolumeQuotaRules.java | 100 +- .../netapp/models/VolumeQuotaRulesList.java | 14 +- .../models/VolumeRelocationProperties.java | 16 +- .../netapp/models/VolumeRevert.java | 14 +- .../models/VolumeSnapshotProperties.java | 14 +- .../VolumeStorageToNetworkProximity.java | 26 +- .../netapp/models/Volumes.java | 421 +- .../netapp/models/WeeklySchedule.java | 30 +- .../netapp/models/package-info.java | 4 +- .../resourcemanager/netapp/package-info.java | 4 +- .../src/main/java/module-info.java | 8 +- .../AccountsCreateOrUpdateSamples.java | 42 +- .../generated/AccountsDeleteSamples.java | 9 +- .../AccountsGetByResourceGroupSamples.java | 9 +- .../AccountsListByResourceGroupSamples.java | 9 +- .../netapp/generated/AccountsListSamples.java | 9 +- .../AccountsRenewCredentialsSamples.java | 9 +- .../generated/AccountsUpdateSamples.java | 16 +- .../BackupPoliciesCreateSamples.java | 22 +- .../BackupPoliciesDeleteSamples.java | 14 +- .../generated/BackupPoliciesGetSamples.java | 14 +- .../generated/BackupPoliciesListSamples.java | 9 +- .../BackupPoliciesUpdateSamples.java | 25 +- .../BackupsGetVolumeRestoreStatusSamples.java | 15 +- ...ourceCheckFilePathAvailabilitySamples.java | 22 +- ...pResourceCheckNameAvailabilitySamples.java | 22 +- ...ResourceCheckQuotaAvailabilitySamples.java | 22 +- ...ResourceQueryNetworkSiblingSetSamples.java | 22 +- .../NetAppResourceQueryRegionInfoSamples.java | 9 +- .../NetAppResourceQuotaLimitsGetSamples.java | 14 +- .../NetAppResourceQuotaLimitsListSamples.java | 9 +- ...esourceUpdateNetworkSiblingSetSamples.java | 26 +- .../generated/OperationsListSamples.java | 9 +- .../generated/PoolsCreateOrUpdateSamples.java | 20 +- .../netapp/generated/PoolsDeleteSamples.java | 9 +- .../netapp/generated/PoolsGetSamples.java | 9 +- .../netapp/generated/PoolsListSamples.java | 9 +- .../netapp/generated/PoolsUpdateSamples.java | 13 +- .../SnapshotPoliciesCreateSamples.java | 17 +- .../SnapshotPoliciesDeleteSamples.java | 14 +- .../generated/SnapshotPoliciesGetSamples.java | 14 +- .../SnapshotPoliciesListSamples.java | 9 +- .../SnapshotPoliciesListVolumesSamples.java | 15 +- .../SnapshotPoliciesUpdateSamples.java | 23 +- .../generated/SnapshotsCreateSamples.java | 17 +- .../generated/SnapshotsDeleteSamples.java | 14 +- .../netapp/generated/SnapshotsGetSamples.java | 14 +- .../generated/SnapshotsListSamples.java | 9 +- .../SnapshotsRestoreFilesSamples.java | 23 +- .../generated/SnapshotsUpdateSamples.java | 23 +- .../generated/SubvolumesCreateSamples.java | 17 +- .../generated/SubvolumesDeleteSamples.java | 14 +- .../SubvolumesGetMetadataSamples.java | 14 +- .../generated/SubvolumesGetSamples.java | 14 +- .../SubvolumesListByVolumeSamples.java | 9 +- .../generated/SubvolumesUpdateSamples.java | 17 +- .../generated/VolumeGroupsCreateSamples.java | 869 +-- .../generated/VolumeGroupsDeleteSamples.java | 9 +- .../generated/VolumeGroupsGetSamples.java | 14 +- ...olumeGroupsListByNetAppAccountSamples.java | 14 +- .../VolumeQuotaRulesCreateSamples.java | 21 +- .../VolumeQuotaRulesDeleteSamples.java | 14 +- .../generated/VolumeQuotaRulesGetSamples.java | 15 +- .../VolumeQuotaRulesListByVolumeSamples.java | 14 +- .../VolumeQuotaRulesUpdateSamples.java | 17 +- .../VolumesAuthorizeReplicationSamples.java | 25 +- .../VolumesBreakFileLocksSamples.java | 21 +- .../VolumesBreakReplicationSamples.java | 20 +- .../VolumesCreateOrUpdateSamples.java | 21 +- .../VolumesDeleteReplicationSamples.java | 9 +- .../generated/VolumesDeleteSamples.java | 9 +- .../VolumesFinalizeRelocationSamples.java | 9 +- .../netapp/generated/VolumesGetSamples.java | 9 +- ...sListGetGroupIdListForLdapUserSamples.java | 20 +- .../VolumesListReplicationsSamples.java | 9 +- .../netapp/generated/VolumesListSamples.java | 9 +- .../generated/VolumesPoolChangeSamples.java | 24 +- ...olumesPopulateAvailabilityZoneSamples.java | 14 +- ...VolumesReInitializeReplicationSamples.java | 15 +- .../VolumesReestablishReplicationSamples.java | 25 +- .../generated/VolumesRelocateSamples.java | 15 +- .../VolumesReplicationStatusSamples.java | 14 +- .../VolumesResetCifsPasswordSamples.java | 9 +- .../VolumesResyncReplicationSamples.java | 9 +- .../VolumesRevertRelocationSamples.java | 9 +- .../generated/VolumesRevertSamples.java | 23 +- .../generated/VolumesUpdateSamples.java | 16 +- .../AccountsRenewCredentialsMockTests.java | 61 - .../generated/AuthorizeRequestTests.java | 25 - .../BackupPoliciesCreateMockTests.java | 96 - .../BackupPoliciesDeleteMockTests.java | 61 - ...ackupPoliciesGetWithResponseMockTests.java | 75 - .../BackupPoliciesListMockTests.java | 73 - .../generated/BackupPoliciesListTests.java | 65 - .../generated/BackupPolicyInnerTests.java | 59 - .../generated/BackupPolicyPatchTests.java | 59 - .../BackupPolicyPropertiesTests.java | 39 - ...umeRestoreStatusWithResponseMockTests.java | 68 - .../generated/BreakFileLocksRequestTests.java | 30 - .../BreakReplicationRequestTests.java | 25 - .../generated/CapacityPoolInnerTests.java | 65 - .../generated/CapacityPoolListTests.java | 90 - .../generated/CapacityPoolPatchTests.java | 57 - .../CheckAvailabilityResponseInnerTests.java | 36 - .../netapp/generated/DailyScheduleTests.java | 39 - .../netapp/generated/DimensionTests.java | 29 - .../generated/EncryptionIdentityTests.java | 27 - .../generated/ExportPolicyRuleTests.java | 73 - .../FilePathAvailabilityRequestTests.java | 29 - ...GetGroupIdListForLdapUserRequestTests.java | 25 - ...upIdListForLdapUserResponseInnerTests.java | 31 - .../netapp/generated/HourlyScheduleTests.java | 35 - .../generated/LdapSearchScopeOptTests.java | 32 - .../generated/ListReplicationsTests.java | 57 - .../generated/LogSpecificationTests.java | 29 - .../ManagedServiceIdentityTests.java | 56 - .../generated/MetricSpecificationTests.java | 92 - .../generated/MonthlyScheduleTests.java | 42 - .../generated/MountTargetPropertiesTests.java | 31 - ...ceQuotaLimitsGetWithResponseMockTests.java | 67 - ...etAppResourceQuotaLimitsListMockTests.java | 65 - ...PathAvailabilityWithResponseMockTests.java | 76 - ...NameAvailabilityWithResponseMockTests.java | 80 - ...uotaAvailabilityWithResponseMockTests.java | 80 - ...etworkSiblingSetWithResponseMockTests.java | 79 - ...sQueryRegionInfoWithResponseMockTests.java | 73 - ...urcesUpdateNetworkSiblingSetMockTests.java | 82 - .../NetworkSiblingSetInnerTests.java | 45 - .../netapp/generated/NicInfoTests.java | 28 - .../generated/OperationDisplayTests.java | 39 - .../netapp/generated/OperationInnerTests.java | 218 - .../generated/OperationListResultTests.java | 101 - .../generated/OperationPropertiesTests.java | 197 - .../generated/OperationsListMockTests.java | 160 - .../generated/PoolChangeRequestTests.java | 25 - .../generated/PoolPatchPropertiesTests.java | 33 - .../netapp/generated/PoolPropertiesTests.java | 45 - .../PoolsCreateOrUpdateMockTests.java | 101 - .../PoolsGetWithResponseMockTests.java | 79 - .../netapp/generated/PoolsListMockTests.java | 77 - .../QueryNetworkSiblingSetRequestTests.java | 30 - .../QuotaAvailabilityRequestTests.java | 41 - .../ReestablishReplicationRequestTests.java | 25 - ...InfoAvailabilityZoneMappingsItemTests.java | 30 - .../generated/RegionInfoInnerTests.java | 51 - .../generated/ReplicationInnerTests.java | 41 - .../generated/ReplicationObjectTests.java | 41 - .../ReplicationStatusInnerTests.java | 44 - .../ResourceNameAvailabilityRequestTests.java | 43 - .../generated/RestoreStatusInnerTests.java | 25 - .../generated/ServiceSpecificationTests.java | 137 - .../netapp/generated/SnapshotInnerTests.java | 28 - ...otPoliciesCreateWithResponseMockTests.java | 136 - .../SnapshotPoliciesDeleteMockTests.java | 61 - ...pshotPoliciesGetWithResponseMockTests.java | 89 - .../SnapshotPoliciesListMockTests.java | 87 - .../generated/SnapshotPoliciesListTests.java | 222 - .../generated/SnapshotPolicyInnerTests.java | 113 - .../generated/SnapshotPolicyPatchTests.java | 122 - .../SnapshotPolicyPropertiesTests.java | 93 - .../generated/SnapshotPropertiesTests.java | 25 - .../generated/SnapshotRestoreFilesTests.java | 33 - .../generated/SnapshotsDeleteMockTests.java | 64 - .../SnapshotsGetWithResponseMockTests.java | 71 - .../generated/SnapshotsListMockTests.java | 68 - .../netapp/generated/SnapshotsListTests.java | 31 - .../SnapshotsRestoreFilesMockTests.java | 74 - .../generated/SnapshotsUpdateMockTests.java | 76 - .../SubscriptionQuotaItemInnerTests.java | 25 - .../SubscriptionQuotaItemListTests.java | 35 - .../SubscriptionQuotaItemPropertiesTests.java | 24 - .../generated/SubvolumeInfoInnerTests.java | 36 - .../generated/SubvolumeModelInnerTests.java | 58 - .../SubvolumeModelPropertiesTests.java | 58 - .../generated/SubvolumePatchParamsTests.java | 27 - .../generated/SubvolumePatchRequestTests.java | 30 - .../generated/SubvolumePropertiesTests.java | 36 - .../generated/SubvolumesCreateMockTests.java | 76 - .../generated/SubvolumesDeleteMockTests.java | 61 - .../SubvolumesGetMetadataMockTests.java | 78 - .../SubvolumesGetWithResponseMockTests.java | 72 - .../SubvolumesListByVolumeMockTests.java | 72 - .../netapp/generated/SubvolumesListTests.java | 45 - .../UpdateNetworkSiblingSetRequestTests.java | 40 - .../generated/UserAssignedIdentityTests.java | 25 - .../netapp/generated/VolumeBackupsTests.java | 32 - .../VolumeGroupsDeleteMockTests.java | 63 - ...umePatchPropertiesDataProtectionTests.java | 30 - ...olumePatchPropertiesExportPolicyTests.java | 111 - .../generated/VolumePatchPropertiesTests.java | 132 - .../netapp/generated/VolumePatchTests.java | 200 - .../VolumePropertiesDataProtectionTests.java | 52 - .../VolumePropertiesExportPolicyTests.java | 95 - .../generated/VolumeQuotaRuleInnerTests.java | 57 - .../generated/VolumeQuotaRulePatchTests.java | 63 - .../VolumeQuotaRulesCreateMockTests.java | 104 - .../VolumeQuotaRulesDeleteMockTests.java | 63 - ...umeQuotaRulesGetWithResponseMockTests.java | 76 - ...VolumeQuotaRulesListByVolumeMockTests.java | 73 - .../generated/VolumeQuotaRulesListTests.java | 72 - .../VolumeQuotaRulesPropertiesTests.java | 37 - .../VolumeRelocationPropertiesTests.java | 27 - .../netapp/generated/VolumeRevertTests.java | 24 - .../VolumeSnapshotPropertiesTests.java | 25 - .../VolumesAuthorizeReplicationMockTests.java | 70 - .../VolumesBreakFileLocksMockTests.java | 72 - .../VolumesBreakReplicationMockTests.java | 70 - .../VolumesDeleteReplicationMockTests.java | 61 - .../VolumesFinalizeRelocationMockTests.java | 63 - ...istGetGroupIdListForLdapUserMockTests.java | 75 - .../VolumesListReplicationsMockTests.java | 76 - .../generated/VolumesPoolChangeMockTests.java | 70 - ...lumesReInitializeReplicationMockTests.java | 64 - ...eplicationStatusWithResponseMockTests.java | 77 - .../VolumesResetCifsPasswordMockTests.java | 64 - .../VolumesResyncReplicationMockTests.java | 63 - .../generated/VolumesRevertMockTests.java | 70 - .../VolumesRevertRelocationMockTests.java | 63 - .../netapp/generated/WeeklyScheduleTests.java | 42 - 445 files changed, 13715 insertions(+), 27046 deletions(-) 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/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/BackupsGetVolumeRestoreStatusWithResponseMockTests.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/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/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/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/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/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/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/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/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/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/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/VolumesResetCifsPasswordMockTests.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 da3a69dce87d..1bd6138efdcb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2023-11-27) + +- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2023-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index e1d51d64b6f8..754fa4227d85 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-netapp-2023-05-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-netapp-2023-07. 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 @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-netapp - 1.0.0 + 1.1.0-beta.1 ``` [//]: # ({x-version-update-end}) @@ -74,6 +74,13 @@ See [API design][design] for general introduction on design and key concepts on ## Examples +```java +account = netAppFilesManager.accounts() + .define(accountName) + .withRegion(REGION) + .withExistingResourceGroup(resourceGroupName) + .create(); +``` [Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md) diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md index 214c8e3c515c..a7cee34a30c1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md +++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md @@ -121,14 +121,16 @@ import com.azure.resourcemanager.netapp.models.ActiveDirectory; import java.util.Arrays; -/** Samples for Accounts CreateOrUpdate. */ +/** + * Samples for Accounts CreateOrUpdate. + */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -136,35 +138,15 @@ public final class AccountsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json */ /** * Sample code: Accounts_CreateOrUpdateWithActiveDirectory. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void accountsCreateOrUpdateWithActiveDirectory( - com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .accounts() - .define("account1") - .withRegion("eastus") - .withExistingResourceGroup("myRG") - .withActiveDirectories( - Arrays - .asList( - new ActiveDirectory() - .withUsername("ad_user_name") - .withPassword("fakeTokenPlaceholder") - .withDomain("10.10.10.3") - .withDns("10.10.10.3, 10.10.10.4") - .withSmbServerName("SMBServer") - .withOrganizationalUnit("OU=Engineering") - .withSite("SiteName") - .withAesEncryption(true) - .withLdapSigning(false) - .withLdapOverTls(false))) - .create(); + * + * @param manager Entry point to NetAppFilesManager. + */ + public static void accountsCreateOrUpdateWithActiveDirectory(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.accounts().define("account1").withRegion("eastus").withExistingResourceGroup("myRG").withActiveDirectories(Arrays.asList(new ActiveDirectory().withUsername("ad_user_name").withPassword("fakeTokenPlaceholder").withDomain("10.10.10.3").withDns("10.10.10.3, 10.10.10.4").withSmbServerName("SMBServer").withOrganizationalUnit("OU=Engineering").withSite("SiteName").withAesEncryption(true).withLdapSigning(false).withLdapOverTls(false))).create(); } } ``` @@ -172,14 +154,16 @@ public final class AccountsCreateOrUpdateSamples { ### Accounts_Delete ```java -/** Samples for Accounts Delete. */ +/** + * Samples for Accounts Delete. + */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -191,14 +175,16 @@ public final class AccountsDeleteSamples { ### Accounts_GetByResourceGroup ```java -/** Samples for Accounts GetByResourceGroup. */ +/** + * Samples for Accounts GetByResourceGroup. + */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json */ /** * Sample code: Accounts_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -210,14 +196,16 @@ public final class AccountsGetByResourceGroupSamples { ### Accounts_List ```java -/** Samples for Accounts List. */ +/** + * Samples for Accounts List. + */ public final class AccountsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -229,14 +217,16 @@ public final class AccountsListSamples { ### Accounts_ListByResourceGroup ```java -/** Samples for Accounts ListByResourceGroup. */ +/** + * Samples for Accounts ListByResourceGroup. + */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -248,14 +238,16 @@ public final class AccountsListByResourceGroupSamples { ### Accounts_RenewCredentials ```java -/** Samples for Accounts RenewCredentials. */ +/** + * Samples for Accounts RenewCredentials. + */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json */ /** * Sample code: Accounts_RenewCredentials. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsRenewCredentials(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -271,22 +263,20 @@ import com.azure.resourcemanager.netapp.models.NetAppAccount; import java.util.HashMap; import java.util.Map; -/** Samples for Accounts Update. */ +/** + * Samples for Accounts Update. + */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json */ /** * Sample code: Accounts_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - NetAppAccount resource = - manager - .accounts() - .getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE) - .getValue(); + NetAppAccount resource = manager.accounts().getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE).getValue(); resource.update().withTags(mapOf("Tag1", "Value1")).apply(); } @@ -307,27 +297,20 @@ public final class AccountsUpdateSamples { ### BackupPolicies_Create ```java -/** Samples for BackupPolicies Create. */ +/** + * Samples for BackupPolicies Create. + */ public final class BackupPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void backupPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .backupPolicies() - .define("backupPolicyName") - .withRegion("westus") - .withExistingNetAppAccount("myRG", "account1") - .withDailyBackupsToKeep(10) - .withWeeklyBackupsToKeep(10) - .withMonthlyBackupsToKeep(10) - .withEnabled(true) - .create(); + manager.backupPolicies().define("backupPolicyName").withRegion("westus").withExistingNetAppAccount("myRG", "account1").withDailyBackupsToKeep(10).withWeeklyBackupsToKeep(10).withMonthlyBackupsToKeep(10).withEnabled(true).create(); } } ``` @@ -335,20 +318,20 @@ public final class BackupPoliciesCreateSamples { ### BackupPolicies_Delete ```java -/** Samples for BackupPolicies Delete. */ +/** + * Samples for BackupPolicies Delete. + */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json */ /** * Sample code: Backups_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void backupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .backupPolicies() - .delete("resourceGroup", "accountName", "backupPolicyName", com.azure.core.util.Context.NONE); + manager.backupPolicies().delete("resourceGroup", "accountName", "backupPolicyName", com.azure.core.util.Context.NONE); } } ``` @@ -356,20 +339,20 @@ public final class BackupPoliciesDeleteSamples { ### BackupPolicies_Get ```java -/** Samples for BackupPolicies Get. */ +/** + * Samples for BackupPolicies Get. + */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json */ /** * Sample code: Backups_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void backupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .backupPolicies() - .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE); + manager.backupPolicies().getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE); } } ``` @@ -377,14 +360,16 @@ public final class BackupPoliciesGetSamples { ### BackupPolicies_List ```java -/** Samples for BackupPolicies List. */ +/** + * Samples for BackupPolicies List. + */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json */ /** * Sample code: Backups_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void backupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -398,29 +383,21 @@ public final class BackupPoliciesListSamples { ```java import com.azure.resourcemanager.netapp.models.BackupPolicy; -/** Samples for BackupPolicies Update. */ +/** + * Samples for BackupPolicies Update. + */ public final class BackupPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void backupPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - BackupPolicy resource = - manager - .backupPolicies() - .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withDailyBackupsToKeep(5) - .withWeeklyBackupsToKeep(10) - .withMonthlyBackupsToKeep(10) - .withEnabled(false) - .apply(); + BackupPolicy resource = manager.backupPolicies().getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE).getValue(); + resource.update().withDailyBackupsToKeep(5).withWeeklyBackupsToKeep(10).withMonthlyBackupsToKeep(10).withEnabled(false).apply(); } } ``` @@ -428,21 +405,20 @@ public final class BackupPoliciesUpdateSamples { ### Backups_GetVolumeRestoreStatus ```java -/** Samples for Backups GetVolumeRestoreStatus. */ +/** + * Samples for Backups GetVolumeRestoreStatus. + */ public final class BackupsGetVolumeRestoreStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .backups() - .getVolumeRestoreStatusWithResponse( - "myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + manager.backups().getVolumeRestoreStatusWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); } } ``` @@ -452,26 +428,20 @@ public final class BackupsGetVolumeRestoreStatusSamples { ```java import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; -/** Samples for NetAppResource CheckFilePathAvailability. */ +/** + * Samples for NetAppResource CheckFilePathAvailability. + */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .checkFilePathAvailabilityWithResponse( - "eastus", - new FilePathAvailabilityRequest() - .withName("my-exact-filepth") - .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), - com.azure.core.util.Context.NONE); + manager.netAppResources().checkFilePathAvailabilityWithResponse("eastus", new FilePathAvailabilityRequest().withName("my-exact-filepth").withSubnetId("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), com.azure.core.util.Context.NONE); } } ``` @@ -481,27 +451,22 @@ public final class NetAppResourceCheckFilePathAvailabilitySamples { ```java import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes; import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; +import java.util.stream.Collectors; -/** Samples for NetAppResource CheckNameAvailability. */ +/** + * Samples for NetAppResource CheckNameAvailability. + */ public final class NetAppResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void checkNameAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .checkNameAvailabilityWithResponse( - "eastus", - new ResourceNameAvailabilityRequest() - .withName("accName") - .withType(CheckNameResourceTypes.fromString("netAppAccount")) - .withResourceGroup("myRG"), - com.azure.core.util.Context.NONE); + manager.netAppResources().checkNameAvailabilityWithResponse("eastus", new ResourceNameAvailabilityRequest().withName("accName").withType(CheckNameResourceTypes.fromString("netAppAccount")).withResourceGroup("myRG"), com.azure.core.util.Context.NONE); } } ``` @@ -511,27 +476,22 @@ public final class NetAppResourceCheckNameAvailabilitySamples { ```java import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes; import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; +import java.util.stream.Collectors; -/** Samples for NetAppResource CheckQuotaAvailability. */ +/** + * Samples for NetAppResource CheckQuotaAvailability. + */ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void checkQuotaAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .checkQuotaAvailabilityWithResponse( - "eastus", - new QuotaAvailabilityRequest() - .withName("resource1") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS) - .withResourceGroup("myRG"), - com.azure.core.util.Context.NONE); + manager.netAppResources().checkQuotaAvailabilityWithResponse("eastus", new QuotaAvailabilityRequest().withName("resource1").withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS).withResourceGroup("myRG"), com.azure.core.util.Context.NONE); } } ``` @@ -541,26 +501,20 @@ public final class NetAppResourceCheckQuotaAvailabilitySamples { ```java import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest; -/** Samples for NetAppResource QueryNetworkSiblingSet. */ +/** + * Samples for NetAppResource QueryNetworkSiblingSet. + */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void networkSiblingSetQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .queryNetworkSiblingSetWithResponse( - "eastus", - new QueryNetworkSiblingSetRequest() - .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333") - .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), - com.azure.core.util.Context.NONE); + manager.netAppResources().queryNetworkSiblingSetWithResponse("eastus", new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333").withSubnetId("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), com.azure.core.util.Context.NONE); } } ``` @@ -568,14 +522,16 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples { ### NetAppResource_QueryRegionInfo ```java -/** Samples for NetAppResource QueryRegionInfo. */ +/** + * Samples for NetAppResource QueryRegionInfo. + */ public final class NetAppResourceQueryRegionInfoSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json */ /** * Sample code: RegionInfo_Query. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void regionInfoQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -589,29 +545,22 @@ public final class NetAppResourceQueryRegionInfoSamples { ```java import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; +import java.util.stream.Collectors; -/** Samples for NetAppResource UpdateNetworkSiblingSet. */ +/** + * Samples for NetAppResource UpdateNetworkSiblingSet. + */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void networkFeaturesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .updateNetworkSiblingSet( - "eastus", - new UpdateNetworkSiblingSetRequest() - .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333") - .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet") - .withNetworkSiblingSetStateId("12345_44420.8001578125") - .withNetworkFeatures(NetworkFeatures.STANDARD), - com.azure.core.util.Context.NONE); + manager.netAppResources().updateNetworkSiblingSet("eastus", new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333").withSubnetId("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet").withNetworkSiblingSetStateId("12345_44420.8001578125").withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE); } } ``` @@ -619,20 +568,20 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples { ### NetAppResourceQuotaLimits_Get ```java -/** Samples for NetAppResourceQuotaLimits Get. */ +/** + * Samples for NetAppResourceQuotaLimits Get. + */ public final class NetAppResourceQuotaLimitsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json */ /** * Sample code: QuotaLimits. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResourceQuotaLimits() - .getWithResponse("eastus", "totalCoolAccessVolumesPerSubscription", com.azure.core.util.Context.NONE); + manager.netAppResourceQuotaLimits().getWithResponse("eastus", "totalCoolAccessVolumesPerSubscription", com.azure.core.util.Context.NONE); } } ``` @@ -640,14 +589,16 @@ public final class NetAppResourceQuotaLimitsGetSamples { ### NetAppResourceQuotaLimits_List ```java -/** Samples for NetAppResourceQuotaLimits List. */ +/** + * Samples for NetAppResourceQuotaLimits List. + */ public final class NetAppResourceQuotaLimitsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json */ /** * Sample code: QuotaLimits. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -659,14 +610,16 @@ public final class NetAppResourceQuotaLimitsListSamples { ### Operations_List ```java -/** Samples for Operations List. */ +/** + * Samples for Operations List. + */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json */ /** * Sample code: OperationList. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void operationList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -680,27 +633,22 @@ public final class OperationsListSamples { ```java import com.azure.resourcemanager.netapp.models.QosType; import com.azure.resourcemanager.netapp.models.ServiceLevel; +import java.util.stream.Collectors; -/** Samples for Pools CreateOrUpdate. */ +/** + * Samples for Pools CreateOrUpdate. + */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .pools() - .define("pool1") - .withRegion("eastus") - .withExistingNetAppAccount("myRG", "account1") - .withSize(4398046511104L) - .withServiceLevel(ServiceLevel.PREMIUM) - .withQosType(QosType.AUTO) - .create(); + manager.pools().define("pool1").withRegion("eastus").withExistingNetAppAccount("myRG", "account1").withSize(4398046511104L).withServiceLevel(ServiceLevel.PREMIUM).withQosType(QosType.AUTO).create(); } } ``` @@ -708,14 +656,16 @@ public final class PoolsCreateOrUpdateSamples { ### Pools_Delete ```java -/** Samples for Pools Delete. */ +/** + * Samples for Pools Delete. + */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json */ /** * Sample code: Pools_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void poolsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -727,14 +677,16 @@ public final class PoolsDeleteSamples { ### Pools_Get ```java -/** Samples for Pools Get. */ +/** + * Samples for Pools Get. + */ public final class PoolsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json */ /** * Sample code: Pools_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void poolsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -746,14 +698,16 @@ public final class PoolsGetSamples { ### Pools_List ```java -/** Samples for Pools List. */ +/** + * Samples for Pools List. + */ public final class PoolsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json */ /** * Sample code: Pools_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void poolsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -767,19 +721,20 @@ public final class PoolsListSamples { ```java import com.azure.resourcemanager.netapp.models.CapacityPool; -/** Samples for Pools Update. */ +/** + * Samples for Pools Update. + */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json */ /** * Sample code: Pools_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - CapacityPool resource = - manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue(); + CapacityPool resource = manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue(); resource.update().apply(); } } @@ -793,30 +748,20 @@ import com.azure.resourcemanager.netapp.models.HourlySchedule; import com.azure.resourcemanager.netapp.models.MonthlySchedule; import com.azure.resourcemanager.netapp.models.WeeklySchedule; -/** Samples for SnapshotPolicies Create. */ +/** + * Samples for SnapshotPolicies Create. + */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshotPolicies() - .define("snapshotPolicyName") - .withRegion("eastus") - .withExistingNetAppAccount("myRG", "account1") - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)) - .withWeeklySchedule( - new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45)) - .withMonthlySchedule( - new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15)) - .withEnabled(true) - .create(); + manager.snapshotPolicies().define("snapshotPolicyName").withRegion("eastus").withExistingNetAppAccount("myRG", "account1").withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50)).withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)).withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45)).withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15)).withEnabled(true).create(); } } ``` @@ -824,20 +769,20 @@ public final class SnapshotPoliciesCreateSamples { ### SnapshotPolicies_Delete ```java -/** Samples for SnapshotPolicies Delete. */ +/** + * Samples for SnapshotPolicies Delete. + */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshotPolicies() - .delete("resourceGroup", "accountName", "snapshotPolicyName", com.azure.core.util.Context.NONE); + manager.snapshotPolicies().delete("resourceGroup", "accountName", "snapshotPolicyName", com.azure.core.util.Context.NONE); } } ``` @@ -845,20 +790,20 @@ public final class SnapshotPoliciesDeleteSamples { ### SnapshotPolicies_Get ```java -/** Samples for SnapshotPolicies Get. */ +/** + * Samples for SnapshotPolicies Get. + */ public final class SnapshotPoliciesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshotPolicies() - .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE); + manager.snapshotPolicies().getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE); } } ``` @@ -866,14 +811,16 @@ public final class SnapshotPoliciesGetSamples { ### SnapshotPolicies_List ```java -/** Samples for SnapshotPolicies List. */ +/** + * Samples for SnapshotPolicies List. + */ public final class SnapshotPoliciesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -885,20 +832,20 @@ public final class SnapshotPoliciesListSamples { ### SnapshotPolicies_ListVolumes ```java -/** Samples for SnapshotPolicies ListVolumes. */ +/** + * Samples for SnapshotPolicies ListVolumes. + */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesListVolumes(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshotPolicies() - .listVolumesWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE); + manager.snapshotPolicies().listVolumesWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE); } } ``` @@ -912,32 +859,21 @@ import com.azure.resourcemanager.netapp.models.MonthlySchedule; import com.azure.resourcemanager.netapp.models.SnapshotPolicy; import com.azure.resourcemanager.netapp.models.WeeklySchedule; -/** Samples for SnapshotPolicies Update. */ +/** + * Samples for SnapshotPolicies Update. + */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - SnapshotPolicy resource = - manager - .snapshotPolicies() - .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)) - .withWeeklySchedule( - new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45)) - .withMonthlySchedule( - new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15)) - .withEnabled(true) - .apply(); + SnapshotPolicy resource = manager.snapshotPolicies().getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE).getValue(); + resource.update().withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50)).withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)).withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45)).withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15)).withEnabled(true).apply(); } } ``` @@ -945,23 +881,20 @@ public final class SnapshotPoliciesUpdateSamples { ### Snapshots_Create ```java -/** Samples for Snapshots Create. */ +/** + * Samples for Snapshots Create. + */ public final class SnapshotsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshots() - .define("snapshot1") - .withRegion("eastus") - .withExistingVolume("myRG", "account1", "pool1", "volume1") - .create(); + manager.snapshots().define("snapshot1").withRegion("eastus").withExistingVolume("myRG", "account1", "pool1", "volume1").create(); } } ``` @@ -969,20 +902,20 @@ public final class SnapshotsCreateSamples { ### Snapshots_Delete ```java -/** Samples for Snapshots Delete. */ +/** + * Samples for Snapshots Delete. + */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshots() - .delete("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); + manager.snapshots().delete("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); } } ``` @@ -990,20 +923,20 @@ public final class SnapshotsDeleteSamples { ### Snapshots_Get ```java -/** Samples for Snapshots Get. */ +/** + * Samples for Snapshots Get. + */ public final class SnapshotsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshots() - .getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); + manager.snapshots().getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); } } ``` @@ -1011,14 +944,16 @@ public final class SnapshotsGetSamples { ### Snapshots_List ```java -/** Samples for Snapshots List. */ +/** + * Samples for Snapshots List. + */ public final class SnapshotsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json */ /** * Sample code: Snapshots_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -1033,27 +968,20 @@ public final class SnapshotsListSamples { import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; import java.util.Arrays; -/** Samples for Snapshots RestoreFiles. */ +/** + * Samples for Snapshots RestoreFiles. + */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json */ /** * Sample code: Snapshots_SingleFileRestore. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsSingleFileRestore(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshots() - .restoreFiles( - "myRG", - "account1", - "pool1", - "volume1", - "snapshot1", - new SnapshotRestoreFiles().withFilePaths(Arrays.asList("/dir1/customer1.db", "/dir1/customer2.db")), - com.azure.core.util.Context.NONE); + manager.snapshots().restoreFiles("myRG", "account1", "pool1", "volume1", "snapshot1", new SnapshotRestoreFiles().withFilePaths(Arrays.asList("/dir1/customer1.db", "/dir1/customer2.db")), com.azure.core.util.Context.NONE); } } ``` @@ -1065,29 +993,20 @@ import com.azure.core.management.serializer.SerializerFactory; import com.azure.core.util.serializer.SerializerEncoding; import java.io.IOException; -/** Samples for Snapshots Update. */ +/** + * Samples for Snapshots Update. + */ public final class SnapshotsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json */ /** * Sample code: Snapshots_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) throws IOException { - manager - .snapshots() - .update( - "myRG", - "account1", - "pool1", - "volume1", - "snapshot1", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize("{}", Object.class, SerializerEncoding.JSON), - com.azure.core.util.Context.NONE); + manager.snapshots().update("myRG", "account1", "pool1", "volume1", "snapshot1", SerializerFactory.createDefaultManagementSerializerAdapter().deserialize("{}", Object.class, SerializerEncoding.JSON), com.azure.core.util.Context.NONE); } } ``` @@ -1095,23 +1014,20 @@ public final class SnapshotsUpdateSamples { ### Subvolumes_Create ```java -/** Samples for Subvolumes Create. */ +/** + * Samples for Subvolumes Create. + */ public final class SubvolumesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json */ /** * Sample code: Subvolumes_Create. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .subvolumes() - .define("subvolume1") - .withExistingVolume("myRG", "account1", "pool1", "volume1") - .withPath("/subvolumePath") - .create(); + manager.subvolumes().define("subvolume1").withExistingVolume("myRG", "account1", "pool1", "volume1").withPath("/subvolumePath").create(); } } ``` @@ -1119,20 +1035,20 @@ public final class SubvolumesCreateSamples { ### Subvolumes_Delete ```java -/** Samples for Subvolumes Delete. */ +/** + * Samples for Subvolumes Delete. + */ public final class SubvolumesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json */ /** * Sample code: Subvolumes_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .subvolumes() - .delete("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE); + manager.subvolumes().delete("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE); } } ``` @@ -1140,20 +1056,20 @@ public final class SubvolumesDeleteSamples { ### Subvolumes_Get ```java -/** Samples for Subvolumes Get. */ +/** + * Samples for Subvolumes Get. + */ public final class SubvolumesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json */ /** * Sample code: Subvolumes_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .subvolumes() - .getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE); + manager.subvolumes().getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE); } } ``` @@ -1161,20 +1077,20 @@ public final class SubvolumesGetSamples { ### Subvolumes_GetMetadata ```java -/** Samples for Subvolumes GetMetadata. */ +/** + * Samples for Subvolumes GetMetadata. + */ public final class SubvolumesGetMetadataSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json */ /** * Sample code: Subvolumes_Metadata. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesMetadata(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .subvolumes() - .getMetadata("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE); + manager.subvolumes().getMetadata("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE); } } ``` @@ -1182,14 +1098,16 @@ public final class SubvolumesGetMetadataSamples { ### Subvolumes_ListByVolume ```java -/** Samples for Subvolumes ListByVolume. */ +/** + * Samples for Subvolumes ListByVolume. + */ public final class SubvolumesListByVolumeSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json */ /** * Sample code: Subvolumes_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -1203,22 +1121,20 @@ public final class SubvolumesListByVolumeSamples { ```java import com.azure.resourcemanager.netapp.models.SubvolumeInfo; -/** Samples for Subvolumes Update. */ +/** + * Samples for Subvolumes Update. + */ public final class SubvolumesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json */ /** * Sample code: Subvolumes_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - SubvolumeInfo resource = - manager - .subvolumes() - .getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE) - .getValue(); + SubvolumeInfo resource = manager.subvolumes().getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE).getValue(); resource.update().withPath("/subvolumePath").apply(); } } @@ -1234,623 +1150,34 @@ import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties; import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; import java.util.Arrays; +import java.util.stream.Collectors; -/** Samples for VolumeGroups Create. */ +/** + * Samples for VolumeGroups Create. + */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json */ /** * Sample code: VolumeGroups_Create_SapHana. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumeGroups() - .define("group1") - .withExistingNetAppAccount("myRG", "account1") - .withRegion("westus") - .withGroupMetadata( - new VolumeGroupMetadata() - .withGroupDescription("Volume group") - .withApplicationType(ApplicationType.SAP_HANA) - .withApplicationIdentifier("SH9")) - .withVolumes( - Arrays - .asList( - new VolumeGroupVolumeProperties() - .withName("test-data-mnt00001") - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") - .withVolumeSpecName("data"), - new VolumeGroupVolumeProperties() - .withName("test-log-mnt00001") - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") - .withVolumeSpecName("log"), - new VolumeGroupVolumeProperties() - .withName("test-shared") - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") - .withVolumeSpecName("shared"), - new VolumeGroupVolumeProperties() - .withName("test-data-backup") - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") - .withVolumeSpecName("data-backup"), - new VolumeGroupVolumeProperties() - .withName("test-log-backup") - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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/2023-05-01/examples/VolumeGroups_Create_Oracle.json + manager.volumeGroups().define("group1").withExistingNetAppAccount("myRG", "account1").withRegion("westus").withGroupMetadata(new VolumeGroupMetadata().withGroupDescription("Volume group").withApplicationType(ApplicationType.SAP_HANA).withApplicationIdentifier("SH9")).withVolumes(Arrays.asList(new VolumeGroupVolumeProperties().withName("test-data-mnt00001").withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withProximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg").withVolumeSpecName("data"), new VolumeGroupVolumeProperties().withName("test-log-mnt00001").withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withProximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg").withVolumeSpecName("log"), new VolumeGroupVolumeProperties().withName("test-shared").withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withProximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg").withVolumeSpecName("shared"), new VolumeGroupVolumeProperties().withName("test-data-backup").withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withProximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg").withVolumeSpecName("data-backup"), new VolumeGroupVolumeProperties().withName("test-log-backup").withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withProximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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/2023-07-01/examples/VolumeGroups_Create_Oracle.json */ /** * Sample code: VolumeGroups_Create_Oracle. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumeGroups() - .define("group1") - .withExistingNetAppAccount("myRG", "account1") - .withRegion("westus") - .withGroupMetadata( - new VolumeGroupMetadata() - .withGroupDescription("Volume group") - .withApplicationType(ApplicationType.ORACLE) - .withApplicationIdentifier("OR2")) - .withVolumes( - Arrays - .asList( - new VolumeGroupVolumeProperties() - .withName("test-ora-data1") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data1"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data2") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data2"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data3") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data3"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data4") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data4"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data5") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data5"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data6") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data6"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data7") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data7"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data8") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data8"), - new VolumeGroupVolumeProperties() - .withName("test-ora-log") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-log"), - new VolumeGroupVolumeProperties() - .withName("test-ora-log-mirror") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-log-mirror"), - new VolumeGroupVolumeProperties() - .withName("test-ora-binary") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-binary"), - new VolumeGroupVolumeProperties() - .withName("test-ora-backup") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-backup"))) - .create(); + manager.volumeGroups().define("group1").withExistingNetAppAccount("myRG", "account1").withRegion("westus").withGroupMetadata(new VolumeGroupMetadata().withGroupDescription("Volume group").withApplicationType(ApplicationType.ORACLE).withApplicationIdentifier("OR2")).withVolumes(Arrays.asList(new VolumeGroupVolumeProperties().withName("test-ora-data1").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-data1"), new VolumeGroupVolumeProperties().withName("test-ora-data2").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-data2"), new VolumeGroupVolumeProperties().withName("test-ora-data3").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-data3"), new VolumeGroupVolumeProperties().withName("test-ora-data4").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-data4"), new VolumeGroupVolumeProperties().withName("test-ora-data5").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-data5"), new VolumeGroupVolumeProperties().withName("test-ora-data6").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-data6"), new VolumeGroupVolumeProperties().withName("test-ora-data7").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-data7"), new VolumeGroupVolumeProperties().withName("test-ora-data8").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-data8"), new VolumeGroupVolumeProperties().withName("test-ora-log").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-log"), new VolumeGroupVolumeProperties().withName("test-ora-log-mirror").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-log-mirror"), new VolumeGroupVolumeProperties().withName("test-ora-binary").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-binary"), new VolumeGroupVolumeProperties().withName("test-ora-backup").withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L).withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule().withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false).withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false).withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false).withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))).withProtocolTypes(Arrays.asList("NFSv4.1")).withSubnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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").withVolumeSpecName("ora-backup"))).create(); } } ``` @@ -1858,14 +1185,16 @@ public final class VolumeGroupsCreateSamples { ### VolumeGroups_Delete ```java -/** Samples for VolumeGroups Delete. */ +/** + * Samples for VolumeGroups Delete. + */ public final class VolumeGroupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json */ /** * Sample code: VolumeGroups_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -1877,14 +1206,16 @@ public final class VolumeGroupsDeleteSamples { ### VolumeGroups_Get ```java -/** Samples for VolumeGroups Get. */ +/** + * Samples for VolumeGroups Get. + */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsGetSapHana(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -1892,11 +1223,11 @@ public final class VolumeGroupsGetSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json */ /** * Sample code: VolumeGroups_Get_Oracle. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsGetOracle(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -1908,14 +1239,16 @@ public final class VolumeGroupsGetSamples { ### VolumeGroups_ListByNetAppAccount ```java -/** Samples for VolumeGroups ListByNetAppAccount. */ +/** + * Samples for VolumeGroups ListByNetAppAccount. + */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsListOracle(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -1923,11 +1256,11 @@ public final class VolumeGroupsListByNetAppAccountSamples { } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json */ /** * Sample code: VolumeGroups_List_SapHana. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsListSapHana(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -1940,27 +1273,22 @@ public final class VolumeGroupsListByNetAppAccountSamples { ```java import com.azure.resourcemanager.netapp.models.Type; +import java.util.stream.Collectors; -/** Samples for VolumeQuotaRules Create. */ +/** + * Samples for VolumeQuotaRules Create. + */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json */ /** * Sample code: VolumeQuotaRules_Create. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeQuotaRulesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumeQuotaRules() - .define("rule-0004") - .withRegion("westus") - .withExistingVolume("myRG", "account-9957", "pool-5210", "volume-6387") - .withQuotaSizeInKiBs(100005L) - .withQuotaType(Type.INDIVIDUAL_USER_QUOTA) - .withQuotaTarget("1821") - .create(); + manager.volumeQuotaRules().define("rule-0004").withRegion("westus").withExistingVolume("myRG", "account-9957", "pool-5210", "volume-6387").withQuotaSizeInKiBs(100005L).withQuotaType(Type.INDIVIDUAL_USER_QUOTA).withQuotaTarget("1821").create(); } } ``` @@ -1968,20 +1296,20 @@ public final class VolumeQuotaRulesCreateSamples { ### VolumeQuotaRules_Delete ```java -/** Samples for VolumeQuotaRules Delete. */ +/** + * Samples for VolumeQuotaRules Delete. + */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json */ /** * Sample code: VolumeQuotaRules_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeQuotaRulesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumeQuotaRules() - .delete("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", com.azure.core.util.Context.NONE); + manager.volumeQuotaRules().delete("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", com.azure.core.util.Context.NONE); } } ``` @@ -1989,21 +1317,20 @@ public final class VolumeQuotaRulesDeleteSamples { ### VolumeQuotaRules_Get ```java -/** Samples for VolumeQuotaRules Get. */ +/** + * Samples for VolumeQuotaRules Get. + */ public final class VolumeQuotaRulesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json */ /** * Sample code: VolumeQuotaRules_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeQuotaRulesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumeQuotaRules() - .getWithResponse( - "myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", com.azure.core.util.Context.NONE); + manager.volumeQuotaRules().getWithResponse("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", com.azure.core.util.Context.NONE); } } ``` @@ -2011,20 +1338,20 @@ public final class VolumeQuotaRulesGetSamples { ### VolumeQuotaRules_ListByVolume ```java -/** Samples for VolumeQuotaRules ListByVolume. */ +/** + * Samples for VolumeQuotaRules ListByVolume. + */ public final class VolumeQuotaRulesListByVolumeSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json */ /** * Sample code: VolumeQuotaRules_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeQuotaRulesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumeQuotaRules() - .listByVolume("myRG", "account-9957", "pool-5210", "volume-6387", com.azure.core.util.Context.NONE); + manager.volumeQuotaRules().listByVolume("myRG", "account-9957", "pool-5210", "volume-6387", com.azure.core.util.Context.NONE); } } ``` @@ -2034,23 +1361,20 @@ public final class VolumeQuotaRulesListByVolumeSamples { ```java import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; -/** Samples for VolumeQuotaRules Update. */ +/** + * Samples for VolumeQuotaRules Update. + */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json */ /** * Sample code: VolumeQuotaRules_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeQuotaRulesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - VolumeQuotaRule resource = - manager - .volumeQuotaRules() - .getWithResponse( - "myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", com.azure.core.util.Context.NONE) - .getValue(); + VolumeQuotaRule resource = manager.volumeQuotaRules().getWithResponse("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", com.azure.core.util.Context.NONE).getValue(); resource.update().withQuotaSizeInKiBs(100009L).apply(); } } @@ -2061,28 +1385,20 @@ public final class VolumeQuotaRulesUpdateSamples { ```java import com.azure.resourcemanager.netapp.models.AuthorizeRequest; -/** Samples for Volumes AuthorizeReplication. */ +/** + * Samples for Volumes AuthorizeReplication. + */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesAuthorizeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - 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"), - com.azure.core.util.Context.NONE); + 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"), com.azure.core.util.Context.NONE); } } ``` @@ -2092,26 +1408,20 @@ public final class VolumesAuthorizeReplicationSamples { ```java import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; -/** Samples for Volumes BreakFileLocks. */ +/** + * Samples for Volumes BreakFileLocks. + */ public final class VolumesBreakFileLocksSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json */ /** * Sample code: Volumes_BreakFileLocks. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesBreakFileLocks(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .breakFileLocks( - "myRG", - "account1", - "pool1", - "volume1", - new BreakFileLocksRequest().withClientIp("101.102.103.104").withConfirmRunningDisruptiveOperation(true), - com.azure.core.util.Context.NONE); + manager.volumes().breakFileLocks("myRG", "account1", "pool1", "volume1", new BreakFileLocksRequest().withClientIp("101.102.103.104").withConfirmRunningDisruptiveOperation(true), com.azure.core.util.Context.NONE); } } ``` @@ -2121,26 +1431,20 @@ public final class VolumesBreakFileLocksSamples { ```java import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; -/** Samples for Volumes BreakReplication. */ +/** + * Samples for Volumes BreakReplication. + */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesBreakReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .breakReplication( - "myRG", - "account1", - "pool1", - "volume1", - new BreakReplicationRequest().withForceBreakReplication(false), - com.azure.core.util.Context.NONE); + manager.volumes().breakReplication("myRG", "account1", "pool1", "volume1", new BreakReplicationRequest().withForceBreakReplication(false), com.azure.core.util.Context.NONE); } } ``` @@ -2149,29 +1453,22 @@ public final class VolumesBreakReplicationSamples { ```java import com.azure.resourcemanager.netapp.models.ServiceLevel; +import java.util.stream.Collectors; -/** Samples for Volumes CreateOrUpdate. */ +/** + * Samples for Volumes CreateOrUpdate. + */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .define("volume1") - .withRegion("eastus") - .withExistingCapacityPool("myRG", "account1", "pool1") - .withCreationToken("my-unique-file-path") - .withUsageThreshold(107374182400L) - .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") - .withServiceLevel(ServiceLevel.PREMIUM) - .create(); + manager.volumes().define("volume1").withRegion("eastus").withExistingCapacityPool("myRG", "account1", "pool1").withCreationToken("my-unique-file-path").withUsageThreshold(107374182400L).withSubnetId("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3").withServiceLevel(ServiceLevel.PREMIUM).create(); } } ``` @@ -2179,14 +1476,16 @@ public final class VolumesCreateOrUpdateSamples { ### Volumes_Delete ```java -/** Samples for Volumes Delete. */ +/** + * Samples for Volumes Delete. + */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -2198,14 +1497,16 @@ public final class VolumesDeleteSamples { ### Volumes_DeleteReplication ```java -/** Samples for Volumes DeleteReplication. */ +/** + * Samples for Volumes DeleteReplication. + */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesDeleteReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -2217,14 +1518,16 @@ public final class VolumesDeleteReplicationSamples { ### Volumes_FinalizeRelocation ```java -/** Samples for Volumes FinalizeRelocation. */ +/** + * Samples for Volumes FinalizeRelocation. + */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json */ /** * Sample code: Volumes_FinalizeRelocation. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesFinalizeRelocation(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -2236,14 +1539,16 @@ public final class VolumesFinalizeRelocationSamples { ### Volumes_Get ```java -/** Samples for Volumes Get. */ +/** + * Samples for Volumes Get. + */ public final class VolumesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json */ /** * Sample code: Volumes_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -2255,14 +1560,16 @@ public final class VolumesGetSamples { ### Volumes_List ```java -/** Samples for Volumes List. */ +/** + * Samples for Volumes List. + */ public final class VolumesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json */ /** * Sample code: Volumes_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -2276,26 +1583,20 @@ public final class VolumesListSamples { ```java import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; -/** Samples for Volumes ListGetGroupIdListForLdapUser. */ +/** + * Samples for Volumes ListGetGroupIdListForLdapUser. + */ public final class VolumesListGetGroupIdListForLdapUserSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json */ /** * Sample code: GetGroupIdListForUser. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void getGroupIdListForUser(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .listGetGroupIdListForLdapUser( - "myRG", - "account1", - "pool1", - "volume1", - new GetGroupIdListForLdapUserRequest().withUsername("user1"), - com.azure.core.util.Context.NONE); + manager.volumes().listGetGroupIdListForLdapUser("myRG", "account1", "pool1", "volume1", new GetGroupIdListForLdapUserRequest().withUsername("user1"), com.azure.core.util.Context.NONE); } } ``` @@ -2303,14 +1604,16 @@ public final class VolumesListGetGroupIdListForLdapUserSamples { ### Volumes_ListReplications ```java -/** Samples for Volumes ListReplications. */ +/** + * Samples for Volumes ListReplications. + */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json */ /** * Sample code: Volumes_ListReplications. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesListReplications(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -2324,28 +1627,20 @@ public final class VolumesListReplicationsSamples { ```java import com.azure.resourcemanager.netapp.models.PoolChangeRequest; -/** Samples for Volumes PoolChange. */ +/** + * Samples for Volumes PoolChange. + */ public final class VolumesPoolChangeSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json */ /** * Sample code: Volumes_AuthorizeReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ 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"), - com.azure.core.util.Context.NONE); + 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"), com.azure.core.util.Context.NONE); } } ``` @@ -2353,20 +1648,20 @@ public final class VolumesPoolChangeSamples { ### Volumes_PopulateAvailabilityZone ```java -/** Samples for Volumes PopulateAvailabilityZone. */ +/** + * Samples for Volumes PopulateAvailabilityZone. + */ public final class VolumesPopulateAvailabilityZoneSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json */ /** * Sample code: Volumes_PopulateAvailabilityZones. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesPopulateAvailabilityZones(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .populateAvailabilityZone("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + manager.volumes().populateAvailabilityZone("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); } } ``` @@ -2374,20 +1669,20 @@ public final class VolumesPopulateAvailabilityZoneSamples { ### Volumes_ReInitializeReplication ```java -/** Samples for Volumes ReInitializeReplication. */ +/** + * Samples for Volumes ReInitializeReplication. + */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesReInitializeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .reInitializeReplication("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + manager.volumes().reInitializeReplication("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); } } ``` @@ -2397,28 +1692,20 @@ public final class VolumesReInitializeReplicationSamples { ```java import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; -/** Samples for Volumes ReestablishReplication. */ +/** + * Samples for Volumes ReestablishReplication. + */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json */ /** * Sample code: Volumes_ReestablishReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesReestablishReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - 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"), - com.azure.core.util.Context.NONE); + 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"), com.azure.core.util.Context.NONE); } } ``` @@ -2428,21 +1715,20 @@ public final class VolumesReestablishReplicationSamples { ```java import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest; -/** Samples for Volumes Relocate. */ +/** + * Samples for Volumes Relocate. + */ public final class VolumesRelocateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json */ /** * Sample code: Volumes_Relocate. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesRelocate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .relocate( - "myRG", "account1", "pool1", "volume1", new RelocateVolumeRequest(), com.azure.core.util.Context.NONE); + manager.volumes().relocate("myRG", "account1", "pool1", "volume1", new RelocateVolumeRequest(), com.azure.core.util.Context.NONE); } } ``` @@ -2450,20 +1736,20 @@ public final class VolumesRelocateSamples { ### Volumes_ReplicationStatus ```java -/** Samples for Volumes ReplicationStatus. */ +/** + * Samples for Volumes ReplicationStatus. + */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesReplicationStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .replicationStatusWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + manager.volumes().replicationStatusWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); } } ``` @@ -2471,14 +1757,16 @@ public final class VolumesReplicationStatusSamples { ### Volumes_ResetCifsPassword ```java -/** Samples for Volumes ResetCifsPassword. */ +/** + * Samples for Volumes ResetCifsPassword. + */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json */ /** * Sample code: Volumes_ResetCifsPassword. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesResetCifsPassword(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -2490,14 +1778,16 @@ public final class VolumesResetCifsPasswordSamples { ### Volumes_ResyncReplication ```java -/** Samples for Volumes ResyncReplication. */ +/** + * Samples for Volumes ResyncReplication. + */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesResyncReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -2511,28 +1801,20 @@ public final class VolumesResyncReplicationSamples { ```java import com.azure.resourcemanager.netapp.models.VolumeRevert; -/** Samples for Volumes Revert. */ +/** + * Samples for Volumes Revert. + */ public final class VolumesRevertSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. - * + * * @param manager Entry point to NetAppFilesManager. */ 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"), - com.azure.core.util.Context.NONE); + 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"), com.azure.core.util.Context.NONE); } } ``` @@ -2540,14 +1822,16 @@ public final class VolumesRevertSamples { ### Volumes_RevertRelocation ```java -/** Samples for Volumes RevertRelocation. */ +/** + * Samples for Volumes RevertRelocation. + */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json */ /** * Sample code: Volumes_RevertRelocation. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesRevertRelocation(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -2561,22 +1845,20 @@ public final class VolumesRevertRelocationSamples { ```java import com.azure.resourcemanager.netapp.models.Volume; -/** Samples for Volumes Update. */ +/** + * Samples for Volumes Update. + */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json */ /** * Sample code: Volumes_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - Volume resource = - manager - .volumes() - .getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE) - .getValue(); + Volume resource = manager.volumes().getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE).getValue(); resource.update().apply(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml index 29eacd1d2e96..b488db17e327 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-netapp-2023-05-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-netapp-2023-07. https://github.com/Azure/azure-sdk-for-java @@ -45,6 +45,7 @@ UTF-8 0 0 + true 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 b62cac16aa96..e1cff6d895a5 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 @@ -58,7 +58,10 @@ import java.util.Objects; import java.util.stream.Collectors; -/** Entry point to NetAppFilesManager. Microsoft NetApp Files Azure Resource Provider specification. */ +/** + * Entry point to NetAppFilesManager. + * Microsoft NetApp Files Azure Resource Provider specification. + */ public final class NetAppFilesManager { private Operations operations; @@ -91,18 +94,14 @@ public final class NetAppFilesManager { private NetAppFilesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); - this.clientObject = - new NetAppManagementClientBuilder() - .pipeline(httpPipeline) - .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) - .subscriptionId(profile.getSubscriptionId()) - .defaultPollInterval(defaultPollInterval) - .buildClient(); + this.clientObject = new NetAppManagementClientBuilder().pipeline(httpPipeline) + .endpoint(profile.getEnvironment().getResourceManagerEndpoint()).subscriptionId(profile.getSubscriptionId()) + .defaultPollInterval(defaultPollInterval).buildClient(); } /** * Creates an instance of NetAppFiles service API entry point. - * + * * @param credential the credential to use. * @param profile the Azure profile for client. * @return the NetAppFiles service API instance. @@ -115,7 +114,7 @@ public static NetAppFilesManager authenticate(TokenCredential credential, AzureP /** * Creates an instance of NetAppFiles service API entry point. - * + * * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. * @param profile the Azure profile for client. * @return the NetAppFiles service API instance. @@ -128,14 +127,16 @@ public static NetAppFilesManager authenticate(HttpPipeline httpPipeline, AzurePr /** * Gets a Configurable instance that can be used to create NetAppFilesManager with optional configuration. - * + * * @return the Configurable instance allowing configurations. */ public static Configurable configure() { return new NetAppFilesManager.Configurable(); } - /** The Configurable allowing configurations to be set. */ + /** + * The Configurable allowing configurations to be set. + */ public static final class Configurable { private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); @@ -207,8 +208,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { /** * Sets the retry options for the HTTP pipeline retry policy. - * - *

This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + *

+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. * * @param retryOptions the retry options for the HTTP pipeline retry policy. * @return the configurable object itself. @@ -225,8 +226,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) { * @return the configurable object itself. */ public Configurable withDefaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = - Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); + this.defaultPollInterval + = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); if (this.defaultPollInterval.isNegative()) { throw LOGGER .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative")); @@ -246,21 +247,12 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile Objects.requireNonNull(profile, "'profile' cannot be null."); StringBuilder userAgentBuilder = new StringBuilder(); - userAgentBuilder - .append("azsdk-java") - .append("-") - .append("com.azure.resourcemanager.netapp") - .append("/") - .append("1.0.0"); + userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.netapp").append("/") + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { - userAgentBuilder - .append(" (") - .append(Configuration.getGlobalConfiguration().get("java.version")) - .append("; ") - .append(Configuration.getGlobalConfiguration().get("os.name")) - .append("; ") - .append(Configuration.getGlobalConfiguration().get("os.version")) - .append("; auto-generated)"); + userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version")) + .append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ") + .append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)"); } else { userAgentBuilder.append(" (auto-generated)"); } @@ -279,38 +271,25 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile policies.add(new UserAgentPolicy(userAgentBuilder.toString())); policies.add(new AddHeadersFromContextPolicy()); policies.add(new RequestIdPolicy()); - policies - .addAll( - this - .policies - .stream() - .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) - .collect(Collectors.toList())); + policies.addAll(this.policies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); - policies - .addAll( - this - .policies - .stream() - .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) - .collect(Collectors.toList())); + policies.addAll(this.policies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY).collect(Collectors.toList())); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); - HttpPipeline httpPipeline = - new HttpPipelineBuilder() - .httpClient(httpClient) - .policies(policies.toArray(new HttpPipelinePolicy[0])) - .build(); + HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient) + .policies(policies.toArray(new HttpPipelinePolicy[0])).build(); return new NetAppFilesManager(httpPipeline, profile, defaultPollInterval); } } /** * Gets the resource collection API of Operations. - * + * * @return Resource collection API of Operations. */ public Operations operations() { @@ -322,7 +301,7 @@ public Operations operations() { /** * Gets the resource collection API of NetAppResources. - * + * * @return Resource collection API of NetAppResources. */ public NetAppResources netAppResources() { @@ -334,20 +313,20 @@ public NetAppResources netAppResources() { /** * Gets the resource collection API of NetAppResourceQuotaLimits. - * + * * @return Resource collection API of NetAppResourceQuotaLimits. */ public NetAppResourceQuotaLimits netAppResourceQuotaLimits() { if (this.netAppResourceQuotaLimits == null) { - this.netAppResourceQuotaLimits = - new NetAppResourceQuotaLimitsImpl(clientObject.getNetAppResourceQuotaLimits(), this); + this.netAppResourceQuotaLimits + = new NetAppResourceQuotaLimitsImpl(clientObject.getNetAppResourceQuotaLimits(), this); } return netAppResourceQuotaLimits; } /** * Gets the resource collection API of Accounts. It manages NetAppAccount. - * + * * @return Resource collection API of Accounts. */ public Accounts accounts() { @@ -359,7 +338,7 @@ public Accounts accounts() { /** * Gets the resource collection API of Pools. It manages CapacityPool. - * + * * @return Resource collection API of Pools. */ public Pools pools() { @@ -371,7 +350,7 @@ public Pools pools() { /** * Gets the resource collection API of Volumes. It manages Volume. - * + * * @return Resource collection API of Volumes. */ public Volumes volumes() { @@ -383,7 +362,7 @@ public Volumes volumes() { /** * Gets the resource collection API of Snapshots. It manages Snapshot. - * + * * @return Resource collection API of Snapshots. */ public Snapshots snapshots() { @@ -395,7 +374,7 @@ public Snapshots snapshots() { /** * Gets the resource collection API of SnapshotPolicies. It manages SnapshotPolicy. - * + * * @return Resource collection API of SnapshotPolicies. */ public SnapshotPolicies snapshotPolicies() { @@ -407,7 +386,7 @@ public SnapshotPolicies snapshotPolicies() { /** * Gets the resource collection API of Backups. - * + * * @return Resource collection API of Backups. */ public Backups backups() { @@ -419,7 +398,7 @@ public Backups backups() { /** * Gets the resource collection API of BackupPolicies. It manages BackupPolicy. - * + * * @return Resource collection API of BackupPolicies. */ public BackupPolicies backupPolicies() { @@ -431,7 +410,7 @@ public BackupPolicies backupPolicies() { /** * Gets the resource collection API of VolumeQuotaRules. It manages VolumeQuotaRule. - * + * * @return Resource collection API of VolumeQuotaRules. */ public VolumeQuotaRules volumeQuotaRules() { @@ -443,7 +422,7 @@ public VolumeQuotaRules volumeQuotaRules() { /** * Gets the resource collection API of VolumeGroups. It manages VolumeGroupDetails. - * + * * @return Resource collection API of VolumeGroups. */ public VolumeGroups volumeGroups() { @@ -455,7 +434,7 @@ public VolumeGroups volumeGroups() { /** * Gets the resource collection API of Subvolumes. It manages SubvolumeInfo. - * + * * @return Resource collection API of Subvolumes. */ public Subvolumes subvolumes() { @@ -468,7 +447,7 @@ public Subvolumes subvolumes() { /** * Gets wrapped service client NetAppManagementClient providing direct access to the underlying auto-generated API * implementation, based on Azure REST API. - * + * * @return Wrapped service client NetAppManagementClient. */ public NetAppManagementClient serviceClient() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java index 5c6048e6f7db..b82f0b74cb0a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java @@ -14,13 +14,15 @@ import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner; import com.azure.resourcemanager.netapp.models.NetAppAccountPatch; -/** An instance of this class provides access to all the operations defined in AccountsClient. */ +/** + * An instance of this class provides access to all the operations defined in AccountsClient. + */ public interface AccountsClient { /** * Describe all NetApp Accounts in a subscription - * - *

List and describe all NetApp accounts in the subscription. - * + * + * List and describe all NetApp accounts in the subscription. + * * @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 NetApp account resources as paginated response with {@link PagedIterable}. @@ -30,9 +32,9 @@ public interface AccountsClient { /** * Describe all NetApp Accounts in a subscription - * - *

List and describe all NetApp accounts in the subscription. - * + * + * List and describe all NetApp accounts in the subscription. + * * @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. @@ -44,9 +46,9 @@ public interface AccountsClient { /** * Describe all NetApp Accounts in a resource group - * - *

List and describe all NetApp accounts in the resource group. - * + * + * List and describe all NetApp accounts in the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -58,9 +60,9 @@ public interface AccountsClient { /** * Describe all NetApp Accounts in a resource group - * - *

List and describe all NetApp accounts in the resource group. - * + * + * List and describe all NetApp accounts in the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -73,9 +75,9 @@ public interface AccountsClient { /** * Describe a NetApp Account - * - *

Get the NetApp account. - * + * + * Get the NetApp account. + * * @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. @@ -85,14 +87,14 @@ public interface AccountsClient { * @return the NetApp account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context); + Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, + Context context); /** * Describe a NetApp Account - * - *

Get the NetApp account. - * + * + * Get the NetApp account. + * * @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. @@ -105,9 +107,9 @@ Response getByResourceGroupWithResponse( /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -117,14 +119,14 @@ Response getByResourceGroupWithResponse( * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetAppAccountInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, NetAppAccountInner body); + SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, NetAppAccountInner body); /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -135,14 +137,14 @@ SyncPoller, NetAppAccountInner> beginCreateOrUpda * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetAppAccountInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, NetAppAccountInner body, Context context); + SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, NetAppAccountInner body, Context context); /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -156,9 +158,9 @@ SyncPoller, NetAppAccountInner> beginCreateOrUpda /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -169,14 +171,14 @@ SyncPoller, NetAppAccountInner> beginCreateOrUpda * @return netApp account resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetAppAccountInner createOrUpdate( - String resourceGroupName, String accountName, NetAppAccountInner body, Context context); + NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, NetAppAccountInner body, + Context context); /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -189,9 +191,9 @@ NetAppAccountInner createOrUpdate( /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -205,9 +207,9 @@ NetAppAccountInner createOrUpdate( /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -219,9 +221,9 @@ NetAppAccountInner createOrUpdate( /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -234,9 +236,9 @@ NetAppAccountInner createOrUpdate( /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -246,14 +248,14 @@ NetAppAccountInner createOrUpdate( * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetAppAccountInner> beginUpdate( - String resourceGroupName, String accountName, NetAppAccountPatch body); + SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, + String accountName, NetAppAccountPatch body); /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -264,14 +266,14 @@ SyncPoller, NetAppAccountInner> beginUpdate( * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetAppAccountInner> beginUpdate( - String resourceGroupName, String accountName, NetAppAccountPatch body, Context context); + SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, + String accountName, NetAppAccountPatch body, Context context); /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -285,9 +287,9 @@ SyncPoller, NetAppAccountInner> beginUpdate( /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -302,10 +304,10 @@ SyncPoller, NetAppAccountInner> beginUpdate( /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -318,10 +320,10 @@ SyncPoller, NetAppAccountInner> beginUpdate( /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -331,15 +333,15 @@ SyncPoller, NetAppAccountInner> beginUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRenewCredentials( - String resourceGroupName, String accountName, Context context); + SyncPoller, Void> beginRenewCredentials(String resourceGroupName, String accountName, + Context context); /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -351,10 +353,10 @@ SyncPoller, Void> beginRenewCredentials( /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java index e3d797dcb127..757269fa8ad2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java @@ -14,13 +14,15 @@ import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner; import com.azure.resourcemanager.netapp.models.BackupPolicyPatch; -/** An instance of this class provides access to all the operations defined in BackupPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in BackupPoliciesClient. + */ public interface BackupPoliciesClient { /** * List backup policies - * - *

List backup policies for Netapp Account. - * + * + * List backup policies for Netapp Account. + * * @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. @@ -33,9 +35,9 @@ public interface BackupPoliciesClient { /** * List backup policies - * - *

List backup policies for Netapp Account. - * + * + * List backup policies for Netapp Account. + * * @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. @@ -49,9 +51,9 @@ public interface BackupPoliciesClient { /** * Get a backup Policy - * - *

Get a particular backup Policy. - * + * + * Get a particular backup Policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -62,14 +64,14 @@ public interface BackupPoliciesClient { * @return a particular backup Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String backupPolicyName, Context context); + Response getWithResponse(String resourceGroupName, String accountName, String backupPolicyName, + Context context); /** * Get a backup Policy - * - *

Get a particular backup Policy. - * + * + * Get a particular backup Policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -83,9 +85,9 @@ Response getWithResponse( /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -96,14 +98,14 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BackupPolicyInner> beginCreate( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body); + SyncPoller, BackupPolicyInner> beginCreate(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyInner body); /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -115,14 +117,14 @@ SyncPoller, BackupPolicyInner> beginCreate( * @return the {@link SyncPoller} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BackupPolicyInner> beginCreate( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body, Context context); + SyncPoller, BackupPolicyInner> beginCreate(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyInner body, Context context); /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -133,14 +135,14 @@ SyncPoller, BackupPolicyInner> beginCreate( * @return backup policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - BackupPolicyInner create( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body); + BackupPolicyInner create(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyInner body); /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -152,14 +154,14 @@ BackupPolicyInner create( * @return backup policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - BackupPolicyInner create( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body, Context context); + BackupPolicyInner create(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyInner body, Context context); /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -170,14 +172,14 @@ BackupPolicyInner create( * @return the {@link SyncPoller} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BackupPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body); + SyncPoller, BackupPolicyInner> beginUpdate(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyPatch body); /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -189,14 +191,14 @@ SyncPoller, BackupPolicyInner> beginUpdate( * @return the {@link SyncPoller} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BackupPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, Context context); + SyncPoller, BackupPolicyInner> beginUpdate(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyPatch body, Context context); /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -207,14 +209,14 @@ SyncPoller, BackupPolicyInner> beginUpdate( * @return backup policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - BackupPolicyInner update( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body); + BackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyPatch body); /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -226,14 +228,14 @@ BackupPolicyInner update( * @return backup policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - BackupPolicyInner update( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, Context context); + BackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyPatch body, Context context); /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -243,14 +245,14 @@ BackupPolicyInner update( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String backupPolicyName); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String backupPolicyName); /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -261,14 +263,14 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String backupPolicyName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String backupPolicyName, Context context); /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -281,9 +283,9 @@ SyncPoller, Void> beginDelete( /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java index e01a88760580..7bc0fc889803 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java @@ -10,13 +10,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner; -/** An instance of this class provides access to all the operations defined in BackupsClient. */ +/** + * An instance of this class provides access to all the operations defined in BackupsClient. + */ public interface BackupsClient { /** * Get volume's restore status - * - *

Get the status of the restore for a volume. - * + * + * Get the status of the restore for a 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. @@ -28,14 +30,14 @@ public interface BackupsClient { * @return the status of the restore for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getVolumeRestoreStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + Response getVolumeRestoreStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); /** * Get volume's restore status - * - *

Get the status of the restore for a volume. - * + * + * Get the status of the restore for a 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. @@ -46,6 +48,6 @@ Response getVolumeRestoreStatusWithResponse( * @return the status of the restore for a volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - RestoreStatusInner getVolumeRestoreStatus( - String resourceGroupName, String accountName, String poolName, String volumeName); + RestoreStatusInner getVolumeRestoreStatus(String resourceGroupName, String accountName, String poolName, + String volumeName); } 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 c1ce549c5276..340aad54fa12 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 @@ -7,130 +7,132 @@ import com.azure.core.http.HttpPipeline; import java.time.Duration; -/** The interface for NetAppManagementClient class. */ +/** + * The interface for NetAppManagementClient class. + */ public interface NetAppManagementClient { /** - * Gets The ID of the target subscription. - * + * Gets The ID of the target subscription. The value must be an UUID. + * * @return the subscriptionId value. */ String getSubscriptionId(); /** * Gets server parameter. - * + * * @return the endpoint value. */ String getEndpoint(); /** * Gets Api Version. - * + * * @return the apiVersion value. */ String getApiVersion(); /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ HttpPipeline getHttpPipeline(); /** * Gets The default poll interval for long-running operation. - * + * * @return the defaultPollInterval value. */ Duration getDefaultPollInterval(); /** * Gets the OperationsClient object to access its operations. - * + * * @return the OperationsClient object. */ OperationsClient getOperations(); /** * Gets the NetAppResourcesClient object to access its operations. - * + * * @return the NetAppResourcesClient object. */ NetAppResourcesClient getNetAppResources(); /** * Gets the NetAppResourceQuotaLimitsClient object to access its operations. - * + * * @return the NetAppResourceQuotaLimitsClient object. */ NetAppResourceQuotaLimitsClient getNetAppResourceQuotaLimits(); /** * Gets the AccountsClient object to access its operations. - * + * * @return the AccountsClient object. */ AccountsClient getAccounts(); /** * Gets the PoolsClient object to access its operations. - * + * * @return the PoolsClient object. */ PoolsClient getPools(); /** * Gets the VolumesClient object to access its operations. - * + * * @return the VolumesClient object. */ VolumesClient getVolumes(); /** * Gets the SnapshotsClient object to access its operations. - * + * * @return the SnapshotsClient object. */ SnapshotsClient getSnapshots(); /** * Gets the SnapshotPoliciesClient object to access its operations. - * + * * @return the SnapshotPoliciesClient object. */ SnapshotPoliciesClient getSnapshotPolicies(); /** * Gets the BackupsClient object to access its operations. - * + * * @return the BackupsClient object. */ BackupsClient getBackups(); /** * Gets the BackupPoliciesClient object to access its operations. - * + * * @return the BackupPoliciesClient object. */ BackupPoliciesClient getBackupPolicies(); /** * Gets the VolumeQuotaRulesClient object to access its operations. - * + * * @return the VolumeQuotaRulesClient object. */ VolumeQuotaRulesClient getVolumeQuotaRules(); /** * Gets the VolumeGroupsClient object to access its operations. - * + * * @return the VolumeGroupsClient object. */ VolumeGroupsClient getVolumeGroups(); /** * Gets the SubvolumesClient object to access its operations. - * + * * @return the SubvolumesClient object. */ SubvolumesClient getSubvolumes(); 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 0a329d3b5732..370b55680b6f 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 @@ -11,14 +11,16 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; -/** An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsClient. */ +/** + * An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsClient. + */ public interface NetAppResourceQuotaLimitsClient { /** * Get quota limits - * - *

Get the default and current limits for quotas. - * - * @param location The name of Azure region. + * + * Get the default and current limits for quotas. + * + * @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. @@ -29,10 +31,10 @@ public interface NetAppResourceQuotaLimitsClient { /** * Get quota limits - * - *

Get the default and current limits for quotas. - * - * @param location The name of Azure region. + * + * Get the default and current limits for quotas. + * + * @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. @@ -44,10 +46,10 @@ public interface NetAppResourceQuotaLimitsClient { /** * Get quota limits - * - *

Get the default and current subscription quota limit. - * - * @param location The name of Azure region. + * + * Get the default and current subscription quota limit. + * + * @param location The name of the Azure region. * @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. @@ -60,10 +62,10 @@ public interface NetAppResourceQuotaLimitsClient { /** * Get quota limits - * - *

Get the default and current subscription quota limit. - * - * @param location The name of Azure region. + * + * Get the default and current subscription quota limit. + * + * @param location The name of the Azure region. * @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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java index 531e38abde1c..a1f1ed54b7a0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java @@ -19,14 +19,16 @@ import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; -/** An instance of this class provides access to all the operations defined in NetAppResourcesClient. */ +/** + * An instance of this class provides access to all the operations defined in NetAppResourcesClient. + */ public interface NetAppResourcesClient { /** * Check resource name availability - * - *

Check if a resource name is available. - * - * @param location The name of Azure region. + * + * Check if a resource name is available. + * + * @param location The name of the Azure region. * @param body Name availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -35,15 +37,15 @@ public interface NetAppResourcesClient { * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String location, ResourceNameAvailabilityRequest body, Context context); + Response checkNameAvailabilityWithResponse(String location, + ResourceNameAvailabilityRequest body, Context context); /** * Check resource name availability - * - *

Check if a resource name is available. - * - * @param location The name of Azure region. + * + * Check if a resource name is available. + * + * @param location The name of the Azure region. * @param body Name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -55,10 +57,10 @@ Response checkNameAvailabilityWithResponse( /** * Check file path availability - * - *

Check if a file path is available. - * - * @param location The name of Azure region. + * + * Check if a file path is available. + * + * @param location The name of the Azure region. * @param body File path availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -67,15 +69,15 @@ Response checkNameAvailabilityWithResponse( * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkFilePathAvailabilityWithResponse( - String location, FilePathAvailabilityRequest body, Context context); + Response checkFilePathAvailabilityWithResponse(String location, + FilePathAvailabilityRequest body, Context context); /** * Check file path availability - * - *

Check if a file path is available. - * - * @param location The name of Azure region. + * + * Check if a file path is available. + * + * @param location The name of the Azure region. * @param body File path availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -87,10 +89,10 @@ Response checkFilePathAvailabilityWithResponse( /** * Check quota availability - * - *

Check if a quota is available. - * - * @param location The name of Azure region. + * + * Check if a quota is available. + * + * @param location The name of the Azure region. * @param body Quota availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -99,15 +101,15 @@ Response checkFilePathAvailabilityWithResponse( * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkQuotaAvailabilityWithResponse( - String location, QuotaAvailabilityRequest body, Context context); + Response checkQuotaAvailabilityWithResponse(String location, + QuotaAvailabilityRequest body, Context context); /** * Check quota availability - * - *

Check if a quota is available. - * - * @param location The name of Azure region. + * + * Check if a quota is available. + * + * @param location The name of the Azure region. * @param body Quota availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -119,10 +121,10 @@ Response checkQuotaAvailabilityWithResponse( /** * Describes region specific information. - * - *

Provides storage to network proximity and logical zone mapping information. - * - * @param location The name of Azure region. + * + * Provides storage to network proximity and logical zone mapping information. + * + * @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. @@ -134,10 +136,10 @@ Response checkQuotaAvailabilityWithResponse( /** * Describes region specific information. - * - *

Provides storage to network proximity and logical zone mapping information. - * - * @param location The name of Azure region. + * + * Provides storage to network proximity and logical zone mapping information. + * + * @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. @@ -148,10 +150,10 @@ Response checkQuotaAvailabilityWithResponse( /** * Describe a network sibling set - * - *

Get details of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Get details of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Network sibling set to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -160,15 +162,15 @@ Response checkQuotaAvailabilityWithResponse( * @return details of the specified network sibling set along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response queryNetworkSiblingSetWithResponse( - String location, QueryNetworkSiblingSetRequest body, Context context); + Response queryNetworkSiblingSetWithResponse(String location, + QueryNetworkSiblingSetRequest body, Context context); /** * Describe a network sibling set - * - *

Get details of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Get details of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Network sibling set to query. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,10 +182,10 @@ Response queryNetworkSiblingSetWithResponse( /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -191,15 +193,15 @@ Response queryNetworkSiblingSetWithResponse( * @return the {@link SyncPoller} for polling of network sibling set. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetworkSiblingSetInner> beginUpdateNetworkSiblingSet( - String location, UpdateNetworkSiblingSetRequest body); + SyncPoller, NetworkSiblingSetInner> beginUpdateNetworkSiblingSet(String location, + UpdateNetworkSiblingSetRequest body); /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -208,15 +210,15 @@ SyncPoller, NetworkSiblingSetInner> beginUpda * @return the {@link SyncPoller} for polling of network sibling set. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetworkSiblingSetInner> beginUpdateNetworkSiblingSet( - String location, UpdateNetworkSiblingSetRequest body, Context context); + SyncPoller, NetworkSiblingSetInner> beginUpdateNetworkSiblingSet(String location, + UpdateNetworkSiblingSetRequest body, Context context); /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -228,10 +230,10 @@ SyncPoller, NetworkSiblingSetInner> beginUpda /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -240,6 +242,6 @@ SyncPoller, NetworkSiblingSetInner> beginUpda * @return network sibling set. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkSiblingSetInner updateNetworkSiblingSet( - String location, UpdateNetworkSiblingSetRequest body, Context context); + NetworkSiblingSetInner updateNetworkSiblingSet(String location, UpdateNetworkSiblingSetRequest body, + Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java index 9fe05c07e721..0bfc9a564a96 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java @@ -10,13 +10,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.OperationInner; -/** An instance of this class provides access to all the operations defined in OperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ public interface OperationsClient { /** * Describes the Resource Provider - * - *

Lists all of the available Microsoft.NetApp Rest API operations. - * + * + * Lists all of the available Microsoft.NetApp Rest API operations. + * * @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 result of the request to list Cloud Volume operations as paginated response with {@link PagedIterable}. @@ -26,9 +28,9 @@ public interface OperationsClient { /** * Describes the Resource Provider - * - *

Lists all of the available Microsoft.NetApp Rest API operations. - * + * + * Lists all of the available Microsoft.NetApp Rest API operations. + * * @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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java index 88ddb4a03c95..6a5d0105cb74 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java @@ -14,13 +14,15 @@ import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; import com.azure.resourcemanager.netapp.models.CapacityPoolPatch; -/** An instance of this class provides access to all the operations defined in PoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in PoolsClient. + */ public interface PoolsClient { /** * Describe all Capacity Pools - * - *

List all capacity pools in the NetApp Account. - * + * + * List all capacity pools in the NetApp Account. + * * @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. @@ -33,9 +35,9 @@ public interface PoolsClient { /** * Describe all Capacity Pools - * - *

List all capacity pools in the NetApp Account. - * + * + * List all capacity pools in the NetApp Account. + * * @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. @@ -49,9 +51,9 @@ public interface PoolsClient { /** * Describe a Capacity Pool - * - *

Get details of the specified capacity pool. - * + * + * Get details of the specified capacity pool. + * * @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. @@ -62,14 +64,14 @@ public interface PoolsClient { * @return details of the specified capacity pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String poolName, Context context); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + Context context); /** * Describe a Capacity Pool - * - *

Get details of the specified capacity pool. - * + * + * Get details of the specified capacity pool. + * * @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. @@ -83,9 +85,9 @@ Response getWithResponse( /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -96,14 +98,14 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of capacity pool resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CapacityPoolInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body); + SyncPoller, CapacityPoolInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String poolName, CapacityPoolInner body); /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -115,14 +117,14 @@ SyncPoller, CapacityPoolInner> beginCreateOrUpdate * @return the {@link SyncPoller} for polling of capacity pool resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CapacityPoolInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context); + SyncPoller, CapacityPoolInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String poolName, CapacityPoolInner body, Context context); /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -133,14 +135,14 @@ SyncPoller, CapacityPoolInner> beginCreateOrUpdate * @return capacity pool resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - CapacityPoolInner createOrUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body); + CapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName, + CapacityPoolInner body); /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -152,14 +154,14 @@ CapacityPoolInner createOrUpdate( * @return capacity pool resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - CapacityPoolInner createOrUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context); + CapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName, + CapacityPoolInner body, Context context); /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -170,14 +172,14 @@ CapacityPoolInner createOrUpdate( * @return the {@link SyncPoller} for polling of capacity pool resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CapacityPoolInner> beginUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body); + SyncPoller, CapacityPoolInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, CapacityPoolPatch body); /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -189,14 +191,14 @@ SyncPoller, CapacityPoolInner> beginUpdate( * @return the {@link SyncPoller} for polling of capacity pool resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CapacityPoolInner> beginUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context); + SyncPoller, CapacityPoolInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, CapacityPoolPatch body, Context context); /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -211,9 +213,9 @@ SyncPoller, CapacityPoolInner> beginUpdate( /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -225,14 +227,14 @@ SyncPoller, CapacityPoolInner> beginUpdate( * @return capacity pool resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - CapacityPoolInner update( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context); + CapacityPoolInner update(String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, + Context context); /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -246,9 +248,9 @@ CapacityPoolInner update( /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -259,14 +261,14 @@ CapacityPoolInner update( * @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, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + Context context); /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -279,9 +281,9 @@ SyncPoller, Void> beginDelete( /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java index 1428865c6268..8a1402bba486 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java @@ -15,11 +15,13 @@ import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner; import com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch; -/** An instance of this class provides access to all the operations defined in SnapshotPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in SnapshotPoliciesClient. + */ public interface SnapshotPoliciesClient { /** * List snapshot policy. - * + * * @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. @@ -32,7 +34,7 @@ public interface SnapshotPoliciesClient { /** * List snapshot policy. - * + * * @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. @@ -46,7 +48,7 @@ public interface SnapshotPoliciesClient { /** * Get a snapshot Policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -57,12 +59,12 @@ public interface SnapshotPoliciesClient { * @return a snapshot Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context); + Response getWithResponse(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context); /** * Get a snapshot Policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -76,7 +78,7 @@ Response getWithResponse( /** * Create a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -88,16 +90,12 @@ Response getWithResponse( * @return snapshot policy information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyInner body, - Context context); + Response createWithResponse(String resourceGroupName, String accountName, + String snapshotPolicyName, SnapshotPolicyInner body, Context context); /** * Create a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -108,12 +106,12 @@ Response createWithResponse( * @return snapshot policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotPolicyInner create( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body); + SnapshotPolicyInner create(String resourceGroupName, String accountName, String snapshotPolicyName, + SnapshotPolicyInner body); /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -124,12 +122,12 @@ SnapshotPolicyInner create( * @return the {@link SyncPoller} for polling of snapshot policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SnapshotPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body); + SyncPoller, SnapshotPolicyInner> beginUpdate(String resourceGroupName, + String accountName, String snapshotPolicyName, SnapshotPolicyPatch body); /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -141,16 +139,12 @@ SyncPoller, SnapshotPolicyInner> beginUpdate( * @return the {@link SyncPoller} for polling of snapshot policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SnapshotPolicyInner> beginUpdate( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyPatch body, - Context context); + SyncPoller, SnapshotPolicyInner> beginUpdate(String resourceGroupName, + String accountName, String snapshotPolicyName, SnapshotPolicyPatch body, Context context); /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -161,12 +155,12 @@ SyncPoller, SnapshotPolicyInner> beginUpdate( * @return snapshot policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotPolicyInner update( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body); + SnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, + SnapshotPolicyPatch body); /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -178,16 +172,12 @@ SnapshotPolicyInner update( * @return snapshot policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotPolicyInner update( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyPatch body, - Context context); + SnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, + SnapshotPolicyPatch body, Context context); /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -197,12 +187,12 @@ SnapshotPolicyInner update( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String snapshotPolicyName); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String snapshotPolicyName); /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -213,12 +203,12 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context); /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -231,7 +221,7 @@ SyncPoller, Void> beginDelete( /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -245,9 +235,9 @@ SyncPoller, Void> beginDelete( /** * Get volumes for snapshot policy - * - *

Get volumes associated with snapshot policy. - * + * + * Get volumes associated with snapshot policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -258,14 +248,14 @@ SyncPoller, Void> beginDelete( * @return volumes associated with snapshot policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listVolumesWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context); + Response listVolumesWithResponse(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context); /** * Get volumes for snapshot policy - * - *

Get volumes associated with snapshot policy. - * + * + * Get volumes associated with snapshot policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java index 70596d93bd8d..6872d4d486e9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java @@ -14,13 +14,15 @@ import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; -/** An instance of this class provides access to all the operations defined in SnapshotsClient. */ +/** + * An instance of this class provides access to all the operations defined in SnapshotsClient. + */ public interface SnapshotsClient { /** * Describe all snapshots - * - *

List all snapshots associated with the volume. - * + * + * List all snapshots associated with 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. @@ -35,9 +37,9 @@ public interface SnapshotsClient { /** * Describe all snapshots - * - *

List all snapshots associated with the volume. - * + * + * List all snapshots associated with 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. @@ -49,14 +51,14 @@ public interface SnapshotsClient { * @return list of Snapshots as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Describe a snapshot - * - *

Get details of the specified snapshot. - * + * + * Get details of the specified snapshot. + * * @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. @@ -69,19 +71,14 @@ PagedIterable list( * @return details of the specified snapshot along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Context context); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, Context context); /** * Describe a snapshot - * - *

Get details of the specified snapshot. - * + * + * Get details of the specified snapshot. + * * @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. @@ -93,14 +90,14 @@ Response getWithResponse( * @return details of the specified snapshot. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); + SnapshotInner get(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName); /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -113,19 +110,14 @@ SnapshotInner get( * @return the {@link SyncPoller} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SnapshotInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body); + SyncPoller, SnapshotInner> beginCreate(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, SnapshotInner body); /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -139,20 +131,14 @@ SyncPoller, SnapshotInner> beginCreate( * @return the {@link SyncPoller} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SnapshotInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body, - Context context); + SyncPoller, SnapshotInner> beginCreate(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, SnapshotInner body, Context context); /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -165,19 +151,14 @@ SyncPoller, SnapshotInner> beginCreate( * @return snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body); + SnapshotInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotInner body); /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -191,20 +172,14 @@ SnapshotInner create( * @return snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body, - Context context); + SnapshotInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotInner body, Context context); /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -217,19 +192,14 @@ SnapshotInner create( * @return the {@link SyncPoller} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SnapshotInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body); + SyncPoller, SnapshotInner> beginUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, Object body); /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -243,20 +213,14 @@ SyncPoller, SnapshotInner> beginUpdate( * @return the {@link SyncPoller} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SnapshotInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body, - Context context); + SyncPoller, SnapshotInner> beginUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, Object body, Context context); /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -269,19 +233,14 @@ SyncPoller, SnapshotInner> beginUpdate( * @return snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body); + SnapshotInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Object body); /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -295,20 +254,14 @@ SnapshotInner update( * @return snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - SnapshotInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body, - Context context); + SnapshotInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Object body, Context context); /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -320,14 +273,14 @@ SnapshotInner update( * @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 snapshotName); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName); /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -340,19 +293,14 @@ SyncPoller, Void> beginDelete( * @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 snapshotName, - Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, Context context); /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -367,9 +315,9 @@ SyncPoller, Void> beginDelete( /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -381,19 +329,14 @@ SyncPoller, Void> beginDelete( * @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 snapshotName, + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, Context context); /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -406,19 +349,14 @@ void delete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRestoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body); + SyncPoller, Void> beginRestoreFiles(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, SnapshotRestoreFiles body); /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -432,20 +370,14 @@ SyncPoller, Void> beginRestoreFiles( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRestoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body, - Context context); + SyncPoller, Void> beginRestoreFiles(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, SnapshotRestoreFiles body, Context context); /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -457,19 +389,14 @@ SyncPoller, Void> beginRestoreFiles( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void restoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body); + void restoreFiles(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotRestoreFiles body); /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -482,12 +409,6 @@ void restoreFiles( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void restoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body, - Context context); + void restoreFiles(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotRestoreFiles body, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java index f36bb4b6dc79..d320098fb0f6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java @@ -15,13 +15,15 @@ import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner; import com.azure.resourcemanager.netapp.models.SubvolumePatchRequest; -/** An instance of this class provides access to all the operations defined in SubvolumesClient. */ +/** + * An instance of this class provides access to all the operations defined in SubvolumesClient. + */ public interface SubvolumesClient { /** * List of all the subvolumes - * - *

Returns a list of the subvolumes in the volume. - * + * + * Returns a list of the subvolumes in 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. @@ -32,14 +34,14 @@ public interface SubvolumesClient { * @return list of Subvolumes as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); /** * List of all the subvolumes - * - *

Returns a list of the subvolumes in the volume. - * + * + * Returns a list of the subvolumes in 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. @@ -51,14 +53,14 @@ PagedIterable listByVolume( * @return list of Subvolumes as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); /** * Get the path associated with the subvolumeName - * - *

Returns the path associated with the subvolumeName provided. - * + * + * Returns the path associated with the subvolumeName provided. + * * @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. @@ -71,19 +73,14 @@ PagedIterable listByVolume( * @return subvolume Information properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, Context context); /** * Get the path associated with the subvolumeName - * - *

Returns the path associated with the subvolumeName provided. - * + * + * Returns the path associated with the subvolumeName provided. + * * @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. @@ -95,14 +92,14 @@ Response getWithResponse( * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubvolumeInfoInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + SubvolumeInfoInner get(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName); /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -115,19 +112,14 @@ SubvolumeInfoInner get( * @return the {@link SyncPoller} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SubvolumeInfoInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body); + SyncPoller, SubvolumeInfoInner> beginCreate(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumeInfoInner body); /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -141,20 +133,15 @@ SyncPoller, SubvolumeInfoInner> beginCreate( * @return the {@link SyncPoller} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SubvolumeInfoInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body, + SyncPoller, SubvolumeInfoInner> beginCreate(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumeInfoInner body, Context context); /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -167,19 +154,14 @@ SyncPoller, SubvolumeInfoInner> beginCreate( * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubvolumeInfoInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body); + SubvolumeInfoInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, SubvolumeInfoInner body); /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -193,20 +175,14 @@ SubvolumeInfoInner create( * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubvolumeInfoInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body, - Context context); + SubvolumeInfoInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, SubvolumeInfoInner body, Context context); /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -219,19 +195,14 @@ SubvolumeInfoInner create( * @return the {@link SyncPoller} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SubvolumeInfoInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body); + SyncPoller, SubvolumeInfoInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumePatchRequest body); /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -245,20 +216,15 @@ SyncPoller, SubvolumeInfoInner> beginUpdate( * @return the {@link SyncPoller} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SubvolumeInfoInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body, + SyncPoller, SubvolumeInfoInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumePatchRequest body, Context context); /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -271,19 +237,14 @@ SyncPoller, SubvolumeInfoInner> beginUpdate( * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubvolumeInfoInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body); + SubvolumeInfoInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, SubvolumePatchRequest body); /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -297,20 +258,14 @@ SubvolumeInfoInner update( * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubvolumeInfoInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body, - Context context); + SubvolumeInfoInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, SubvolumePatchRequest body, Context context); /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -322,14 +277,14 @@ SubvolumeInfoInner update( * @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 subvolumeName); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName); /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -342,19 +297,14 @@ SyncPoller, Void> beginDelete( * @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 subvolumeName, - Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, Context context); /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -369,9 +319,9 @@ SyncPoller, Void> beginDelete( /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -383,19 +333,14 @@ SyncPoller, Void> beginDelete( * @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 subvolumeName, + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName, Context context); /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -407,14 +352,14 @@ void delete( * @return the {@link SyncPoller} for polling of details of the specified subvolume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SubvolumeModelInner> beginGetMetadata( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + SyncPoller, SubvolumeModelInner> beginGetMetadata(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName); /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -427,19 +372,14 @@ SyncPoller, SubvolumeModelInner> beginGetMetadat * @return the {@link SyncPoller} for polling of details of the specified subvolume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SubvolumeModelInner> beginGetMetadata( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context); + SyncPoller, SubvolumeModelInner> beginGetMetadata(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, Context context); /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -451,14 +391,14 @@ SyncPoller, SubvolumeModelInner> beginGetMetadat * @return details of the specified subvolume. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubvolumeModelInner getMetadata( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + SubvolumeModelInner getMetadata(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName); /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -471,11 +411,6 @@ SubvolumeModelInner getMetadata( * @return details of the specified subvolume. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubvolumeModelInner getMetadata( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context); + SubvolumeModelInner getMetadata(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, Context context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java index 432813b5faf9..422ec67089fd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java @@ -14,13 +14,15 @@ import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner; import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner; -/** An instance of this class provides access to all the operations defined in VolumeGroupsClient. */ +/** + * An instance of this class provides access to all the operations defined in VolumeGroupsClient. + */ public interface VolumeGroupsClient { /** * Describe all volume groups - * - *

List all volume groups for given account. - * + * + * List all volume groups for given account. + * * @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. @@ -33,9 +35,9 @@ public interface VolumeGroupsClient { /** * Describe all volume groups - * - *

List all volume groups for given account. - * + * + * List all volume groups for given account. + * * @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. @@ -49,9 +51,9 @@ public interface VolumeGroupsClient { /** * Describe a Volume Group - * - *

Get details of the specified volume group. - * + * + * Get details of the specified volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -62,14 +64,14 @@ public interface VolumeGroupsClient { * @return details of the specified volume group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String volumeGroupName, Context context); + Response getWithResponse(String resourceGroupName, String accountName, + String volumeGroupName, Context context); /** * Describe a Volume Group - * - *

Get details of the specified volume group. - * + * + * Get details of the specified volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -85,9 +87,9 @@ Response getWithResponse( * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -98,16 +100,16 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of volume group resource for create. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeGroupDetailsInner> beginCreate( - String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body); + SyncPoller, VolumeGroupDetailsInner> beginCreate(String resourceGroupName, + String accountName, String volumeGroupName, VolumeGroupDetailsInner body); /** * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -119,20 +121,16 @@ SyncPoller, VolumeGroupDetailsInner> beginCr * @return the {@link SyncPoller} for polling of volume group resource for create. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeGroupDetailsInner> beginCreate( - String resourceGroupName, - String accountName, - String volumeGroupName, - VolumeGroupDetailsInner body, - Context context); + SyncPoller, VolumeGroupDetailsInner> beginCreate(String resourceGroupName, + String accountName, String volumeGroupName, VolumeGroupDetailsInner body, Context context); /** * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -143,16 +141,16 @@ SyncPoller, VolumeGroupDetailsInner> beginCr * @return volume group resource for create. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeGroupDetailsInner create( - String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body); + VolumeGroupDetailsInner create(String resourceGroupName, String accountName, String volumeGroupName, + VolumeGroupDetailsInner body); /** * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -164,18 +162,14 @@ VolumeGroupDetailsInner create( * @return volume group resource for create. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeGroupDetailsInner create( - String resourceGroupName, - String accountName, - String volumeGroupName, - VolumeGroupDetailsInner body, - Context context); + VolumeGroupDetailsInner create(String resourceGroupName, String accountName, String volumeGroupName, + VolumeGroupDetailsInner body, Context context); /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -185,14 +179,14 @@ VolumeGroupDetailsInner create( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String volumeGroupName); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String volumeGroupName); /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -203,14 +197,14 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, String volumeGroupName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String volumeGroupName, + Context context); /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -223,9 +217,9 @@ SyncPoller, Void> beginDelete( /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java index eedccde18317..8f7220266fc5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java @@ -14,13 +14,15 @@ import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner; import com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch; -/** An instance of this class provides access to all the operations defined in VolumeQuotaRulesClient. */ +/** + * An instance of this class provides access to all the operations defined in VolumeQuotaRulesClient. + */ public interface VolumeQuotaRulesClient { /** * Get all quota rules for a volume - * - *

List all quota rules associated with the volume. - * + * + * List all quota rules associated with 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. @@ -31,14 +33,14 @@ public interface VolumeQuotaRulesClient { * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); /** * Get all quota rules for a volume - * - *

List all quota rules associated with the volume. - * + * + * List all quota rules associated with 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. @@ -50,14 +52,14 @@ PagedIterable listByVolume( * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); /** * Describe a quota rule - * - *

Get details of the specified quota rule. - * + * + * Get details of the specified quota rule. + * * @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. @@ -70,19 +72,14 @@ PagedIterable listByVolume( * @return details of the specified quota rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - Context context); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName, Context context); /** * Describe a quota rule - * - *

Get details of the specified quota rule. - * + * + * Get details of the specified quota rule. + * * @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. @@ -94,14 +91,14 @@ Response getWithResponse( * @return details of the specified quota rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeQuotaRuleInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName); + VolumeQuotaRuleInner get(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName); /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -114,19 +111,14 @@ VolumeQuotaRuleInner get( * @return the {@link SyncPoller} for polling of quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeQuotaRuleInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body); + SyncPoller, VolumeQuotaRuleInner> beginCreate(String resourceGroupName, + String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRuleInner body); /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -140,20 +132,15 @@ SyncPoller, VolumeQuotaRuleInner> beginCreate( * @return the {@link SyncPoller} for polling of quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeQuotaRuleInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body, + SyncPoller, VolumeQuotaRuleInner> beginCreate(String resourceGroupName, + String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRuleInner body, Context context); /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -166,19 +153,14 @@ SyncPoller, VolumeQuotaRuleInner> beginCreate( * @return quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeQuotaRuleInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body); + VolumeQuotaRuleInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, VolumeQuotaRuleInner body); /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -192,20 +174,14 @@ VolumeQuotaRuleInner create( * @return quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeQuotaRuleInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body, - Context context); + VolumeQuotaRuleInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, VolumeQuotaRuleInner body, Context context); /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -218,19 +194,14 @@ VolumeQuotaRuleInner create( * @return the {@link SyncPoller} for polling of quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeQuotaRuleInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRulePatch body); + SyncPoller, VolumeQuotaRuleInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRulePatch body); /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -244,20 +215,15 @@ SyncPoller, VolumeQuotaRuleInner> beginUpdate( * @return the {@link SyncPoller} for polling of quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeQuotaRuleInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRulePatch body, + SyncPoller, VolumeQuotaRuleInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRulePatch body, Context context); /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -270,19 +236,14 @@ SyncPoller, VolumeQuotaRuleInner> beginUpdate( * @return quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeQuotaRuleInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRulePatch body); + VolumeQuotaRuleInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, VolumeQuotaRulePatch body); /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -296,20 +257,14 @@ VolumeQuotaRuleInner update( * @return quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeQuotaRuleInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRulePatch body, - Context context); + VolumeQuotaRuleInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, VolumeQuotaRulePatch body, Context context); /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -321,14 +276,14 @@ VolumeQuotaRuleInner update( * @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 volumeQuotaRuleName); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName); /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -341,19 +296,14 @@ SyncPoller, Void> beginDelete( * @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 volumeQuotaRuleName, - Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName, Context context); /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -364,14 +314,14 @@ SyncPoller, Void> beginDelete( * @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 volumeQuotaRuleName); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName); /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -383,11 +333,6 @@ void delete( * @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 volumeQuotaRuleName, - Context context); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, Context context); } 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 035f08f02aaf..b6142c79bf04 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 @@ -25,13 +25,15 @@ import com.azure.resourcemanager.netapp.models.VolumePatch; import com.azure.resourcemanager.netapp.models.VolumeRevert; -/** An instance of this class provides access to all the operations defined in VolumesClient. */ +/** + * An instance of this class provides access to all the operations defined in VolumesClient. + */ public interface VolumesClient { /** * Describe all volumes - * - *

List all volumes within the capacity pool. - * + * + * List all volumes within the capacity pool. + * * @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. @@ -45,9 +47,9 @@ public interface VolumesClient { /** * Describe all volumes - * - *

List all volumes within the capacity pool. - * + * + * List all volumes within the capacity pool. + * * @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. @@ -62,9 +64,9 @@ public interface VolumesClient { /** * Describe a volume - * - *

Get the details of the specified volume. - * + * + * Get the details of the specified 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. @@ -76,14 +78,14 @@ public interface VolumesClient { * @return the details of the specified volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); /** * Describe a volume - * - *

Get the details of the specified volume. - * + * + * Get the details of the specified 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. @@ -98,9 +100,9 @@ Response getWithResponse( /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -112,14 +114,14 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body); + SyncPoller, VolumeInner> beginCreateOrUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumeInner body); /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -132,19 +134,14 @@ SyncPoller, VolumeInner> beginCreateOrUpdate( * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeInner> beginCreateOrUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeInner body, - Context context); + SyncPoller, VolumeInner> beginCreateOrUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumeInner body, Context context); /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -156,14 +153,14 @@ SyncPoller, VolumeInner> beginCreateOrUpdate( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeInner createOrUpdate( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body); + VolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumeInner body); /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -176,19 +173,14 @@ VolumeInner createOrUpdate( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeInner createOrUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeInner body, - Context context); + VolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumeInner body, Context context); /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -200,14 +192,14 @@ VolumeInner createOrUpdate( * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeInner> beginUpdate( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body); + SyncPoller, VolumeInner> beginUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumePatch body); /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -220,19 +212,14 @@ SyncPoller, VolumeInner> beginUpdate( * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumePatch body, - Context context); + SyncPoller, VolumeInner> beginUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumePatch body, Context context); /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -244,14 +231,14 @@ SyncPoller, VolumeInner> beginUpdate( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeInner update( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body); + VolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumePatch body); /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -264,19 +251,14 @@ VolumeInner update( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumePatch body, - Context context); + VolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumePatch body, Context context); /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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. @@ -287,20 +269,20 @@ VolumeInner update( * @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); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName); /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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. @@ -308,19 +290,14 @@ SyncPoller, Void> beginDelete( * @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, - Boolean forceDelete, - Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, Boolean forceDelete, Context context); /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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. @@ -334,34 +311,29 @@ SyncPoller, Void> beginDelete( /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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 delete( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - Boolean forceDelete, + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete, Context context); /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -372,14 +344,14 @@ void delete( * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeInner> beginPopulateAvailabilityZone( - String resourceGroupName, String accountName, String poolName, String volumeName); + SyncPoller, VolumeInner> beginPopulateAvailabilityZone(String resourceGroupName, + String accountName, String poolName, String volumeName); /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -391,14 +363,14 @@ SyncPoller, VolumeInner> beginPopulateAvailabilityZone( * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VolumeInner> beginPopulateAvailabilityZone( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + SyncPoller, VolumeInner> beginPopulateAvailabilityZone(String resourceGroupName, + String accountName, String poolName, String volumeName, Context context); /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -409,14 +381,14 @@ SyncPoller, VolumeInner> beginPopulateAvailabilityZone( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeInner populateAvailabilityZone( - String resourceGroupName, String accountName, String poolName, String volumeName); + VolumeInner populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, + String volumeName); /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -428,14 +400,14 @@ VolumeInner populateAvailabilityZone( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VolumeInner populateAvailabilityZone( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + VolumeInner populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -447,14 +419,14 @@ VolumeInner populateAvailabilityZone( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRevert( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body); + SyncPoller, Void> beginRevert(String resourceGroupName, String accountName, String poolName, + String volumeName, VolumeRevert body); /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -467,19 +439,14 @@ SyncPoller, Void> beginRevert( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRevert( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeRevert body, - Context context); + SyncPoller, Void> beginRevert(String resourceGroupName, String accountName, String poolName, + String volumeName, VolumeRevert body, Context context); /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -494,9 +461,9 @@ SyncPoller, Void> beginRevert( /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -508,19 +475,14 @@ SyncPoller, Void> beginRevert( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void revert( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeRevert body, + void revert(String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body, Context context); /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -531,14 +493,14 @@ void revert( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginResetCifsPassword( - String resourceGroupName, String accountName, String poolName, String volumeName); + SyncPoller, Void> beginResetCifsPassword(String resourceGroupName, String accountName, + String poolName, String volumeName); /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -550,14 +512,14 @@ SyncPoller, Void> beginResetCifsPassword( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginResetCifsPassword( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + SyncPoller, Void> beginResetCifsPassword(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -571,9 +533,9 @@ SyncPoller, Void> beginResetCifsPassword( /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -584,14 +546,14 @@ SyncPoller, Void> beginResetCifsPassword( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void resetCifsPassword( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -602,14 +564,14 @@ void resetCifsPassword( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginBreakFileLocks( - String resourceGroupName, String accountName, String poolName, String volumeName); + SyncPoller, Void> beginBreakFileLocks(String resourceGroupName, String accountName, + String poolName, String volumeName); /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -622,19 +584,14 @@ SyncPoller, Void> beginBreakFileLocks( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginBreakFileLocks( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakFileLocksRequest body, - Context context); + SyncPoller, Void> beginBreakFileLocks(String resourceGroupName, String accountName, + String poolName, String volumeName, BreakFileLocksRequest body, Context context); /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -648,9 +605,9 @@ SyncPoller, Void> beginBreakFileLocks( /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -662,19 +619,14 @@ SyncPoller, Void> beginBreakFileLocks( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void breakFileLocks( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakFileLocksRequest body, - Context context); + void breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName, + BreakFileLocksRequest body, Context context); /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -687,18 +639,14 @@ void breakFileLocks( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GetGroupIdListForLdapUserResponseInner> - beginListGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body); + beginListGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, + String volumeName, GetGroupIdListForLdapUserRequest body); /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -712,19 +660,14 @@ void breakFileLocks( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GetGroupIdListForLdapUserResponseInner> - beginListGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body, - Context context); + beginListGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, + String volumeName, GetGroupIdListForLdapUserRequest body, Context context); /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -736,18 +679,14 @@ void breakFileLocks( * @return group Id list for Ldap user. */ @ServiceMethod(returns = ReturnType.SINGLE) - GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body); + GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, + String poolName, String volumeName, GetGroupIdListForLdapUserRequest body); /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -760,19 +699,14 @@ GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser( * @return group Id list for Ldap user. */ @ServiceMethod(returns = ReturnType.SINGLE) - GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body, - Context context); + GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, + String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context); /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -783,14 +717,14 @@ GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginBreakReplication( - String resourceGroupName, String accountName, String poolName, String volumeName); + SyncPoller, Void> beginBreakReplication(String resourceGroupName, String accountName, + String poolName, String volumeName); /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -803,19 +737,14 @@ SyncPoller, Void> beginBreakReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginBreakReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body, - Context context); + SyncPoller, Void> beginBreakReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, BreakReplicationRequest body, Context context); /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -829,9 +758,9 @@ SyncPoller, Void> beginBreakReplication( /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -843,20 +772,15 @@ SyncPoller, Void> beginBreakReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void breakReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body, - Context context); + void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + BreakReplicationRequest body, Context context); /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -868,19 +792,15 @@ void breakReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginReestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body); + SyncPoller, Void> beginReestablishReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, ReestablishReplicationRequest body); /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -893,20 +813,15 @@ SyncPoller, Void> beginReestablishReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginReestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body, - Context context); + SyncPoller, Void> beginReestablishReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, ReestablishReplicationRequest body, Context context); /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -917,19 +832,15 @@ SyncPoller, Void> beginReestablishReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void reestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, + void reestablishReplication(String resourceGroupName, String accountName, String poolName, String volumeName, ReestablishReplicationRequest body); /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -941,19 +852,14 @@ void reestablishReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void reestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body, - Context context); + void reestablishReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + ReestablishReplicationRequest body, Context context); /** * Get volume replication status - * - *

Get the status of the replication. - * + * + * Get the status of the replication. + * * @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. @@ -965,14 +871,14 @@ void reestablishReplication( * @return the status of the replication along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response replicationStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + Response replicationStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); /** * Get volume replication status - * - *

Get the status of the replication. - * + * + * Get the status of the replication. + * * @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. @@ -983,14 +889,14 @@ Response replicationStatusWithResponse( * @return the status of the replication. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicationStatusInner replicationStatus( - String resourceGroupName, String accountName, String poolName, String volumeName); + ReplicationStatusInner replicationStatus(String resourceGroupName, String accountName, String poolName, + String volumeName); /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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. @@ -1001,14 +907,14 @@ ReplicationStatusInner replicationStatus( * @return list Replications as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listReplications( - String resourceGroupName, String accountName, String poolName, String volumeName); + PagedIterable listReplications(String resourceGroupName, String accountName, String poolName, + String volumeName); /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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. @@ -1020,15 +926,15 @@ PagedIterable listReplications( * @return list Replications as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listReplications( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + PagedIterable listReplications(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -1039,15 +945,15 @@ PagedIterable listReplications( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginResyncReplication( - String resourceGroupName, String accountName, String poolName, String volumeName); + SyncPoller, Void> beginResyncReplication(String resourceGroupName, String accountName, + String poolName, String volumeName); /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -1059,15 +965,15 @@ SyncPoller, Void> beginResyncReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginResyncReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + SyncPoller, Void> beginResyncReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -1081,10 +987,10 @@ SyncPoller, Void> beginResyncReplication( /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -1095,14 +1001,14 @@ SyncPoller, Void> beginResyncReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void resyncReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void resyncReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -1113,14 +1019,14 @@ void resyncReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteReplication( - String resourceGroupName, String accountName, String poolName, String volumeName); + SyncPoller, Void> beginDeleteReplication(String resourceGroupName, String accountName, + String poolName, String volumeName); /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -1132,14 +1038,14 @@ SyncPoller, Void> beginDeleteReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + SyncPoller, Void> beginDeleteReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -1153,9 +1059,9 @@ SyncPoller, Void> beginDeleteReplication( /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -1166,14 +1072,14 @@ SyncPoller, Void> beginDeleteReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void deleteReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -1185,14 +1091,14 @@ void deleteReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginAuthorizeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body); + SyncPoller, Void> beginAuthorizeReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, AuthorizeRequest body); /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -1205,19 +1111,14 @@ SyncPoller, Void> beginAuthorizeReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginAuthorizeReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - AuthorizeRequest body, - Context context); + SyncPoller, Void> beginAuthorizeReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, AuthorizeRequest body, Context context); /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -1228,14 +1129,14 @@ SyncPoller, Void> beginAuthorizeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void authorizeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body); + void authorizeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + AuthorizeRequest body); /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -1247,19 +1148,14 @@ void authorizeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void authorizeReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - AuthorizeRequest body, - Context context); + void authorizeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + AuthorizeRequest body, Context context); /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -1270,14 +1166,14 @@ void authorizeReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginReInitializeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName); + SyncPoller, Void> beginReInitializeReplication(String resourceGroupName, String accountName, + String poolName, String volumeName); /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -1289,14 +1185,14 @@ SyncPoller, Void> beginReInitializeReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginReInitializeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + SyncPoller, Void> beginReInitializeReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -1310,9 +1206,9 @@ SyncPoller, Void> beginReInitializeReplication( /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -1323,14 +1219,14 @@ SyncPoller, Void> beginReInitializeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void reInitializeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void reInitializeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -1342,14 +1238,14 @@ void reInitializeReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginPoolChange( - String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body); + SyncPoller, Void> beginPoolChange(String resourceGroupName, String accountName, String poolName, + String volumeName, PoolChangeRequest body); /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -1362,19 +1258,14 @@ SyncPoller, Void> beginPoolChange( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginPoolChange( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - PoolChangeRequest body, - Context context); + SyncPoller, Void> beginPoolChange(String resourceGroupName, String accountName, String poolName, + String volumeName, PoolChangeRequest body, Context context); /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -1385,14 +1276,14 @@ SyncPoller, Void> beginPoolChange( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void poolChange( - String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body); + void poolChange(String resourceGroupName, String accountName, String poolName, String volumeName, + PoolChangeRequest body); /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -1404,19 +1295,14 @@ void poolChange( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void poolChange( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - PoolChangeRequest body, - Context context); + void poolChange(String resourceGroupName, String accountName, String poolName, String volumeName, + PoolChangeRequest body, Context context); /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -1427,14 +1313,14 @@ void poolChange( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRelocate( - String resourceGroupName, String accountName, String poolName, String volumeName); + SyncPoller, Void> beginRelocate(String resourceGroupName, String accountName, String poolName, + String volumeName); /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -1447,19 +1333,14 @@ SyncPoller, Void> beginRelocate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRelocate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - RelocateVolumeRequest body, - Context context); + SyncPoller, Void> beginRelocate(String resourceGroupName, String accountName, String poolName, + String volumeName, RelocateVolumeRequest body, Context context); /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -1473,9 +1354,9 @@ SyncPoller, Void> beginRelocate( /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -1487,19 +1368,14 @@ SyncPoller, Void> beginRelocate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void relocate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - RelocateVolumeRequest body, - Context context); + void relocate(String resourceGroupName, String accountName, String poolName, String volumeName, + RelocateVolumeRequest body, Context context); /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -1510,14 +1386,14 @@ void relocate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginFinalizeRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName); + SyncPoller, Void> beginFinalizeRelocation(String resourceGroupName, String accountName, + String poolName, String volumeName); /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -1529,14 +1405,14 @@ SyncPoller, Void> beginFinalizeRelocation( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginFinalizeRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + SyncPoller, Void> beginFinalizeRelocation(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -1550,9 +1426,9 @@ SyncPoller, Void> beginFinalizeRelocation( /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -1563,14 +1439,14 @@ SyncPoller, Void> beginFinalizeRelocation( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void finalizeRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void finalizeRelocation(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -1581,14 +1457,14 @@ void finalizeRelocation( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRevertRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName); + SyncPoller, Void> beginRevertRelocation(String resourceGroupName, String accountName, + String poolName, String volumeName); /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -1600,14 +1476,14 @@ SyncPoller, Void> beginRevertRelocation( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRevertRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + SyncPoller, Void> beginRevertRelocation(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -1621,9 +1497,9 @@ SyncPoller, Void> beginRevertRelocation( /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -1634,6 +1510,6 @@ SyncPoller, Void> beginRevertRelocation( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void revertRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void revertRelocation(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); } 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 7372c2be67ab..710f5eea907d 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 @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** NetApp account properties. */ +/** + * NetApp account properties. + */ @Fluent public final class AccountProperties { /* @@ -37,13 +39,15 @@ public final class AccountProperties { @JsonProperty(value = "disableShowmount", access = JsonProperty.Access.WRITE_ONLY) private Boolean disableShowmount; - /** Creates an instance of AccountProperties class. */ + /** + * Creates an instance of AccountProperties class. + */ public AccountProperties() { } /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -52,7 +56,7 @@ public String provisioningState() { /** * Get the activeDirectories property: Active Directories. - * + * * @return the activeDirectories value. */ public List activeDirectories() { @@ -61,7 +65,7 @@ public List activeDirectories() { /** * Set the activeDirectories property: Active Directories. - * + * * @param activeDirectories the activeDirectories value to set. * @return the AccountProperties object itself. */ @@ -72,7 +76,7 @@ public AccountProperties withActiveDirectories(List activeDirec /** * Get the encryption property: Encryption settings. - * + * * @return the encryption value. */ public AccountEncryption encryption() { @@ -81,7 +85,7 @@ public AccountEncryption encryption() { /** * Set the encryption property: Encryption settings. - * + * * @param encryption the encryption value to set. * @return the AccountProperties object itself. */ @@ -93,7 +97,7 @@ public AccountProperties withEncryption(AccountEncryption encryption) { /** * Get the disableShowmount property: Shows the status of disableShowmount for all volumes under the subscription, * null equals false. - * + * * @return the disableShowmount value. */ public Boolean disableShowmount() { @@ -102,7 +106,7 @@ public Boolean disableShowmount() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java index fc87966ddd9b..aa42a7ff02c8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java @@ -13,7 +13,9 @@ import java.util.List; import java.util.Map; -/** Backup policy information. */ +/** + * Backup policy information. + */ @Fluent public final class BackupPolicyInner extends Resource { /* @@ -34,13 +36,15 @@ public final class BackupPolicyInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of BackupPolicyInner class. */ + /** + * Creates an instance of BackupPolicyInner class. + */ public BackupPolicyInner() { } /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -49,7 +53,7 @@ public String etag() { /** * Get the innerProperties property: Backup policy Properties. - * + * * @return the innerProperties value. */ private BackupPolicyProperties innerProperties() { @@ -58,21 +62,25 @@ private BackupPolicyProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public BackupPolicyInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public BackupPolicyInner withTags(Map tags) { super.withTags(tags); @@ -81,7 +89,7 @@ public BackupPolicyInner withTags(Map tags) { /** * Get the backupPolicyId property: Backup Policy Resource ID. - * + * * @return the backupPolicyId value. */ public String backupPolicyId() { @@ -90,7 +98,7 @@ public String backupPolicyId() { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -99,7 +107,7 @@ public String provisioningState() { /** * Get the dailyBackupsToKeep property: Daily backups count to keep. - * + * * @return the dailyBackupsToKeep value. */ public Integer dailyBackupsToKeep() { @@ -108,7 +116,7 @@ public Integer dailyBackupsToKeep() { /** * Set the dailyBackupsToKeep property: Daily backups count to keep. - * + * * @param dailyBackupsToKeep the dailyBackupsToKeep value to set. * @return the BackupPolicyInner object itself. */ @@ -122,7 +130,7 @@ public BackupPolicyInner withDailyBackupsToKeep(Integer dailyBackupsToKeep) { /** * Get the weeklyBackupsToKeep property: Weekly backups count to keep. - * + * * @return the weeklyBackupsToKeep value. */ public Integer weeklyBackupsToKeep() { @@ -131,7 +139,7 @@ public Integer weeklyBackupsToKeep() { /** * Set the weeklyBackupsToKeep property: Weekly backups count to keep. - * + * * @param weeklyBackupsToKeep the weeklyBackupsToKeep value to set. * @return the BackupPolicyInner object itself. */ @@ -145,7 +153,7 @@ public BackupPolicyInner withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep) { /** * Get the monthlyBackupsToKeep property: Monthly backups count to keep. - * + * * @return the monthlyBackupsToKeep value. */ public Integer monthlyBackupsToKeep() { @@ -154,7 +162,7 @@ public Integer monthlyBackupsToKeep() { /** * Set the monthlyBackupsToKeep property: Monthly backups count to keep. - * + * * @param monthlyBackupsToKeep the monthlyBackupsToKeep value to set. * @return the BackupPolicyInner object itself. */ @@ -168,7 +176,7 @@ public BackupPolicyInner withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) /** * Get the volumesAssigned property: Volumes using current backup policy. - * + * * @return the volumesAssigned value. */ public Integer volumesAssigned() { @@ -177,7 +185,7 @@ public Integer volumesAssigned() { /** * Get the enabled property: The property to decide policy is enabled or not. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -186,7 +194,7 @@ public Boolean enabled() { /** * Set the enabled property: The property to decide policy is enabled or not. - * + * * @param enabled the enabled value to set. * @return the BackupPolicyInner object itself. */ @@ -200,7 +208,7 @@ public BackupPolicyInner withEnabled(Boolean enabled) { /** * Get the volumeBackups property: A list of volumes assigned to this policy. - * + * * @return the volumeBackups value. */ public List volumeBackups() { @@ -209,15 +217,13 @@ public List volumeBackups() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model BackupPolicyInner")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property innerProperties in model BackupPolicyInner")); } else { innerProperties().validate(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java index 71216b2c0a56..acff33d57098 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Backup policy properties. */ +/** + * Backup policy properties. + */ @Fluent public final class BackupPolicyProperties { /* @@ -60,13 +62,15 @@ public final class BackupPolicyProperties { @JsonProperty(value = "volumeBackups", access = JsonProperty.Access.WRITE_ONLY) private List volumeBackups; - /** Creates an instance of BackupPolicyProperties class. */ + /** + * Creates an instance of BackupPolicyProperties class. + */ public BackupPolicyProperties() { } /** * Get the backupPolicyId property: Backup Policy Resource ID. - * + * * @return the backupPolicyId value. */ public String backupPolicyId() { @@ -75,7 +79,7 @@ public String backupPolicyId() { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -84,7 +88,7 @@ public String provisioningState() { /** * Get the dailyBackupsToKeep property: Daily backups count to keep. - * + * * @return the dailyBackupsToKeep value. */ public Integer dailyBackupsToKeep() { @@ -93,7 +97,7 @@ public Integer dailyBackupsToKeep() { /** * Set the dailyBackupsToKeep property: Daily backups count to keep. - * + * * @param dailyBackupsToKeep the dailyBackupsToKeep value to set. * @return the BackupPolicyProperties object itself. */ @@ -104,7 +108,7 @@ public BackupPolicyProperties withDailyBackupsToKeep(Integer dailyBackupsToKeep) /** * Get the weeklyBackupsToKeep property: Weekly backups count to keep. - * + * * @return the weeklyBackupsToKeep value. */ public Integer weeklyBackupsToKeep() { @@ -113,7 +117,7 @@ public Integer weeklyBackupsToKeep() { /** * Set the weeklyBackupsToKeep property: Weekly backups count to keep. - * + * * @param weeklyBackupsToKeep the weeklyBackupsToKeep value to set. * @return the BackupPolicyProperties object itself. */ @@ -124,7 +128,7 @@ public BackupPolicyProperties withWeeklyBackupsToKeep(Integer weeklyBackupsToKee /** * Get the monthlyBackupsToKeep property: Monthly backups count to keep. - * + * * @return the monthlyBackupsToKeep value. */ public Integer monthlyBackupsToKeep() { @@ -133,7 +137,7 @@ public Integer monthlyBackupsToKeep() { /** * Set the monthlyBackupsToKeep property: Monthly backups count to keep. - * + * * @param monthlyBackupsToKeep the monthlyBackupsToKeep value to set. * @return the BackupPolicyProperties object itself. */ @@ -144,7 +148,7 @@ public BackupPolicyProperties withMonthlyBackupsToKeep(Integer monthlyBackupsToK /** * Get the volumesAssigned property: Volumes using current backup policy. - * + * * @return the volumesAssigned value. */ public Integer volumesAssigned() { @@ -153,7 +157,7 @@ public Integer volumesAssigned() { /** * Get the enabled property: The property to decide policy is enabled or not. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -162,7 +166,7 @@ public Boolean enabled() { /** * Set the enabled property: The property to decide policy is enabled or not. - * + * * @param enabled the enabled value to set. * @return the BackupPolicyProperties object itself. */ @@ -173,7 +177,7 @@ public BackupPolicyProperties withEnabled(Boolean enabled) { /** * Get the volumeBackups property: A list of volumes assigned to this policy. - * + * * @return the volumeBackups value. */ public List volumeBackups() { @@ -182,7 +186,7 @@ public List volumeBackups() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 2a2fbe5c3845..1859eec11cc4 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 @@ -14,7 +14,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Capacity pool resource. */ +/** + * Capacity pool resource. + */ @Fluent public final class CapacityPoolInner extends Resource { /* @@ -35,13 +37,15 @@ public final class CapacityPoolInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of CapacityPoolInner class. */ + /** + * Creates an instance of CapacityPoolInner class. + */ public CapacityPoolInner() { } /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -50,7 +54,7 @@ public String etag() { /** * Get the innerProperties property: Capacity pool properties. - * + * * @return the innerProperties value. */ private PoolProperties innerProperties() { @@ -59,21 +63,25 @@ private PoolProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public CapacityPoolInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public CapacityPoolInner withTags(Map tags) { super.withTags(tags); @@ -82,9 +90,9 @@ public CapacityPoolInner withTags(Map tags) { /** * Get the poolId property: poolId - * - *

UUID v4 used to identify the Pool. - * + * + * UUID v4 used to identify the Pool. + * * @return the poolId value. */ public String poolId() { @@ -93,10 +101,10 @@ public String poolId() { /** * Get the size property: size - * - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104). - * + * * @return the size value. */ public long size() { @@ -105,10 +113,10 @@ public long size() { /** * Set the size property: size - * - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104). - * + * * @param size the size value to set. * @return the CapacityPoolInner object itself. */ @@ -122,9 +130,9 @@ public CapacityPoolInner withSize(long size) { /** * Get the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @return the serviceLevel value. */ public ServiceLevel serviceLevel() { @@ -133,9 +141,9 @@ public ServiceLevel serviceLevel() { /** * Set the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @param serviceLevel the serviceLevel value to set. * @return the CapacityPoolInner object itself. */ @@ -149,7 +157,7 @@ public CapacityPoolInner withServiceLevel(ServiceLevel serviceLevel) { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -158,7 +166,7 @@ public String provisioningState() { /** * Get the totalThroughputMibps property: Total throughput of pool in MiB/s. - * + * * @return the totalThroughputMibps value. */ public Float totalThroughputMibps() { @@ -167,7 +175,7 @@ public Float totalThroughputMibps() { /** * Get the utilizedThroughputMibps property: Utilized throughput of pool in MiB/s. - * + * * @return the utilizedThroughputMibps value. */ public Float utilizedThroughputMibps() { @@ -176,7 +184,7 @@ public Float utilizedThroughputMibps() { /** * Get the qosType property: The qos type of the pool. - * + * * @return the qosType value. */ public QosType qosType() { @@ -185,7 +193,7 @@ public QosType qosType() { /** * Set the qosType property: The qos type of the pool. - * + * * @param qosType the qosType value to set. * @return the CapacityPoolInner object itself. */ @@ -199,7 +207,7 @@ public CapacityPoolInner withQosType(QosType qosType) { /** * Get the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes. - * + * * @return the coolAccess value. */ public Boolean coolAccess() { @@ -208,7 +216,7 @@ public Boolean coolAccess() { /** * Set the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes. - * + * * @param coolAccess the coolAccess value to set. * @return the CapacityPoolInner object itself. */ @@ -222,10 +230,10 @@ public CapacityPoolInner withCoolAccess(Boolean coolAccess) { /** * Get the encryptionType property: encryptionType - * - *

Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in - * it. This value can only be set when creating new pool. - * + * + * Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. + * This value can only be set when creating new pool. + * * @return the encryptionType value. */ public EncryptionType encryptionType() { @@ -234,10 +242,10 @@ public EncryptionType encryptionType() { /** * Set the encryptionType property: encryptionType - * - *

Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in - * it. This value can only be set when creating new pool. - * + * + * Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. + * This value can only be set when creating new pool. + * * @param encryptionType the encryptionType value to set. * @return the CapacityPoolInner object itself. */ @@ -251,15 +259,13 @@ public CapacityPoolInner withEncryptionType(EncryptionType encryptionType) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model CapacityPoolInner")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property innerProperties in model CapacityPoolInner")); } else { innerProperties().validate(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java index 9e062cb9c6c9..1ddaac212ac1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType; import com.fasterxml.jackson.annotation.JsonProperty; -/** Information regarding availability of a resource. */ +/** + * Information regarding availability of a resource. + */ @Fluent public final class CheckAvailabilityResponseInner { /* @@ -33,14 +35,16 @@ public final class CheckAvailabilityResponseInner { @JsonProperty(value = "message") private String message; - /** Creates an instance of CheckAvailabilityResponseInner class. */ + /** + * Creates an instance of CheckAvailabilityResponseInner class. + */ public CheckAvailabilityResponseInner() { } /** * Get the isAvailable property: <code>true</code> indicates name is valid and available. * <code>false</code> indicates the name is invalid, unavailable, or both. - * + * * @return the isAvailable value. */ public Boolean isAvailable() { @@ -50,7 +54,7 @@ public Boolean isAvailable() { /** * Set the isAvailable property: <code>true</code> indicates name is valid and available. * <code>false</code> indicates the name is invalid, unavailable, or both. - * + * * @param isAvailable the isAvailable value to set. * @return the CheckAvailabilityResponseInner object itself. */ @@ -61,9 +65,9 @@ public CheckAvailabilityResponseInner withIsAvailable(Boolean isAvailable) { /** * Get the reason property: <code>Invalid</code> indicates the name provided does not match Azure App - * Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and - * is therefore unavailable. - * + * Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use + * and is therefore unavailable. + * * @return the reason value. */ public InAvailabilityReasonType reason() { @@ -72,9 +76,9 @@ public InAvailabilityReasonType reason() { /** * Set the reason property: <code>Invalid</code> indicates the name provided does not match Azure App - * Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and - * is therefore unavailable. - * + * Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use + * and is therefore unavailable. + * * @param reason the reason value to set. * @return the CheckAvailabilityResponseInner object itself. */ @@ -87,7 +91,7 @@ public CheckAvailabilityResponseInner withReason(InAvailabilityReasonType reason * Get the message property: If reason == invalid, provide the user with the reason why the given name is invalid, * and provide the resource naming requirements so that the user can select a valid name. If reason == * AlreadyExists, explain that resource name is already in use, and direct them to select a different name. - * + * * @return the message value. */ public String message() { @@ -98,7 +102,7 @@ public String message() { * Set the message property: If reason == invalid, provide the user with the reason why the given name is invalid, * and provide the resource naming requirements so that the user can select a valid name. If reason == * AlreadyExists, explain that resource name is already in use, and direct them to select a different name. - * + * * @param message the message value to set. * @return the CheckAvailabilityResponseInner object itself. */ @@ -109,7 +113,7 @@ public CheckAvailabilityResponseInner withMessage(String message) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetGroupIdListForLdapUserResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetGroupIdListForLdapUserResponseInner.java index 326d7301a8b3..9438a22244f0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetGroupIdListForLdapUserResponseInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetGroupIdListForLdapUserResponseInner.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Group Id list for Ldap user. */ +/** + * Group Id list for Ldap user. + */ @Fluent public final class GetGroupIdListForLdapUserResponseInner { /* @@ -17,13 +19,15 @@ public final class GetGroupIdListForLdapUserResponseInner { @JsonProperty(value = "groupIdsForLdapUser") private List groupIdsForLdapUser; - /** Creates an instance of GetGroupIdListForLdapUserResponseInner class. */ + /** + * Creates an instance of GetGroupIdListForLdapUserResponseInner class. + */ public GetGroupIdListForLdapUserResponseInner() { } /** * Get the groupIdsForLdapUser property: Group Id list. - * + * * @return the groupIdsForLdapUser value. */ public List groupIdsForLdapUser() { @@ -32,7 +36,7 @@ public List groupIdsForLdapUser() { /** * Set the groupIdsForLdapUser property: Group Id list. - * + * * @param groupIdsForLdapUser the groupIdsForLdapUser value to set. * @return the GetGroupIdListForLdapUserResponseInner object itself. */ @@ -43,7 +47,7 @@ public GetGroupIdListForLdapUserResponseInner withGroupIdsForLdapUser(ListUUID v4 used to identify the MountTarget. - * + * + * UUID v4 used to identify the MountTarget. + * * @return the mountTargetId value. */ public String mountTargetId() { @@ -60,9 +64,9 @@ public String mountTargetId() { /** * Get the fileSystemId property: fileSystemId - * - *

UUID v4 used to identify the MountTarget. - * + * + * UUID v4 used to identify the MountTarget. + * * @return the fileSystemId value. */ public String fileSystemId() { @@ -71,9 +75,9 @@ public String fileSystemId() { /** * Set the fileSystemId property: fileSystemId - * - *

UUID v4 used to identify the MountTarget. - * + * + * UUID v4 used to identify the MountTarget. + * * @param fileSystemId the fileSystemId value to set. * @return the MountTargetProperties object itself. */ @@ -84,9 +88,9 @@ public MountTargetProperties withFileSystemId(String fileSystemId) { /** * Get the ipAddress property: ipAddress - * - *

The mount target's IPv4 address. - * + * + * The mount target's IPv4 address. + * * @return the ipAddress value. */ public String ipAddress() { @@ -95,9 +99,9 @@ public String ipAddress() { /** * Get the smbServerFqdn property: smbServerFQDN - * - *

The SMB server's Fully Qualified Domain Name, FQDN. - * + * + * The SMB server's Fully Qualified Domain Name, FQDN. + * * @return the smbServerFqdn value. */ public String smbServerFqdn() { @@ -106,9 +110,9 @@ public String smbServerFqdn() { /** * Set the smbServerFqdn property: smbServerFQDN - * - *

The SMB server's Fully Qualified Domain Name, FQDN. - * + * + * The SMB server's Fully Qualified Domain Name, FQDN. + * * @param smbServerFqdn the smbServerFqdn value to set. * @return the MountTargetProperties object itself. */ @@ -119,15 +123,13 @@ public MountTargetProperties withSmbServerFqdn(String smbServerFqdn) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (fileSystemId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property fileSystemId in model MountTargetProperties")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property fileSystemId in model MountTargetProperties")); } } 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 a24a5835d781..d9137b341670 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 @@ -14,7 +14,9 @@ import java.util.List; import java.util.Map; -/** NetApp account resource. */ +/** + * NetApp account resource. + */ @Fluent public final class NetAppAccountInner extends Resource { /* @@ -41,13 +43,15 @@ public final class NetAppAccountInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of NetAppAccountInner class. */ + /** + * Creates an instance of NetAppAccountInner class. + */ public NetAppAccountInner() { } /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -56,7 +60,7 @@ public String etag() { /** * Get the innerProperties property: NetApp Account properties. - * + * * @return the innerProperties value. */ private AccountProperties innerProperties() { @@ -65,7 +69,7 @@ private AccountProperties innerProperties() { /** * Get the identity property: The identity used for the resource. - * + * * @return the identity value. */ public ManagedServiceIdentity identity() { @@ -74,7 +78,7 @@ public ManagedServiceIdentity identity() { /** * Set the identity property: The identity used for the resource. - * + * * @param identity the identity value to set. * @return the NetAppAccountInner object itself. */ @@ -85,21 +89,25 @@ public NetAppAccountInner withIdentity(ManagedServiceIdentity identity) { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public NetAppAccountInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public NetAppAccountInner withTags(Map tags) { super.withTags(tags); @@ -108,7 +116,7 @@ public NetAppAccountInner withTags(Map tags) { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -117,7 +125,7 @@ public String provisioningState() { /** * Get the activeDirectories property: Active Directories. - * + * * @return the activeDirectories value. */ public List activeDirectories() { @@ -126,7 +134,7 @@ public List activeDirectories() { /** * Set the activeDirectories property: Active Directories. - * + * * @param activeDirectories the activeDirectories value to set. * @return the NetAppAccountInner object itself. */ @@ -140,7 +148,7 @@ public NetAppAccountInner withActiveDirectories(List activeDire /** * Get the encryption property: Encryption settings. - * + * * @return the encryption value. */ public AccountEncryption encryption() { @@ -149,7 +157,7 @@ public AccountEncryption encryption() { /** * Set the encryption property: Encryption settings. - * + * * @param encryption the encryption value to set. * @return the NetAppAccountInner object itself. */ @@ -164,7 +172,7 @@ public NetAppAccountInner withEncryption(AccountEncryption encryption) { /** * Get the disableShowmount property: Shows the status of disableShowmount for all volumes under the subscription, * null equals false. - * + * * @return the disableShowmount value. */ public Boolean disableShowmount() { @@ -173,7 +181,7 @@ public Boolean disableShowmount() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java index 37b25ae1c3c6..ce34234fe3ef 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java @@ -13,14 +13,14 @@ /** * Network sibling set - * - *

Describes the contents of a network sibling set. + * + * Describes the contents of a network sibling set. */ @Fluent public final class NetworkSiblingSetInner { /* * Network Sibling Set ID - * + * * Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. */ @JsonProperty(value = "networkSiblingSetId") @@ -28,16 +28,17 @@ public final class NetworkSiblingSetInner { /* * Subnet resource Id - * + * * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example - * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/ + * subnets/{mySubnet} */ @JsonProperty(value = "subnetId") private String subnetId; /* * Network sibling set state Id - * + * * Network sibling set state Id identifying the current state of the sibling set. */ @JsonProperty(value = "networkSiblingSetStateId") @@ -45,7 +46,7 @@ public final class NetworkSiblingSetInner { /* * Network features - * + * * Network features available to the volume, or current state of update. */ @JsonProperty(value = "networkFeatures") @@ -63,15 +64,17 @@ public final class NetworkSiblingSetInner { @JsonProperty(value = "nicInfoList") private List nicInfoList; - /** Creates an instance of NetworkSiblingSetInner class. */ + /** + * Creates an instance of NetworkSiblingSetInner class. + */ public NetworkSiblingSetInner() { } /** * Get the networkSiblingSetId property: Network Sibling Set ID - * - *

Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - * + * + * Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + * * @return the networkSiblingSetId value. */ public String networkSiblingSetId() { @@ -80,9 +83,9 @@ public String networkSiblingSetId() { /** * Set the networkSiblingSetId property: Network Sibling Set ID - * - *

Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - * + * + * Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + * * @param networkSiblingSetId the networkSiblingSetId value to set. * @return the NetworkSiblingSetInner object itself. */ @@ -93,10 +96,10 @@ public NetworkSiblingSetInner withNetworkSiblingSetId(String networkSiblingSetId /** * Get the subnetId property: Subnet resource Id - * - *

The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example + * + * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. - * + * * @return the subnetId value. */ public String subnetId() { @@ -105,10 +108,10 @@ public String subnetId() { /** * Set the subnetId property: Subnet resource Id - * - *

The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example + * + * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. - * + * * @param subnetId the subnetId value to set. * @return the NetworkSiblingSetInner object itself. */ @@ -119,9 +122,9 @@ public NetworkSiblingSetInner withSubnetId(String subnetId) { /** * Get the networkSiblingSetStateId property: Network sibling set state Id - * - *

Network sibling set state Id identifying the current state of the sibling set. - * + * + * Network sibling set state Id identifying the current state of the sibling set. + * * @return the networkSiblingSetStateId value. */ public String networkSiblingSetStateId() { @@ -130,9 +133,9 @@ public String networkSiblingSetStateId() { /** * Set the networkSiblingSetStateId property: Network sibling set state Id - * - *

Network sibling set state Id identifying the current state of the sibling set. - * + * + * Network sibling set state Id identifying the current state of the sibling set. + * * @param networkSiblingSetStateId the networkSiblingSetStateId value to set. * @return the NetworkSiblingSetInner object itself. */ @@ -143,9 +146,9 @@ public NetworkSiblingSetInner withNetworkSiblingSetStateId(String networkSibling /** * Get the networkFeatures property: Network features - * - *

Network features available to the volume, or current state of update. - * + * + * Network features available to the volume, or current state of update. + * * @return the networkFeatures value. */ public NetworkFeatures networkFeatures() { @@ -154,9 +157,9 @@ public NetworkFeatures networkFeatures() { /** * Set the networkFeatures property: Network features - * - *

Network features available to the volume, or current state of update. - * + * + * Network features available to the volume, or current state of update. + * * @param networkFeatures the networkFeatures value to set. * @return the NetworkSiblingSetInner object itself. */ @@ -168,7 +171,7 @@ public NetworkSiblingSetInner withNetworkFeatures(NetworkFeatures networkFeature /** * Get the provisioningState property: Gets the status of the NetworkSiblingSet at the time the operation was * called. - * + * * @return the provisioningState value. */ public NetworkSiblingSetProvisioningState provisioningState() { @@ -177,7 +180,7 @@ public NetworkSiblingSetProvisioningState provisioningState() { /** * Get the nicInfoList property: List of NIC information. - * + * * @return the nicInfoList value. */ public List nicInfoList() { @@ -186,7 +189,7 @@ public List nicInfoList() { /** * Set the nicInfoList property: List of NIC information. - * + * * @param nicInfoList the nicInfoList value to set. * @return the NetworkSiblingSetInner object itself. */ @@ -197,7 +200,7 @@ public NetworkSiblingSetInner withNicInfoList(List nicInfoList) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java index 18b961640a3c..4f5d863a90af 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.netapp.models.ServiceSpecification; import com.fasterxml.jackson.annotation.JsonProperty; -/** Microsoft.NetApp REST API operation definition. */ +/** + * Microsoft.NetApp REST API operation definition. + */ @Fluent public final class OperationInner { /* @@ -36,13 +38,15 @@ public final class OperationInner { @JsonProperty(value = "properties") private OperationProperties innerProperties; - /** Creates an instance of OperationInner class. */ + /** + * Creates an instance of OperationInner class. + */ public OperationInner() { } /** * Get the name property: Operation name: {provider}/{resource}/{operation}. - * + * * @return the name value. */ public String name() { @@ -51,7 +55,7 @@ public String name() { /** * Set the name property: Operation name: {provider}/{resource}/{operation}. - * + * * @param name the name value to set. * @return the OperationInner object itself. */ @@ -62,7 +66,7 @@ public OperationInner withName(String name) { /** * Get the display property: Display metadata associated with the operation. - * + * * @return the display value. */ public OperationDisplay display() { @@ -71,7 +75,7 @@ public OperationDisplay display() { /** * Set the display property: Display metadata associated with the operation. - * + * * @param display the display value to set. * @return the OperationInner object itself. */ @@ -82,7 +86,7 @@ public OperationInner withDisplay(OperationDisplay display) { /** * Get the origin property: The origin of operations. - * + * * @return the origin value. */ public String origin() { @@ -91,7 +95,7 @@ public String origin() { /** * Set the origin property: The origin of operations. - * + * * @param origin the origin value to set. * @return the OperationInner object itself. */ @@ -102,7 +106,7 @@ public OperationInner withOrigin(String origin) { /** * Get the innerProperties property: Properties of operation, include metric specifications. - * + * * @return the innerProperties value. */ private OperationProperties innerProperties() { @@ -111,7 +115,7 @@ private OperationProperties innerProperties() { /** * Get the serviceSpecification property: One property of operation, include metric specifications. - * + * * @return the serviceSpecification value. */ public ServiceSpecification serviceSpecification() { @@ -120,7 +124,7 @@ public ServiceSpecification serviceSpecification() { /** * Set the serviceSpecification property: One property of operation, include metric specifications. - * + * * @param serviceSpecification the serviceSpecification value to set. * @return the OperationInner object itself. */ @@ -134,7 +138,7 @@ public OperationInner withServiceSpecification(ServiceSpecification serviceSpeci /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java index 16117c4ef51a..4939f8d4ab1e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.netapp.models.ServiceSpecification; import com.fasterxml.jackson.annotation.JsonProperty; -/** Properties of operation, include metric specifications. */ +/** + * Properties of operation, include metric specifications. + */ @Fluent public final class OperationProperties { /* @@ -17,13 +19,15 @@ public final class OperationProperties { @JsonProperty(value = "serviceSpecification") private ServiceSpecification serviceSpecification; - /** Creates an instance of OperationProperties class. */ + /** + * Creates an instance of OperationProperties class. + */ public OperationProperties() { } /** * Get the serviceSpecification property: One property of operation, include metric specifications. - * + * * @return the serviceSpecification value. */ public ServiceSpecification serviceSpecification() { @@ -32,7 +36,7 @@ public ServiceSpecification serviceSpecification() { /** * Set the serviceSpecification property: One property of operation, include metric specifications. - * + * * @param serviceSpecification the serviceSpecification value to set. * @return the OperationProperties object itself. */ @@ -43,7 +47,7 @@ public OperationProperties withServiceSpecification(ServiceSpecification service /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 7867a3794d46..13021a3c33ca 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 @@ -8,12 +8,14 @@ import com.azure.resourcemanager.netapp.models.QosType; import com.fasterxml.jackson.annotation.JsonProperty; -/** Patchable pool properties. */ +/** + * Patchable pool properties. + */ @Fluent public final class PoolPatchProperties { /* * size - * + * * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104). */ @@ -32,16 +34,18 @@ public final class PoolPatchProperties { @JsonProperty(value = "coolAccess") private Boolean coolAccess; - /** Creates an instance of PoolPatchProperties class. */ + /** + * Creates an instance of PoolPatchProperties class. + */ public PoolPatchProperties() { } /** * Get the size property: size - * - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104). - * + * * @return the size value. */ public Long size() { @@ -50,10 +54,10 @@ public Long size() { /** * Set the size property: size - * - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104). - * + * * @param size the size value to set. * @return the PoolPatchProperties object itself. */ @@ -64,7 +68,7 @@ public PoolPatchProperties withSize(Long size) { /** * Get the qosType property: The qos type of the pool. - * + * * @return the qosType value. */ public QosType qosType() { @@ -73,7 +77,7 @@ public QosType qosType() { /** * Set the qosType property: The qos type of the pool. - * + * * @param qosType the qosType value to set. * @return the PoolPatchProperties object itself. */ @@ -84,7 +88,7 @@ public PoolPatchProperties withQosType(QosType qosType) { /** * Get the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes. - * + * * @return the coolAccess value. */ public Boolean coolAccess() { @@ -93,7 +97,7 @@ public Boolean coolAccess() { /** * Set the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes. - * + * * @param coolAccess the coolAccess value to set. * @return the PoolPatchProperties object itself. */ @@ -104,7 +108,7 @@ public PoolPatchProperties withCoolAccess(Boolean coolAccess) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java index dd3aa2f9c20b..1389b2a2fde2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java @@ -11,12 +11,14 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; import com.fasterxml.jackson.annotation.JsonProperty; -/** Pool properties. */ +/** + * Pool properties. + */ @Fluent public final class PoolProperties { /* * poolId - * + * * UUID v4 used to identify the Pool */ @JsonProperty(value = "poolId", access = JsonProperty.Access.WRITE_ONLY) @@ -24,7 +26,7 @@ public final class PoolProperties { /* * size - * + * * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104). */ @@ -33,7 +35,7 @@ public final class PoolProperties { /* * serviceLevel - * + * * The service level of the file system */ @JsonProperty(value = "serviceLevel", required = true) @@ -71,22 +73,24 @@ public final class PoolProperties { /* * encryptionType - * + * * Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. * This value can only be set when creating new pool. */ @JsonProperty(value = "encryptionType") private EncryptionType encryptionType; - /** Creates an instance of PoolProperties class. */ + /** + * Creates an instance of PoolProperties class. + */ public PoolProperties() { } /** * Get the poolId property: poolId - * - *

UUID v4 used to identify the Pool. - * + * + * UUID v4 used to identify the Pool. + * * @return the poolId value. */ public String poolId() { @@ -95,10 +99,10 @@ public String poolId() { /** * Get the size property: size - * - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104). - * + * * @return the size value. */ public long size() { @@ -107,10 +111,10 @@ public long size() { /** * Set the size property: size - * - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104). - * + * * @param size the size value to set. * @return the PoolProperties object itself. */ @@ -121,9 +125,9 @@ public PoolProperties withSize(long size) { /** * Get the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @return the serviceLevel value. */ public ServiceLevel serviceLevel() { @@ -132,9 +136,9 @@ public ServiceLevel serviceLevel() { /** * Set the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @param serviceLevel the serviceLevel value to set. * @return the PoolProperties object itself. */ @@ -145,7 +149,7 @@ public PoolProperties withServiceLevel(ServiceLevel serviceLevel) { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -154,7 +158,7 @@ public String provisioningState() { /** * Get the totalThroughputMibps property: Total throughput of pool in MiB/s. - * + * * @return the totalThroughputMibps value. */ public Float totalThroughputMibps() { @@ -163,7 +167,7 @@ public Float totalThroughputMibps() { /** * Get the utilizedThroughputMibps property: Utilized throughput of pool in MiB/s. - * + * * @return the utilizedThroughputMibps value. */ public Float utilizedThroughputMibps() { @@ -172,7 +176,7 @@ public Float utilizedThroughputMibps() { /** * Get the qosType property: The qos type of the pool. - * + * * @return the qosType value. */ public QosType qosType() { @@ -181,7 +185,7 @@ public QosType qosType() { /** * Set the qosType property: The qos type of the pool. - * + * * @param qosType the qosType value to set. * @return the PoolProperties object itself. */ @@ -192,7 +196,7 @@ public PoolProperties withQosType(QosType qosType) { /** * Get the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes. - * + * * @return the coolAccess value. */ public Boolean coolAccess() { @@ -201,7 +205,7 @@ public Boolean coolAccess() { /** * Set the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes. - * + * * @param coolAccess the coolAccess value to set. * @return the PoolProperties object itself. */ @@ -212,10 +216,10 @@ public PoolProperties withCoolAccess(Boolean coolAccess) { /** * Get the encryptionType property: encryptionType - * - *

Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in - * it. This value can only be set when creating new pool. - * + * + * Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. + * This value can only be set when creating new pool. + * * @return the encryptionType value. */ public EncryptionType encryptionType() { @@ -224,10 +228,10 @@ public EncryptionType encryptionType() { /** * Set the encryptionType property: encryptionType - * - *

Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in - * it. This value can only be set when creating new pool. - * + * + * Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. + * This value can only be set when creating new pool. + * * @param encryptionType the encryptionType value to set. * @return the PoolProperties object itself. */ @@ -238,14 +242,13 @@ public PoolProperties withEncryptionType(EncryptionType encryptionType) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (serviceLevel() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property serviceLevel in model PoolProperties")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property serviceLevel in model PoolProperties")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java index 32f78d24a9b6..e8701304c0a5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java @@ -10,12 +10,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Provides region specific information. */ +/** + * Provides region specific information. + */ @Fluent public final class RegionInfoInner { /* * Storage to Network Proximity - * + * * Provides storage to network proximity information in the region. */ @JsonProperty(value = "storageToNetworkProximity") @@ -23,21 +25,23 @@ public final class RegionInfoInner { /* * Logical availability zone mappings. - * + * * Provides logical availability zone mappings for the subscription for a region. */ @JsonProperty(value = "availabilityZoneMappings") private List availabilityZoneMappings; - /** Creates an instance of RegionInfoInner class. */ + /** + * Creates an instance of RegionInfoInner class. + */ public RegionInfoInner() { } /** * Get the storageToNetworkProximity property: Storage to Network Proximity - * - *

Provides storage to network proximity information in the region. - * + * + * Provides storage to network proximity information in the region. + * * @return the storageToNetworkProximity value. */ public RegionStorageToNetworkProximity storageToNetworkProximity() { @@ -46,9 +50,9 @@ public RegionStorageToNetworkProximity storageToNetworkProximity() { /** * Set the storageToNetworkProximity property: Storage to Network Proximity - * - *

Provides storage to network proximity information in the region. - * + * + * Provides storage to network proximity information in the region. + * * @param storageToNetworkProximity the storageToNetworkProximity value to set. * @return the RegionInfoInner object itself. */ @@ -59,9 +63,9 @@ public RegionInfoInner withStorageToNetworkProximity(RegionStorageToNetworkProxi /** * Get the availabilityZoneMappings property: Logical availability zone mappings. - * - *

Provides logical availability zone mappings for the subscription for a region. - * + * + * Provides logical availability zone mappings for the subscription for a region. + * * @return the availabilityZoneMappings value. */ public List availabilityZoneMappings() { @@ -70,21 +74,21 @@ public List availabilityZoneMappings() { /** * Set the availabilityZoneMappings property: Logical availability zone mappings. - * - *

Provides logical availability zone mappings for the subscription for a region. - * + * + * Provides logical availability zone mappings for the subscription for a region. + * * @param availabilityZoneMappings the availabilityZoneMappings value to set. * @return the RegionInfoInner object itself. */ - public RegionInfoInner withAvailabilityZoneMappings( - List availabilityZoneMappings) { + public RegionInfoInner + withAvailabilityZoneMappings(List availabilityZoneMappings) { this.availabilityZoneMappings = availabilityZoneMappings; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java index bd1d78b8969b..afd8aeadd33b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java @@ -10,7 +10,9 @@ import com.azure.resourcemanager.netapp.models.ReplicationSchedule; import com.fasterxml.jackson.annotation.JsonProperty; -/** Replication properties. */ +/** + * Replication properties. + */ @Fluent public final class ReplicationInner { /* @@ -37,14 +39,16 @@ public final class ReplicationInner { @JsonProperty(value = "remoteVolumeRegion") private String remoteVolumeRegion; - /** Creates an instance of ReplicationInner class. */ + /** + * Creates an instance of ReplicationInner class. + */ public ReplicationInner() { } /** * Get the endpointType property: Indicates whether the local volume is the source or destination for the Volume * Replication. - * + * * @return the endpointType value. */ public EndpointType endpointType() { @@ -54,7 +58,7 @@ public EndpointType 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 ReplicationInner object itself. */ @@ -65,7 +69,7 @@ public ReplicationInner withEndpointType(EndpointType endpointType) { /** * Get the replicationSchedule property: Schedule. - * + * * @return the replicationSchedule value. */ public ReplicationSchedule replicationSchedule() { @@ -74,7 +78,7 @@ public ReplicationSchedule replicationSchedule() { /** * Set the replicationSchedule property: Schedule. - * + * * @param replicationSchedule the replicationSchedule value to set. * @return the ReplicationInner object itself. */ @@ -85,7 +89,7 @@ public ReplicationInner withReplicationSchedule(ReplicationSchedule replicationS /** * Get the remoteVolumeResourceId property: The resource ID of the remote volume. - * + * * @return the remoteVolumeResourceId value. */ public String remoteVolumeResourceId() { @@ -94,7 +98,7 @@ public String remoteVolumeResourceId() { /** * Set the remoteVolumeResourceId property: The resource ID of the remote volume. - * + * * @param remoteVolumeResourceId the remoteVolumeResourceId value to set. * @return the ReplicationInner object itself. */ @@ -105,7 +109,7 @@ public ReplicationInner withRemoteVolumeResourceId(String remoteVolumeResourceId /** * Get the remoteVolumeRegion property: The remote region for the other end of the Volume Replication. - * + * * @return the remoteVolumeRegion value. */ public String remoteVolumeRegion() { @@ -114,7 +118,7 @@ public String remoteVolumeRegion() { /** * Set the remoteVolumeRegion property: The remote region for the other end of the Volume Replication. - * + * * @param remoteVolumeRegion the remoteVolumeRegion value to set. * @return the ReplicationInner object itself. */ @@ -125,15 +129,13 @@ public ReplicationInner withRemoteVolumeRegion(String remoteVolumeRegion) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (remoteVolumeResourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property remoteVolumeResourceId in model ReplicationInner")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property remoteVolumeResourceId in model ReplicationInner")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java index a1cbe4b0bed4..aab387c909f6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.netapp.models.RelationshipStatus; import com.fasterxml.jackson.annotation.JsonProperty; -/** Replication status. */ +/** + * Replication status. + */ @Fluent public final class ReplicationStatusInner { /* @@ -42,13 +44,15 @@ public final class ReplicationStatusInner { @JsonProperty(value = "errorMessage") private String errorMessage; - /** Creates an instance of ReplicationStatusInner class. */ + /** + * Creates an instance of ReplicationStatusInner class. + */ public ReplicationStatusInner() { } /** * Get the healthy property: Replication health check. - * + * * @return the healthy value. */ public Boolean healthy() { @@ -57,7 +61,7 @@ public Boolean healthy() { /** * Set the healthy property: Replication health check. - * + * * @param healthy the healthy value to set. * @return the ReplicationStatusInner object itself. */ @@ -68,7 +72,7 @@ public ReplicationStatusInner withHealthy(Boolean healthy) { /** * Get the relationshipStatus property: Status of the mirror relationship. - * + * * @return the relationshipStatus value. */ public RelationshipStatus relationshipStatus() { @@ -77,7 +81,7 @@ public RelationshipStatus relationshipStatus() { /** * Set the relationshipStatus property: Status of the mirror relationship. - * + * * @param relationshipStatus the relationshipStatus value to set. * @return the ReplicationStatusInner object itself. */ @@ -88,7 +92,7 @@ public ReplicationStatusInner withRelationshipStatus(RelationshipStatus relation /** * Get the mirrorState property: The status of the replication. - * + * * @return the mirrorState value. */ public MirrorState mirrorState() { @@ -97,7 +101,7 @@ public MirrorState mirrorState() { /** * Set the mirrorState property: The status of the replication. - * + * * @param mirrorState the mirrorState value to set. * @return the ReplicationStatusInner object itself. */ @@ -108,7 +112,7 @@ public ReplicationStatusInner withMirrorState(MirrorState mirrorState) { /** * Get the totalProgress property: The progress of the replication. - * + * * @return the totalProgress value. */ public String totalProgress() { @@ -117,7 +121,7 @@ public String totalProgress() { /** * Set the totalProgress property: The progress of the replication. - * + * * @param totalProgress the totalProgress value to set. * @return the ReplicationStatusInner object itself. */ @@ -128,7 +132,7 @@ public ReplicationStatusInner withTotalProgress(String totalProgress) { /** * Get the errorMessage property: Displays error message if the replication is in an error state. - * + * * @return the errorMessage value. */ public String errorMessage() { @@ -137,7 +141,7 @@ public String errorMessage() { /** * Set the errorMessage property: Displays error message if the replication is in an error state. - * + * * @param errorMessage the errorMessage value to set. * @return the ReplicationStatusInner object itself. */ @@ -148,7 +152,7 @@ public ReplicationStatusInner withErrorMessage(String errorMessage) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java index 370222b6de4e..1fc86c37c24f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.netapp.models.RelationshipStatus; import com.fasterxml.jackson.annotation.JsonProperty; -/** Restore status. */ +/** + * Restore status. + */ @Immutable public final class RestoreStatusInner { /* @@ -48,13 +50,15 @@ public final class RestoreStatusInner { @JsonProperty(value = "totalTransferBytes", access = JsonProperty.Access.WRITE_ONLY) private Long totalTransferBytes; - /** Creates an instance of RestoreStatusInner class. */ + /** + * Creates an instance of RestoreStatusInner class. + */ public RestoreStatusInner() { } /** * Get the healthy property: Restore health status. - * + * * @return the healthy value. */ public Boolean healthy() { @@ -63,7 +67,7 @@ public Boolean healthy() { /** * Get the relationshipStatus property: Status of the restore SnapMirror relationship. - * + * * @return the relationshipStatus value. */ public RelationshipStatus relationshipStatus() { @@ -72,7 +76,7 @@ public RelationshipStatus relationshipStatus() { /** * Get the mirrorState property: The status of the restore. - * + * * @return the mirrorState value. */ public MirrorState mirrorState() { @@ -81,7 +85,7 @@ public MirrorState mirrorState() { /** * Get the unhealthyReason property: Reason for the unhealthy restore relationship. - * + * * @return the unhealthyReason value. */ public String unhealthyReason() { @@ -90,7 +94,7 @@ public String unhealthyReason() { /** * Get the errorMessage property: Displays error message if the restore is in an error state. - * + * * @return the errorMessage value. */ public String errorMessage() { @@ -99,7 +103,7 @@ public String errorMessage() { /** * Get the totalTransferBytes property: Displays the total bytes transferred. - * + * * @return the totalTransferBytes value. */ public Long totalTransferBytes() { @@ -108,7 +112,7 @@ public Long totalTransferBytes() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java index 363049bca673..f5648d1b2356 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Snapshot of a Volume. */ +/** + * Snapshot of a Volume. + */ @Fluent public final class SnapshotInner extends ProxyResource { /* @@ -32,13 +34,15 @@ public final class SnapshotInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of SnapshotInner class. */ + /** + * Creates an instance of SnapshotInner class. + */ public SnapshotInner() { } /** * Get the location property: Resource location. - * + * * @return the location value. */ public String location() { @@ -47,7 +51,7 @@ public String location() { /** * Set the location property: Resource location. - * + * * @param location the location value to set. * @return the SnapshotInner object itself. */ @@ -58,7 +62,7 @@ public SnapshotInner withLocation(String location) { /** * Get the innerProperties property: Snapshot Properties. - * + * * @return the innerProperties value. */ private SnapshotProperties innerProperties() { @@ -67,7 +71,7 @@ private SnapshotProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -76,9 +80,9 @@ public SystemData systemData() { /** * Get the snapshotId property: snapshotId - * - *

UUID v4 used to identify the Snapshot. - * + * + * UUID v4 used to identify the Snapshot. + * * @return the snapshotId value. */ public String snapshotId() { @@ -87,9 +91,9 @@ public String snapshotId() { /** * Get the created property: name - * - *

The creation date of the snapshot. - * + * + * The creation date of the snapshot. + * * @return the created value. */ public OffsetDateTime created() { @@ -98,7 +102,7 @@ public OffsetDateTime created() { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -107,14 +111,13 @@ public String provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (location() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property location in model SnapshotInner")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property location in model SnapshotInner")); } if (innerProperties() != null) { innerProperties().validate(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java index 83870dbae025..fd67da6ed9e9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java @@ -15,7 +15,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Snapshot policy information. */ +/** + * Snapshot policy information. + */ @Fluent public final class SnapshotPolicyInner extends Resource { /* @@ -36,13 +38,15 @@ public final class SnapshotPolicyInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of SnapshotPolicyInner class. */ + /** + * Creates an instance of SnapshotPolicyInner class. + */ public SnapshotPolicyInner() { } /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -51,7 +55,7 @@ public String etag() { /** * Get the innerProperties property: Snapshot policy Properties. - * + * * @return the innerProperties value. */ private SnapshotPolicyProperties innerProperties() { @@ -60,21 +64,25 @@ private SnapshotPolicyProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SnapshotPolicyInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SnapshotPolicyInner withTags(Map tags) { super.withTags(tags); @@ -83,7 +91,7 @@ public SnapshotPolicyInner withTags(Map tags) { /** * Get the hourlySchedule property: Schedule for hourly snapshots. - * + * * @return the hourlySchedule value. */ public HourlySchedule hourlySchedule() { @@ -92,7 +100,7 @@ public HourlySchedule hourlySchedule() { /** * Set the hourlySchedule property: Schedule for hourly snapshots. - * + * * @param hourlySchedule the hourlySchedule value to set. * @return the SnapshotPolicyInner object itself. */ @@ -106,7 +114,7 @@ public SnapshotPolicyInner withHourlySchedule(HourlySchedule hourlySchedule) { /** * Get the dailySchedule property: Schedule for daily snapshots. - * + * * @return the dailySchedule value. */ public DailySchedule dailySchedule() { @@ -115,7 +123,7 @@ public DailySchedule dailySchedule() { /** * Set the dailySchedule property: Schedule for daily snapshots. - * + * * @param dailySchedule the dailySchedule value to set. * @return the SnapshotPolicyInner object itself. */ @@ -129,7 +137,7 @@ public SnapshotPolicyInner withDailySchedule(DailySchedule dailySchedule) { /** * Get the weeklySchedule property: Schedule for weekly snapshots. - * + * * @return the weeklySchedule value. */ public WeeklySchedule weeklySchedule() { @@ -138,7 +146,7 @@ public WeeklySchedule weeklySchedule() { /** * Set the weeklySchedule property: Schedule for weekly snapshots. - * + * * @param weeklySchedule the weeklySchedule value to set. * @return the SnapshotPolicyInner object itself. */ @@ -152,7 +160,7 @@ public SnapshotPolicyInner withWeeklySchedule(WeeklySchedule weeklySchedule) { /** * Get the monthlySchedule property: Schedule for monthly snapshots. - * + * * @return the monthlySchedule value. */ public MonthlySchedule monthlySchedule() { @@ -161,7 +169,7 @@ public MonthlySchedule monthlySchedule() { /** * Set the monthlySchedule property: Schedule for monthly snapshots. - * + * * @param monthlySchedule the monthlySchedule value to set. * @return the SnapshotPolicyInner object itself. */ @@ -175,7 +183,7 @@ public SnapshotPolicyInner withMonthlySchedule(MonthlySchedule monthlySchedule) /** * Get the enabled property: The property to decide policy is enabled or not. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -184,7 +192,7 @@ public Boolean enabled() { /** * Set the enabled property: The property to decide policy is enabled or not. - * + * * @param enabled the enabled value to set. * @return the SnapshotPolicyInner object itself. */ @@ -198,7 +206,7 @@ public SnapshotPolicyInner withEnabled(Boolean enabled) { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -207,15 +215,13 @@ public String provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model SnapshotPolicyInner")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property innerProperties in model SnapshotPolicyInner")); } else { innerProperties().validate(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java index aa9ace19ad48..638df907f1aa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java @@ -11,7 +11,9 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; import com.fasterxml.jackson.annotation.JsonProperty; -/** Snapshot policy properties. */ +/** + * Snapshot policy properties. + */ @Fluent public final class SnapshotPolicyProperties { /* @@ -50,13 +52,15 @@ public final class SnapshotPolicyProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; - /** Creates an instance of SnapshotPolicyProperties class. */ + /** + * Creates an instance of SnapshotPolicyProperties class. + */ public SnapshotPolicyProperties() { } /** * Get the hourlySchedule property: Schedule for hourly snapshots. - * + * * @return the hourlySchedule value. */ public HourlySchedule hourlySchedule() { @@ -65,7 +69,7 @@ public HourlySchedule hourlySchedule() { /** * Set the hourlySchedule property: Schedule for hourly snapshots. - * + * * @param hourlySchedule the hourlySchedule value to set. * @return the SnapshotPolicyProperties object itself. */ @@ -76,7 +80,7 @@ public SnapshotPolicyProperties withHourlySchedule(HourlySchedule hourlySchedule /** * Get the dailySchedule property: Schedule for daily snapshots. - * + * * @return the dailySchedule value. */ public DailySchedule dailySchedule() { @@ -85,7 +89,7 @@ public DailySchedule dailySchedule() { /** * Set the dailySchedule property: Schedule for daily snapshots. - * + * * @param dailySchedule the dailySchedule value to set. * @return the SnapshotPolicyProperties object itself. */ @@ -96,7 +100,7 @@ public SnapshotPolicyProperties withDailySchedule(DailySchedule dailySchedule) { /** * Get the weeklySchedule property: Schedule for weekly snapshots. - * + * * @return the weeklySchedule value. */ public WeeklySchedule weeklySchedule() { @@ -105,7 +109,7 @@ public WeeklySchedule weeklySchedule() { /** * Set the weeklySchedule property: Schedule for weekly snapshots. - * + * * @param weeklySchedule the weeklySchedule value to set. * @return the SnapshotPolicyProperties object itself. */ @@ -116,7 +120,7 @@ public SnapshotPolicyProperties withWeeklySchedule(WeeklySchedule weeklySchedule /** * Get the monthlySchedule property: Schedule for monthly snapshots. - * + * * @return the monthlySchedule value. */ public MonthlySchedule monthlySchedule() { @@ -125,7 +129,7 @@ public MonthlySchedule monthlySchedule() { /** * Set the monthlySchedule property: Schedule for monthly snapshots. - * + * * @param monthlySchedule the monthlySchedule value to set. * @return the SnapshotPolicyProperties object itself. */ @@ -136,7 +140,7 @@ public SnapshotPolicyProperties withMonthlySchedule(MonthlySchedule monthlySched /** * Get the enabled property: The property to decide policy is enabled or not. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -145,7 +149,7 @@ public Boolean enabled() { /** * Set the enabled property: The property to decide policy is enabled or not. - * + * * @param enabled the enabled value to set. * @return the SnapshotPolicyProperties object itself. */ @@ -156,7 +160,7 @@ public SnapshotPolicyProperties withEnabled(Boolean enabled) { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -165,7 +169,7 @@ public String provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java index a125b2b8d4cc..492b02ea0d51 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Volumes associated with snapshot policy. */ +/** + * Volumes associated with snapshot policy. + */ @Fluent public final class SnapshotPolicyVolumeListInner { /* @@ -17,13 +19,15 @@ public final class SnapshotPolicyVolumeListInner { @JsonProperty(value = "value") private List value; - /** Creates an instance of SnapshotPolicyVolumeListInner class. */ + /** + * Creates an instance of SnapshotPolicyVolumeListInner class. + */ public SnapshotPolicyVolumeListInner() { } /** * Get the value property: List of volumes. - * + * * @return the value value. */ public List value() { @@ -32,7 +36,7 @@ public List value() { /** * Set the value property: List of volumes. - * + * * @param value the value value to set. * @return the SnapshotPolicyVolumeListInner object itself. */ @@ -43,7 +47,7 @@ public SnapshotPolicyVolumeListInner withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java index 1eedf96e7a27..7cbf82eb5d30 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java @@ -8,12 +8,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Snapshot properties. */ +/** + * Snapshot properties. + */ @Immutable public final class SnapshotProperties { /* * snapshotId - * + * * UUID v4 used to identify the Snapshot */ @JsonProperty(value = "snapshotId", access = JsonProperty.Access.WRITE_ONLY) @@ -21,7 +23,7 @@ public final class SnapshotProperties { /* * name - * + * * The creation date of the snapshot */ @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) @@ -33,15 +35,17 @@ public final class SnapshotProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; - /** Creates an instance of SnapshotProperties class. */ + /** + * Creates an instance of SnapshotProperties class. + */ public SnapshotProperties() { } /** * Get the snapshotId property: snapshotId - * - *

UUID v4 used to identify the Snapshot. - * + * + * UUID v4 used to identify the Snapshot. + * * @return the snapshotId value. */ public String snapshotId() { @@ -50,9 +54,9 @@ public String snapshotId() { /** * Get the created property: name - * - *

The creation date of the snapshot. - * + * + * The creation date of the snapshot. + * * @return the created value. */ public OffsetDateTime created() { @@ -61,7 +65,7 @@ public OffsetDateTime created() { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -70,7 +74,7 @@ public String provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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/SubscriptionQuotaItemInner.java index c108c0baf9bd..015ed394c048 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/SubscriptionQuotaItemInner.java @@ -9,7 +9,9 @@ import com.azure.core.management.SystemData; import com.fasterxml.jackson.annotation.JsonProperty; -/** Information regarding Subscription Quota Item. */ +/** + * Information regarding Subscription Quota Item. + */ @Immutable public final class SubscriptionQuotaItemInner extends ProxyResource { /* @@ -24,13 +26,15 @@ public final class SubscriptionQuotaItemInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of SubscriptionQuotaItemInner class. */ + /** + * Creates an instance of SubscriptionQuotaItemInner class. + */ public SubscriptionQuotaItemInner() { } /** * Get the innerProperties property: SubscriptionQuotaItem properties. - * + * * @return the innerProperties value. */ private SubscriptionQuotaItemProperties innerProperties() { @@ -39,7 +43,7 @@ private SubscriptionQuotaItemProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -48,7 +52,7 @@ public SystemData systemData() { /** * Get the current property: The current quota value. - * + * * @return the current value. */ public Integer current() { @@ -57,7 +61,7 @@ public Integer current() { /** * Get the defaultProperty property: The default quota value. - * + * * @return the defaultProperty value. */ public Integer defaultProperty() { @@ -66,7 +70,7 @@ public Integer defaultProperty() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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/SubscriptionQuotaItemProperties.java index de58ea6b10d8..a88e9609369b 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/SubscriptionQuotaItemProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** SubscriptionQuotaItem Properties. */ +/** + * SubscriptionQuotaItem Properties. + */ @Immutable public final class SubscriptionQuotaItemProperties { /* @@ -22,13 +24,15 @@ public final class SubscriptionQuotaItemProperties { @JsonProperty(value = "default", access = JsonProperty.Access.WRITE_ONLY) private Integer defaultProperty; - /** Creates an instance of SubscriptionQuotaItemProperties class. */ + /** + * Creates an instance of SubscriptionQuotaItemProperties class. + */ public SubscriptionQuotaItemProperties() { } /** * Get the current property: The current quota value. - * + * * @return the current value. */ public Integer current() { @@ -37,7 +41,7 @@ public Integer current() { /** * Get the defaultProperty property: The default quota value. - * + * * @return the defaultProperty value. */ public Integer defaultProperty() { @@ -46,7 +50,7 @@ public Integer defaultProperty() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java index 5ec2d4e2fdb9..7b46558dff85 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java @@ -9,7 +9,9 @@ import com.azure.core.management.SystemData; import com.fasterxml.jackson.annotation.JsonProperty; -/** Subvolume Information properties. */ +/** + * Subvolume Information properties. + */ @Fluent public final class SubvolumeInfoInner extends ProxyResource { /* @@ -24,13 +26,15 @@ public final class SubvolumeInfoInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of SubvolumeInfoInner class. */ + /** + * Creates an instance of SubvolumeInfoInner class. + */ public SubvolumeInfoInner() { } /** * Get the innerProperties property: Subvolume Properties. - * + * * @return the innerProperties value. */ private SubvolumeProperties innerProperties() { @@ -39,7 +43,7 @@ private SubvolumeProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -48,9 +52,9 @@ public SystemData systemData() { /** * Get the path property: path - * - *

Path to the subvolume. - * + * + * Path to the subvolume. + * * @return the path value. */ public String path() { @@ -59,9 +63,9 @@ public String path() { /** * Set the path property: path - * - *

Path to the subvolume. - * + * + * Path to the subvolume. + * * @param path the path value to set. * @return the SubvolumeInfoInner object itself. */ @@ -75,9 +79,9 @@ public SubvolumeInfoInner withPath(String path) { /** * Get the size property: size - * - *

Truncate subvolume to the provided size in bytes. - * + * + * Truncate subvolume to the provided size in bytes. + * * @return the size value. */ public Long size() { @@ -86,9 +90,9 @@ public Long size() { /** * Set the size property: size - * - *

Truncate subvolume to the provided size in bytes. - * + * + * Truncate subvolume to the provided size in bytes. + * * @param size the size value to set. * @return the SubvolumeInfoInner object itself. */ @@ -102,9 +106,9 @@ public SubvolumeInfoInner withSize(Long size) { /** * Get the parentPath property: name - * - *

parent path to the subvolume. - * + * + * parent path to the subvolume. + * * @return the parentPath value. */ public String parentPath() { @@ -113,9 +117,9 @@ public String parentPath() { /** * Set the parentPath property: name - * - *

parent path to the subvolume. - * + * + * parent path to the subvolume. + * * @param parentPath the parentPath value to set. * @return the SubvolumeInfoInner object itself. */ @@ -129,7 +133,7 @@ public SubvolumeInfoInner withParentPath(String parentPath) { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -138,7 +142,7 @@ public String provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java index e0b51d40618a..86ecbfd7e8a1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Result of the post subvolume and action is to get metadata of the subvolume. */ +/** + * Result of the post subvolume and action is to get metadata of the subvolume. + */ @Fluent public final class SubvolumeModelInner { /* @@ -35,13 +37,15 @@ public final class SubvolumeModelInner { @JsonProperty(value = "properties") private SubvolumeModelProperties innerProperties; - /** Creates an instance of SubvolumeModelInner class. */ + /** + * Creates an instance of SubvolumeModelInner class. + */ public SubvolumeModelInner() { } /** * Get the id property: Resource Id. - * + * * @return the id value. */ public String id() { @@ -50,7 +54,7 @@ public String id() { /** * Get the name property: Resource name. - * + * * @return the name value. */ public String name() { @@ -59,7 +63,7 @@ public String name() { /** * Get the type property: Resource type. - * + * * @return the type value. */ public String type() { @@ -68,7 +72,7 @@ public String type() { /** * Get the innerProperties property: It represents the minimal properties of the subvolume. - * + * * @return the innerProperties value. */ private SubvolumeModelProperties innerProperties() { @@ -77,9 +81,9 @@ private SubvolumeModelProperties innerProperties() { /** * Get the path property: path - * - *

Path to the subvolume. - * + * + * Path to the subvolume. + * * @return the path value. */ public String path() { @@ -88,9 +92,9 @@ public String path() { /** * Set the path property: path - * - *

Path to the subvolume. - * + * + * Path to the subvolume. + * * @param path the path value to set. * @return the SubvolumeModelInner object itself. */ @@ -104,9 +108,9 @@ public SubvolumeModelInner withPath(String path) { /** * Get the parentPath property: parentpath - * - *

Path to the parent subvolume. - * + * + * Path to the parent subvolume. + * * @return the parentPath value. */ public String parentPath() { @@ -115,9 +119,9 @@ public String parentPath() { /** * Set the parentPath property: parentpath - * - *

Path to the parent subvolume. - * + * + * Path to the parent subvolume. + * * @param parentPath the parentPath value to set. * @return the SubvolumeModelInner object itself. */ @@ -131,9 +135,9 @@ public SubvolumeModelInner withParentPath(String parentPath) { /** * Get the size property: size - * - *

Size of subvolume. - * + * + * Size of subvolume. + * * @return the size value. */ public Long size() { @@ -142,9 +146,9 @@ public Long size() { /** * Set the size property: size - * - *

Size of subvolume. - * + * + * Size of subvolume. + * * @param size the size value to set. * @return the SubvolumeModelInner object itself. */ @@ -158,9 +162,9 @@ public SubvolumeModelInner withSize(Long size) { /** * Get the bytesUsed property: bytesUsed - * - *

Bytes used. - * + * + * Bytes used. + * * @return the bytesUsed value. */ public Long bytesUsed() { @@ -169,9 +173,9 @@ public Long bytesUsed() { /** * Set the bytesUsed property: bytesUsed - * - *

Bytes used. - * + * + * Bytes used. + * * @param bytesUsed the bytesUsed value to set. * @return the SubvolumeModelInner object itself. */ @@ -185,9 +189,9 @@ public SubvolumeModelInner withBytesUsed(Long bytesUsed) { /** * Get the permissions property: permissions - * - *

Permissions of the subvolume. - * + * + * Permissions of the subvolume. + * * @return the permissions value. */ public String permissions() { @@ -196,9 +200,9 @@ public String permissions() { /** * Set the permissions property: permissions - * - *

Permissions of the subvolume. - * + * + * Permissions of the subvolume. + * * @param permissions the permissions value to set. * @return the SubvolumeModelInner object itself. */ @@ -212,9 +216,9 @@ public SubvolumeModelInner withPermissions(String permissions) { /** * Get the creationTimestamp property: creationTimeStamp - * - *

Creation time and date. - * + * + * Creation time and date. + * * @return the creationTimestamp value. */ public OffsetDateTime creationTimestamp() { @@ -223,9 +227,9 @@ public OffsetDateTime creationTimestamp() { /** * Set the creationTimestamp property: creationTimeStamp - * - *

Creation time and date. - * + * + * Creation time and date. + * * @param creationTimestamp the creationTimestamp value to set. * @return the SubvolumeModelInner object itself. */ @@ -239,9 +243,9 @@ public SubvolumeModelInner withCreationTimestamp(OffsetDateTime creationTimestam /** * Get the accessedTimestamp property: accessedTimeStamp - * - *

Most recent access time and date. - * + * + * Most recent access time and date. + * * @return the accessedTimestamp value. */ public OffsetDateTime accessedTimestamp() { @@ -250,9 +254,9 @@ public OffsetDateTime accessedTimestamp() { /** * Set the accessedTimestamp property: accessedTimeStamp - * - *

Most recent access time and date. - * + * + * Most recent access time and date. + * * @param accessedTimestamp the accessedTimestamp value to set. * @return the SubvolumeModelInner object itself. */ @@ -266,9 +270,9 @@ public SubvolumeModelInner withAccessedTimestamp(OffsetDateTime accessedTimestam /** * Get the modifiedTimestamp property: modifiedTimeStamp - * - *

Most recent modification time and date. - * + * + * Most recent modification time and date. + * * @return the modifiedTimestamp value. */ public OffsetDateTime modifiedTimestamp() { @@ -277,9 +281,9 @@ public OffsetDateTime modifiedTimestamp() { /** * Set the modifiedTimestamp property: modifiedTimeStamp - * - *

Most recent modification time and date. - * + * + * Most recent modification time and date. + * * @param modifiedTimestamp the modifiedTimestamp value to set. * @return the SubvolumeModelInner object itself. */ @@ -293,9 +297,9 @@ public SubvolumeModelInner withModifiedTimestamp(OffsetDateTime modifiedTimestam /** * Get the changedTimestamp property: changedTimeStamp - * - *

Most recent change time and date. - * + * + * Most recent change time and date. + * * @return the changedTimestamp value. */ public OffsetDateTime changedTimestamp() { @@ -304,9 +308,9 @@ public OffsetDateTime changedTimestamp() { /** * Set the changedTimestamp property: changedTimeStamp - * - *

Most recent change time and date. - * + * + * Most recent change time and date. + * * @param changedTimestamp the changedTimestamp value to set. * @return the SubvolumeModelInner object itself. */ @@ -320,7 +324,7 @@ public SubvolumeModelInner withChangedTimestamp(OffsetDateTime changedTimestamp) /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -329,7 +333,7 @@ public String provisioningState() { /** * Set the provisioningState property: Azure lifecycle management. - * + * * @param provisioningState the provisioningState value to set. * @return the SubvolumeModelInner object itself. */ @@ -343,7 +347,7 @@ public SubvolumeModelInner withProvisioningState(String provisioningState) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java index 46788f1818cc..9bb3ac5bf148 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java @@ -8,12 +8,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Properties which represents actual subvolume model which is stored as a file in the system. */ +/** + * Properties which represents actual subvolume model which is stored as a file in the system. + */ @Fluent public final class SubvolumeModelProperties { /* * path - * + * * Path to the subvolume */ @JsonProperty(value = "path") @@ -21,7 +23,7 @@ public final class SubvolumeModelProperties { /* * parentpath - * + * * Path to the parent subvolume */ @JsonProperty(value = "parentPath") @@ -29,7 +31,7 @@ public final class SubvolumeModelProperties { /* * size - * + * * Size of subvolume */ @JsonProperty(value = "size") @@ -37,7 +39,7 @@ public final class SubvolumeModelProperties { /* * bytesUsed - * + * * Bytes used */ @JsonProperty(value = "bytesUsed") @@ -45,7 +47,7 @@ public final class SubvolumeModelProperties { /* * permissions - * + * * Permissions of the subvolume */ @JsonProperty(value = "permissions") @@ -53,7 +55,7 @@ public final class SubvolumeModelProperties { /* * creationTimeStamp - * + * * Creation time and date */ @JsonProperty(value = "creationTimeStamp") @@ -61,7 +63,7 @@ public final class SubvolumeModelProperties { /* * accessedTimeStamp - * + * * Most recent access time and date */ @JsonProperty(value = "accessedTimeStamp") @@ -69,7 +71,7 @@ public final class SubvolumeModelProperties { /* * modifiedTimeStamp - * + * * Most recent modification time and date */ @JsonProperty(value = "modifiedTimeStamp") @@ -77,7 +79,7 @@ public final class SubvolumeModelProperties { /* * changedTimeStamp - * + * * Most recent change time and date */ @JsonProperty(value = "changedTimeStamp") @@ -89,15 +91,17 @@ public final class SubvolumeModelProperties { @JsonProperty(value = "provisioningState") private String provisioningState; - /** Creates an instance of SubvolumeModelProperties class. */ + /** + * Creates an instance of SubvolumeModelProperties class. + */ public SubvolumeModelProperties() { } /** * Get the path property: path - * - *

Path to the subvolume. - * + * + * Path to the subvolume. + * * @return the path value. */ public String path() { @@ -106,9 +110,9 @@ public String path() { /** * Set the path property: path - * - *

Path to the subvolume. - * + * + * Path to the subvolume. + * * @param path the path value to set. * @return the SubvolumeModelProperties object itself. */ @@ -119,9 +123,9 @@ public SubvolumeModelProperties withPath(String path) { /** * Get the parentPath property: parentpath - * - *

Path to the parent subvolume. - * + * + * Path to the parent subvolume. + * * @return the parentPath value. */ public String parentPath() { @@ -130,9 +134,9 @@ public String parentPath() { /** * Set the parentPath property: parentpath - * - *

Path to the parent subvolume. - * + * + * Path to the parent subvolume. + * * @param parentPath the parentPath value to set. * @return the SubvolumeModelProperties object itself. */ @@ -143,9 +147,9 @@ public SubvolumeModelProperties withParentPath(String parentPath) { /** * Get the size property: size - * - *

Size of subvolume. - * + * + * Size of subvolume. + * * @return the size value. */ public Long size() { @@ -154,9 +158,9 @@ public Long size() { /** * Set the size property: size - * - *

Size of subvolume. - * + * + * Size of subvolume. + * * @param size the size value to set. * @return the SubvolumeModelProperties object itself. */ @@ -167,9 +171,9 @@ public SubvolumeModelProperties withSize(Long size) { /** * Get the bytesUsed property: bytesUsed - * - *

Bytes used. - * + * + * Bytes used. + * * @return the bytesUsed value. */ public Long bytesUsed() { @@ -178,9 +182,9 @@ public Long bytesUsed() { /** * Set the bytesUsed property: bytesUsed - * - *

Bytes used. - * + * + * Bytes used. + * * @param bytesUsed the bytesUsed value to set. * @return the SubvolumeModelProperties object itself. */ @@ -191,9 +195,9 @@ public SubvolumeModelProperties withBytesUsed(Long bytesUsed) { /** * Get the permissions property: permissions - * - *

Permissions of the subvolume. - * + * + * Permissions of the subvolume. + * * @return the permissions value. */ public String permissions() { @@ -202,9 +206,9 @@ public String permissions() { /** * Set the permissions property: permissions - * - *

Permissions of the subvolume. - * + * + * Permissions of the subvolume. + * * @param permissions the permissions value to set. * @return the SubvolumeModelProperties object itself. */ @@ -215,9 +219,9 @@ public SubvolumeModelProperties withPermissions(String permissions) { /** * Get the creationTimestamp property: creationTimeStamp - * - *

Creation time and date. - * + * + * Creation time and date. + * * @return the creationTimestamp value. */ public OffsetDateTime creationTimestamp() { @@ -226,9 +230,9 @@ public OffsetDateTime creationTimestamp() { /** * Set the creationTimestamp property: creationTimeStamp - * - *

Creation time and date. - * + * + * Creation time and date. + * * @param creationTimestamp the creationTimestamp value to set. * @return the SubvolumeModelProperties object itself. */ @@ -239,9 +243,9 @@ public SubvolumeModelProperties withCreationTimestamp(OffsetDateTime creationTim /** * Get the accessedTimestamp property: accessedTimeStamp - * - *

Most recent access time and date. - * + * + * Most recent access time and date. + * * @return the accessedTimestamp value. */ public OffsetDateTime accessedTimestamp() { @@ -250,9 +254,9 @@ public OffsetDateTime accessedTimestamp() { /** * Set the accessedTimestamp property: accessedTimeStamp - * - *

Most recent access time and date. - * + * + * Most recent access time and date. + * * @param accessedTimestamp the accessedTimestamp value to set. * @return the SubvolumeModelProperties object itself. */ @@ -263,9 +267,9 @@ public SubvolumeModelProperties withAccessedTimestamp(OffsetDateTime accessedTim /** * Get the modifiedTimestamp property: modifiedTimeStamp - * - *

Most recent modification time and date. - * + * + * Most recent modification time and date. + * * @return the modifiedTimestamp value. */ public OffsetDateTime modifiedTimestamp() { @@ -274,9 +278,9 @@ public OffsetDateTime modifiedTimestamp() { /** * Set the modifiedTimestamp property: modifiedTimeStamp - * - *

Most recent modification time and date. - * + * + * Most recent modification time and date. + * * @param modifiedTimestamp the modifiedTimestamp value to set. * @return the SubvolumeModelProperties object itself. */ @@ -287,9 +291,9 @@ public SubvolumeModelProperties withModifiedTimestamp(OffsetDateTime modifiedTim /** * Get the changedTimestamp property: changedTimeStamp - * - *

Most recent change time and date. - * + * + * Most recent change time and date. + * * @return the changedTimestamp value. */ public OffsetDateTime changedTimestamp() { @@ -298,9 +302,9 @@ public OffsetDateTime changedTimestamp() { /** * Set the changedTimestamp property: changedTimeStamp - * - *

Most recent change time and date. - * + * + * Most recent change time and date. + * * @param changedTimestamp the changedTimestamp value to set. * @return the SubvolumeModelProperties object itself. */ @@ -311,7 +315,7 @@ public SubvolumeModelProperties withChangedTimestamp(OffsetDateTime changedTimes /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -320,7 +324,7 @@ public String provisioningState() { /** * Set the provisioningState property: Azure lifecycle management. - * + * * @param provisioningState the provisioningState value to set. * @return the SubvolumeModelProperties object itself. */ @@ -331,7 +335,7 @@ public SubvolumeModelProperties withProvisioningState(String provisioningState) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java index b983189bedfd..a978bbd80d27 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java @@ -7,12 +7,14 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Parameters with which a subvolume can be updated. */ +/** + * Parameters with which a subvolume can be updated. + */ @Fluent public final class SubvolumePatchParams { /* * size - * + * * Truncate subvolume to the provided size in bytes */ @JsonProperty(value = "size") @@ -20,21 +22,23 @@ public final class SubvolumePatchParams { /* * path - * + * * path to the subvolume */ @JsonProperty(value = "path") private String path; - /** Creates an instance of SubvolumePatchParams class. */ + /** + * Creates an instance of SubvolumePatchParams class. + */ public SubvolumePatchParams() { } /** * Get the size property: size - * - *

Truncate subvolume to the provided size in bytes. - * + * + * Truncate subvolume to the provided size in bytes. + * * @return the size value. */ public Long size() { @@ -43,9 +47,9 @@ public Long size() { /** * Set the size property: size - * - *

Truncate subvolume to the provided size in bytes. - * + * + * Truncate subvolume to the provided size in bytes. + * * @param size the size value to set. * @return the SubvolumePatchParams object itself. */ @@ -56,9 +60,9 @@ public SubvolumePatchParams withSize(Long size) { /** * Get the path property: path - * - *

path to the subvolume. - * + * + * path to the subvolume. + * * @return the path value. */ public String path() { @@ -67,9 +71,9 @@ public String path() { /** * Set the path property: path - * - *

path to the subvolume. - * + * + * path to the subvolume. + * * @param path the path value to set. * @return the SubvolumePatchParams object itself. */ @@ -80,7 +84,7 @@ public SubvolumePatchParams withPath(String path) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java index bcc05b1b27e6..2dd6c1d7e941 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java @@ -7,12 +7,14 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** This represents path associated with the subvolume. */ +/** + * This represents path associated with the subvolume. + */ @Fluent public final class SubvolumeProperties { /* * path - * + * * Path to the subvolume */ @JsonProperty(value = "path") @@ -20,7 +22,7 @@ public final class SubvolumeProperties { /* * size - * + * * Truncate subvolume to the provided size in bytes */ @JsonProperty(value = "size") @@ -28,7 +30,7 @@ public final class SubvolumeProperties { /* * name - * + * * parent path to the subvolume */ @JsonProperty(value = "parentPath") @@ -40,15 +42,17 @@ public final class SubvolumeProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; - /** Creates an instance of SubvolumeProperties class. */ + /** + * Creates an instance of SubvolumeProperties class. + */ public SubvolumeProperties() { } /** * Get the path property: path - * - *

Path to the subvolume. - * + * + * Path to the subvolume. + * * @return the path value. */ public String path() { @@ -57,9 +61,9 @@ public String path() { /** * Set the path property: path - * - *

Path to the subvolume. - * + * + * Path to the subvolume. + * * @param path the path value to set. * @return the SubvolumeProperties object itself. */ @@ -70,9 +74,9 @@ public SubvolumeProperties withPath(String path) { /** * Get the size property: size - * - *

Truncate subvolume to the provided size in bytes. - * + * + * Truncate subvolume to the provided size in bytes. + * * @return the size value. */ public Long size() { @@ -81,9 +85,9 @@ public Long size() { /** * Set the size property: size - * - *

Truncate subvolume to the provided size in bytes. - * + * + * Truncate subvolume to the provided size in bytes. + * * @param size the size value to set. * @return the SubvolumeProperties object itself. */ @@ -94,9 +98,9 @@ public SubvolumeProperties withSize(Long size) { /** * Get the parentPath property: name - * - *

parent path to the subvolume. - * + * + * parent path to the subvolume. + * * @return the parentPath value. */ public String parentPath() { @@ -105,9 +109,9 @@ public String parentPath() { /** * Set the parentPath property: name - * - *

parent path to the subvolume. - * + * + * parent path to the subvolume. + * * @param parentPath the parentPath value to set. * @return the SubvolumeProperties object itself. */ @@ -118,7 +122,7 @@ public SubvolumeProperties withParentPath(String parentPath) { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -127,7 +131,7 @@ public String provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java index d9955f4ac7c2..dbac4e94c36b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Volume group resource for create. */ +/** + * Volume group resource for create. + */ @Fluent public final class VolumeGroupDetailsInner { /* @@ -43,13 +45,15 @@ public final class VolumeGroupDetailsInner { @JsonProperty(value = "properties") private VolumeGroupProperties innerProperties; - /** Creates an instance of VolumeGroupDetailsInner class. */ + /** + * Creates an instance of VolumeGroupDetailsInner class. + */ public VolumeGroupDetailsInner() { } /** * Get the location property: Resource location. - * + * * @return the location value. */ public String location() { @@ -58,7 +62,7 @@ public String location() { /** * Set the location property: Resource location. - * + * * @param location the location value to set. * @return the VolumeGroupDetailsInner object itself. */ @@ -69,7 +73,7 @@ public VolumeGroupDetailsInner withLocation(String location) { /** * Get the id property: Resource Id. - * + * * @return the id value. */ public String id() { @@ -78,7 +82,7 @@ public String id() { /** * Get the name property: Resource name. - * + * * @return the name value. */ public String name() { @@ -87,7 +91,7 @@ public String name() { /** * Get the type property: Resource type. - * + * * @return the type value. */ public String type() { @@ -96,7 +100,7 @@ public String type() { /** * Get the innerProperties property: Volume group properties. - * + * * @return the innerProperties value. */ private VolumeGroupProperties innerProperties() { @@ -105,7 +109,7 @@ private VolumeGroupProperties innerProperties() { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -114,7 +118,7 @@ public String provisioningState() { /** * Get the groupMetadata property: Volume group details. - * + * * @return the groupMetadata value. */ public VolumeGroupMetadata groupMetadata() { @@ -123,7 +127,7 @@ public VolumeGroupMetadata groupMetadata() { /** * Set the groupMetadata property: Volume group details. - * + * * @param groupMetadata the groupMetadata value to set. * @return the VolumeGroupDetailsInner object itself. */ @@ -137,7 +141,7 @@ public VolumeGroupDetailsInner withGroupMetadata(VolumeGroupMetadata groupMetada /** * Get the volumes property: List of volumes from group. - * + * * @return the volumes value. */ public List volumes() { @@ -146,7 +150,7 @@ public List volumes() { /** * Set the volumes property: List of volumes from group. - * + * * @param volumes the volumes value to set. * @return the VolumeGroupDetailsInner object itself. */ @@ -160,7 +164,7 @@ public VolumeGroupDetailsInner withVolumes(List vol /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java index d9b71c7976d9..ae65ab431a6b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; import com.fasterxml.jackson.annotation.JsonProperty; -/** Volume group resource. */ +/** + * Volume group resource. + */ @Fluent public final class VolumeGroupInner { /* @@ -41,13 +43,15 @@ public final class VolumeGroupInner { @JsonProperty(value = "properties") private VolumeGroupListProperties innerProperties; - /** Creates an instance of VolumeGroupInner class. */ + /** + * Creates an instance of VolumeGroupInner class. + */ public VolumeGroupInner() { } /** * Get the location property: Resource location. - * + * * @return the location value. */ public String location() { @@ -56,7 +60,7 @@ public String location() { /** * Set the location property: Resource location. - * + * * @param location the location value to set. * @return the VolumeGroupInner object itself. */ @@ -67,7 +71,7 @@ public VolumeGroupInner withLocation(String location) { /** * Get the id property: Resource Id. - * + * * @return the id value. */ public String id() { @@ -76,7 +80,7 @@ public String id() { /** * Get the name property: Resource name. - * + * * @return the name value. */ public String name() { @@ -85,7 +89,7 @@ public String name() { /** * Get the type property: Resource type. - * + * * @return the type value. */ public String type() { @@ -94,7 +98,7 @@ public String type() { /** * Get the innerProperties property: Volume group properties. - * + * * @return the innerProperties value. */ private VolumeGroupListProperties innerProperties() { @@ -103,7 +107,7 @@ private VolumeGroupListProperties innerProperties() { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -112,7 +116,7 @@ public String provisioningState() { /** * Get the groupMetadata property: Volume group details. - * + * * @return the groupMetadata value. */ public VolumeGroupMetadata groupMetadata() { @@ -121,7 +125,7 @@ public VolumeGroupMetadata groupMetadata() { /** * Set the groupMetadata property: Volume group details. - * + * * @param groupMetadata the groupMetadata value to set. * @return the VolumeGroupInner object itself. */ @@ -135,7 +139,7 @@ public VolumeGroupInner withGroupMetadata(VolumeGroupMetadata groupMetadata) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java index 2d075f0fb95f..ae84ab34f246 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; import com.fasterxml.jackson.annotation.JsonProperty; -/** Volume group properties. */ +/** + * Volume group properties. + */ @Fluent public final class VolumeGroupListProperties { /* @@ -23,13 +25,15 @@ public final class VolumeGroupListProperties { @JsonProperty(value = "groupMetaData") private VolumeGroupMetadata groupMetadata; - /** Creates an instance of VolumeGroupListProperties class. */ + /** + * Creates an instance of VolumeGroupListProperties class. + */ public VolumeGroupListProperties() { } /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -38,7 +42,7 @@ public String provisioningState() { /** * Get the groupMetadata property: Volume group details. - * + * * @return the groupMetadata value. */ public VolumeGroupMetadata groupMetadata() { @@ -47,7 +51,7 @@ public VolumeGroupMetadata groupMetadata() { /** * Set the groupMetadata property: Volume group details. - * + * * @param groupMetadata the groupMetadata value to set. * @return the VolumeGroupListProperties object itself. */ @@ -58,7 +62,7 @@ public VolumeGroupListProperties withGroupMetadata(VolumeGroupMetadata groupMeta /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java index bd9547ef4d1a..31377a977c57 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Volume group properties. */ +/** + * Volume group properties. + */ @Fluent public final class VolumeGroupProperties { /* @@ -31,13 +33,15 @@ public final class VolumeGroupProperties { @JsonProperty(value = "volumes") private List volumes; - /** Creates an instance of VolumeGroupProperties class. */ + /** + * Creates an instance of VolumeGroupProperties class. + */ public VolumeGroupProperties() { } /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -46,7 +50,7 @@ public String provisioningState() { /** * Get the groupMetadata property: Volume group details. - * + * * @return the groupMetadata value. */ public VolumeGroupMetadata groupMetadata() { @@ -55,7 +59,7 @@ public VolumeGroupMetadata groupMetadata() { /** * Set the groupMetadata property: Volume group details. - * + * * @param groupMetadata the groupMetadata value to set. * @return the VolumeGroupProperties object itself. */ @@ -66,7 +70,7 @@ public VolumeGroupProperties withGroupMetadata(VolumeGroupMetadata groupMetadata /** * Get the volumes property: List of volumes from group. - * + * * @return the volumes value. */ public List volumes() { @@ -75,7 +79,7 @@ public List volumes() { /** * Set the volumes property: List of volumes from group. - * + * * @param volumes the volumes value to set. * @return the VolumeGroupProperties object itself. */ @@ -86,7 +90,7 @@ public VolumeGroupProperties withVolumes(List volum /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 a356c44d0120..fc995c0e4827 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 @@ -26,7 +26,9 @@ import java.util.List; import java.util.Map; -/** Volume resource. */ +/** + * Volume resource. + */ @Fluent public final class VolumeInner extends Resource { /* @@ -53,13 +55,15 @@ public final class VolumeInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of VolumeInner class. */ + /** + * Creates an instance of VolumeInner class. + */ public VolumeInner() { } /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -68,7 +72,7 @@ public String etag() { /** * Get the zones property: Availability Zone. - * + * * @return the zones value. */ public List zones() { @@ -77,7 +81,7 @@ public List zones() { /** * Set the zones property: Availability Zone. - * + * * @param zones the zones value to set. * @return the VolumeInner object itself. */ @@ -88,7 +92,7 @@ public VolumeInner withZones(List zones) { /** * Get the innerProperties property: Volume properties. - * + * * @return the innerProperties value. */ private VolumeProperties innerProperties() { @@ -97,21 +101,25 @@ private VolumeProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public VolumeInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public VolumeInner withTags(Map tags) { super.withTags(tags); @@ -120,9 +128,9 @@ public VolumeInner withTags(Map tags) { /** * Get the fileSystemId property: FileSystem ID - * - *

Unique FileSystem Identifier. - * + * + * Unique FileSystem Identifier. + * * @return the fileSystemId value. */ public String fileSystemId() { @@ -131,9 +139,9 @@ public String fileSystemId() { /** * Get the creationToken property: Creation Token or File Path - * - *

A unique file path for the volume. Used when creating mount targets. - * + * + * A unique file path for the volume. Used when creating mount targets. + * * @return the creationToken value. */ public String creationToken() { @@ -142,9 +150,9 @@ public String creationToken() { /** * Set the creationToken property: Creation Token or File Path - * - *

A unique file path for the volume. Used when creating mount targets. - * + * + * A unique file path for the volume. Used when creating mount targets. + * * @param creationToken the creationToken value to set. * @return the VolumeInner object itself. */ @@ -158,9 +166,9 @@ public VolumeInner withCreationToken(String creationToken) { /** * Get the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @return the serviceLevel value. */ public ServiceLevel serviceLevel() { @@ -169,9 +177,9 @@ public ServiceLevel serviceLevel() { /** * Set the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @param serviceLevel the serviceLevel value to set. * @return the VolumeInner object itself. */ @@ -185,11 +193,11 @@ public VolumeInner withServiceLevel(ServiceLevel serviceLevel) { /** * Get the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. - * + * * @return the usageThreshold value. */ public long usageThreshold() { @@ -198,11 +206,11 @@ public long usageThreshold() { /** * Set the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. - * + * * @param usageThreshold the usageThreshold value to set. * @return the VolumeInner object itself. */ @@ -216,9 +224,9 @@ public VolumeInner withUsageThreshold(long usageThreshold) { /** * Get the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @return the exportPolicy value. */ public VolumePropertiesExportPolicy exportPolicy() { @@ -227,9 +235,9 @@ public VolumePropertiesExportPolicy exportPolicy() { /** * Set the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @param exportPolicy the exportPolicy value to set. * @return the VolumeInner object itself. */ @@ -243,9 +251,9 @@ public VolumeInner withExportPolicy(VolumePropertiesExportPolicy exportPolicy) { /** * Get the protocolTypes property: protocolTypes - * - *

Set of protocol types, default NFSv3, CIFS for SMB protocol. - * + * + * Set of protocol types, default NFSv3, CIFS for SMB protocol. + * * @return the protocolTypes value. */ public List protocolTypes() { @@ -254,9 +262,9 @@ public List protocolTypes() { /** * Set the protocolTypes property: protocolTypes - * - *

Set of protocol types, default NFSv3, CIFS for SMB protocol. - * + * + * Set of protocol types, default NFSv3, CIFS for SMB protocol. + * * @param protocolTypes the protocolTypes value to set. * @return the VolumeInner object itself. */ @@ -270,7 +278,7 @@ public VolumeInner withProtocolTypes(List protocolTypes) { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -279,9 +287,9 @@ public String provisioningState() { /** * Get the snapshotId property: Snapshot ID - * - *

UUID v4 or resource identifier used to identify the Snapshot. - * + * + * UUID v4 or resource identifier used to identify the Snapshot. + * * @return the snapshotId value. */ public String snapshotId() { @@ -290,9 +298,9 @@ public String snapshotId() { /** * Set the snapshotId property: Snapshot ID - * - *

UUID v4 or resource identifier used to identify the Snapshot. - * + * + * UUID v4 or resource identifier used to identify the Snapshot. + * * @param snapshotId the snapshotId value to set. * @return the VolumeInner object itself. */ @@ -307,7 +315,7 @@ public VolumeInner withSnapshotId(String snapshotId) { /** * Get the deleteBaseSnapshot property: If enabled (true) the snapshot the volume was created from will be * automatically deleted after the volume create operation has finished. Defaults to false. - * + * * @return the deleteBaseSnapshot value. */ public Boolean deleteBaseSnapshot() { @@ -317,7 +325,7 @@ public Boolean deleteBaseSnapshot() { /** * Set the deleteBaseSnapshot property: If enabled (true) the snapshot the volume was created from will be * automatically deleted after the volume create operation has finished. Defaults to false. - * + * * @param deleteBaseSnapshot the deleteBaseSnapshot value to set. * @return the VolumeInner object itself. */ @@ -331,9 +339,9 @@ public VolumeInner withDeleteBaseSnapshot(Boolean deleteBaseSnapshot) { /** * Get the backupId property: Backup ID - * - *

UUID v4 or resource identifier used to identify the Backup. - * + * + * UUID v4 or resource identifier used to identify the Backup. + * * @return the backupId value. */ public String backupId() { @@ -342,9 +350,9 @@ public String backupId() { /** * Set the backupId property: Backup ID - * - *

UUID v4 or resource identifier used to identify the Backup. - * + * + * UUID v4 or resource identifier used to identify the Backup. + * * @param backupId the backupId value to set. * @return the VolumeInner object itself. */ @@ -358,9 +366,9 @@ public VolumeInner withBackupId(String backupId) { /** * Get the baremetalTenantId property: Baremetal Tenant ID - * - *

Unique Baremetal Tenant Identifier. - * + * + * Unique Baremetal Tenant Identifier. + * * @return the baremetalTenantId value. */ public String baremetalTenantId() { @@ -370,7 +378,7 @@ public String baremetalTenantId() { /** * Get the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes. - * + * * @return the subnetId value. */ public String subnetId() { @@ -380,7 +388,7 @@ public String subnetId() { /** * Set the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes. - * + * * @param subnetId the subnetId value to set. * @return the VolumeInner object itself. */ @@ -394,9 +402,9 @@ public VolumeInner withSubnetId(String subnetId) { /** * Get the networkFeatures property: Network features - * - *

Network features available to the volume, or current state of update. - * + * + * Network features available to the volume, or current state of update. + * * @return the networkFeatures value. */ public NetworkFeatures networkFeatures() { @@ -405,9 +413,9 @@ public NetworkFeatures networkFeatures() { /** * Set the networkFeatures property: Network features - * - *

Network features available to the volume, or current state of update. - * + * + * Network features available to the volume, or current state of update. + * * @param networkFeatures the networkFeatures value to set. * @return the VolumeInner object itself. */ @@ -421,9 +429,9 @@ public VolumeInner withNetworkFeatures(NetworkFeatures networkFeatures) { /** * Get the networkSiblingSetId property: Network Sibling Set ID - * - *

Network Sibling Set ID for the the group of volumes sharing networking resources. - * + * + * Network Sibling Set ID for the the group of volumes sharing networking resources. + * * @return the networkSiblingSetId value. */ public String networkSiblingSetId() { @@ -432,9 +440,9 @@ public String networkSiblingSetId() { /** * Get the storageToNetworkProximity property: Storage to Network Proximity - * - *

Provides storage to network proximity information for the volume. - * + * + * Provides storage to network proximity information for the volume. + * * @return the storageToNetworkProximity value. */ public VolumeStorageToNetworkProximity storageToNetworkProximity() { @@ -443,9 +451,9 @@ public VolumeStorageToNetworkProximity storageToNetworkProximity() { /** * Get the mountTargets property: mountTargets - * - *

List of mount targets. - * + * + * List of mount targets. + * * @return the mountTargets value. */ public List mountTargets() { @@ -455,7 +463,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. - * + * * @return the volumeType value. */ public String volumeType() { @@ -465,7 +473,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. - * + * * @param volumeType the volumeType value to set. * @return the VolumeInner object itself. */ @@ -479,9 +487,9 @@ public VolumeInner withVolumeType(String volumeType) { /** * Get the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @return the dataProtection value. */ public VolumePropertiesDataProtection dataProtection() { @@ -490,9 +498,9 @@ public VolumePropertiesDataProtection dataProtection() { /** * Set the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @param dataProtection the dataProtection value to set. * @return the VolumeInner object itself. */ @@ -506,7 +514,7 @@ public VolumeInner withDataProtection(VolumePropertiesDataProtection dataProtect /** * Get the isRestoring property: Restoring. - * + * * @return the isRestoring value. */ public Boolean isRestoring() { @@ -515,7 +523,7 @@ public Boolean isRestoring() { /** * Set the isRestoring property: Restoring. - * + * * @param isRestoring the isRestoring value to set. * @return the VolumeInner object itself. */ @@ -530,7 +538,7 @@ public VolumeInner withIsRestoring(Boolean 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). - * + * * @return the snapshotDirectoryVisible value. */ public Boolean snapshotDirectoryVisible() { @@ -540,7 +548,7 @@ public Boolean snapshotDirectoryVisible() { /** * Set 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). - * + * * @param snapshotDirectoryVisible the snapshotDirectoryVisible value to set. * @return the VolumeInner object itself. */ @@ -555,7 +563,7 @@ public VolumeInner withSnapshotDirectoryVisible(Boolean snapshotDirectoryVisible /** * Get the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger version * 2020-05-01 or later. - * + * * @return the kerberosEnabled value. */ public Boolean kerberosEnabled() { @@ -565,7 +573,7 @@ public Boolean kerberosEnabled() { /** * Set the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger version * 2020-05-01 or later. - * + * * @param kerberosEnabled the kerberosEnabled value to set. * @return the VolumeInner object itself. */ @@ -578,9 +586,9 @@ public VolumeInner withKerberosEnabled(Boolean kerberosEnabled) { } /** - * Get the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol or - * CIFS protocol. - * + * Get the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol + * or CIFS protocol. + * * @return the securityStyle value. */ public SecurityStyle securityStyle() { @@ -588,9 +596,9 @@ public SecurityStyle securityStyle() { } /** - * Set the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol or - * CIFS protocol. - * + * Set the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol + * or CIFS protocol. + * * @param securityStyle the securityStyle value to set. * @return the VolumeInner object itself. */ @@ -605,7 +613,7 @@ public VolumeInner withSecurityStyle(SecurityStyle securityStyle) { /** * Get the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol * volume. To be used with swagger version 2020-08-01 or later. - * + * * @return the smbEncryption value. */ public Boolean smbEncryption() { @@ -615,7 +623,7 @@ public Boolean smbEncryption() { /** * Set the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol * volume. To be used with swagger version 2020-08-01 or later. - * + * * @param smbEncryption the smbEncryption value to set. * @return the VolumeInner object itself. */ @@ -629,9 +637,9 @@ public VolumeInner withSmbEncryption(Boolean smbEncryption) { /** * Get the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbAccessBasedEnumeration value. */ public SmbAccessBasedEnumeration smbAccessBasedEnumeration() { @@ -640,9 +648,9 @@ public SmbAccessBasedEnumeration smbAccessBasedEnumeration() { /** * Set the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbAccessBasedEnumeration the smbAccessBasedEnumeration value to set. * @return the VolumeInner object itself. */ @@ -656,9 +664,9 @@ public VolumeInner withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration smbAc /** * Get the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbNonBrowsable value. */ public SmbNonBrowsable smbNonBrowsable() { @@ -667,9 +675,9 @@ public SmbNonBrowsable smbNonBrowsable() { /** * Set the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbNonBrowsable the smbNonBrowsable value to set. * @return the VolumeInner object itself. */ @@ -684,7 +692,7 @@ public VolumeInner withSmbNonBrowsable(SmbNonBrowsable smbNonBrowsable) { /** * Get the smbContinuouslyAvailable property: Enables continuously available share property for smb volume. Only * applicable for SMB volume. - * + * * @return the smbContinuouslyAvailable value. */ public Boolean smbContinuouslyAvailable() { @@ -694,7 +702,7 @@ public Boolean smbContinuouslyAvailable() { /** * Set the smbContinuouslyAvailable property: Enables continuously available share property for smb volume. Only * applicable for SMB volume. - * + * * @param smbContinuouslyAvailable the smbContinuouslyAvailable value to set. * @return the VolumeInner object itself. */ @@ -709,7 +717,7 @@ public VolumeInner withSmbContinuouslyAvailable(Boolean smbContinuouslyAvailable /** * Get the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume and this will * be accepted as input only for manual qosType volume. - * + * * @return the throughputMibps value. */ public Float throughputMibps() { @@ -719,7 +727,7 @@ public Float throughputMibps() { /** * Set the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume and this will * be accepted as input only for manual qosType volume. - * + * * @param throughputMibps the throughputMibps value to set. * @return the VolumeInner object itself. */ @@ -734,7 +742,7 @@ public VolumeInner withThroughputMibps(Float throughputMibps) { /** * Get the actualThroughputMibps property: Actual throughput in MiB/s for auto qosType volumes calculated based on * size and serviceLevel. - * + * * @return the actualThroughputMibps value. */ public Float actualThroughputMibps() { @@ -745,7 +753,7 @@ public Float actualThroughputMibps() { * Get the encryptionKeySource property: Source of key used to encrypt data in volume. Applicable if NetApp account * has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, * Microsoft.KeyVault'. - * + * * @return the encryptionKeySource value. */ public EncryptionKeySource encryptionKeySource() { @@ -756,7 +764,7 @@ public EncryptionKeySource encryptionKeySource() { * Set the encryptionKeySource property: Source of key used to encrypt data in volume. Applicable if NetApp account * has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, * Microsoft.KeyVault'. - * + * * @param encryptionKeySource the encryptionKeySource value to set. * @return the VolumeInner object itself. */ @@ -771,7 +779,7 @@ public VolumeInner withEncryptionKeySource(EncryptionKeySource encryptionKeySour /** * Get the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for KeyVault. It must * reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - * + * * @return the keyVaultPrivateEndpointResourceId value. */ public String keyVaultPrivateEndpointResourceId() { @@ -781,7 +789,7 @@ public String keyVaultPrivateEndpointResourceId() { /** * Set the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for KeyVault. It must * reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - * + * * @param keyVaultPrivateEndpointResourceId the keyVaultPrivateEndpointResourceId value to set. * @return the VolumeInner object itself. */ @@ -795,7 +803,7 @@ public VolumeInner withKeyVaultPrivateEndpointResourceId(String keyVaultPrivateE /** * Get the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume. - * + * * @return the ldapEnabled value. */ public Boolean ldapEnabled() { @@ -804,7 +812,7 @@ public Boolean ldapEnabled() { /** * Set the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume. - * + * * @param ldapEnabled the ldapEnabled value to set. * @return the VolumeInner object itself. */ @@ -818,7 +826,7 @@ public VolumeInner withLdapEnabled(Boolean ldapEnabled) { /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * + * * @return the coolAccess value. */ public Boolean coolAccess() { @@ -827,7 +835,7 @@ public Boolean coolAccess() { /** * Set the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * + * * @param coolAccess the coolAccess value to set. * @return the VolumeInner object itself. */ @@ -842,7 +850,7 @@ public VolumeInner withCoolAccess(Boolean coolAccess) { /** * Get the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients * will be tiered. - * + * * @return the coolnessPeriod value. */ public Integer coolnessPeriod() { @@ -852,7 +860,7 @@ public Integer coolnessPeriod() { /** * Set the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients * will be tiered. - * + * * @param coolnessPeriod the coolnessPeriod value to set. * @return the VolumeInner object itself. */ @@ -865,12 +873,14 @@ public VolumeInner withCoolnessPeriod(Integer coolnessPeriod) { } /** - * Get the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values - * for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy - * is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both - * sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage. - * + * Get the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior + * from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + * * @return the coolAccessRetrievalPolicy value. */ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { @@ -878,12 +888,14 @@ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { } /** - * Set the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values - * for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy - * is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both - * sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage. - * + * Set the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior + * from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + * * @param coolAccessRetrievalPolicy the coolAccessRetrievalPolicy value to set. * @return the VolumeInner object itself. */ @@ -901,7 +913,7 @@ public VolumeInner withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy coolA * 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. - * + * * @return the unixPermissions value. */ public String unixPermissions() { @@ -914,7 +926,7 @@ public String unixPermissions() { * 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. - * + * * @param unixPermissions the unixPermissions value to set. * @return the VolumeInner object itself. */ @@ -930,7 +942,7 @@ public VolumeInner withUnixPermissions(String unixPermissions) { * Get the cloneProgress property: When a volume is being restored from another volume's snapshot, will show the * percentage completion of this cloning process. When this value is empty/null there is no cloning process * currently happening on this volume. This value will update every 5 minutes during cloning. - * + * * @return the cloneProgress value. */ public Integer cloneProgress() { @@ -940,7 +952,7 @@ public Integer cloneProgress() { /** * Get the fileAccessLogs property: Flag indicating whether file access logs are enabled for the volume, based on * active diagnostic settings present on the volume. - * + * * @return the fileAccessLogs value. */ public FileAccessLogs fileAccessLogs() { @@ -949,9 +961,9 @@ public FileAccessLogs fileAccessLogs() { /** * Get the avsDataStore property: avsDataStore - * - *

Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - * + * + * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + * * @return the avsDataStore value. */ public AvsDataStore avsDataStore() { @@ -960,9 +972,9 @@ public AvsDataStore avsDataStore() { /** * Set the avsDataStore property: avsDataStore - * - *

Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - * + * + * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + * * @param avsDataStore the avsDataStore value to set. * @return the VolumeInner object itself. */ @@ -976,9 +988,9 @@ public VolumeInner withAvsDataStore(AvsDataStore avsDataStore) { /** * Get the dataStoreResourceId property: dataStoreResourceId - * - *

Data store resource unique identifier. - * + * + * Data store resource unique identifier. + * * @return the dataStoreResourceId value. */ public List dataStoreResourceId() { @@ -987,7 +999,7 @@ public List dataStoreResourceId() { /** * Get the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. - * + * * @return the isDefaultQuotaEnabled value. */ public Boolean isDefaultQuotaEnabled() { @@ -996,7 +1008,7 @@ public Boolean isDefaultQuotaEnabled() { /** * Set the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. - * + * * @param isDefaultQuotaEnabled the isDefaultQuotaEnabled value to set. * @return the VolumeInner object itself. */ @@ -1011,7 +1023,7 @@ public VolumeInner withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled) { /** * Get the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, * the minimum value of 4 KiBs applies . - * + * * @return the defaultUserQuotaInKiBs value. */ public Long defaultUserQuotaInKiBs() { @@ -1021,7 +1033,7 @@ public Long defaultUserQuotaInKiBs() { /** * Set the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, * the minimum value of 4 KiBs applies . - * + * * @param defaultUserQuotaInKiBs the defaultUserQuotaInKiBs value to set. * @return the VolumeInner object itself. */ @@ -1036,7 +1048,7 @@ public VolumeInner withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs) { /** * Get the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is * set, the minimum value of 4 KiBs applies. - * + * * @return the defaultGroupQuotaInKiBs value. */ public Long defaultGroupQuotaInKiBs() { @@ -1046,7 +1058,7 @@ public Long defaultGroupQuotaInKiBs() { /** * Set the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is * set, the minimum value of 4 KiBs applies. - * + * * @param defaultGroupQuotaInKiBs the defaultGroupQuotaInKiBs value to set. * @return the VolumeInner object itself. */ @@ -1061,7 +1073,7 @@ public VolumeInner withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { /** * Get the maximumNumberOfFiles property: Maximum number of files allowed. Needs a service request in order to be * changed. Only allowed to be changed if volume quota is more than 4TiB. - * + * * @return the maximumNumberOfFiles value. */ public Long maximumNumberOfFiles() { @@ -1070,7 +1082,7 @@ public Long maximumNumberOfFiles() { /** * Get the volumeGroupName property: Volume Group Name. - * + * * @return the volumeGroupName value. */ public String volumeGroupName() { @@ -1078,8 +1090,9 @@ public String volumeGroupName() { } /** - * Get the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. - * + * Get the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume + * group. + * * @return the capacityPoolResourceId value. */ public String capacityPoolResourceId() { @@ -1087,8 +1100,9 @@ public String capacityPoolResourceId() { } /** - * Set the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. - * + * Set the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume + * group. + * * @param capacityPoolResourceId the capacityPoolResourceId value to set. * @return the VolumeInner object itself. */ @@ -1102,7 +1116,7 @@ public VolumeInner withCapacityPoolResourceId(String capacityPoolResourceId) { /** * Get the proximityPlacementGroup property: Proximity placement group associated with the volume. - * + * * @return the proximityPlacementGroup value. */ public String proximityPlacementGroup() { @@ -1111,7 +1125,7 @@ public String proximityPlacementGroup() { /** * Set the proximityPlacementGroup property: Proximity placement group associated with the volume. - * + * * @param proximityPlacementGroup the proximityPlacementGroup value to set. * @return the VolumeInner object itself. */ @@ -1125,7 +1139,7 @@ public VolumeInner withProximityPlacementGroup(String proximityPlacementGroup) { /** * Get the t2Network property: T2 network information. - * + * * @return the t2Network value. */ public String t2Network() { @@ -1135,7 +1149,7 @@ public String t2Network() { /** * Get the volumeSpecName property: Volume spec name is the application specific designation or identifier for the * particular volume in a volume group for e.g. data, log. - * + * * @return the volumeSpecName value. */ public String volumeSpecName() { @@ -1145,7 +1159,7 @@ public String volumeSpecName() { /** * Set the volumeSpecName property: Volume spec name is the application specific designation or identifier for the * particular volume in a volume group for e.g. data, log. - * + * * @param volumeSpecName the volumeSpecName value to set. * @return the VolumeInner object itself. */ @@ -1160,7 +1174,7 @@ public VolumeInner withVolumeSpecName(String volumeSpecName) { /** * Get the encrypted property: Specifies if the volume is encrypted or not. Only available on volumes created or * updated after 2022-01-01. - * + * * @return the encrypted value. */ public Boolean encrypted() { @@ -1169,9 +1183,9 @@ public Boolean encrypted() { /** * Get the placementRules property: Volume placement rules - * - *

Application specific placement rules for the particular volume. - * + * + * Application specific placement rules for the particular volume. + * * @return the placementRules value. */ public List placementRules() { @@ -1180,9 +1194,9 @@ public List placementRules() { /** * Set the placementRules property: Volume placement rules - * - *

Application specific placement rules for the particular volume. - * + * + * Application specific placement rules for the particular volume. + * * @param placementRules the placementRules value to set. * @return the VolumeInner object itself. */ @@ -1196,7 +1210,7 @@ public VolumeInner withPlacementRules(List placementRule /** * Get the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the volume. - * + * * @return the enableSubvolumes value. */ public EnableSubvolumes enableSubvolumes() { @@ -1205,7 +1219,7 @@ public EnableSubvolumes enableSubvolumes() { /** * Set the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the volume. - * + * * @param enableSubvolumes the enableSubvolumes value to set. * @return the VolumeInner object itself. */ @@ -1219,10 +1233,10 @@ public VolumeInner withEnableSubvolumes(EnableSubvolumes enableSubvolumes) { /** * Get the provisionedAvailabilityZone property: Provisioned Availability Zone - * - *

The availability zone where the volume is provisioned. This refers to the logical availability zone where the + * + * The availability zone where the volume is provisioned. This refers to the logical availability zone where the * volume resides. - * + * * @return the provisionedAvailabilityZone value. */ public String provisionedAvailabilityZone() { @@ -1231,9 +1245,9 @@ public String provisionedAvailabilityZone() { /** * Get the isLargeVolume property: Is Large Volume - * - *

Specifies whether volume is a Large Volume or Regular Volume. - * + * + * Specifies whether volume is a Large Volume or Regular Volume. + * * @return the isLargeVolume value. */ public Boolean isLargeVolume() { @@ -1242,9 +1256,9 @@ public Boolean isLargeVolume() { /** * Set the isLargeVolume property: Is Large Volume - * - *

Specifies whether volume is a Large Volume or Regular Volume. - * + * + * Specifies whether volume is a Large Volume or Regular Volume. + * * @param isLargeVolume the isLargeVolume value to set. * @return the VolumeInner object itself. */ @@ -1258,9 +1272,9 @@ public VolumeInner withIsLargeVolume(Boolean isLargeVolume) { /** * Get the originatingResourceId property: Originating Resource Id - * - *

Id of the snapshot or backup that the volume is restored from. - * + * + * Id of the snapshot or backup that the volume is restored from. + * * @return the originatingResourceId value. */ public String originatingResourceId() { @@ -1269,14 +1283,13 @@ public String originatingResourceId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model VolumeInner")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property innerProperties in model VolumeInner")); } else { innerProperties().validate(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java index e9b73205343f..708583fc96e1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java @@ -13,12 +13,14 @@ import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; import com.fasterxml.jackson.annotation.JsonProperty; -/** Patchable volume properties. */ +/** + * Patchable volume properties. + */ @Fluent public final class VolumePatchProperties { /* * serviceLevel - * + * * The service level of the file system */ @JsonProperty(value = "serviceLevel") @@ -26,7 +28,7 @@ public final class VolumePatchProperties { /* * usageThreshold - * + * * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. @@ -36,7 +38,7 @@ public final class VolumePatchProperties { /* * exportPolicy - * + * * Set of export policy rules */ @JsonProperty(value = "exportPolicy") @@ -51,7 +53,7 @@ public final class VolumePatchProperties { /* * DataProtection - * + * * DataProtection type volumes include an object containing details of the replication */ @JsonProperty(value = "dataProtection") @@ -117,7 +119,7 @@ public final class VolumePatchProperties { /* * smbAccessBasedEnumeration - * + * * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume */ @JsonProperty(value = "smbAccessBasedEnumeration") @@ -125,21 +127,23 @@ public final class VolumePatchProperties { /* * smbNonBrowsable - * + * * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume */ @JsonProperty(value = "smbNonBrowsable") private SmbNonBrowsable smbNonBrowsable; - /** Creates an instance of VolumePatchProperties class. */ + /** + * Creates an instance of VolumePatchProperties class. + */ public VolumePatchProperties() { } /** * Get the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @return the serviceLevel value. */ public ServiceLevel serviceLevel() { @@ -148,9 +152,9 @@ public ServiceLevel serviceLevel() { /** * Set the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @param serviceLevel the serviceLevel value to set. * @return the VolumePatchProperties object itself. */ @@ -161,11 +165,11 @@ public VolumePatchProperties withServiceLevel(ServiceLevel serviceLevel) { /** * Get the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. - * + * * @return the usageThreshold value. */ public Long usageThreshold() { @@ -174,11 +178,11 @@ public Long usageThreshold() { /** * Set the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. - * + * * @param usageThreshold the usageThreshold value to set. * @return the VolumePatchProperties object itself. */ @@ -189,9 +193,9 @@ public VolumePatchProperties withUsageThreshold(Long usageThreshold) { /** * Get the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @return the exportPolicy value. */ public VolumePatchPropertiesExportPolicy exportPolicy() { @@ -200,9 +204,9 @@ public VolumePatchPropertiesExportPolicy exportPolicy() { /** * Set the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @param exportPolicy the exportPolicy value to set. * @return the VolumePatchProperties object itself. */ @@ -214,7 +218,7 @@ public VolumePatchProperties withExportPolicy(VolumePatchPropertiesExportPolicy /** * Get the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume and this will * be accepted as input only for manual qosType volume. - * + * * @return the throughputMibps value. */ public Float throughputMibps() { @@ -224,7 +228,7 @@ public Float throughputMibps() { /** * Set the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume and this will * be accepted as input only for manual qosType volume. - * + * * @param throughputMibps the throughputMibps value to set. * @return the VolumePatchProperties object itself. */ @@ -235,9 +239,9 @@ public VolumePatchProperties withThroughputMibps(Float throughputMibps) { /** * Get the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @return the dataProtection value. */ public VolumePatchPropertiesDataProtection dataProtection() { @@ -246,9 +250,9 @@ public VolumePatchPropertiesDataProtection dataProtection() { /** * Set the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @param dataProtection the dataProtection value to set. * @return the VolumePatchProperties object itself. */ @@ -259,7 +263,7 @@ public VolumePatchProperties withDataProtection(VolumePatchPropertiesDataProtect /** * Get the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. - * + * * @return the isDefaultQuotaEnabled value. */ public Boolean isDefaultQuotaEnabled() { @@ -268,7 +272,7 @@ public Boolean isDefaultQuotaEnabled() { /** * Set the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. - * + * * @param isDefaultQuotaEnabled the isDefaultQuotaEnabled value to set. * @return the VolumePatchProperties object itself. */ @@ -280,7 +284,7 @@ public VolumePatchProperties withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEna /** * Get the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, * the minimum value of 4 KiBs applies . - * + * * @return the defaultUserQuotaInKiBs value. */ public Long defaultUserQuotaInKiBs() { @@ -290,7 +294,7 @@ public Long defaultUserQuotaInKiBs() { /** * Set the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, * the minimum value of 4 KiBs applies . - * + * * @param defaultUserQuotaInKiBs the defaultUserQuotaInKiBs value to set. * @return the VolumePatchProperties object itself. */ @@ -302,7 +306,7 @@ public VolumePatchProperties withDefaultUserQuotaInKiBs(Long defaultUserQuotaInK /** * Get the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is * set, the minimum value of 4 KiBs applies. - * + * * @return the defaultGroupQuotaInKiBs value. */ public Long defaultGroupQuotaInKiBs() { @@ -312,7 +316,7 @@ public Long defaultGroupQuotaInKiBs() { /** * Set the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is * set, the minimum value of 4 KiBs applies. - * + * * @param defaultGroupQuotaInKiBs the defaultGroupQuotaInKiBs value to set. * @return the VolumePatchProperties object itself. */ @@ -327,7 +331,7 @@ public VolumePatchProperties withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaI * 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. - * + * * @return the unixPermissions value. */ public String unixPermissions() { @@ -340,7 +344,7 @@ public String unixPermissions() { * 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. - * + * * @param unixPermissions the unixPermissions value to set. * @return the VolumePatchProperties object itself. */ @@ -351,7 +355,7 @@ public VolumePatchProperties withUnixPermissions(String unixPermissions) { /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * + * * @return the coolAccess value. */ public Boolean coolAccess() { @@ -360,7 +364,7 @@ public Boolean coolAccess() { /** * Set the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * + * * @param coolAccess the coolAccess value to set. * @return the VolumePatchProperties object itself. */ @@ -372,7 +376,7 @@ public VolumePatchProperties withCoolAccess(Boolean coolAccess) { /** * Get the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients * will be tiered. - * + * * @return the coolnessPeriod value. */ public Integer coolnessPeriod() { @@ -382,7 +386,7 @@ public Integer coolnessPeriod() { /** * Set the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients * will be tiered. - * + * * @param coolnessPeriod the coolnessPeriod value to set. * @return the VolumePatchProperties object itself. */ @@ -392,12 +396,14 @@ public VolumePatchProperties withCoolnessPeriod(Integer coolnessPeriod) { } /** - * Get the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values - * for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy - * is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both - * sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage. - * + * Get the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior + * from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + * * @return the coolAccessRetrievalPolicy value. */ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { @@ -405,12 +411,14 @@ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { } /** - * Set the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values - * for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy - * is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both - * sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage. - * + * Set the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior + * from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + * * @param coolAccessRetrievalPolicy the coolAccessRetrievalPolicy value to set. * @return the VolumePatchProperties object itself. */ @@ -422,7 +430,7 @@ public VolumePatchProperties withCoolAccessRetrievalPolicy(CoolAccessRetrievalPo /** * 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. - * + * * @return the snapshotDirectoryVisible value. */ public Boolean snapshotDirectoryVisible() { @@ -432,7 +440,7 @@ public Boolean snapshotDirectoryVisible() { /** * Set 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. - * + * * @param snapshotDirectoryVisible the snapshotDirectoryVisible value to set. * @return the VolumePatchProperties object itself. */ @@ -443,9 +451,9 @@ public VolumePatchProperties withSnapshotDirectoryVisible(Boolean snapshotDirect /** * Get the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbAccessBasedEnumeration value. */ public SmbAccessBasedEnumeration smbAccessBasedEnumeration() { @@ -454,9 +462,9 @@ public SmbAccessBasedEnumeration smbAccessBasedEnumeration() { /** * Set the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbAccessBasedEnumeration the smbAccessBasedEnumeration value to set. * @return the VolumePatchProperties object itself. */ @@ -467,9 +475,9 @@ public VolumePatchProperties withSmbAccessBasedEnumeration(SmbAccessBasedEnumera /** * Get the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbNonBrowsable value. */ public SmbNonBrowsable smbNonBrowsable() { @@ -478,9 +486,9 @@ public SmbNonBrowsable smbNonBrowsable() { /** * Set the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbNonBrowsable the smbNonBrowsable value to set. * @return the VolumePatchProperties object itself. */ @@ -491,7 +499,7 @@ public VolumePatchProperties withSmbNonBrowsable(SmbNonBrowsable smbNonBrowsable /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 bf75b628e9b2..2d78dc5274e5 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 @@ -23,12 +23,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Volume properties. */ +/** + * Volume properties. + */ @Fluent public final class VolumeProperties { /* * FileSystem ID - * + * * Unique FileSystem Identifier. */ @JsonProperty(value = "fileSystemId", access = JsonProperty.Access.WRITE_ONLY) @@ -36,7 +38,7 @@ public final class VolumeProperties { /* * Creation Token or File Path - * + * * A unique file path for the volume. Used when creating mount targets */ @JsonProperty(value = "creationToken", required = true) @@ -44,7 +46,7 @@ public final class VolumeProperties { /* * serviceLevel - * + * * The service level of the file system */ @JsonProperty(value = "serviceLevel") @@ -52,7 +54,7 @@ public final class VolumeProperties { /* * usageThreshold - * + * * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. @@ -62,7 +64,7 @@ public final class VolumeProperties { /* * exportPolicy - * + * * Set of export policy rules */ @JsonProperty(value = "exportPolicy") @@ -70,7 +72,7 @@ public final class VolumeProperties { /* * protocolTypes - * + * * Set of protocol types, default NFSv3, CIFS for SMB protocol */ @JsonProperty(value = "protocolTypes") @@ -84,7 +86,7 @@ public final class VolumeProperties { /* * Snapshot ID - * + * * UUID v4 or resource identifier used to identify the Snapshot. */ @JsonProperty(value = "snapshotId") @@ -92,14 +94,14 @@ public final class VolumeProperties { /* * If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create - * operation has finished. Defaults to false + * operation has finished. Defaults to false */ @JsonProperty(value = "deleteBaseSnapshot") private Boolean deleteBaseSnapshot; /* * Backup ID - * + * * UUID v4 or resource identifier used to identify the Backup. */ @JsonProperty(value = "backupId") @@ -107,7 +109,7 @@ public final class VolumeProperties { /* * Baremetal Tenant ID - * + * * Unique Baremetal Tenant Identifier. */ @JsonProperty(value = "baremetalTenantId", access = JsonProperty.Access.WRITE_ONLY) @@ -121,7 +123,7 @@ public final class VolumeProperties { /* * Network features - * + * * Network features available to the volume, or current state of update. */ @JsonProperty(value = "networkFeatures") @@ -129,7 +131,7 @@ public final class VolumeProperties { /* * Network Sibling Set ID - * + * * Network Sibling Set ID for the the group of volumes sharing networking resources. */ @JsonProperty(value = "networkSiblingSetId", access = JsonProperty.Access.WRITE_ONLY) @@ -137,7 +139,7 @@ public final class VolumeProperties { /* * Storage to Network Proximity - * + * * Provides storage to network proximity information for the volume. */ @JsonProperty(value = "storageToNetworkProximity", access = JsonProperty.Access.WRITE_ONLY) @@ -145,7 +147,7 @@ public final class VolumeProperties { /* * mountTargets - * + * * List of mount targets */ @JsonProperty(value = "mountTargets", access = JsonProperty.Access.WRITE_ONLY) @@ -159,7 +161,7 @@ public final class VolumeProperties { /* * DataProtection - * + * * DataProtection type volumes include an object containing details of the replication */ @JsonProperty(value = "dataProtection") @@ -199,7 +201,7 @@ public final class VolumeProperties { /* * smbAccessBasedEnumeration - * + * * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume */ @JsonProperty(value = "smbAccessBasedEnumeration") @@ -207,7 +209,7 @@ public final class VolumeProperties { /* * smbNonBrowsable - * + * * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume */ @JsonProperty(value = "smbNonBrowsable") @@ -302,7 +304,7 @@ public final class VolumeProperties { /* * avsDataStore - * + * * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose */ @JsonProperty(value = "avsDataStore") @@ -310,7 +312,7 @@ public final class VolumeProperties { /* * dataStoreResourceId - * + * * Data store resource unique identifier */ @JsonProperty(value = "dataStoreResourceId", access = JsonProperty.Access.WRITE_ONLY) @@ -380,7 +382,7 @@ public final class VolumeProperties { /* * Volume placement rules - * + * * Application specific placement rules for the particular volume */ @JsonProperty(value = "placementRules") @@ -394,7 +396,7 @@ public final class VolumeProperties { /* * Provisioned Availability Zone - * + * * The availability zone where the volume is provisioned. This refers to the logical availability zone where the * volume resides. */ @@ -403,7 +405,7 @@ public final class VolumeProperties { /* * Is Large Volume - * + * * Specifies whether volume is a Large Volume or Regular Volume. */ @JsonProperty(value = "isLargeVolume") @@ -411,21 +413,23 @@ public final class VolumeProperties { /* * Originating Resource Id - * + * * Id of the snapshot or backup that the volume is restored from. */ @JsonProperty(value = "originatingResourceId", access = JsonProperty.Access.WRITE_ONLY) private String originatingResourceId; - /** Creates an instance of VolumeProperties class. */ + /** + * Creates an instance of VolumeProperties class. + */ public VolumeProperties() { } /** * Get the fileSystemId property: FileSystem ID - * - *

Unique FileSystem Identifier. - * + * + * Unique FileSystem Identifier. + * * @return the fileSystemId value. */ public String fileSystemId() { @@ -434,9 +438,9 @@ public String fileSystemId() { /** * Get the creationToken property: Creation Token or File Path - * - *

A unique file path for the volume. Used when creating mount targets. - * + * + * A unique file path for the volume. Used when creating mount targets. + * * @return the creationToken value. */ public String creationToken() { @@ -445,9 +449,9 @@ public String creationToken() { /** * Set the creationToken property: Creation Token or File Path - * - *

A unique file path for the volume. Used when creating mount targets. - * + * + * A unique file path for the volume. Used when creating mount targets. + * * @param creationToken the creationToken value to set. * @return the VolumeProperties object itself. */ @@ -458,9 +462,9 @@ public VolumeProperties withCreationToken(String creationToken) { /** * Get the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @return the serviceLevel value. */ public ServiceLevel serviceLevel() { @@ -469,9 +473,9 @@ public ServiceLevel serviceLevel() { /** * Set the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @param serviceLevel the serviceLevel value to set. * @return the VolumeProperties object itself. */ @@ -482,11 +486,11 @@ public VolumeProperties withServiceLevel(ServiceLevel serviceLevel) { /** * Get the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. - * + * * @return the usageThreshold value. */ public long usageThreshold() { @@ -495,11 +499,11 @@ public long usageThreshold() { /** * Set the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. - * + * * @param usageThreshold the usageThreshold value to set. * @return the VolumeProperties object itself. */ @@ -510,9 +514,9 @@ public VolumeProperties withUsageThreshold(long usageThreshold) { /** * Get the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @return the exportPolicy value. */ public VolumePropertiesExportPolicy exportPolicy() { @@ -521,9 +525,9 @@ public VolumePropertiesExportPolicy exportPolicy() { /** * Set the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @param exportPolicy the exportPolicy value to set. * @return the VolumeProperties object itself. */ @@ -534,9 +538,9 @@ public VolumeProperties withExportPolicy(VolumePropertiesExportPolicy exportPoli /** * Get the protocolTypes property: protocolTypes - * - *

Set of protocol types, default NFSv3, CIFS for SMB protocol. - * + * + * Set of protocol types, default NFSv3, CIFS for SMB protocol. + * * @return the protocolTypes value. */ public List protocolTypes() { @@ -545,9 +549,9 @@ public List protocolTypes() { /** * Set the protocolTypes property: protocolTypes - * - *

Set of protocol types, default NFSv3, CIFS for SMB protocol. - * + * + * Set of protocol types, default NFSv3, CIFS for SMB protocol. + * * @param protocolTypes the protocolTypes value to set. * @return the VolumeProperties object itself. */ @@ -558,7 +562,7 @@ public VolumeProperties withProtocolTypes(List protocolTypes) { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -567,9 +571,9 @@ public String provisioningState() { /** * Get the snapshotId property: Snapshot ID - * - *

UUID v4 or resource identifier used to identify the Snapshot. - * + * + * UUID v4 or resource identifier used to identify the Snapshot. + * * @return the snapshotId value. */ public String snapshotId() { @@ -578,9 +582,9 @@ public String snapshotId() { /** * Set the snapshotId property: Snapshot ID - * - *

UUID v4 or resource identifier used to identify the Snapshot. - * + * + * UUID v4 or resource identifier used to identify the Snapshot. + * * @param snapshotId the snapshotId value to set. * @return the VolumeProperties object itself. */ @@ -592,7 +596,7 @@ public VolumeProperties withSnapshotId(String snapshotId) { /** * Get the deleteBaseSnapshot property: If enabled (true) the snapshot the volume was created from will be * automatically deleted after the volume create operation has finished. Defaults to false. - * + * * @return the deleteBaseSnapshot value. */ public Boolean deleteBaseSnapshot() { @@ -602,7 +606,7 @@ public Boolean deleteBaseSnapshot() { /** * Set the deleteBaseSnapshot property: If enabled (true) the snapshot the volume was created from will be * automatically deleted after the volume create operation has finished. Defaults to false. - * + * * @param deleteBaseSnapshot the deleteBaseSnapshot value to set. * @return the VolumeProperties object itself. */ @@ -613,9 +617,9 @@ public VolumeProperties withDeleteBaseSnapshot(Boolean deleteBaseSnapshot) { /** * Get the backupId property: Backup ID - * - *

UUID v4 or resource identifier used to identify the Backup. - * + * + * UUID v4 or resource identifier used to identify the Backup. + * * @return the backupId value. */ public String backupId() { @@ -624,9 +628,9 @@ public String backupId() { /** * Set the backupId property: Backup ID - * - *

UUID v4 or resource identifier used to identify the Backup. - * + * + * UUID v4 or resource identifier used to identify the Backup. + * * @param backupId the backupId value to set. * @return the VolumeProperties object itself. */ @@ -637,9 +641,9 @@ public VolumeProperties withBackupId(String backupId) { /** * Get the baremetalTenantId property: Baremetal Tenant ID - * - *

Unique Baremetal Tenant Identifier. - * + * + * Unique Baremetal Tenant Identifier. + * * @return the baremetalTenantId value. */ public String baremetalTenantId() { @@ -649,7 +653,7 @@ public String baremetalTenantId() { /** * Get the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes. - * + * * @return the subnetId value. */ public String subnetId() { @@ -659,7 +663,7 @@ public String subnetId() { /** * Set the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes. - * + * * @param subnetId the subnetId value to set. * @return the VolumeProperties object itself. */ @@ -670,9 +674,9 @@ public VolumeProperties withSubnetId(String subnetId) { /** * Get the networkFeatures property: Network features - * - *

Network features available to the volume, or current state of update. - * + * + * Network features available to the volume, or current state of update. + * * @return the networkFeatures value. */ public NetworkFeatures networkFeatures() { @@ -681,9 +685,9 @@ public NetworkFeatures networkFeatures() { /** * Set the networkFeatures property: Network features - * - *

Network features available to the volume, or current state of update. - * + * + * Network features available to the volume, or current state of update. + * * @param networkFeatures the networkFeatures value to set. * @return the VolumeProperties object itself. */ @@ -694,9 +698,9 @@ public VolumeProperties withNetworkFeatures(NetworkFeatures networkFeatures) { /** * Get the networkSiblingSetId property: Network Sibling Set ID - * - *

Network Sibling Set ID for the the group of volumes sharing networking resources. - * + * + * Network Sibling Set ID for the the group of volumes sharing networking resources. + * * @return the networkSiblingSetId value. */ public String networkSiblingSetId() { @@ -705,9 +709,9 @@ public String networkSiblingSetId() { /** * Get the storageToNetworkProximity property: Storage to Network Proximity - * - *

Provides storage to network proximity information for the volume. - * + * + * Provides storage to network proximity information for the volume. + * * @return the storageToNetworkProximity value. */ public VolumeStorageToNetworkProximity storageToNetworkProximity() { @@ -716,9 +720,9 @@ public VolumeStorageToNetworkProximity storageToNetworkProximity() { /** * Get the mountTargets property: mountTargets - * - *

List of mount targets. - * + * + * List of mount targets. + * * @return the mountTargets value. */ public List mountTargets() { @@ -728,7 +732,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. - * + * * @return the volumeType value. */ public String volumeType() { @@ -738,7 +742,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. - * + * * @param volumeType the volumeType value to set. * @return the VolumeProperties object itself. */ @@ -749,9 +753,9 @@ public VolumeProperties withVolumeType(String volumeType) { /** * Get the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @return the dataProtection value. */ public VolumePropertiesDataProtection dataProtection() { @@ -760,9 +764,9 @@ public VolumePropertiesDataProtection dataProtection() { /** * Set the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @param dataProtection the dataProtection value to set. * @return the VolumeProperties object itself. */ @@ -773,7 +777,7 @@ public VolumeProperties withDataProtection(VolumePropertiesDataProtection dataPr /** * Get the isRestoring property: Restoring. - * + * * @return the isRestoring value. */ public Boolean isRestoring() { @@ -782,7 +786,7 @@ public Boolean isRestoring() { /** * Set the isRestoring property: Restoring. - * + * * @param isRestoring the isRestoring value to set. * @return the VolumeProperties object itself. */ @@ -794,7 +798,7 @@ public VolumeProperties withIsRestoring(Boolean 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). - * + * * @return the snapshotDirectoryVisible value. */ public Boolean snapshotDirectoryVisible() { @@ -804,7 +808,7 @@ public Boolean snapshotDirectoryVisible() { /** * Set 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). - * + * * @param snapshotDirectoryVisible the snapshotDirectoryVisible value to set. * @return the VolumeProperties object itself. */ @@ -816,7 +820,7 @@ public VolumeProperties withSnapshotDirectoryVisible(Boolean snapshotDirectoryVi /** * Get the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger version * 2020-05-01 or later. - * + * * @return the kerberosEnabled value. */ public Boolean kerberosEnabled() { @@ -826,7 +830,7 @@ public Boolean kerberosEnabled() { /** * Set the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger version * 2020-05-01 or later. - * + * * @param kerberosEnabled the kerberosEnabled value to set. * @return the VolumeProperties object itself. */ @@ -836,9 +840,9 @@ public VolumeProperties withKerberosEnabled(Boolean kerberosEnabled) { } /** - * Get the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol or - * CIFS protocol. - * + * Get the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol + * or CIFS protocol. + * * @return the securityStyle value. */ public SecurityStyle securityStyle() { @@ -846,9 +850,9 @@ public SecurityStyle securityStyle() { } /** - * Set the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol or - * CIFS protocol. - * + * Set the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol + * or CIFS protocol. + * * @param securityStyle the securityStyle value to set. * @return the VolumeProperties object itself. */ @@ -860,7 +864,7 @@ public VolumeProperties withSecurityStyle(SecurityStyle securityStyle) { /** * Get the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol * volume. To be used with swagger version 2020-08-01 or later. - * + * * @return the smbEncryption value. */ public Boolean smbEncryption() { @@ -870,7 +874,7 @@ public Boolean smbEncryption() { /** * Set the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol * volume. To be used with swagger version 2020-08-01 or later. - * + * * @param smbEncryption the smbEncryption value to set. * @return the VolumeProperties object itself. */ @@ -881,9 +885,9 @@ public VolumeProperties withSmbEncryption(Boolean smbEncryption) { /** * Get the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbAccessBasedEnumeration value. */ public SmbAccessBasedEnumeration smbAccessBasedEnumeration() { @@ -892,9 +896,9 @@ public SmbAccessBasedEnumeration smbAccessBasedEnumeration() { /** * Set the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbAccessBasedEnumeration the smbAccessBasedEnumeration value to set. * @return the VolumeProperties object itself. */ @@ -905,9 +909,9 @@ public VolumeProperties withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration /** * Get the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbNonBrowsable value. */ public SmbNonBrowsable smbNonBrowsable() { @@ -916,9 +920,9 @@ public SmbNonBrowsable smbNonBrowsable() { /** * Set the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbNonBrowsable the smbNonBrowsable value to set. * @return the VolumeProperties object itself. */ @@ -930,7 +934,7 @@ public VolumeProperties withSmbNonBrowsable(SmbNonBrowsable smbNonBrowsable) { /** * Get the smbContinuouslyAvailable property: Enables continuously available share property for smb volume. Only * applicable for SMB volume. - * + * * @return the smbContinuouslyAvailable value. */ public Boolean smbContinuouslyAvailable() { @@ -940,7 +944,7 @@ public Boolean smbContinuouslyAvailable() { /** * Set the smbContinuouslyAvailable property: Enables continuously available share property for smb volume. Only * applicable for SMB volume. - * + * * @param smbContinuouslyAvailable the smbContinuouslyAvailable value to set. * @return the VolumeProperties object itself. */ @@ -952,7 +956,7 @@ public VolumeProperties withSmbContinuouslyAvailable(Boolean smbContinuouslyAvai /** * Get the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume and this will * be accepted as input only for manual qosType volume. - * + * * @return the throughputMibps value. */ public Float throughputMibps() { @@ -962,7 +966,7 @@ public Float throughputMibps() { /** * Set the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume and this will * be accepted as input only for manual qosType volume. - * + * * @param throughputMibps the throughputMibps value to set. * @return the VolumeProperties object itself. */ @@ -974,7 +978,7 @@ public VolumeProperties withThroughputMibps(Float throughputMibps) { /** * Get the actualThroughputMibps property: Actual throughput in MiB/s for auto qosType volumes calculated based on * size and serviceLevel. - * + * * @return the actualThroughputMibps value. */ public Float actualThroughputMibps() { @@ -985,7 +989,7 @@ public Float actualThroughputMibps() { * Get the encryptionKeySource property: Source of key used to encrypt data in volume. Applicable if NetApp account * has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, * Microsoft.KeyVault'. - * + * * @return the encryptionKeySource value. */ public EncryptionKeySource encryptionKeySource() { @@ -996,7 +1000,7 @@ public EncryptionKeySource encryptionKeySource() { * Set the encryptionKeySource property: Source of key used to encrypt data in volume. Applicable if NetApp account * has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, * Microsoft.KeyVault'. - * + * * @param encryptionKeySource the encryptionKeySource value to set. * @return the VolumeProperties object itself. */ @@ -1008,7 +1012,7 @@ public VolumeProperties withEncryptionKeySource(EncryptionKeySource encryptionKe /** * Get the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for KeyVault. It must * reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - * + * * @return the keyVaultPrivateEndpointResourceId value. */ public String keyVaultPrivateEndpointResourceId() { @@ -1018,7 +1022,7 @@ public String keyVaultPrivateEndpointResourceId() { /** * Set the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for KeyVault. It must * reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - * + * * @param keyVaultPrivateEndpointResourceId the keyVaultPrivateEndpointResourceId value to set. * @return the VolumeProperties object itself. */ @@ -1029,7 +1033,7 @@ public VolumeProperties withKeyVaultPrivateEndpointResourceId(String keyVaultPri /** * Get the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume. - * + * * @return the ldapEnabled value. */ public Boolean ldapEnabled() { @@ -1038,7 +1042,7 @@ public Boolean ldapEnabled() { /** * Set the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume. - * + * * @param ldapEnabled the ldapEnabled value to set. * @return the VolumeProperties object itself. */ @@ -1049,7 +1053,7 @@ public VolumeProperties withLdapEnabled(Boolean ldapEnabled) { /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * + * * @return the coolAccess value. */ public Boolean coolAccess() { @@ -1058,7 +1062,7 @@ public Boolean coolAccess() { /** * Set the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * + * * @param coolAccess the coolAccess value to set. * @return the VolumeProperties object itself. */ @@ -1070,7 +1074,7 @@ public VolumeProperties withCoolAccess(Boolean coolAccess) { /** * Get the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients * will be tiered. - * + * * @return the coolnessPeriod value. */ public Integer coolnessPeriod() { @@ -1080,7 +1084,7 @@ public Integer coolnessPeriod() { /** * Set the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients * will be tiered. - * + * * @param coolnessPeriod the coolnessPeriod value to set. * @return the VolumeProperties object itself. */ @@ -1090,12 +1094,14 @@ public VolumeProperties withCoolnessPeriod(Integer coolnessPeriod) { } /** - * Get the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values - * for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy - * is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both - * sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage. - * + * Get the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior + * from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + * * @return the coolAccessRetrievalPolicy value. */ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { @@ -1103,12 +1109,14 @@ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { } /** - * Set the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values - * for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy - * is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both - * sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage. - * + * Set the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior + * from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + * * @param coolAccessRetrievalPolicy the coolAccessRetrievalPolicy value to set. * @return the VolumeProperties object itself. */ @@ -1123,7 +1131,7 @@ public VolumeProperties withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy * 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. - * + * * @return the unixPermissions value. */ public String unixPermissions() { @@ -1136,7 +1144,7 @@ public String unixPermissions() { * 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. - * + * * @param unixPermissions the unixPermissions value to set. * @return the VolumeProperties object itself. */ @@ -1149,7 +1157,7 @@ public VolumeProperties withUnixPermissions(String unixPermissions) { * Get the cloneProgress property: When a volume is being restored from another volume's snapshot, will show the * percentage completion of this cloning process. When this value is empty/null there is no cloning process * currently happening on this volume. This value will update every 5 minutes during cloning. - * + * * @return the cloneProgress value. */ public Integer cloneProgress() { @@ -1159,7 +1167,7 @@ public Integer cloneProgress() { /** * Get the fileAccessLogs property: Flag indicating whether file access logs are enabled for the volume, based on * active diagnostic settings present on the volume. - * + * * @return the fileAccessLogs value. */ public FileAccessLogs fileAccessLogs() { @@ -1168,9 +1176,9 @@ public FileAccessLogs fileAccessLogs() { /** * Get the avsDataStore property: avsDataStore - * - *

Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - * + * + * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + * * @return the avsDataStore value. */ public AvsDataStore avsDataStore() { @@ -1179,9 +1187,9 @@ public AvsDataStore avsDataStore() { /** * Set the avsDataStore property: avsDataStore - * - *

Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - * + * + * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + * * @param avsDataStore the avsDataStore value to set. * @return the VolumeProperties object itself. */ @@ -1192,9 +1200,9 @@ public VolumeProperties withAvsDataStore(AvsDataStore avsDataStore) { /** * Get the dataStoreResourceId property: dataStoreResourceId - * - *

Data store resource unique identifier. - * + * + * Data store resource unique identifier. + * * @return the dataStoreResourceId value. */ public List dataStoreResourceId() { @@ -1203,7 +1211,7 @@ public List dataStoreResourceId() { /** * Get the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. - * + * * @return the isDefaultQuotaEnabled value. */ public Boolean isDefaultQuotaEnabled() { @@ -1212,7 +1220,7 @@ public Boolean isDefaultQuotaEnabled() { /** * Set the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. - * + * * @param isDefaultQuotaEnabled the isDefaultQuotaEnabled value to set. * @return the VolumeProperties object itself. */ @@ -1224,7 +1232,7 @@ public VolumeProperties withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled) /** * Get the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, * the minimum value of 4 KiBs applies . - * + * * @return the defaultUserQuotaInKiBs value. */ public Long defaultUserQuotaInKiBs() { @@ -1234,7 +1242,7 @@ public Long defaultUserQuotaInKiBs() { /** * Set the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, * the minimum value of 4 KiBs applies . - * + * * @param defaultUserQuotaInKiBs the defaultUserQuotaInKiBs value to set. * @return the VolumeProperties object itself. */ @@ -1246,7 +1254,7 @@ public VolumeProperties withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs) /** * Get the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is * set, the minimum value of 4 KiBs applies. - * + * * @return the defaultGroupQuotaInKiBs value. */ public Long defaultGroupQuotaInKiBs() { @@ -1256,7 +1264,7 @@ public Long defaultGroupQuotaInKiBs() { /** * Set the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is * set, the minimum value of 4 KiBs applies. - * + * * @param defaultGroupQuotaInKiBs the defaultGroupQuotaInKiBs value to set. * @return the VolumeProperties object itself. */ @@ -1268,7 +1276,7 @@ public VolumeProperties withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs /** * Get the maximumNumberOfFiles property: Maximum number of files allowed. Needs a service request in order to be * changed. Only allowed to be changed if volume quota is more than 4TiB. - * + * * @return the maximumNumberOfFiles value. */ public Long maximumNumberOfFiles() { @@ -1277,7 +1285,7 @@ public Long maximumNumberOfFiles() { /** * Get the volumeGroupName property: Volume Group Name. - * + * * @return the volumeGroupName value. */ public String volumeGroupName() { @@ -1285,8 +1293,9 @@ public String volumeGroupName() { } /** - * Get the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. - * + * Get the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume + * group. + * * @return the capacityPoolResourceId value. */ public String capacityPoolResourceId() { @@ -1294,8 +1303,9 @@ public String capacityPoolResourceId() { } /** - * Set the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. - * + * Set the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume + * group. + * * @param capacityPoolResourceId the capacityPoolResourceId value to set. * @return the VolumeProperties object itself. */ @@ -1306,7 +1316,7 @@ public VolumeProperties withCapacityPoolResourceId(String capacityPoolResourceId /** * Get the proximityPlacementGroup property: Proximity placement group associated with the volume. - * + * * @return the proximityPlacementGroup value. */ public String proximityPlacementGroup() { @@ -1315,7 +1325,7 @@ public String proximityPlacementGroup() { /** * Set the proximityPlacementGroup property: Proximity placement group associated with the volume. - * + * * @param proximityPlacementGroup the proximityPlacementGroup value to set. * @return the VolumeProperties object itself. */ @@ -1326,7 +1336,7 @@ public VolumeProperties withProximityPlacementGroup(String proximityPlacementGro /** * Get the t2Network property: T2 network information. - * + * * @return the t2Network value. */ public String t2Network() { @@ -1336,7 +1346,7 @@ public String t2Network() { /** * Get the volumeSpecName property: Volume spec name is the application specific designation or identifier for the * particular volume in a volume group for e.g. data, log. - * + * * @return the volumeSpecName value. */ public String volumeSpecName() { @@ -1346,7 +1356,7 @@ public String volumeSpecName() { /** * Set the volumeSpecName property: Volume spec name is the application specific designation or identifier for the * particular volume in a volume group for e.g. data, log. - * + * * @param volumeSpecName the volumeSpecName value to set. * @return the VolumeProperties object itself. */ @@ -1358,7 +1368,7 @@ public VolumeProperties withVolumeSpecName(String volumeSpecName) { /** * Get the encrypted property: Specifies if the volume is encrypted or not. Only available on volumes created or * updated after 2022-01-01. - * + * * @return the encrypted value. */ public Boolean encrypted() { @@ -1367,9 +1377,9 @@ public Boolean encrypted() { /** * Get the placementRules property: Volume placement rules - * - *

Application specific placement rules for the particular volume. - * + * + * Application specific placement rules for the particular volume. + * * @return the placementRules value. */ public List placementRules() { @@ -1378,9 +1388,9 @@ public List placementRules() { /** * Set the placementRules property: Volume placement rules - * - *

Application specific placement rules for the particular volume. - * + * + * Application specific placement rules for the particular volume. + * * @param placementRules the placementRules value to set. * @return the VolumeProperties object itself. */ @@ -1391,7 +1401,7 @@ public VolumeProperties withPlacementRules(List placemen /** * Get the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the volume. - * + * * @return the enableSubvolumes value. */ public EnableSubvolumes enableSubvolumes() { @@ -1400,7 +1410,7 @@ public EnableSubvolumes enableSubvolumes() { /** * Set the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the volume. - * + * * @param enableSubvolumes the enableSubvolumes value to set. * @return the VolumeProperties object itself. */ @@ -1411,10 +1421,10 @@ public VolumeProperties withEnableSubvolumes(EnableSubvolumes enableSubvolumes) /** * Get the provisionedAvailabilityZone property: Provisioned Availability Zone - * - *

The availability zone where the volume is provisioned. This refers to the logical availability zone where the + * + * The availability zone where the volume is provisioned. This refers to the logical availability zone where the * volume resides. - * + * * @return the provisionedAvailabilityZone value. */ public String provisionedAvailabilityZone() { @@ -1423,9 +1433,9 @@ public String provisionedAvailabilityZone() { /** * Get the isLargeVolume property: Is Large Volume - * - *

Specifies whether volume is a Large Volume or Regular Volume. - * + * + * Specifies whether volume is a Large Volume or Regular Volume. + * * @return the isLargeVolume value. */ public Boolean isLargeVolume() { @@ -1434,9 +1444,9 @@ public Boolean isLargeVolume() { /** * Set the isLargeVolume property: Is Large Volume - * - *

Specifies whether volume is a Large Volume or Regular Volume. - * + * + * Specifies whether volume is a Large Volume or Regular Volume. + * * @param isLargeVolume the isLargeVolume value to set. * @return the VolumeProperties object itself. */ @@ -1447,9 +1457,9 @@ public VolumeProperties withIsLargeVolume(Boolean isLargeVolume) { /** * Get the originatingResourceId property: Originating Resource Id - * - *

Id of the snapshot or backup that the volume is restored from. - * + * + * Id of the snapshot or backup that the volume is restored from. + * * @return the originatingResourceId value. */ public String originatingResourceId() { @@ -1458,22 +1468,20 @@ public String originatingResourceId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (creationToken() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property creationToken in model VolumeProperties")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property creationToken in model VolumeProperties")); } if (exportPolicy() != null) { exportPolicy().validate(); } if (subnetId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property subnetId in model VolumeProperties")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property subnetId in model VolumeProperties")); } if (mountTargets() != null) { mountTargets().forEach(e -> e.validate()); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java index afc4ead0ddfa..afd55fd99ca5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java @@ -12,7 +12,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Quota Rule of a Volume. */ +/** + * Quota Rule of a Volume. + */ @Fluent public final class VolumeQuotaRuleInner extends Resource { /* @@ -27,13 +29,15 @@ public final class VolumeQuotaRuleInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of VolumeQuotaRuleInner class. */ + /** + * Creates an instance of VolumeQuotaRuleInner class. + */ public VolumeQuotaRuleInner() { } /** * Get the innerProperties property: Volume Quota Rule Properties. - * + * * @return the innerProperties value. */ private VolumeQuotaRulesProperties innerProperties() { @@ -42,21 +46,25 @@ private VolumeQuotaRulesProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public VolumeQuotaRuleInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public VolumeQuotaRuleInner withTags(Map tags) { super.withTags(tags); @@ -65,7 +73,7 @@ public VolumeQuotaRuleInner withTags(Map tags) { /** * Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -74,7 +82,7 @@ public ProvisioningState provisioningState() { /** * Get the quotaSizeInKiBs property: Size of quota. - * + * * @return the quotaSizeInKiBs value. */ public Long quotaSizeInKiBs() { @@ -83,7 +91,7 @@ public Long quotaSizeInKiBs() { /** * Set the quotaSizeInKiBs property: Size of quota. - * + * * @param quotaSizeInKiBs the quotaSizeInKiBs value to set. * @return the VolumeQuotaRuleInner object itself. */ @@ -97,9 +105,9 @@ public VolumeQuotaRuleInner withQuotaSizeInKiBs(Long quotaSizeInKiBs) { /** * Get the quotaType property: quotaType - * - *

Type of quota. - * + * + * Type of quota. + * * @return the quotaType value. */ public Type quotaType() { @@ -108,9 +116,9 @@ public Type quotaType() { /** * Set the quotaType property: quotaType - * - *

Type of quota. - * + * + * Type of quota. + * * @param quotaType the quotaType value to set. * @return the VolumeQuotaRuleInner object itself. */ @@ -126,7 +134,7 @@ public VolumeQuotaRuleInner withQuotaType(Type quotaType) { * 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() { @@ -137,7 +145,7 @@ public String 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 VolumeQuotaRuleInner object itself. */ @@ -151,7 +159,7 @@ public VolumeQuotaRuleInner withQuotaTarget(String quotaTarget) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java index 49f04c0fcc63..6691130e515b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.netapp.models.Type; import com.fasterxml.jackson.annotation.JsonProperty; -/** Volume Quota Rule properties. */ +/** + * Volume Quota Rule properties. + */ @Fluent public final class VolumeQuotaRulesProperties { /* @@ -26,7 +28,7 @@ public final class VolumeQuotaRulesProperties { /* * quotaType - * + * * Type of quota */ @JsonProperty(value = "quotaType") @@ -39,13 +41,15 @@ public final class VolumeQuotaRulesProperties { @JsonProperty(value = "quotaTarget") private String quotaTarget; - /** Creates an instance of VolumeQuotaRulesProperties class. */ + /** + * Creates an instance of VolumeQuotaRulesProperties class. + */ public VolumeQuotaRulesProperties() { } /** * Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -54,7 +58,7 @@ public ProvisioningState provisioningState() { /** * Get the quotaSizeInKiBs property: Size of quota. - * + * * @return the quotaSizeInKiBs value. */ public Long quotaSizeInKiBs() { @@ -63,7 +67,7 @@ public Long quotaSizeInKiBs() { /** * Set the quotaSizeInKiBs property: Size of quota. - * + * * @param quotaSizeInKiBs the quotaSizeInKiBs value to set. * @return the VolumeQuotaRulesProperties object itself. */ @@ -74,9 +78,9 @@ public VolumeQuotaRulesProperties withQuotaSizeInKiBs(Long quotaSizeInKiBs) { /** * Get the quotaType property: quotaType - * - *

Type of quota. - * + * + * Type of quota. + * * @return the quotaType value. */ public Type quotaType() { @@ -85,9 +89,9 @@ public Type quotaType() { /** * Set the quotaType property: quotaType - * - *

Type of quota. - * + * + * Type of quota. + * * @param quotaType the quotaType value to set. * @return the VolumeQuotaRulesProperties object itself. */ @@ -100,7 +104,7 @@ public VolumeQuotaRulesProperties withQuotaType(Type quotaType) { * 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() { @@ -111,7 +115,7 @@ public String 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 VolumeQuotaRulesProperties object itself. */ @@ -122,7 +126,7 @@ public VolumeQuotaRulesProperties withQuotaTarget(String quotaTarget) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java index 9f8720a7ef74..501b25f2d933 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the inner data models for NetAppManagementClient. Microsoft NetApp Files Azure Resource Provider - * specification. + * Package containing the inner data models for NetAppManagementClient. + * Microsoft NetApp Files Azure Resource Provider specification. */ package com.azure.resourcemanager.netapp.fluent.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java index 56e832f71b8d..7cdd0230fccf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the service clients for NetAppManagementClient. Microsoft NetApp Files Azure Resource Provider - * specification. + * Package containing the service clients for NetAppManagementClient. + * Microsoft NetApp Files Azure Resource Provider specification. */ package com.azure.resourcemanager.netapp.fluent; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java index 877ab0c4deed..57e5d6d92363 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java @@ -41,17 +41,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in AccountsClient. */ +/** + * An instance of this class provides access to all the operations defined in AccountsClient. + */ public final class AccountsClientImpl implements AccountsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final AccountsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of AccountsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ AccountsClientImpl(NetAppManagementClientImpl client) { @@ -66,234 +72,166 @@ public final class AccountsClientImpl implements AccountsClient { @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface AccountsService { - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @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") - @ExpectedResponses({200}) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @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") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( - @HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @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}") - @ExpectedResponses({200}) + @PathParam("resourceGroupName") String resourceGroupName, @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}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup( - @HostParam("$host") String endpoint, + Mono> getByResourceGroup(@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"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") - @ExpectedResponses({200, 201}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @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}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") NetAppAccountInner body, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") - @ExpectedResponses({202, 204}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") NetAppAccountInner body, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + Mono>> delete(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, - Context context); - - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") - @ExpectedResponses({200, 202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, + Mono>> update(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") NetAppAccountPatch body, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials") - @ExpectedResponses({200, 202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") NetAppAccountPatch body, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> renewCredentials( - @HostParam("$host") String endpoint, + Mono>> renewCredentials(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @QueryParam("api-version") String apiVersion, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Describe all NetApp Accounts in a subscription - * - *

List and describe all NetApp accounts in the subscription. - * + * + * List and describe all NetApp accounts in the subscription. + * * @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 NetApp account resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + 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())); } /** * Describe all NetApp Accounts in a subscription - * - *

List and describe all NetApp accounts in the subscription. - * + * + * List and describe all NetApp accounts in the subscription. + * * @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 NetApp account resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() 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(), - this.client.getApiVersion(), - accept, + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Describe all NetApp Accounts in a subscription - * - *

List and describe all NetApp accounts in the subscription. - * + * + * List and describe all NetApp accounts in the subscription. + * * @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 NetApp account resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { - return new PagedFlux<>( - () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); } /** * Describe all NetApp Accounts in a subscription - * - *

List and describe all NetApp accounts in the subscription. - * + * + * List and describe all NetApp accounts in the subscription. + * * @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. @@ -302,15 +240,15 @@ private PagedFlux listAsync() { */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(context), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); } /** * Describe all NetApp Accounts in a subscription - * - *

List and describe all NetApp accounts in the subscription. - * + * + * List and describe all NetApp accounts in the subscription. + * * @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 NetApp account resources as paginated response with {@link PagedIterable}. @@ -322,9 +260,9 @@ public PagedIterable list() { /** * Describe all NetApp Accounts in a subscription - * - *

List and describe all NetApp accounts in the subscription. - * + * + * List and describe all NetApp accounts in the subscription. + * * @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. @@ -338,29 +276,25 @@ public PagedIterable list(Context context) { /** * Describe all NetApp Accounts in a resource group - * - *

List and describe all NetApp accounts in the resource group. - * + * + * List and describe all NetApp accounts in the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 NetApp account resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -368,55 +302,36 @@ private Mono> listByResourceGroupSinglePageAsy } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByResourceGroup( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), + this.client.getSubscriptionId(), resourceGroupName, 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())); } /** * Describe all NetApp Accounts in a resource group - * - *

List and describe all NetApp accounts in the resource group. - * + * + * List and describe all NetApp accounts in the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 NetApp account resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync( - String resourceGroupName, Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -425,29 +340,17 @@ private Mono> listByResourceGroupSinglePageAsy final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Describe all NetApp Accounts in a resource group - * - *

List and describe all NetApp accounts in the resource group. - * + * + * List and describe all NetApp accounts in the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -456,15 +359,15 @@ private Mono> listByResourceGroupSinglePageAsy */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Describe all NetApp Accounts in a resource group - * - *

List and describe all NetApp accounts in the resource group. - * + * + * List and describe all NetApp accounts in the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -474,16 +377,15 @@ private PagedFlux listByResourceGroupAsync(String resourceGr */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Describe all NetApp Accounts in a resource group - * - *

List and describe all NetApp accounts in the resource group. - * + * + * List and describe all NetApp accounts in the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -497,9 +399,9 @@ public PagedIterable listByResourceGroup(String resourceGrou /** * Describe all NetApp Accounts in a resource group - * - *

List and describe all NetApp accounts in the resource group. - * + * + * List and describe all NetApp accounts in the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -514,9 +416,9 @@ public PagedIterable listByResourceGroup(String resourceGrou /** * Describe a NetApp Account - * - *

Get the NetApp account. - * + * + * Get the NetApp account. + * * @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. @@ -525,19 +427,15 @@ public PagedIterable listByResourceGroup(String resourceGrou * @return the NetApp account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String accountName) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String accountName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -549,24 +447,16 @@ private Mono> getByResourceGroupWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .getByResourceGroup( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - this.client.getApiVersion(), - accept, - context)) + context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Describe a NetApp Account - * - *

Get the NetApp account. - * + * + * Get the NetApp account. + * * @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. @@ -576,19 +466,15 @@ private Mono> getByResourceGroupWithResponseAsync( * @return the NetApp account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String accountName, Context context) { + private Mono> getByResourceGroupWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -599,22 +485,15 @@ private Mono> getByResourceGroupWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .getByResourceGroup( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - this.client.getApiVersion(), - accept, - context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, this.client.getApiVersion(), accept, context); } /** * Describe a NetApp Account - * - *

Get the NetApp account. - * + * + * Get the NetApp account. + * * @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. @@ -630,9 +509,9 @@ private Mono getByResourceGroupAsync(String resourceGroupNam /** * Describe a NetApp Account - * - *

Get the NetApp account. - * + * + * Get the NetApp account. + * * @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. @@ -642,16 +521,16 @@ private Mono getByResourceGroupAsync(String resourceGroupNam * @return the NetApp account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context) { + public Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, + Context context) { return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block(); } /** * Describe a NetApp Account - * - *

Get the NetApp account. - * + * + * Get the NetApp account. + * * @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. @@ -666,9 +545,9 @@ public NetAppAccountInner getByResourceGroup(String resourceGroupName, String ac /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -678,19 +557,15 @@ public NetAppAccountInner getByResourceGroup(String resourceGroupName, String ac * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String accountName, NetAppAccountInner body) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, NetAppAccountInner body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -706,26 +581,16 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -736,19 +601,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String accountName, NetAppAccountInner body, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, NetAppAccountInner body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -764,23 +625,15 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - this.client.getApiVersion(), - body, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, this.client.getApiVersion(), body, accept, context); } /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -790,24 +643,18 @@ private Mono>> createOrUpdateWithResponseAsync( * @return the {@link PollerFlux} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetAppAccountInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, NetAppAccountInner body) { + private PollerFlux, NetAppAccountInner> + beginCreateOrUpdateAsync(String resourceGroupName, String accountName, NetAppAccountInner body) { Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, accountName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - NetAppAccountInner.class, - NetAppAccountInner.class, - this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + NetAppAccountInner.class, NetAppAccountInner.class, this.client.getContext()); } /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -821,19 +668,17 @@ private PollerFlux, NetAppAccountInner> beginCrea private PollerFlux, NetAppAccountInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, NetAppAccountInner body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, accountName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), NetAppAccountInner.class, NetAppAccountInner.class, context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, accountName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + NetAppAccountInner.class, NetAppAccountInner.class, context); } /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -843,16 +688,16 @@ private PollerFlux, NetAppAccountInner> beginCrea * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetAppAccountInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, NetAppAccountInner body) { + public SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, NetAppAccountInner body) { return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, body).getSyncPoller(); } /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -863,16 +708,16 @@ public SyncPoller, NetAppAccountInner> beginCreat * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetAppAccountInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, NetAppAccountInner body, Context context) { + public SyncPoller, NetAppAccountInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, NetAppAccountInner body, Context context) { return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, body, context).getSyncPoller(); } /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -882,18 +727,17 @@ public SyncPoller, NetAppAccountInner> beginCreat * @return netApp account resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String accountName, NetAppAccountInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, body) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, + NetAppAccountInner body) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -904,18 +748,17 @@ private Mono createOrUpdateAsync( * @return netApp account resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String accountName, NetAppAccountInner body, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, body, context) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, + NetAppAccountInner body, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -931,9 +774,9 @@ public NetAppAccountInner createOrUpdate(String resourceGroupName, String accoun /** * Create or update a NetApp account - * - *

Create or update the specified NetApp account within the resource group. - * + * + * Create or update the specified NetApp account within the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -944,16 +787,16 @@ public NetAppAccountInner createOrUpdate(String resourceGroupName, String accoun * @return netApp account resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetAppAccountInner createOrUpdate( - String resourceGroupName, String accountName, NetAppAccountInner body, Context context) { + public NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, NetAppAccountInner body, + Context context) { return createOrUpdateAsync(resourceGroupName, accountName, body, context).block(); } /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -964,16 +807,12 @@ public NetAppAccountInner createOrUpdate( @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -982,25 +821,18 @@ private Mono>> deleteWithResponseAsync(String resource 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 - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - this.client.getApiVersion(), - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -1010,19 +842,15 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String accountName, Context context) { + private Mono>> deleteWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1031,22 +859,17 @@ private Mono>> deleteWithResponseAsync( 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 - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - this.client.getApiVersion(), - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, this.client.getApiVersion(), accept, context); } /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -1057,17 +880,15 @@ private Mono>> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -1077,20 +898,19 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String accountName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -1105,9 +925,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -1117,16 +937,16 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String accountName, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + Context context) { return this.beginDeleteAsync(resourceGroupName, accountName, context).getSyncPoller(); } /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -1141,9 +961,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName) { /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -1154,16 +974,15 @@ private Mono deleteAsync(String resourceGroupName, String accountName) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, Context context) { - return beginDeleteAsync(resourceGroupName, accountName, context) - .last() + return beginDeleteAsync(resourceGroupName, accountName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -1177,9 +996,9 @@ public void delete(String resourceGroupName, String accountName) { /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -1194,9 +1013,9 @@ public void delete(String resourceGroupName, String accountName, Context context /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -1206,19 +1025,15 @@ public void delete(String resourceGroupName, String accountName, Context context * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String accountName, NetAppAccountPatch body) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + NetAppAccountPatch body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1234,26 +1049,16 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -1264,19 +1069,15 @@ private Mono>> updateWithResponseAsync( * @return netApp account resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String accountName, NetAppAccountPatch body, Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + NetAppAccountPatch body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1292,23 +1093,15 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - this.client.getApiVersion(), - body, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, this.client.getApiVersion(), body, accept, context); } /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -1318,24 +1111,18 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetAppAccountInner> beginUpdateAsync( - String resourceGroupName, String accountName, NetAppAccountPatch body) { + private PollerFlux, NetAppAccountInner> beginUpdateAsync(String resourceGroupName, + String accountName, NetAppAccountPatch body) { Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - NetAppAccountInner.class, - NetAppAccountInner.class, - this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + NetAppAccountInner.class, NetAppAccountInner.class, this.client.getContext()); } /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -1346,21 +1133,19 @@ private PollerFlux, NetAppAccountInner> beginUpda * @return the {@link PollerFlux} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetAppAccountInner> beginUpdateAsync( - String resourceGroupName, String accountName, NetAppAccountPatch body, Context context) { + private PollerFlux, NetAppAccountInner> beginUpdateAsync(String resourceGroupName, + String accountName, NetAppAccountPatch body, Context context) { context = this.client.mergeContext(context); Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), NetAppAccountInner.class, NetAppAccountInner.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + NetAppAccountInner.class, NetAppAccountInner.class, context); } /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -1370,16 +1155,16 @@ private PollerFlux, NetAppAccountInner> beginUpda * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetAppAccountInner> beginUpdate( - String resourceGroupName, String accountName, NetAppAccountPatch body) { + public SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, + String accountName, NetAppAccountPatch body) { return this.beginUpdateAsync(resourceGroupName, accountName, body).getSyncPoller(); } /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -1390,16 +1175,16 @@ public SyncPoller, NetAppAccountInner> beginUpdat * @return the {@link SyncPoller} for polling of netApp account resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetAppAccountInner> beginUpdate( - String resourceGroupName, String accountName, NetAppAccountPatch body, Context context) { + public SyncPoller, NetAppAccountInner> beginUpdate(String resourceGroupName, + String accountName, NetAppAccountPatch body, Context context) { return this.beginUpdateAsync(resourceGroupName, accountName, body, context).getSyncPoller(); } /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -1409,18 +1194,17 @@ public SyncPoller, NetAppAccountInner> beginUpdat * @return netApp account resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String accountName, NetAppAccountPatch body) { - return beginUpdateAsync(resourceGroupName, accountName, body) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, + NetAppAccountPatch body) { + return beginUpdateAsync(resourceGroupName, accountName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -1431,18 +1215,17 @@ private Mono updateAsync( * @return netApp account resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String accountName, NetAppAccountPatch body, Context context) { - return beginUpdateAsync(resourceGroupName, accountName, body, context) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, NetAppAccountPatch body, + Context context) { + return beginUpdateAsync(resourceGroupName, accountName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -1458,9 +1241,9 @@ public NetAppAccountInner update(String resourceGroupName, String accountName, N /** * Update a NetApp account - * - *

Patch the specified NetApp account. - * + * + * Patch the specified NetApp account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param body NetApp Account object supplied in the body of the operation. @@ -1471,17 +1254,17 @@ public NetAppAccountInner update(String resourceGroupName, String accountName, N * @return netApp account resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetAppAccountInner update( - String resourceGroupName, String accountName, NetAppAccountPatch body, Context context) { + public NetAppAccountInner update(String resourceGroupName, String accountName, NetAppAccountPatch body, + Context context) { return updateAsync(resourceGroupName, accountName, body, context).block(); } /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -1490,19 +1273,15 @@ public NetAppAccountInner update( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> renewCredentialsWithResponseAsync( - String resourceGroupName, String accountName) { + private Mono>> renewCredentialsWithResponseAsync(String resourceGroupName, + String accountName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1511,26 +1290,19 @@ private Mono>> renewCredentialsWithResponseAsync( 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 - .renewCredentials( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - this.client.getApiVersion(), - context)) + .withContext(context -> service.renewCredentials(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -1540,19 +1312,15 @@ private Mono>> renewCredentialsWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> renewCredentialsWithResponseAsync( - String resourceGroupName, String accountName, Context context) { + private Mono>> renewCredentialsWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1561,23 +1329,18 @@ private Mono>> renewCredentialsWithResponseAsync( 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 - .renewCredentials( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - this.client.getApiVersion(), - context); + return service.renewCredentials(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, this.client.getApiVersion(), accept, context); } /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -1586,21 +1349,19 @@ private Mono>> renewCredentialsWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRenewCredentialsAsync( - String resourceGroupName, String accountName) { + private PollerFlux, Void> beginRenewCredentialsAsync(String resourceGroupName, + String accountName) { Mono>> mono = renewCredentialsWithResponseAsync(resourceGroupName, accountName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -1610,22 +1371,21 @@ private PollerFlux, Void> beginRenewCredentialsAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRenewCredentialsAsync( - String resourceGroupName, String accountName, Context context) { + private PollerFlux, Void> beginRenewCredentialsAsync(String resourceGroupName, String accountName, + Context context) { context = this.client.mergeContext(context); - Mono>> mono = - renewCredentialsWithResponseAsync(resourceGroupName, accountName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = renewCredentialsWithResponseAsync(resourceGroupName, accountName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -1640,10 +1400,10 @@ public SyncPoller, Void> beginRenewCredentials(String resourceG /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -1653,17 +1413,17 @@ public SyncPoller, Void> beginRenewCredentials(String resourceG * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRenewCredentials( - String resourceGroupName, String accountName, Context context) { + public SyncPoller, Void> beginRenewCredentials(String resourceGroupName, String accountName, + Context context) { return this.beginRenewCredentialsAsync(resourceGroupName, accountName, context).getSyncPoller(); } /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -1673,17 +1433,16 @@ public SyncPoller, Void> beginRenewCredentials( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono renewCredentialsAsync(String resourceGroupName, String accountName) { - return beginRenewCredentialsAsync(resourceGroupName, accountName) - .last() + return beginRenewCredentialsAsync(resourceGroupName, accountName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -1694,17 +1453,16 @@ private Mono renewCredentialsAsync(String resourceGroupName, String accoun */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono renewCredentialsAsync(String resourceGroupName, String accountName, Context context) { - return beginRenewCredentialsAsync(resourceGroupName, accountName, context) - .last() + return beginRenewCredentialsAsync(resourceGroupName, accountName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -1718,10 +1476,10 @@ public void renewCredentials(String resourceGroupName, String accountName) { /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -1736,14 +1494,15 @@ public void renewCredentials(String resourceGroupName, String accountName, Conte /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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 NetApp account resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1751,76 +1510,59 @@ private Mono> listBySubscriptionNextSinglePage 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.")); + 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.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>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 - *

The nextLink parameter. + * + * The nextLink parameter. * @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 NetApp account resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listBySubscriptionNextSinglePageAsync(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.")); + 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 - .listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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 NetApp account resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1828,37 +1570,28 @@ private Mono> listNextSinglePageAsync(String n 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.")); + 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)) + 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 - *

The nextLink parameter. + * + * The nextLink parameter. * @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 NetApp account resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of NetApp account resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -1866,23 +1599,13 @@ private Mono> listNextSinglePageAsync(String n 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.")); + 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)); + 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/AccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java index 6c0dc6565422..e50a74b3a6d5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java @@ -21,8 +21,8 @@ public final class AccountsImpl implements Accounts { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - public AccountsImpl( - AccountsClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + public AccountsImpl(AccountsClient innerClient, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } @@ -47,15 +47,12 @@ public PagedIterable listByResourceGroup(String resourceGroupName return Utils.mapPage(inner, inner1 -> new NetAppAccountImpl(inner1, this.manager())); } - public Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context) { - Response inner = - this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, accountName, context); + public Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, + Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, accountName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new NetAppAccountImpl(inner.getValue(), this.manager())); } else { return null; @@ -90,19 +87,13 @@ public void renewCredentials(String resourceGroupName, String accountName, Conte public NetAppAccount getById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } return this.getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); } @@ -110,19 +101,13 @@ public NetAppAccount getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } return this.getByResourceGroupWithResponse(resourceGroupName, accountName, context); } @@ -130,19 +115,13 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } this.delete(resourceGroupName, accountName, Context.NONE); } @@ -150,19 +129,13 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } this.delete(resourceGroupName, accountName, context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java index 0f026b9a3d4a..18528a6e502f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java @@ -40,22 +40,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in BackupPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in BackupPoliciesClient. + */ public final class BackupPoliciesClientImpl implements BackupPoliciesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final BackupPoliciesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of BackupPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ BackupPoliciesClientImpl(NetAppManagementClientImpl client) { - this.service = - RestProxy.create(BackupPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(BackupPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -66,87 +72,63 @@ public final class BackupPoliciesClientImpl implements BackupPoliciesClient { @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface BackupPoliciesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, + 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); + @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}/backupPolicies/{backupPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("backupPolicyName") String backupPolicyName, @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}/backupPolicies/{backupPolicyName}") - @ExpectedResponses({200, 201, 202}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") + @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String endpoint, + Mono>> create(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BackupPolicyInner body, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") BackupPolicyInner body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, + Mono>> update(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") BackupPolicyPatch body, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") BackupPolicyPatch body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + Mono>> delete(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, - @QueryParam("api-version") String apiVersion, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("backupPolicyName") String backupPolicyName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); } /** * List backup policies - * - *

List backup policies for Netapp Account. - * + * + * List backup policies for Netapp Account. + * * @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. @@ -157,16 +139,12 @@ Mono>> delete( @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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -177,29 +155,18 @@ private Mono> listSinglePageAsync(String resour } 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(), null, null)) + .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(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List backup policies - * - *

List backup policies for Netapp Account. - * + * + * List backup policies for Netapp Account. + * * @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. @@ -209,19 +176,15 @@ private Mono> listSinglePageAsync(String resour * @return list of Backup Policies along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String accountName, Context context) { + 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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -233,25 +196,17 @@ private Mono> listSinglePageAsync( 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(), null, null)); + .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(), null, null)); } /** * List backup policies - * - *

List backup policies for Netapp Account. - * + * + * List backup policies for Netapp Account. + * * @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. @@ -266,9 +221,9 @@ private PagedFlux listAsync(String resourceGroupName, String /** * List backup policies - * - *

List backup policies for Netapp Account. - * + * + * List backup policies for Netapp Account. + * * @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. @@ -284,9 +239,9 @@ private PagedFlux listAsync(String resourceGroupName, String /** * List backup policies - * - *

List backup policies for Netapp Account. - * + * + * List backup policies for Netapp Account. + * * @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. @@ -301,9 +256,9 @@ public PagedIterable list(String resourceGroupName, String ac /** * List backup policies - * - *

List backup policies for Netapp Account. - * + * + * List backup policies for Netapp Account. + * * @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. @@ -319,9 +274,9 @@ public PagedIterable list(String resourceGroupName, String ac /** * Get a backup Policy - * - *

Get a particular backup Policy. - * + * + * Get a particular backup Policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -331,19 +286,15 @@ public PagedIterable list(String resourceGroupName, String ac * @return a particular backup Policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String accountName, String backupPolicyName) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String backupPolicyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -358,26 +309,16 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - backupPolicyName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, backupPolicyName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get a backup Policy - * - *

Get a particular backup Policy. - * + * + * Get a particular backup Policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -388,19 +329,15 @@ private Mono> getWithResponseAsync( * @return a particular backup Policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String accountName, String backupPolicyName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String backupPolicyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -415,23 +352,15 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - backupPolicyName, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, + backupPolicyName, this.client.getApiVersion(), accept, context); } /** * Get a backup Policy - * - *

Get a particular backup Policy. - * + * + * Get a particular backup Policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -448,9 +377,9 @@ private Mono getAsync(String resourceGroupName, String accoun /** * Get a backup Policy - * - *

Get a particular backup Policy. - * + * + * Get a particular backup Policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -461,16 +390,16 @@ private Mono getAsync(String resourceGroupName, String accoun * @return a particular backup Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String backupPolicyName, Context context) { + public Response getWithResponse(String resourceGroupName, String accountName, + String backupPolicyName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, backupPolicyName, context).block(); } /** * Get a backup Policy - * - *

Get a particular backup Policy. - * + * + * Get a particular backup Policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -486,9 +415,9 @@ public BackupPolicyInner get(String resourceGroupName, String accountName, Strin /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -499,19 +428,15 @@ public BackupPolicyInner get(String resourceGroupName, String accountName, Strin * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) { + private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, + String backupPolicyName, BackupPolicyInner body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -531,27 +456,16 @@ private Mono>> createWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - backupPolicyName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, backupPolicyName, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -563,23 +477,15 @@ private Mono>> createWithResponseAsync( * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String accountName, - String backupPolicyName, - BackupPolicyInner body, - Context context) { + private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, + String backupPolicyName, BackupPolicyInner body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -599,24 +505,15 @@ private Mono>> createWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - backupPolicyName, - this.client.getApiVersion(), - body, - accept, - context); + return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, backupPolicyName, this.client.getApiVersion(), body, accept, context); } /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -627,25 +524,19 @@ private Mono>> createWithResponseAsync( * @return the {@link PollerFlux} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BackupPolicyInner> beginCreateAsync( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) { - Mono>> mono = - createWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - BackupPolicyInner.class, - BackupPolicyInner.class, - this.client.getContext()); + private PollerFlux, BackupPolicyInner> beginCreateAsync(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyInner body) { + Mono>> mono + = createWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + BackupPolicyInner.class, BackupPolicyInner.class, this.client.getContext()); } /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -657,26 +548,20 @@ private PollerFlux, BackupPolicyInner> beginCreate * @return the {@link PollerFlux} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BackupPolicyInner> beginCreateAsync( - String resourceGroupName, - String accountName, - String backupPolicyName, - BackupPolicyInner body, - Context context) { + private PollerFlux, BackupPolicyInner> beginCreateAsync(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyInner body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), BackupPolicyInner.class, BackupPolicyInner.class, context); + Mono>> mono + = createWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + BackupPolicyInner.class, BackupPolicyInner.class, context); } /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -687,16 +572,16 @@ private PollerFlux, BackupPolicyInner> beginCreate * @return the {@link SyncPoller} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BackupPolicyInner> beginCreate( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) { + public SyncPoller, BackupPolicyInner> beginCreate(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyInner body) { return this.beginCreateAsync(resourceGroupName, accountName, backupPolicyName, body).getSyncPoller(); } /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -708,20 +593,16 @@ public SyncPoller, BackupPolicyInner> beginCreate( * @return the {@link SyncPoller} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BackupPolicyInner> beginCreate( - String resourceGroupName, - String accountName, - String backupPolicyName, - BackupPolicyInner body, - Context context) { + public SyncPoller, BackupPolicyInner> beginCreate(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyInner body, Context context) { return this.beginCreateAsync(resourceGroupName, accountName, backupPolicyName, body, context).getSyncPoller(); } /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -732,18 +613,17 @@ public SyncPoller, BackupPolicyInner> beginCreate( * @return backup policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) { - return beginCreateAsync(resourceGroupName, accountName, backupPolicyName, body) - .last() + private Mono createAsync(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyInner body) { + return beginCreateAsync(resourceGroupName, accountName, backupPolicyName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -755,22 +635,17 @@ private Mono createAsync( * @return backup policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String accountName, - String backupPolicyName, - BackupPolicyInner body, - Context context) { - return beginCreateAsync(resourceGroupName, accountName, backupPolicyName, body, context) - .last() + private Mono createAsync(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyInner body, Context context) { + return beginCreateAsync(resourceGroupName, accountName, backupPolicyName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -781,16 +656,16 @@ private Mono createAsync( * @return backup policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupPolicyInner create( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) { + public BackupPolicyInner create(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyInner body) { return createAsync(resourceGroupName, accountName, backupPolicyName, body).block(); } /** * Create a backup policy - * - *

Create a backup policy for Netapp Account. - * + * + * Create a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -802,20 +677,16 @@ public BackupPolicyInner create( * @return backup policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupPolicyInner create( - String resourceGroupName, - String accountName, - String backupPolicyName, - BackupPolicyInner body, - Context context) { + public BackupPolicyInner create(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyInner body, Context context) { return createAsync(resourceGroupName, accountName, backupPolicyName, body, context).block(); } /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -826,19 +697,15 @@ public BackupPolicyInner create( * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String backupPolicyName, BackupPolicyPatch body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -858,27 +725,16 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - backupPolicyName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, backupPolicyName, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -890,23 +746,15 @@ private Mono>> updateWithResponseAsync( * @return backup policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, - String accountName, - String backupPolicyName, - BackupPolicyPatch body, - Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String backupPolicyName, BackupPolicyPatch body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -926,24 +774,15 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - backupPolicyName, - this.client.getApiVersion(), - body, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, backupPolicyName, this.client.getApiVersion(), body, accept, context); } /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -954,25 +793,19 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BackupPolicyInner> beginUpdateAsync( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - BackupPolicyInner.class, - BackupPolicyInner.class, - this.client.getContext()); + private PollerFlux, BackupPolicyInner> beginUpdateAsync(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyPatch body) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + BackupPolicyInner.class, BackupPolicyInner.class, this.client.getContext()); } /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -984,26 +817,20 @@ private PollerFlux, BackupPolicyInner> beginUpdate * @return the {@link PollerFlux} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BackupPolicyInner> beginUpdateAsync( - String resourceGroupName, - String accountName, - String backupPolicyName, - BackupPolicyPatch body, - Context context) { + private PollerFlux, BackupPolicyInner> beginUpdateAsync(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyPatch body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), BackupPolicyInner.class, BackupPolicyInner.class, context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + BackupPolicyInner.class, BackupPolicyInner.class, context); } /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1014,16 +841,16 @@ private PollerFlux, BackupPolicyInner> beginUpdate * @return the {@link SyncPoller} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BackupPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) { + public SyncPoller, BackupPolicyInner> beginUpdate(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyPatch body) { return this.beginUpdateAsync(resourceGroupName, accountName, backupPolicyName, body).getSyncPoller(); } /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1035,20 +862,16 @@ public SyncPoller, BackupPolicyInner> beginUpdate( * @return the {@link SyncPoller} for polling of backup policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BackupPolicyInner> beginUpdate( - String resourceGroupName, - String accountName, - String backupPolicyName, - BackupPolicyPatch body, - Context context) { + public SyncPoller, BackupPolicyInner> beginUpdate(String resourceGroupName, + String accountName, String backupPolicyName, BackupPolicyPatch body, Context context) { return this.beginUpdateAsync(resourceGroupName, accountName, backupPolicyName, body, context).getSyncPoller(); } /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1059,18 +882,17 @@ public SyncPoller, BackupPolicyInner> beginUpdate( * @return backup policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) { - return beginUpdateAsync(resourceGroupName, accountName, backupPolicyName, body) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyPatch body) { + return beginUpdateAsync(resourceGroupName, accountName, backupPolicyName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1082,22 +904,17 @@ private Mono updateAsync( * @return backup policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String accountName, - String backupPolicyName, - BackupPolicyPatch body, - Context context) { - return beginUpdateAsync(resourceGroupName, accountName, backupPolicyName, body, context) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyPatch body, Context context) { + return beginUpdateAsync(resourceGroupName, accountName, backupPolicyName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1108,16 +925,16 @@ private Mono updateAsync( * @return backup policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupPolicyInner update( - String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) { + public BackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyPatch body) { return updateAsync(resourceGroupName, accountName, backupPolicyName, body).block(); } /** * Patch a backup policy - * - *

Patch a backup policy for Netapp Account. - * + * + * Patch a backup policy for Netapp Account. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1129,20 +946,16 @@ public BackupPolicyInner update( * @return backup policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BackupPolicyInner update( - String resourceGroupName, - String accountName, - String backupPolicyName, - BackupPolicyPatch body, - Context context) { + public BackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, + BackupPolicyPatch body, Context context) { return updateAsync(resourceGroupName, accountName, backupPolicyName, body, context).block(); } /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1152,19 +965,15 @@ public BackupPolicyInner update( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String accountName, String backupPolicyName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String backupPolicyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1177,26 +986,18 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter backupPolicyName 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, - backupPolicyName, - this.client.getApiVersion(), - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, backupPolicyName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1207,19 +1008,15 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String accountName, String backupPolicyName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String backupPolicyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1232,23 +1029,17 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter backupPolicyName 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, - backupPolicyName, - this.client.getApiVersion(), - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, backupPolicyName, this.client.getApiVersion(), accept, context); } /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1258,21 +1049,19 @@ private Mono>> deleteWithResponseAsync( * @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 backupPolicyName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, backupPolicyName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String backupPolicyName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, backupPolicyName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1283,21 +1072,20 @@ private PollerFlux, Void> beginDeleteAsync( * @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 backupPolicyName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String backupPolicyName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, backupPolicyName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, backupPolicyName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1307,16 +1095,16 @@ private PollerFlux, Void> beginDeleteAsync( * @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 backupPolicyName) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String backupPolicyName) { return this.beginDeleteAsync(resourceGroupName, accountName, backupPolicyName).getSyncPoller(); } /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1327,16 +1115,16 @@ public SyncPoller, Void> beginDelete( * @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 backupPolicyName, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String backupPolicyName, Context context) { return this.beginDeleteAsync(resourceGroupName, accountName, backupPolicyName, context).getSyncPoller(); } /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1347,16 +1135,15 @@ public SyncPoller, Void> beginDelete( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String backupPolicyName) { - return beginDeleteAsync(resourceGroupName, accountName, backupPolicyName) - .last() + return beginDeleteAsync(resourceGroupName, accountName, backupPolicyName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1367,18 +1154,17 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String accountName, String backupPolicyName, Context context) { - return beginDeleteAsync(resourceGroupName, accountName, backupPolicyName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String accountName, String backupPolicyName, + Context context) { + return beginDeleteAsync(resourceGroupName, accountName, backupPolicyName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -1393,9 +1179,9 @@ public void delete(String resourceGroupName, String accountName, String backupPo /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java index 9a7dba4da525..8143a6a6edac 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java @@ -21,8 +21,8 @@ public final class BackupPoliciesImpl implements BackupPolicies { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - public BackupPoliciesImpl( - BackupPoliciesClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + public BackupPoliciesImpl(BackupPoliciesClient innerClient, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } @@ -37,15 +37,12 @@ public PagedIterable list(String resourceGroupName, String account return Utils.mapPage(inner, inner1 -> new BackupPolicyImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String accountName, String backupPolicyName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, accountName, backupPolicyName, context); + public Response getWithResponse(String resourceGroupName, String accountName, String backupPolicyName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, backupPolicyName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new BackupPolicyImpl(inner.getValue(), this.manager())); } else { return null; @@ -72,27 +69,18 @@ public void delete(String resourceGroupName, String accountName, String backupPo public BackupPolicy getById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies"); if (backupPolicyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id))); } return this.getWithResponse(resourceGroupName, accountName, backupPolicyName, Context.NONE).getValue(); } @@ -100,27 +88,18 @@ public BackupPolicy getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies"); if (backupPolicyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id))); } return this.getWithResponse(resourceGroupName, accountName, backupPolicyName, context); } @@ -128,27 +107,18 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies"); if (backupPolicyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id))); } this.delete(resourceGroupName, accountName, backupPolicyName, Context.NONE); } @@ -156,27 +126,18 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies"); if (backupPolicyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'backupPolicies'.", id))); } this.delete(resourceGroupName, accountName, backupPolicyName, context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java index 630296dc4031..31dbaf43fedc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java @@ -125,20 +125,14 @@ public BackupPolicyImpl withExistingNetAppAccount(String resourceGroupName, Stri } public BackupPolicy create() { - this.innerObject = - serviceManager - .serviceClient() - .getBackupPolicies() - .create(resourceGroupName, accountName, backupPolicyName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getBackupPolicies().create(resourceGroupName, accountName, + backupPolicyName, this.innerModel(), Context.NONE); return this; } public BackupPolicy create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getBackupPolicies() - .create(resourceGroupName, accountName, backupPolicyName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getBackupPolicies().create(resourceGroupName, accountName, + backupPolicyName, this.innerModel(), context); return this; } @@ -154,25 +148,19 @@ public BackupPolicyImpl update() { } public BackupPolicy apply() { - this.innerObject = - serviceManager - .serviceClient() - .getBackupPolicies() - .update(resourceGroupName, accountName, backupPolicyName, updateBody, Context.NONE); + this.innerObject = serviceManager.serviceClient().getBackupPolicies().update(resourceGroupName, accountName, + backupPolicyName, updateBody, Context.NONE); return this; } public BackupPolicy apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getBackupPolicies() - .update(resourceGroupName, accountName, backupPolicyName, updateBody, context); + this.innerObject = serviceManager.serviceClient().getBackupPolicies().update(resourceGroupName, accountName, + backupPolicyName, updateBody, context); return this; } - BackupPolicyImpl( - BackupPolicyInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + BackupPolicyImpl(BackupPolicyInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); @@ -181,22 +169,14 @@ public BackupPolicy apply(Context context) { } public BackupPolicy refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getBackupPolicies() - .getWithResponse(resourceGroupName, accountName, backupPolicyName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getBackupPolicies() + .getWithResponse(resourceGroupName, accountName, backupPolicyName, Context.NONE).getValue(); return this; } public BackupPolicy refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getBackupPolicies() - .getWithResponse(resourceGroupName, accountName, backupPolicyName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getBackupPolicies() + .getWithResponse(resourceGroupName, accountName, backupPolicyName, context).getValue(); return this; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java index 942282a3a386..1a4b62827546 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java @@ -25,17 +25,23 @@ import com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in BackupsClient. */ +/** + * An instance of this class provides access to all the operations defined in BackupsClient. + */ public final class BackupsClientImpl implements BackupsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final BackupsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of BackupsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ BackupsClientImpl(NetAppManagementClientImpl client) { @@ -50,28 +56,22 @@ public final class BackupsClientImpl implements BackupsClient { @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface BackupsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getVolumeRestoreStatus( - @HostParam("$host") String endpoint, + Mono> getVolumeRestoreStatus(@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); + @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); } /** * Get volume's restore status - * - *

Get the status of the restore for a volume. - * + * + * Get the status of the restore for a 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. @@ -79,23 +79,19 @@ Mono> getVolumeRestoreStatus( * @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 status of the restore for a volume along with {@link Response} on successful completion of {@link - * Mono}. + * @return the status of the restore for a volume along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getVolumeRestoreStatusWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono> getVolumeRestoreStatusWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -113,26 +109,16 @@ private Mono> getVolumeRestoreStatusWithResponseAsy final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .getVolumeRestoreStatus( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - accept, - context)) + context -> service.getVolumeRestoreStatus(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())); } /** * Get volume's restore status - * - *

Get the status of the restore for a volume. - * + * + * Get the status of the restore for a 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. @@ -141,23 +127,19 @@ private Mono> getVolumeRestoreStatusWithResponseAsy * @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 status of the restore for a volume along with {@link Response} on successful completion of {@link - * Mono}. + * @return the status of the restore for a volume along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getVolumeRestoreStatusWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono> getVolumeRestoreStatusWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -174,24 +156,15 @@ private Mono> getVolumeRestoreStatusWithResponseAsy } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .getVolumeRestoreStatus( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - accept, - context); + return service.getVolumeRestoreStatus(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); } /** * Get volume's restore status - * - *

Get the status of the restore for a volume. - * + * + * Get the status of the restore for a 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. @@ -202,17 +175,17 @@ private Mono> getVolumeRestoreStatusWithResponseAsy * @return the status of the restore for a volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getVolumeRestoreStatusAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono getVolumeRestoreStatusAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { return getVolumeRestoreStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get volume's restore status - * - *

Get the status of the restore for a volume. - * + * + * Get the status of the restore for a 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. @@ -224,17 +197,17 @@ private Mono getVolumeRestoreStatusAsync( * @return the status of the restore for a volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getVolumeRestoreStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public Response getVolumeRestoreStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { return getVolumeRestoreStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context) .block(); } /** * Get volume's restore status - * - *

Get the status of the restore for a volume. - * + * + * Get the status of the restore for a 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. @@ -245,8 +218,8 @@ public Response getVolumeRestoreStatusWithResponse( * @return the status of the restore for a volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RestoreStatusInner getVolumeRestoreStatus( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public RestoreStatusInner getVolumeRestoreStatus(String resourceGroupName, String accountName, String poolName, + String volumeName) { return getVolumeRestoreStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java index e6b66720adbf..de38c88687ad 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java @@ -25,27 +25,22 @@ public BackupsImpl(BackupsClient innerClient, com.azure.resourcemanager.netapp.N this.serviceManager = serviceManager; } - public Response getVolumeRestoreStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - Response inner = - this - .serviceClient() - .getVolumeRestoreStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, context); + public Response getVolumeRestoreStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + Response inner = this.serviceClient().getVolumeRestoreStatusWithResponse(resourceGroupName, + accountName, poolName, volumeName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new RestoreStatusImpl(inner.getValue(), this.manager())); } else { return null; } } - public RestoreStatus getVolumeRestoreStatus( - String resourceGroupName, String accountName, String poolName, String volumeName) { - RestoreStatusInner inner = - this.serviceClient().getVolumeRestoreStatus(resourceGroupName, accountName, poolName, volumeName); + public RestoreStatus getVolumeRestoreStatus(String resourceGroupName, String accountName, String poolName, + String volumeName) { + RestoreStatusInner inner + = this.serviceClient().getVolumeRestoreStatus(resourceGroupName, accountName, poolName, volumeName); if (inner != null) { return new RestoreStatusImpl(inner, this.manager()); } else { 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 fb8fc60a1c42..679a2128e69d 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 @@ -125,20 +125,14 @@ public CapacityPoolImpl withExistingNetAppAccount(String resourceGroupName, Stri } public CapacityPool create() { - this.innerObject = - serviceManager - .serviceClient() - .getPools() - .createOrUpdate(resourceGroupName, accountName, poolName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getPools().createOrUpdate(resourceGroupName, accountName, + poolName, this.innerModel(), Context.NONE); return this; } public CapacityPool create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPools() - .createOrUpdate(resourceGroupName, accountName, poolName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getPools().createOrUpdate(resourceGroupName, accountName, + poolName, this.innerModel(), context); return this; } @@ -154,25 +148,19 @@ public CapacityPoolImpl update() { } public CapacityPool apply() { - this.innerObject = - serviceManager - .serviceClient() - .getPools() - .update(resourceGroupName, accountName, poolName, updateBody, Context.NONE); + this.innerObject = serviceManager.serviceClient().getPools().update(resourceGroupName, accountName, poolName, + updateBody, Context.NONE); return this; } public CapacityPool apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPools() - .update(resourceGroupName, accountName, poolName, updateBody, context); + this.innerObject = serviceManager.serviceClient().getPools().update(resourceGroupName, accountName, poolName, + updateBody, context); return this; } - CapacityPoolImpl( - CapacityPoolInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + CapacityPoolImpl(CapacityPoolInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); @@ -181,22 +169,14 @@ public CapacityPool apply(Context context) { } public CapacityPool refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getPools() - .getWithResponse(resourceGroupName, accountName, poolName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getPools() + .getWithResponse(resourceGroupName, accountName, poolName, Context.NONE).getValue(); return this; } public CapacityPool refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPools() - .getWithResponse(resourceGroupName, accountName, poolName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getPools() + .getWithResponse(resourceGroupName, accountName, poolName, context).getValue(); return this; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java index c88d1e8d7d9a..117762d36710 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java @@ -13,8 +13,7 @@ public final class CheckAvailabilityResponseImpl implements CheckAvailabilityRes private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - CheckAvailabilityResponseImpl( - CheckAvailabilityResponseInner innerObject, + CheckAvailabilityResponseImpl(CheckAvailabilityResponseInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java index 41b0588d2382..71d3e2b26d14 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java @@ -14,8 +14,7 @@ public final class GetGroupIdListForLdapUserResponseImpl implements GetGroupIdLi private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - GetGroupIdListForLdapUserResponseImpl( - GetGroupIdListForLdapUserResponseInner innerObject, + GetGroupIdListForLdapUserResponseImpl(GetGroupIdListForLdapUserResponseInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = 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 68902a2b5764..45480ffe9c1f 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 @@ -112,20 +112,14 @@ public NetAppAccountImpl withExistingResourceGroup(String resourceGroupName) { } public NetAppAccount create() { - this.innerObject = - serviceManager - .serviceClient() - .getAccounts() - .createOrUpdate(resourceGroupName, accountName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getAccounts().createOrUpdate(resourceGroupName, accountName, + this.innerModel(), Context.NONE); return this; } public NetAppAccount create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getAccounts() - .createOrUpdate(resourceGroupName, accountName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getAccounts().createOrUpdate(resourceGroupName, accountName, + this.innerModel(), context); return this; } @@ -141,22 +135,19 @@ public NetAppAccountImpl update() { } public NetAppAccount apply() { - this.innerObject = - serviceManager - .serviceClient() - .getAccounts() - .update(resourceGroupName, accountName, updateBody, Context.NONE); + this.innerObject = serviceManager.serviceClient().getAccounts().update(resourceGroupName, accountName, + updateBody, Context.NONE); return this; } public NetAppAccount apply(Context context) { - this.innerObject = - serviceManager.serviceClient().getAccounts().update(resourceGroupName, accountName, updateBody, context); + this.innerObject + = serviceManager.serviceClient().getAccounts().update(resourceGroupName, accountName, updateBody, context); return this; } - NetAppAccountImpl( - NetAppAccountInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + NetAppAccountImpl(NetAppAccountInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); @@ -164,22 +155,14 @@ public NetAppAccount apply(Context context) { } public NetAppAccount refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getAccounts() - .getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getAccounts() + .getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); return this; } public NetAppAccount refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getAccounts() - .getByResourceGroupWithResponse(resourceGroupName, accountName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getAccounts() + .getByResourceGroupWithResponse(resourceGroupName, accountName, context).getValue(); return this; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java index 17b83b265fb6..fac144c53709 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java @@ -14,17 +14,19 @@ import com.azure.core.util.serializer.SerializerAdapter; import java.time.Duration; -/** A builder for creating a new instance of the NetAppManagementClientImpl type. */ -@ServiceClientBuilder(serviceClients = {NetAppManagementClientImpl.class}) +/** + * A builder for creating a new instance of the NetAppManagementClientImpl type. + */ +@ServiceClientBuilder(serviceClients = { NetAppManagementClientImpl.class }) public final class NetAppManagementClientBuilder { /* - * The ID of the target subscription. + * The ID of the target subscription. The value must be an UUID. */ private String subscriptionId; /** - * Sets The ID of the target subscription. - * + * Sets The ID of the target subscription. The value must be an UUID. + * * @param subscriptionId the subscriptionId value. * @return the NetAppManagementClientBuilder. */ @@ -40,7 +42,7 @@ public NetAppManagementClientBuilder subscriptionId(String subscriptionId) { /** * Sets server parameter. - * + * * @param endpoint the endpoint value. * @return the NetAppManagementClientBuilder. */ @@ -56,7 +58,7 @@ public NetAppManagementClientBuilder endpoint(String endpoint) { /** * Sets The environment to connect to. - * + * * @param environment the environment value. * @return the NetAppManagementClientBuilder. */ @@ -72,7 +74,7 @@ public NetAppManagementClientBuilder environment(AzureEnvironment environment) { /** * Sets The HTTP pipeline to send requests through. - * + * * @param pipeline the pipeline value. * @return the NetAppManagementClientBuilder. */ @@ -88,7 +90,7 @@ public NetAppManagementClientBuilder pipeline(HttpPipeline pipeline) { /** * Sets The default poll interval for long-running operation. - * + * * @param defaultPollInterval the defaultPollInterval value. * @return the NetAppManagementClientBuilder. */ @@ -104,7 +106,7 @@ public NetAppManagementClientBuilder defaultPollInterval(Duration defaultPollInt /** * Sets The serializer to serialize an object into a string. - * + * * @param serializerAdapter the serializerAdapter value. * @return the NetAppManagementClientBuilder. */ @@ -115,30 +117,20 @@ public NetAppManagementClientBuilder serializerAdapter(SerializerAdapter seriali /** * Builds an instance of NetAppManagementClientImpl with the provided parameters. - * + * * @return an instance of NetAppManagementClientImpl. */ public NetAppManagementClientImpl buildClient() { String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; - HttpPipeline localPipeline = - (pipeline != null) - ? pipeline - : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); - Duration localDefaultPollInterval = - (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); - SerializerAdapter localSerializerAdapter = - (serializerAdapter != null) - ? serializerAdapter - : SerializerFactory.createDefaultManagementSerializerAdapter(); - NetAppManagementClientImpl client = - new NetAppManagementClientImpl( - localPipeline, - localSerializerAdapter, - localDefaultPollInterval, - localEnvironment, - this.subscriptionId, - localEndpoint); + HttpPipeline localPipeline = (pipeline != null) ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval + = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); + NetAppManagementClientImpl client = new NetAppManagementClientImpl(localPipeline, localSerializerAdapter, + localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); return client; } } 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 5bb71d47f038..0e910a62a1ab 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 @@ -45,231 +45,271 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** Initializes a new instance of the NetAppManagementClientImpl type. */ +/** + * Initializes a new instance of the NetAppManagementClientImpl type. + */ @ServiceClient(builder = NetAppManagementClientBuilder.class) public final class NetAppManagementClientImpl implements NetAppManagementClient { - /** The ID of the target subscription. */ + /** + * The ID of the target subscription. The value must be an UUID. + */ private final String subscriptionId; /** - * Gets The ID of the target subscription. - * + * Gets The ID of the target subscription. The value must be an UUID. + * * @return the subscriptionId value. */ public String getSubscriptionId() { return this.subscriptionId; } - /** server parameter. */ + /** + * server parameter. + */ private final String endpoint; /** * Gets server parameter. - * + * * @return the endpoint value. */ public String getEndpoint() { return this.endpoint; } - /** Api Version. */ + /** + * Api Version. + */ private final String apiVersion; /** * Gets Api Version. - * + * * @return the apiVersion value. */ public String getApiVersion() { return this.apiVersion; } - /** The HTTP pipeline to send requests through. */ + /** + * The HTTP pipeline to send requests through. + */ private final HttpPipeline httpPipeline; /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ public HttpPipeline getHttpPipeline() { return this.httpPipeline; } - /** The serializer to serialize an object into a string. */ + /** + * The serializer to serialize an object into a string. + */ private final SerializerAdapter serializerAdapter; /** * Gets The serializer to serialize an object into a string. - * + * * @return the serializerAdapter value. */ SerializerAdapter getSerializerAdapter() { return this.serializerAdapter; } - /** The default poll interval for long-running operation. */ + /** + * The default poll interval for long-running operation. + */ private final Duration defaultPollInterval; /** * Gets The default poll interval for long-running operation. - * + * * @return the defaultPollInterval value. */ public Duration getDefaultPollInterval() { return this.defaultPollInterval; } - /** The OperationsClient object to access its operations. */ + /** + * The OperationsClient object to access its operations. + */ private final OperationsClient operations; /** * Gets the OperationsClient object to access its operations. - * + * * @return the OperationsClient object. */ public OperationsClient getOperations() { return this.operations; } - /** The NetAppResourcesClient object to access its operations. */ + /** + * The NetAppResourcesClient object to access its operations. + */ private final NetAppResourcesClient netAppResources; /** * Gets the NetAppResourcesClient object to access its operations. - * + * * @return the NetAppResourcesClient object. */ public NetAppResourcesClient getNetAppResources() { return this.netAppResources; } - /** The NetAppResourceQuotaLimitsClient object to access its operations. */ + /** + * The NetAppResourceQuotaLimitsClient object to access its operations. + */ private final NetAppResourceQuotaLimitsClient netAppResourceQuotaLimits; /** * Gets the NetAppResourceQuotaLimitsClient object to access its operations. - * + * * @return the NetAppResourceQuotaLimitsClient object. */ public NetAppResourceQuotaLimitsClient getNetAppResourceQuotaLimits() { return this.netAppResourceQuotaLimits; } - /** The AccountsClient object to access its operations. */ + /** + * The AccountsClient object to access its operations. + */ private final AccountsClient accounts; /** * Gets the AccountsClient object to access its operations. - * + * * @return the AccountsClient object. */ public AccountsClient getAccounts() { return this.accounts; } - /** The PoolsClient object to access its operations. */ + /** + * The PoolsClient object to access its operations. + */ private final PoolsClient pools; /** * Gets the PoolsClient object to access its operations. - * + * * @return the PoolsClient object. */ public PoolsClient getPools() { return this.pools; } - /** The VolumesClient object to access its operations. */ + /** + * The VolumesClient object to access its operations. + */ private final VolumesClient volumes; /** * Gets the VolumesClient object to access its operations. - * + * * @return the VolumesClient object. */ public VolumesClient getVolumes() { return this.volumes; } - /** The SnapshotsClient object to access its operations. */ + /** + * The SnapshotsClient object to access its operations. + */ private final SnapshotsClient snapshots; /** * Gets the SnapshotsClient object to access its operations. - * + * * @return the SnapshotsClient object. */ public SnapshotsClient getSnapshots() { return this.snapshots; } - /** The SnapshotPoliciesClient object to access its operations. */ + /** + * The SnapshotPoliciesClient object to access its operations. + */ private final SnapshotPoliciesClient snapshotPolicies; /** * Gets the SnapshotPoliciesClient object to access its operations. - * + * * @return the SnapshotPoliciesClient object. */ public SnapshotPoliciesClient getSnapshotPolicies() { return this.snapshotPolicies; } - /** The BackupsClient object to access its operations. */ + /** + * The BackupsClient object to access its operations. + */ private final BackupsClient backups; /** * Gets the BackupsClient object to access its operations. - * + * * @return the BackupsClient object. */ public BackupsClient getBackups() { return this.backups; } - /** The BackupPoliciesClient object to access its operations. */ + /** + * The BackupPoliciesClient object to access its operations. + */ private final BackupPoliciesClient backupPolicies; /** * Gets the BackupPoliciesClient object to access its operations. - * + * * @return the BackupPoliciesClient object. */ public BackupPoliciesClient getBackupPolicies() { return this.backupPolicies; } - /** The VolumeQuotaRulesClient object to access its operations. */ + /** + * The VolumeQuotaRulesClient object to access its operations. + */ private final VolumeQuotaRulesClient volumeQuotaRules; /** * Gets the VolumeQuotaRulesClient object to access its operations. - * + * * @return the VolumeQuotaRulesClient object. */ public VolumeQuotaRulesClient getVolumeQuotaRules() { return this.volumeQuotaRules; } - /** The VolumeGroupsClient object to access its operations. */ + /** + * The VolumeGroupsClient object to access its operations. + */ private final VolumeGroupsClient volumeGroups; /** * Gets the VolumeGroupsClient object to access its operations. - * + * * @return the VolumeGroupsClient object. */ public VolumeGroupsClient getVolumeGroups() { return this.volumeGroups; } - /** The SubvolumesClient object to access its operations. */ + /** + * The SubvolumesClient object to access its operations. + */ private final SubvolumesClient subvolumes; /** * Gets the SubvolumesClient object to access its operations. - * + * * @return the SubvolumesClient object. */ public SubvolumesClient getSubvolumes() { @@ -278,27 +318,22 @@ public SubvolumesClient getSubvolumes() { /** * Initializes an instance of NetAppManagementClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. * @param environment The Azure environment. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param endpoint server parameter. */ - NetAppManagementClientImpl( - HttpPipeline httpPipeline, - SerializerAdapter serializerAdapter, - Duration defaultPollInterval, - AzureEnvironment environment, - String subscriptionId, - String endpoint) { + NetAppManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, + Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-05-01"; + this.apiVersion = "2023-07-01"; this.operations = new OperationsClientImpl(this); this.netAppResources = new NetAppResourcesClientImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this); @@ -316,7 +351,7 @@ public SubvolumesClient getSubvolumes() { /** * Gets default client context. - * + * * @return the default client context. */ public Context getContext() { @@ -325,7 +360,7 @@ public Context getContext() { /** * Merges default client context with provided context. - * + * * @param context the context to be merged with default client context. * @return the merged context. */ @@ -335,7 +370,7 @@ public Context mergeContext(Context context) { /** * Gets long running operation result. - * + * * @param activationResponse the response of activation operation. * @param httpPipeline the http pipeline. * @param pollResultType type of poll result. @@ -345,26 +380,15 @@ public Context mergeContext(Context context) { * @param type of final result. * @return poller flux for poll result and final result. */ - public PollerFlux, U> getLroResult( - Mono>> activationResponse, - HttpPipeline httpPipeline, - Type pollResultType, - Type finalResultType, - Context context) { - return PollerFactory - .create( - serializerAdapter, - httpPipeline, - pollResultType, - finalResultType, - defaultPollInterval, - activationResponse, - context); + public PollerFlux, U> getLroResult(Mono>> activationResponse, + HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) { + return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType, + defaultPollInterval, activationResponse, context); } /** * Gets the final result, or an error, based on last async poll response. - * + * * @param response the last async poll response. * @param type of poll result. * @param type of final result. @@ -377,19 +401,16 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, HttpResponse errorResponse = null; PollResult.Error lroError = response.getValue().getError(); if (lroError != null) { - errorResponse = - new HttpResponseImpl( - lroError.getResponseStatusCode(), lroError.getResponseHeaders(), lroError.getResponseBody()); + errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(), + lroError.getResponseBody()); errorMessage = response.getValue().getError().getMessage(); String errorBody = response.getValue().getError().getResponseBody(); if (errorBody != null) { // try to deserialize error body to ManagementError try { - managementError = - this - .getSerializerAdapter() - .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON); + managementError = this.getSerializerAdapter().deserialize(errorBody, ManagementError.class, + SerializerEncoding.JSON); if (managementError.getCode() == null || managementError.getMessage() == null) { managementError = null; } 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 56bc32d6ae74..2f5896aba3c8 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 @@ -30,24 +30,28 @@ import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItemList; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsClient. */ +/** + * An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsClient. + */ public final class NetAppResourceQuotaLimitsClientImpl implements NetAppResourceQuotaLimitsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final NetAppResourceQuotaLimitsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of NetAppResourceQuotaLimitsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ NetAppResourceQuotaLimitsClientImpl(NetAppManagementClientImpl client) { - this.service = - RestProxy - .create( - NetAppResourceQuotaLimitsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(NetAppResourceQuotaLimitsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -58,107 +62,80 @@ public final class NetAppResourceQuotaLimitsClientImpl implements NetAppResource @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface NetAppResourceQuotaLimitsService { - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits") - @ExpectedResponses({200}) + @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); + 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}/quotaLimits/{quotaLimitName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - 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); + 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); } /** * Get quota limits - * - *

Get the default and current limits for quotas. - * - * @param location The name of Azure region. + * + * Get the default and current limits for quotas. + * + * @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 the default and current limits for quotas along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@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.")); + 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.")); + 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(), null, null)) + .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)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get quota limits - * - *

Get the default and current limits for quotas. - * - * @param location The name of Azure region. + * + * Get the default and current limits for quotas. + * + * @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 the default and current limits for quotas along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@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.")); + 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.")); + 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.")); @@ -166,25 +143,18 @@ private Mono> listSinglePageAsync(Stri 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(), null, null)); + .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)); } /** * Get quota limits - * - *

Get the default and current limits for quotas. - * - * @param location The name of Azure region. + * + * Get the default and current limits for quotas. + * + * @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. @@ -197,10 +167,10 @@ private PagedFlux listAsync(String location) { /** * Get quota limits - * - *

Get the default and current limits for quotas. - * - * @param location The name of Azure region. + * + * Get the default and current limits for quotas. + * + * @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. @@ -214,10 +184,10 @@ private PagedFlux listAsync(String location, Context /** * Get quota limits - * - *

Get the default and current limits for quotas. - * - * @param location The name of Azure region. + * + * Get the default and current limits for quotas. + * + * @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. @@ -230,10 +200,10 @@ public PagedIterable list(String location) { /** * Get quota limits - * - *

Get the default and current limits for quotas. - * - * @param location The name of Azure region. + * + * Get the default and current limits for quotas. + * + * @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. @@ -247,30 +217,26 @@ public PagedIterable list(String location, Context c /** * Get quota limits - * - *

Get the default and current subscription quota limit. - * - * @param location The name of Azure region. + * + * Get the default and current subscription quota limit. + * + * @param location The name of the Azure region. * @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 and current subscription quota limit along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) 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.")); + 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.")); + 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.")); @@ -280,48 +246,35 @@ private Mono> getWithResponseAsync(String l } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - quotaLimitName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), location, + quotaLimitName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get quota limits - * - *

Get the default and current subscription quota limit. - * - * @param location The name of Azure region. + * + * Get the default and current subscription quota limit. + * + * @param location The name of the Azure region. * @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 and current subscription quota limit along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String location, String quotaLimitName, Context context) { + private Mono> getWithResponseAsync(String location, String quotaLimitName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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.")); @@ -331,23 +284,16 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - quotaLimitName, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), location, quotaLimitName, + this.client.getApiVersion(), accept, context); } /** * Get quota limits - * - *

Get the default and current subscription quota limit. - * - * @param location The name of Azure region. + * + * Get the default and current subscription quota limit. + * + * @param location The name of the Azure region. * @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. @@ -361,10 +307,10 @@ private Mono getAsync(String location, String quotaL /** * Get quota limits - * - *

Get the default and current subscription quota limit. - * - * @param location The name of Azure region. + * + * Get the default and current subscription quota limit. + * + * @param location The name of the Azure region. * @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. @@ -373,17 +319,17 @@ 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(); } /** * Get quota limits - * - *

Get the default and current subscription quota limit. - * - * @param location The name of Azure region. + * + * Get the default and current subscription quota limit. + * + * @param location The name of the Azure region. * @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. 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 9f0869613f85..05c90866dc82 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 @@ -21,8 +21,7 @@ public final class NetAppResourceQuotaLimitsImpl implements NetAppResourceQuotaL private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - public NetAppResourceQuotaLimitsImpl( - NetAppResourceQuotaLimitsClient innerClient, + public NetAppResourceQuotaLimitsImpl(NetAppResourceQuotaLimitsClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; @@ -39,13 +38,10 @@ public PagedIterable list(String location, Context contex } public Response getWithResponse(String location, String quotaLimitName, Context context) { - Response inner = - this.serviceClient().getWithResponse(location, quotaLimitName, context); + Response inner + = this.serviceClient().getWithResponse(location, quotaLimitName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SubscriptionQuotaItemImpl(inner.getValue(), this.manager())); } else { return null; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java index 4eb78fe660b9..063a946a636c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java @@ -39,138 +39,119 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in NetAppResourcesClient. */ +/** + * An instance of this class provides access to all the operations defined in NetAppResourcesClient. + */ public final class NetAppResourcesClientImpl implements NetAppResourcesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final NetAppResourcesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of NetAppResourcesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ NetAppResourcesClientImpl(NetAppManagementClientImpl client) { - this.service = - RestProxy.create(NetAppResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(NetAppResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for NetAppManagementClientNetAppResources to be used by the proxy service - * to perform REST calls. + * The interface defining all the services for NetAppManagementClientNetAppResources to be used by the proxy + * service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface NetAppResourcesService { - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, + Mono> checkNameAvailability(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ResourceNameAvailabilityRequest body, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") ResourceNameAvailabilityRequest body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkFilePathAvailability( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, + Mono> checkFilePathAvailability(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") FilePathAvailabilityRequest body, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") FilePathAvailabilityRequest body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkQuotaAvailability( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") QuotaAvailabilityRequest body, - @HeaderParam("Accept") String accept, - Context context); + Mono> checkQuotaAvailability(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") QuotaAvailabilityRequest body, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> queryRegionInfo( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + Mono> queryRegionInfo(@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"}) + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> queryNetworkSiblingSet( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, + Mono> queryNetworkSiblingSet(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") QueryNetworkSiblingSetRequest body, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") QueryNetworkSiblingSetRequest body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet") - @ExpectedResponses({200, 202}) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateNetworkSiblingSet( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, + Mono>> updateNetworkSiblingSet(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") UpdateNetworkSiblingSetRequest body, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") UpdateNetworkSiblingSetRequest body, @HeaderParam("Accept") String accept, Context context); } /** * Check resource name availability - * - *

Check if a resource name is available. - * - * @param location The name of Azure region. + * + * Check if a resource name is available. + * + * @param location The name of the Azure region. * @param body Name availability request. * @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 information regarding availability of a resource along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String location, ResourceNameAvailabilityRequest body) { + private Mono> checkNameAvailabilityWithResponseAsync(String location, + ResourceNameAvailabilityRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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.")); @@ -182,48 +163,35 @@ private Mono> checkNameAvailabilityWith } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .checkNameAvailability( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), + this.client.getSubscriptionId(), location, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Check resource name availability - * - *

Check if a resource name is available. - * - * @param location The name of Azure region. + * + * Check if a resource name is available. + * + * @param location The name of the Azure region. * @param body Name availability request. * @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 information regarding availability of a resource along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String location, ResourceNameAvailabilityRequest body, Context context) { + private Mono> checkNameAvailabilityWithResponseAsync(String location, + ResourceNameAvailabilityRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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.")); @@ -235,23 +203,16 @@ private Mono> checkNameAvailabilityWith } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .checkNameAvailability( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - body, - accept, - context); + return service.checkNameAvailability(this.client.getEndpoint(), this.client.getSubscriptionId(), location, + this.client.getApiVersion(), body, accept, context); } /** * Check resource name availability - * - *

Check if a resource name is available. - * - * @param location The name of Azure region. + * + * Check if a resource name is available. + * + * @param location The name of the Azure region. * @param body Name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -259,17 +220,17 @@ private Mono> checkNameAvailabilityWith * @return information regarding availability of a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync( - String location, ResourceNameAvailabilityRequest body) { + private Mono checkNameAvailabilityAsync(String location, + ResourceNameAvailabilityRequest body) { return checkNameAvailabilityWithResponseAsync(location, body).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Check resource name availability - * - *

Check if a resource name is available. - * - * @param location The name of Azure region. + * + * Check if a resource name is available. + * + * @param location The name of the Azure region. * @param body Name availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -278,17 +239,17 @@ private Mono checkNameAvailabilityAsync( * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - String location, ResourceNameAvailabilityRequest body, Context context) { + public Response checkNameAvailabilityWithResponse(String location, + ResourceNameAvailabilityRequest body, Context context) { return checkNameAvailabilityWithResponseAsync(location, body, context).block(); } /** * Check resource name availability - * - *

Check if a resource name is available. - * - * @param location The name of Azure region. + * + * Check if a resource name is available. + * + * @param location The name of the Azure region. * @param body Name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -302,31 +263,27 @@ public CheckAvailabilityResponseInner checkNameAvailability(String location, Res /** * Check file path availability - * - *

Check if a file path is available. - * - * @param location The name of Azure region. + * + * Check if a file path is available. + * + * @param location The name of the Azure region. * @param body File path availability request. * @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 information regarding availability of a resource along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkFilePathAvailabilityWithResponseAsync( - String location, FilePathAvailabilityRequest body) { + private Mono> checkFilePathAvailabilityWithResponseAsync(String location, + FilePathAvailabilityRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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.")); @@ -338,48 +295,35 @@ private Mono> checkFilePathAvailability } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .checkFilePathAvailability( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.checkFilePathAvailability(this.client.getEndpoint(), + this.client.getSubscriptionId(), location, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Check file path availability - * - *

Check if a file path is available. - * - * @param location The name of Azure region. + * + * Check if a file path is available. + * + * @param location The name of the Azure region. * @param body File path availability request. * @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 information regarding availability of a resource along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkFilePathAvailabilityWithResponseAsync( - String location, FilePathAvailabilityRequest body, Context context) { + private Mono> checkFilePathAvailabilityWithResponseAsync(String location, + FilePathAvailabilityRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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.")); @@ -391,23 +335,16 @@ private Mono> checkFilePathAvailability } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .checkFilePathAvailability( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - body, - accept, - context); + return service.checkFilePathAvailability(this.client.getEndpoint(), this.client.getSubscriptionId(), location, + this.client.getApiVersion(), body, accept, context); } /** * Check file path availability - * - *

Check if a file path is available. - * - * @param location The name of Azure region. + * + * Check if a file path is available. + * + * @param location The name of the Azure region. * @param body File path availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -415,18 +352,18 @@ private Mono> checkFilePathAvailability * @return information regarding availability of a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkFilePathAvailabilityAsync( - String location, FilePathAvailabilityRequest body) { + private Mono checkFilePathAvailabilityAsync(String location, + FilePathAvailabilityRequest body) { return checkFilePathAvailabilityWithResponseAsync(location, body) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Check file path availability - * - *

Check if a file path is available. - * - * @param location The name of Azure region. + * + * Check if a file path is available. + * + * @param location The name of the Azure region. * @param body File path availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -435,17 +372,17 @@ private Mono checkFilePathAvailabilityAsync( * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkFilePathAvailabilityWithResponse( - String location, FilePathAvailabilityRequest body, Context context) { + public Response checkFilePathAvailabilityWithResponse(String location, + FilePathAvailabilityRequest body, Context context) { return checkFilePathAvailabilityWithResponseAsync(location, body, context).block(); } /** * Check file path availability - * - *

Check if a file path is available. - * - * @param location The name of Azure region. + * + * Check if a file path is available. + * + * @param location The name of the Azure region. * @param body File path availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -459,31 +396,27 @@ public CheckAvailabilityResponseInner checkFilePathAvailability(String location, /** * Check quota availability - * - *

Check if a quota is available. - * - * @param location The name of Azure region. + * + * Check if a quota is available. + * + * @param location The name of the Azure region. * @param body Quota availability request. * @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 information regarding availability of a resource along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkQuotaAvailabilityWithResponseAsync( - String location, QuotaAvailabilityRequest body) { + private Mono> checkQuotaAvailabilityWithResponseAsync(String location, + QuotaAvailabilityRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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.")); @@ -495,48 +428,35 @@ private Mono> checkQuotaAvailabilityWit } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .checkQuotaAvailability( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.checkQuotaAvailability(this.client.getEndpoint(), + this.client.getSubscriptionId(), location, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Check quota availability - * - *

Check if a quota is available. - * - * @param location The name of Azure region. + * + * Check if a quota is available. + * + * @param location The name of the Azure region. * @param body Quota availability request. * @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 information regarding availability of a resource along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkQuotaAvailabilityWithResponseAsync( - String location, QuotaAvailabilityRequest body, Context context) { + private Mono> checkQuotaAvailabilityWithResponseAsync(String location, + QuotaAvailabilityRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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.")); @@ -548,23 +468,16 @@ private Mono> checkQuotaAvailabilityWit } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .checkQuotaAvailability( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - body, - accept, - context); + return service.checkQuotaAvailability(this.client.getEndpoint(), this.client.getSubscriptionId(), location, + this.client.getApiVersion(), body, accept, context); } /** * Check quota availability - * - *

Check if a quota is available. - * - * @param location The name of Azure region. + * + * Check if a quota is available. + * + * @param location The name of the Azure region. * @param body Quota availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -572,17 +485,17 @@ private Mono> checkQuotaAvailabilityWit * @return information regarding availability of a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkQuotaAvailabilityAsync( - String location, QuotaAvailabilityRequest body) { + private Mono checkQuotaAvailabilityAsync(String location, + QuotaAvailabilityRequest body) { return checkQuotaAvailabilityWithResponseAsync(location, body).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Check quota availability - * - *

Check if a quota is available. - * - * @param location The name of Azure region. + * + * Check if a quota is available. + * + * @param location The name of the Azure region. * @param body Quota availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -591,17 +504,17 @@ private Mono checkQuotaAvailabilityAsync( * @return information regarding availability of a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkQuotaAvailabilityWithResponse( - String location, QuotaAvailabilityRequest body, Context context) { + public Response checkQuotaAvailabilityWithResponse(String location, + QuotaAvailabilityRequest body, Context context) { return checkQuotaAvailabilityWithResponseAsync(location, body, context).block(); } /** * Check quota availability - * - *

Check if a quota is available. - * - * @param location The name of Azure region. + * + * Check if a quota is available. + * + * @param location The name of the Azure region. * @param body Quota availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -615,96 +528,74 @@ public CheckAvailabilityResponseInner checkQuotaAvailability(String location, Qu /** * Describes region specific information. - * - *

Provides storage to network proximity and logical zone mapping information. - * - * @param location The name of Azure region. + * + * Provides storage to network proximity and logical zone mapping information. + * + * @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 provides region specific information along with {@link Response} on successful completion of {@link - * Mono}. + * @return provides region specific information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> queryRegionInfoWithResponseAsync(String location) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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 - .queryRegionInfo( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.queryRegionInfo(this.client.getEndpoint(), this.client.getSubscriptionId(), + location, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Describes region specific information. - * - *

Provides storage to network proximity and logical zone mapping information. - * - * @param location The name of Azure region. + * + * Provides storage to network proximity and logical zone mapping information. + * + * @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 provides region specific information along with {@link Response} on successful completion of {@link - * Mono}. + * @return provides region specific information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> queryRegionInfoWithResponseAsync(String location, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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 - .queryRegionInfo( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - accept, - context); + return service.queryRegionInfo(this.client.getEndpoint(), this.client.getSubscriptionId(), location, + this.client.getApiVersion(), accept, context); } /** * Describes region specific information. - * - *

Provides storage to network proximity and logical zone mapping information. - * - * @param location The name of Azure region. + * + * Provides storage to network proximity and logical zone mapping information. + * + * @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. @@ -717,10 +608,10 @@ private Mono queryRegionInfoAsync(String location) { /** * Describes region specific information. - * - *

Provides storage to network proximity and logical zone mapping information. - * - * @param location The name of Azure region. + * + * Provides storage to network proximity and logical zone mapping information. + * + * @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. @@ -734,10 +625,10 @@ public Response queryRegionInfoWithResponse(String location, Co /** * Describes region specific information. - * - *

Provides storage to network proximity and logical zone mapping information. - * - * @param location The name of Azure region. + * + * Provides storage to network proximity and logical zone mapping information. + * + * @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. @@ -750,31 +641,27 @@ public RegionInfoInner queryRegionInfo(String location) { /** * Describe a network sibling set - * - *

Get details of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Get details of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Network sibling set to query. * @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 details of the specified network sibling set along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryNetworkSiblingSetWithResponseAsync( - String location, QueryNetworkSiblingSetRequest body) { + private Mono> queryNetworkSiblingSetWithResponseAsync(String location, + QueryNetworkSiblingSetRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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.")); @@ -786,48 +673,35 @@ private Mono> queryNetworkSiblingSetWithRespons } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .queryNetworkSiblingSet( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.queryNetworkSiblingSet(this.client.getEndpoint(), + this.client.getSubscriptionId(), location, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Describe a network sibling set - * - *

Get details of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Get details of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Network sibling set to query. * @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 details of the specified network sibling set along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> queryNetworkSiblingSetWithResponseAsync( - String location, QueryNetworkSiblingSetRequest body, Context context) { + private Mono> queryNetworkSiblingSetWithResponseAsync(String location, + QueryNetworkSiblingSetRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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.")); @@ -839,23 +713,16 @@ private Mono> queryNetworkSiblingSetWithRespons } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .queryNetworkSiblingSet( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - body, - accept, - context); + return service.queryNetworkSiblingSet(this.client.getEndpoint(), this.client.getSubscriptionId(), location, + this.client.getApiVersion(), body, accept, context); } /** * Describe a network sibling set - * - *

Get details of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Get details of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Network sibling set to query. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -863,17 +730,17 @@ private Mono> queryNetworkSiblingSetWithRespons * @return details of the specified network sibling set on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono queryNetworkSiblingSetAsync( - String location, QueryNetworkSiblingSetRequest body) { + private Mono queryNetworkSiblingSetAsync(String location, + QueryNetworkSiblingSetRequest body) { return queryNetworkSiblingSetWithResponseAsync(location, body).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Describe a network sibling set - * - *

Get details of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Get details of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Network sibling set to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -882,17 +749,17 @@ private Mono queryNetworkSiblingSetAsync( * @return details of the specified network sibling set along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response queryNetworkSiblingSetWithResponse( - String location, QueryNetworkSiblingSetRequest body, Context context) { + public Response queryNetworkSiblingSetWithResponse(String location, + QueryNetworkSiblingSetRequest body, Context context) { return queryNetworkSiblingSetWithResponseAsync(location, body, context).block(); } /** * Describe a network sibling set - * - *

Get details of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Get details of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Network sibling set to query. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -906,10 +773,10 @@ public NetworkSiblingSetInner queryNetworkSiblingSet(String location, QueryNetwo /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -917,19 +784,15 @@ public NetworkSiblingSetInner queryNetworkSiblingSet(String location, QueryNetwo * @return network sibling set along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateNetworkSiblingSetWithResponseAsync( - String location, UpdateNetworkSiblingSetRequest body) { + private Mono>> updateNetworkSiblingSetWithResponseAsync(String location, + UpdateNetworkSiblingSetRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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.")); @@ -941,26 +804,17 @@ private Mono>> updateNetworkSiblingSetWithResponseAsyn } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .updateNetworkSiblingSet( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.updateNetworkSiblingSet(this.client.getEndpoint(), + this.client.getSubscriptionId(), location, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -969,19 +823,15 @@ private Mono>> updateNetworkSiblingSetWithResponseAsyn * @return network sibling set along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateNetworkSiblingSetWithResponseAsync( - String location, UpdateNetworkSiblingSetRequest body, Context context) { + private Mono>> updateNetworkSiblingSetWithResponseAsync(String location, + UpdateNetworkSiblingSetRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + 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.")); @@ -993,23 +843,16 @@ private Mono>> updateNetworkSiblingSetWithResponseAsyn } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .updateNetworkSiblingSet( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - this.client.getApiVersion(), - body, - accept, - context); + return service.updateNetworkSiblingSet(this.client.getEndpoint(), this.client.getSubscriptionId(), location, + this.client.getApiVersion(), body, accept, context); } /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1017,25 +860,20 @@ private Mono>> updateNetworkSiblingSetWithResponseAsyn * @return the {@link PollerFlux} for polling of network sibling set. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetworkSiblingSetInner> beginUpdateNetworkSiblingSetAsync( - String location, UpdateNetworkSiblingSetRequest body) { + private PollerFlux, NetworkSiblingSetInner> + beginUpdateNetworkSiblingSetAsync(String location, UpdateNetworkSiblingSetRequest body) { Mono>> mono = updateNetworkSiblingSetWithResponseAsync(location, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - NetworkSiblingSetInner.class, - NetworkSiblingSetInner.class, - this.client.getContext()); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), NetworkSiblingSetInner.class, NetworkSiblingSetInner.class, + this.client.getContext()); } /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1044,26 +882,20 @@ private PollerFlux, NetworkSiblingSetInner> b * @return the {@link PollerFlux} for polling of network sibling set. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetworkSiblingSetInner> beginUpdateNetworkSiblingSetAsync( - String location, UpdateNetworkSiblingSetRequest body, Context context) { + private PollerFlux, NetworkSiblingSetInner> + beginUpdateNetworkSiblingSetAsync(String location, UpdateNetworkSiblingSetRequest body, Context context) { context = this.client.mergeContext(context); Mono>> mono = updateNetworkSiblingSetWithResponseAsync(location, body, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - NetworkSiblingSetInner.class, - NetworkSiblingSetInner.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), NetworkSiblingSetInner.class, NetworkSiblingSetInner.class, context); } /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1071,17 +903,17 @@ private PollerFlux, NetworkSiblingSetInner> b * @return the {@link SyncPoller} for polling of network sibling set. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetworkSiblingSetInner> beginUpdateNetworkSiblingSet( - String location, UpdateNetworkSiblingSetRequest body) { + public SyncPoller, NetworkSiblingSetInner> + beginUpdateNetworkSiblingSet(String location, UpdateNetworkSiblingSetRequest body) { return this.beginUpdateNetworkSiblingSetAsync(location, body).getSyncPoller(); } /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1090,17 +922,17 @@ public SyncPoller, NetworkSiblingSetInner> be * @return the {@link SyncPoller} for polling of network sibling set. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetworkSiblingSetInner> beginUpdateNetworkSiblingSet( - String location, UpdateNetworkSiblingSetRequest body, Context context) { + public SyncPoller, NetworkSiblingSetInner> + beginUpdateNetworkSiblingSet(String location, UpdateNetworkSiblingSetRequest body, Context context) { return this.beginUpdateNetworkSiblingSetAsync(location, body, context).getSyncPoller(); } /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1108,17 +940,17 @@ public SyncPoller, NetworkSiblingSetInner> be * @return network sibling set on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateNetworkSiblingSetAsync( - String location, UpdateNetworkSiblingSetRequest body) { + private Mono updateNetworkSiblingSetAsync(String location, + UpdateNetworkSiblingSetRequest body) { return beginUpdateNetworkSiblingSetAsync(location, body).last().flatMap(this.client::getLroFinalResultOrError); } /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1127,19 +959,18 @@ private Mono updateNetworkSiblingSetAsync( * @return network sibling set on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateNetworkSiblingSetAsync( - String location, UpdateNetworkSiblingSetRequest body, Context context) { - return beginUpdateNetworkSiblingSetAsync(location, body, context) - .last() + private Mono updateNetworkSiblingSetAsync(String location, + UpdateNetworkSiblingSetRequest body, Context context) { + return beginUpdateNetworkSiblingSetAsync(location, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1153,10 +984,10 @@ public NetworkSiblingSetInner updateNetworkSiblingSet(String location, UpdateNet /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1165,8 +996,8 @@ public NetworkSiblingSetInner updateNetworkSiblingSet(String location, UpdateNet * @return network sibling set. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkSiblingSetInner updateNetworkSiblingSet( - String location, UpdateNetworkSiblingSetRequest body, Context context) { + public NetworkSiblingSetInner updateNetworkSiblingSet(String location, UpdateNetworkSiblingSetRequest body, + Context context) { return updateNetworkSiblingSetAsync(location, body, context).block(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java index c6269397d677..1b3c17803b58 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java @@ -29,21 +29,18 @@ public final class NetAppResourcesImpl implements NetAppResources { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - public NetAppResourcesImpl( - NetAppResourcesClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + public NetAppResourcesImpl(NetAppResourcesClient innerClient, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response checkNameAvailabilityWithResponse( - String location, ResourceNameAvailabilityRequest body, Context context) { - Response inner = - this.serviceClient().checkNameAvailabilityWithResponse(location, body, context); + public Response checkNameAvailabilityWithResponse(String location, + ResourceNameAvailabilityRequest body, Context context) { + Response inner + = this.serviceClient().checkNameAvailabilityWithResponse(location, body, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CheckAvailabilityResponseImpl(inner.getValue(), this.manager())); } else { return null; @@ -59,15 +56,12 @@ public CheckAvailabilityResponse checkNameAvailability(String location, Resource } } - public Response checkFilePathAvailabilityWithResponse( - String location, FilePathAvailabilityRequest body, Context context) { - Response inner = - this.serviceClient().checkFilePathAvailabilityWithResponse(location, body, context); + public Response checkFilePathAvailabilityWithResponse(String location, + FilePathAvailabilityRequest body, Context context) { + Response inner + = this.serviceClient().checkFilePathAvailabilityWithResponse(location, body, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CheckAvailabilityResponseImpl(inner.getValue(), this.manager())); } else { return null; @@ -83,15 +77,12 @@ public CheckAvailabilityResponse checkFilePathAvailability(String location, File } } - public Response checkQuotaAvailabilityWithResponse( - String location, QuotaAvailabilityRequest body, Context context) { - Response inner = - this.serviceClient().checkQuotaAvailabilityWithResponse(location, body, context); + public Response checkQuotaAvailabilityWithResponse(String location, + QuotaAvailabilityRequest body, Context context) { + Response inner + = this.serviceClient().checkQuotaAvailabilityWithResponse(location, body, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CheckAvailabilityResponseImpl(inner.getValue(), this.manager())); } else { return null; @@ -110,10 +101,7 @@ public CheckAvailabilityResponse checkQuotaAvailability(String location, QuotaAv public Response queryRegionInfoWithResponse(String location, Context context) { Response inner = this.serviceClient().queryRegionInfoWithResponse(location, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new RegionInfoImpl(inner.getValue(), this.manager())); } else { return null; @@ -129,15 +117,12 @@ public RegionInfo queryRegionInfo(String location) { } } - public Response queryNetworkSiblingSetWithResponse( - String location, QueryNetworkSiblingSetRequest body, Context context) { - Response inner = - this.serviceClient().queryNetworkSiblingSetWithResponse(location, body, context); + public Response queryNetworkSiblingSetWithResponse(String location, + QueryNetworkSiblingSetRequest body, Context context) { + Response inner + = this.serviceClient().queryNetworkSiblingSetWithResponse(location, body, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new NetworkSiblingSetImpl(inner.getValue(), this.manager())); } else { return null; @@ -162,8 +147,8 @@ public NetworkSiblingSet updateNetworkSiblingSet(String location, UpdateNetworkS } } - public NetworkSiblingSet updateNetworkSiblingSet( - String location, UpdateNetworkSiblingSetRequest body, Context context) { + public NetworkSiblingSet updateNetworkSiblingSet(String location, UpdateNetworkSiblingSetRequest body, + Context context) { NetworkSiblingSetInner inner = this.serviceClient().updateNetworkSiblingSet(location, body, context); if (inner != null) { return new NetworkSiblingSetImpl(inner, this.manager()); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java index bbcf9cd1eb27..991ecd96c5f7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java @@ -17,8 +17,8 @@ public final class NetworkSiblingSetImpl implements NetworkSiblingSet { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - NetworkSiblingSetImpl( - NetworkSiblingSetInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + NetworkSiblingSetImpl(NetworkSiblingSetInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = 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 0cd1fa0a34c3..b45b3e3f5c23 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 @@ -29,22 +29,28 @@ import com.azure.resourcemanager.netapp.models.OperationListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in OperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ public final class OperationsClientImpl implements OperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final OperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of OperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ OperationsClientImpl(NetAppManagementClientImpl client) { - this.service = - RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -55,81 +61,69 @@ public final class OperationsClientImpl implements OperationsClient { @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface OperationsService { - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.NetApp/operations") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); } /** * Describes the Resource Provider - * - *

Lists all of the available Microsoft.NetApp Rest API operations. - * + * + * Lists all of the available Microsoft.NetApp Rest API operations. + * * @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}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.list(this.client.getEndpoint(), 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())); } /** * Describes the Resource Provider - * - *

Lists all of the available Microsoft.NetApp Rest API operations. - * + * + * Lists all of the available Microsoft.NetApp Rest API operations. + * * @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}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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 - .list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + 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)); } /** * Describes the Resource Provider - * - *

Lists all of the available Microsoft.NetApp Rest API operations. - * + * + * Lists all of the available Microsoft.NetApp Rest API operations. + * * @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 as paginated response with {@link PagedFlux}. @@ -141,9 +135,9 @@ private PagedFlux listAsync() { /** * Describes the Resource Provider - * - *

Lists all of the available Microsoft.NetApp Rest API operations. - * + * + * Lists all of the available Microsoft.NetApp Rest API operations. + * * @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. @@ -157,9 +151,9 @@ private PagedFlux listAsync(Context context) { /** * Describes the Resource Provider - * - *

Lists all of the available Microsoft.NetApp Rest API operations. - * + * + * Lists all of the available Microsoft.NetApp Rest API operations. + * * @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 as paginated response with {@link PagedIterable}. @@ -171,9 +165,9 @@ public PagedIterable list() { /** * Describes the Resource Provider - * - *

Lists all of the available Microsoft.NetApp Rest API operations. - * + * + * Lists all of the available Microsoft.NetApp Rest API operations. + * * @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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java index dcc8a71d326b..f2395735d947 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java @@ -19,8 +19,8 @@ public final class OperationsImpl implements Operations { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - public OperationsImpl( - OperationsClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + public OperationsImpl(OperationsClient innerClient, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java index e55f2b7288b9..86afd4437b01 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java @@ -40,17 +40,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in PoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in PoolsClient. + */ public final class PoolsClientImpl implements PoolsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final PoolsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of PoolsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ PoolsClientImpl(NetAppManagementClientImpl client) { @@ -65,118 +71,87 @@ public final class PoolsClientImpl implements PoolsClient { @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface PoolsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, + 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); + @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}/capacityPools/{poolName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @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}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CapacityPoolInner body, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") CapacityPoolInner body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, + Mono>> update(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CapacityPoolPatch body, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") CapacityPoolPatch body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") - @ExpectedResponses({202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + Mono>> delete(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, - @QueryParam("api-version") String apiVersion, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Describe all Capacity Pools - * - *

List all capacity pools in the NetApp Account. - * + * + * List all capacity pools in the NetApp Account. + * * @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 list of capacity pool resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of capacity pool resources 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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -187,57 +162,37 @@ private Mono> listSinglePageAsync(String resour } 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)) + .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())); } /** * Describe all Capacity Pools - * - *

List all capacity pools in the NetApp Account. - * + * + * List all capacity pools in the NetApp Account. + * * @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 list of capacity pool resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of capacity pool resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String accountName, Context context) { + 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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -249,30 +204,17 @@ private Mono> listSinglePageAsync( 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)); + .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)); } /** * Describe all Capacity Pools - * - *

List all capacity pools in the NetApp Account. - * + * + * List all capacity pools in the NetApp Account. + * * @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. @@ -282,15 +224,15 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String accountName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, accountName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Describe all Capacity Pools - * - *

List all capacity pools in the NetApp Account. - * + * + * List all capacity pools in the NetApp Account. + * * @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. @@ -301,16 +243,15 @@ private PagedFlux listAsync(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String accountName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, accountName, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Describe all Capacity Pools - * - *

List all capacity pools in the NetApp Account. - * + * + * List all capacity pools in the NetApp Account. + * * @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. @@ -325,9 +266,9 @@ public PagedIterable list(String resourceGroupName, String ac /** * Describe all Capacity Pools - * - *

List all capacity pools in the NetApp Account. - * + * + * List all capacity pools in the NetApp Account. + * * @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. @@ -343,32 +284,28 @@ public PagedIterable list(String resourceGroupName, String ac /** * Describe a Capacity Pool - * - *

Get details of the specified capacity pool. - * + * + * Get details of the specified capacity pool. + * * @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. * @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 details of the specified capacity pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return details of the specified capacity pool along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String accountName, String poolName) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String poolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -382,26 +319,16 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Describe a Capacity Pool - * - *

Get details of the specified capacity pool. - * + * + * Get details of the specified capacity pool. + * * @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. @@ -409,23 +336,19 @@ private Mono> getWithResponseAsync( * @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 details of the specified capacity pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return details of the specified capacity pool along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String accountName, String poolName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String poolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -439,23 +362,15 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, + poolName, this.client.getApiVersion(), accept, context); } /** * Describe a Capacity Pool - * - *

Get details of the specified capacity pool. - * + * + * Get details of the specified capacity pool. + * * @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. @@ -472,9 +387,9 @@ private Mono getAsync(String resourceGroupName, String accoun /** * Describe a Capacity Pool - * - *

Get details of the specified capacity pool. - * + * + * Get details of the specified capacity pool. + * * @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. @@ -485,16 +400,16 @@ private Mono getAsync(String resourceGroupName, String accoun * @return details of the specified capacity pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String poolName, Context context) { + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + Context context) { return getWithResponseAsync(resourceGroupName, accountName, poolName, context).block(); } /** * Describe a Capacity Pool - * - *

Get details of the specified capacity pool. - * + * + * Get details of the specified capacity pool. + * * @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. @@ -510,9 +425,9 @@ public CapacityPoolInner get(String resourceGroupName, String accountName, Strin /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -523,19 +438,15 @@ public CapacityPoolInner get(String resourceGroupName, String accountName, Strin * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String poolName, CapacityPoolInner body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -554,27 +465,16 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -586,19 +486,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String poolName, CapacityPoolInner body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -617,24 +513,15 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - this.client.getApiVersion(), - body, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, this.client.getApiVersion(), body, accept, context); } /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -647,23 +534,17 @@ private Mono>> createOrUpdateWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CapacityPoolInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - CapacityPoolInner.class, - CapacityPoolInner.class, - this.client.getContext()); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + CapacityPoolInner.class, CapacityPoolInner.class, this.client.getContext()); } /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -678,19 +559,17 @@ private PollerFlux, CapacityPoolInner> beginCreate private PollerFlux, CapacityPoolInner> beginCreateOrUpdateAsync( String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), CapacityPoolInner.class, CapacityPoolInner.class, context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + CapacityPoolInner.class, CapacityPoolInner.class, context); } /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -701,16 +580,16 @@ private PollerFlux, CapacityPoolInner> beginCreate * @return the {@link SyncPoller} for polling of capacity pool resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, CapacityPoolInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body) { + public SyncPoller, CapacityPoolInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String poolName, CapacityPoolInner body) { return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body).getSyncPoller(); } /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -722,16 +601,16 @@ public SyncPoller, CapacityPoolInner> beginCreateO * @return the {@link SyncPoller} for polling of capacity pool resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, CapacityPoolInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context) { + public SyncPoller, CapacityPoolInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String poolName, CapacityPoolInner body, Context context) { return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body, context).getSyncPoller(); } /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -742,18 +621,17 @@ public SyncPoller, CapacityPoolInner> beginCreateO * @return capacity pool resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String poolName, + CapacityPoolInner body) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -765,18 +643,17 @@ private Mono createOrUpdateAsync( * @return capacity pool resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body, context) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String poolName, + CapacityPoolInner body, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -787,16 +664,16 @@ private Mono createOrUpdateAsync( * @return capacity pool resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CapacityPoolInner createOrUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body) { + public CapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName, + CapacityPoolInner body) { return createOrUpdateAsync(resourceGroupName, accountName, poolName, body).block(); } /** * Create or Update the specified capacity pool within the resource group - * - *

Create or Update a capacity pool. - * + * + * Create or Update a capacity pool. + * * @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. @@ -808,16 +685,16 @@ public CapacityPoolInner createOrUpdate( * @return capacity pool resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CapacityPoolInner createOrUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolInner body, Context context) { + public CapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName, + CapacityPoolInner body, Context context) { return createOrUpdateAsync(resourceGroupName, accountName, poolName, body, context).block(); } /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -828,19 +705,15 @@ public CapacityPoolInner createOrUpdate( * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, CapacityPoolPatch body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -859,27 +732,16 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -891,19 +753,15 @@ private Mono>> updateWithResponseAsync( * @return capacity pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, CapacityPoolPatch body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -922,24 +780,15 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - this.client.getApiVersion(), - body, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, this.client.getApiVersion(), body, accept, context); } /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -950,24 +799,18 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of capacity pool resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, CapacityPoolInner> beginUpdateAsync( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body) { + private PollerFlux, CapacityPoolInner> beginUpdateAsync(String resourceGroupName, + String accountName, String poolName, CapacityPoolPatch body) { Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, poolName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - CapacityPoolInner.class, - CapacityPoolInner.class, - this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + CapacityPoolInner.class, CapacityPoolInner.class, this.client.getContext()); } /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -979,22 +822,20 @@ private PollerFlux, CapacityPoolInner> beginUpdate * @return the {@link PollerFlux} for polling of capacity pool resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, CapacityPoolInner> beginUpdateAsync( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context) { + private PollerFlux, CapacityPoolInner> beginUpdateAsync(String resourceGroupName, + String accountName, String poolName, CapacityPoolPatch body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, poolName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), CapacityPoolInner.class, CapacityPoolInner.class, context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, poolName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + CapacityPoolInner.class, CapacityPoolInner.class, context); } /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -1005,16 +846,16 @@ private PollerFlux, CapacityPoolInner> beginUpdate * @return the {@link SyncPoller} for polling of capacity pool resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, CapacityPoolInner> beginUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body) { + public SyncPoller, CapacityPoolInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, CapacityPoolPatch body) { return this.beginUpdateAsync(resourceGroupName, accountName, poolName, body).getSyncPoller(); } /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -1026,16 +867,16 @@ public SyncPoller, CapacityPoolInner> beginUpdate( * @return the {@link SyncPoller} for polling of capacity pool resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, CapacityPoolInner> beginUpdate( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context) { + public SyncPoller, CapacityPoolInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, CapacityPoolPatch body, Context context) { return this.beginUpdateAsync(resourceGroupName, accountName, poolName, body, context).getSyncPoller(); } /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -1046,18 +887,17 @@ public SyncPoller, CapacityPoolInner> beginUpdate( * @return capacity pool resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, body) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + CapacityPoolPatch body) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -1069,18 +909,17 @@ private Mono updateAsync( * @return capacity pool resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, body, context) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + CapacityPoolPatch body, Context context) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -1091,16 +930,16 @@ private Mono updateAsync( * @return capacity pool resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CapacityPoolInner update( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body) { + public CapacityPoolInner update(String resourceGroupName, String accountName, String poolName, + CapacityPoolPatch body) { return updateAsync(resourceGroupName, accountName, poolName, body).block(); } /** * Update a capacity pool - * - *

Patch the specified capacity pool. - * + * + * Patch the specified capacity pool. + * * @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. @@ -1112,16 +951,16 @@ public CapacityPoolInner update( * @return capacity pool resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CapacityPoolInner update( - String resourceGroupName, String accountName, String poolName, CapacityPoolPatch body, Context context) { + public CapacityPoolInner update(String resourceGroupName, String accountName, String poolName, + CapacityPoolPatch body, Context context) { return updateAsync(resourceGroupName, accountName, poolName, body, context).block(); } /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -1131,19 +970,15 @@ public CapacityPoolInner update( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String accountName, String poolName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1155,26 +990,18 @@ private Mono>> deleteWithResponseAsync( if (poolName == null) { return Mono.error(new IllegalArgumentException("Parameter poolName 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, - this.client.getApiVersion(), - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -1185,19 +1012,15 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String accountName, String poolName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1209,23 +1032,17 @@ private Mono>> deleteWithResponseAsync( if (poolName == null) { return Mono.error(new IllegalArgumentException("Parameter poolName 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, - this.client.getApiVersion(), - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, this.client.getApiVersion(), accept, context); } /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -1235,20 +1052,18 @@ private Mono>> deleteWithResponseAsync( * @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) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, poolName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -1259,21 +1074,20 @@ private PollerFlux, Void> beginDeleteAsync( * @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, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -1283,16 +1097,16 @@ private PollerFlux, Void> beginDeleteAsync( * @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) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String poolName) { return this.beginDeleteAsync(resourceGroupName, accountName, poolName).getSyncPoller(); } /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -1303,16 +1117,16 @@ public SyncPoller, Void> beginDelete( * @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, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + Context context) { return this.beginDeleteAsync(resourceGroupName, accountName, poolName, context).getSyncPoller(); } /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -1323,16 +1137,15 @@ public SyncPoller, Void> beginDelete( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String poolName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName) - .last() + return beginDeleteAsync(resourceGroupName, accountName, poolName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -1344,16 +1157,15 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, Context context) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, context) - .last() + return beginDeleteAsync(resourceGroupName, accountName, poolName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -1368,9 +1180,9 @@ public void delete(String resourceGroupName, String accountName, String poolName /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -1386,14 +1198,15 @@ public void delete(String resourceGroupName, String accountName, String poolName /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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 capacity pool resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of capacity pool resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1401,37 +1214,28 @@ private Mono> listNextSinglePageAsync(String ne 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.")); + 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)) + 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 - *

The nextLink parameter. + * + * The nextLink parameter. * @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 capacity pool resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of capacity pool resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -1439,23 +1243,13 @@ private Mono> listNextSinglePageAsync(String ne 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.")); + 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)); + 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/PoolsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java index cb9280c6f6d8..5a98e065dcab 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java @@ -36,15 +36,12 @@ public PagedIterable list(String resourceGroupName, String account return Utils.mapPage(inner, inner1 -> new CapacityPoolImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String accountName, String poolName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, accountName, poolName, context); + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, poolName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CapacityPoolImpl(inner.getValue(), this.manager())); } else { return null; @@ -71,26 +68,18 @@ public void delete(String resourceGroupName, String accountName, String poolName public CapacityPool getById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } return this.getWithResponse(resourceGroupName, accountName, poolName, Context.NONE).getValue(); } @@ -98,26 +87,18 @@ public CapacityPool getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } return this.getWithResponse(resourceGroupName, accountName, poolName, context); } @@ -125,26 +106,18 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } this.delete(resourceGroupName, accountName, poolName, Context.NONE); } @@ -152,26 +125,18 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } this.delete(resourceGroupName, accountName, poolName, context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java index 53bad537232e..68917a5c5bcb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java @@ -14,8 +14,8 @@ public final class ReplicationStatusImpl implements ReplicationStatus { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - ReplicationStatusImpl( - ReplicationStatusInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + ReplicationStatusImpl(ReplicationStatusInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java index e8877d0ff83f..f97fddfce2a0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java @@ -14,8 +14,8 @@ public final class RestoreStatusImpl implements RestoreStatus { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - RestoreStatusImpl( - RestoreStatusInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + RestoreStatusImpl(RestoreStatusInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java index 620c3318d8d5..e9b8345645f5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java @@ -80,8 +80,8 @@ private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { private String snapshotName; - public SnapshotImpl withExistingVolume( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public SnapshotImpl withExistingVolume(String resourceGroupName, String accountName, String poolName, + String volumeName) { this.resourceGroupName = resourceGroupName; this.accountName = accountName; this.poolName = poolName; @@ -90,27 +90,14 @@ public SnapshotImpl withExistingVolume( } public Snapshot create() { - this.innerObject = - serviceManager - .serviceClient() - .getSnapshots() - .create( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - this.innerModel(), - Context.NONE); + this.innerObject = serviceManager.serviceClient().getSnapshots().create(resourceGroupName, accountName, + poolName, volumeName, snapshotName, this.innerModel(), Context.NONE); return this; } public Snapshot create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSnapshots() - .create(resourceGroupName, accountName, poolName, volumeName, snapshotName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getSnapshots().create(resourceGroupName, accountName, + poolName, volumeName, snapshotName, this.innerModel(), context); return this; } @@ -121,35 +108,26 @@ public Snapshot create(Context context) { } public Snapshot refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSnapshots() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSnapshots() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE) + .getValue(); return this; } public Snapshot refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSnapshots() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSnapshots() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context).getValue(); return this; } public void restoreFiles(SnapshotRestoreFiles body) { - serviceManager - .snapshots() - .restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); + serviceManager.snapshots().restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, + body); } public void restoreFiles(SnapshotRestoreFiles body, Context context) { - serviceManager - .snapshots() - .restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context); + serviceManager.snapshots().restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, + body, context); } public SnapshotImpl withRegion(Region location) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java index 94a6aeacdb97..ac801c5c3ceb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java @@ -41,22 +41,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SnapshotPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in SnapshotPoliciesClient. + */ public final class SnapshotPoliciesClientImpl implements SnapshotPoliciesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SnapshotPoliciesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of SnapshotPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SnapshotPoliciesClientImpl(NetAppManagementClientImpl client) { - this.service = - RestProxy.create(SnapshotPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(SnapshotPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -67,100 +73,71 @@ public final class SnapshotPoliciesClientImpl implements SnapshotPoliciesClient @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface SnapshotPoliciesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, + 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); + @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}/snapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("snapshotPolicyName") String snapshotPolicyName, @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}/snapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> create( - @HostParam("$host") String endpoint, + Mono> create(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotPolicyInner body, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") SnapshotPolicyInner body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, + Mono>> update(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotPolicyPatch body, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") SnapshotPolicyPatch body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + Mono>> delete(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, - @QueryParam("api-version") String apiVersion, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("snapshotPolicyName") String snapshotPolicyName, @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}/snapshotPolicies/{snapshotPolicyName}/volumes") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}/volumes") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVolumes( - @HostParam("$host") String endpoint, + Mono> listVolumes(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("snapshotPolicyName") String snapshotPolicyName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); } /** * List snapshot policy. - * + * * @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. @@ -171,16 +148,12 @@ Mono> listVolumes( @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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -191,27 +164,16 @@ private Mono> listSinglePageAsync(String reso } 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(), null, null)) + .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(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List snapshot policy. - * + * * @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. @@ -221,19 +183,15 @@ private Mono> listSinglePageAsync(String reso * @return list of Snapshot Policies along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String accountName, Context context) { + 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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -245,23 +203,15 @@ private Mono> listSinglePageAsync( 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(), null, null)); + .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(), null, null)); } /** * List snapshot policy. - * + * * @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. @@ -276,7 +226,7 @@ private PagedFlux listAsync(String resourceGroupName, Strin /** * List snapshot policy. - * + * * @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. @@ -292,7 +242,7 @@ private PagedFlux listAsync(String resourceGroupName, Strin /** * List snapshot policy. - * + * * @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. @@ -307,7 +257,7 @@ public PagedIterable list(String resourceGroupName, String /** * List snapshot policy. - * + * * @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. @@ -323,7 +273,7 @@ public PagedIterable list(String resourceGroupName, String /** * Get a snapshot Policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -333,19 +283,15 @@ public PagedIterable list(String resourceGroupName, String * @return a snapshot Policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String accountName, String snapshotPolicyName) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String snapshotPolicyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -360,24 +306,14 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - snapshotPolicyName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, snapshotPolicyName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get a snapshot Policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -388,19 +324,15 @@ private Mono> getWithResponseAsync( * @return a snapshot Policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -415,21 +347,13 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - snapshotPolicyName, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, + snapshotPolicyName, this.client.getApiVersion(), accept, context); } /** * Get a snapshot Policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -439,15 +363,15 @@ private Mono> getWithResponseAsync( * @return a snapshot Policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String accountName, String snapshotPolicyName) { + private Mono getAsync(String resourceGroupName, String accountName, + String snapshotPolicyName) { return getWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get a snapshot Policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -458,14 +382,14 @@ private Mono getAsync( * @return a snapshot Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { + public Response getWithResponse(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, context).block(); } /** * Get a snapshot Policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -481,7 +405,7 @@ public SnapshotPolicyInner get(String resourceGroupName, String accountName, Str /** * Create a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -492,19 +416,15 @@ public SnapshotPolicyInner get(String resourceGroupName, String accountName, Str * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createWithResponseAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body) { + private Mono> createWithResponseAsync(String resourceGroupName, String accountName, + String snapshotPolicyName, SnapshotPolicyInner body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -524,25 +444,14 @@ private Mono> createWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - snapshotPolicyName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, snapshotPolicyName, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -554,23 +463,15 @@ private Mono> createWithResponseAsync( * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createWithResponseAsync( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyInner body, - Context context) { + private Mono> createWithResponseAsync(String resourceGroupName, String accountName, + String snapshotPolicyName, SnapshotPolicyInner body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -590,22 +491,13 @@ private Mono> createWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - snapshotPolicyName, - this.client.getApiVersion(), - body, - accept, - context); + return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, snapshotPolicyName, this.client.getApiVersion(), body, accept, context); } /** * Create a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -616,15 +508,15 @@ private Mono> createWithResponseAsync( * @return snapshot policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body) { + private Mono createAsync(String resourceGroupName, String accountName, + String snapshotPolicyName, SnapshotPolicyInner body) { return createWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Create a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -636,18 +528,14 @@ private Mono createAsync( * @return snapshot policy information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyInner body, - Context context) { + public Response createWithResponse(String resourceGroupName, String accountName, + String snapshotPolicyName, SnapshotPolicyInner body, Context context) { return createWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body, context).block(); } /** * Create a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -658,14 +546,14 @@ public Response createWithResponse( * @return snapshot policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotPolicyInner create( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body) { + public SnapshotPolicyInner create(String resourceGroupName, String accountName, String snapshotPolicyName, + SnapshotPolicyInner body) { return createWithResponse(resourceGroupName, accountName, snapshotPolicyName, body, Context.NONE).getValue(); } /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -676,19 +564,15 @@ public SnapshotPolicyInner create( * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String snapshotPolicyName, SnapshotPolicyPatch body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -708,25 +592,14 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - snapshotPolicyName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, snapshotPolicyName, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -738,23 +611,15 @@ private Mono>> updateWithResponseAsync( * @return snapshot policy information along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyPatch body, - Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String snapshotPolicyName, SnapshotPolicyPatch body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -774,22 +639,13 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - snapshotPolicyName, - this.client.getApiVersion(), - body, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, snapshotPolicyName, this.client.getApiVersion(), body, accept, context); } /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -800,23 +656,17 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of snapshot policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SnapshotPolicyInner> beginUpdateAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SnapshotPolicyInner.class, - SnapshotPolicyInner.class, - this.client.getContext()); + private PollerFlux, SnapshotPolicyInner> beginUpdateAsync(String resourceGroupName, + String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SnapshotPolicyInner.class, SnapshotPolicyInner.class, this.client.getContext()); } /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -828,24 +678,18 @@ private PollerFlux, SnapshotPolicyInner> beginUp * @return the {@link PollerFlux} for polling of snapshot policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SnapshotPolicyInner> beginUpdateAsync( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyPatch body, - Context context) { + private PollerFlux, SnapshotPolicyInner> beginUpdateAsync(String resourceGroupName, + String accountName, String snapshotPolicyName, SnapshotPolicyPatch body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SnapshotPolicyInner.class, SnapshotPolicyInner.class, context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SnapshotPolicyInner.class, SnapshotPolicyInner.class, context); } /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -856,14 +700,14 @@ private PollerFlux, SnapshotPolicyInner> beginUp * @return the {@link SyncPoller} for polling of snapshot policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SnapshotPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) { + public SyncPoller, SnapshotPolicyInner> beginUpdate(String resourceGroupName, + String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) { return this.beginUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body).getSyncPoller(); } /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -875,18 +719,14 @@ public SyncPoller, SnapshotPolicyInner> beginUpd * @return the {@link SyncPoller} for polling of snapshot policy information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SnapshotPolicyInner> beginUpdate( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyPatch body, - Context context) { + public SyncPoller, SnapshotPolicyInner> beginUpdate(String resourceGroupName, + String accountName, String snapshotPolicyName, SnapshotPolicyPatch body, Context context) { return this.beginUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body, context).getSyncPoller(); } /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -897,16 +737,15 @@ public SyncPoller, SnapshotPolicyInner> beginUpd * @return snapshot policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) { - return beginUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, + String snapshotPolicyName, SnapshotPolicyPatch body) { + return beginUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -918,20 +757,15 @@ private Mono updateAsync( * @return snapshot policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyPatch body, - Context context) { - return beginUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body, context) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, + String snapshotPolicyName, SnapshotPolicyPatch body, Context context) { + return beginUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -942,14 +776,14 @@ private Mono updateAsync( * @return snapshot policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotPolicyInner update( - String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) { + public SnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, + SnapshotPolicyPatch body) { return updateAsync(resourceGroupName, accountName, snapshotPolicyName, body).block(); } /** * Patch a snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -961,18 +795,14 @@ public SnapshotPolicyInner update( * @return snapshot policy information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotPolicyInner update( - String resourceGroupName, - String accountName, - String snapshotPolicyName, - SnapshotPolicyPatch body, - Context context) { + public SnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, + SnapshotPolicyPatch body, Context context) { return updateAsync(resourceGroupName, accountName, snapshotPolicyName, body, context).block(); } /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -982,19 +812,15 @@ public SnapshotPolicyInner update( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String accountName, String snapshotPolicyName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String snapshotPolicyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1007,24 +833,16 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter snapshotPolicyName 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, - snapshotPolicyName, - this.client.getApiVersion(), - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, snapshotPolicyName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1035,19 +853,15 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1060,21 +874,15 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter snapshotPolicyName 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, - snapshotPolicyName, - this.client.getApiVersion(), - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, snapshotPolicyName, this.client.getApiVersion(), accept, context); } /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1084,19 +892,17 @@ private Mono>> deleteWithResponseAsync( * @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 snapshotPolicyName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String snapshotPolicyName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1107,19 +913,18 @@ private PollerFlux, Void> beginDeleteAsync( * @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 snapshotPolicyName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1129,14 +934,14 @@ private PollerFlux, Void> beginDeleteAsync( * @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 snapshotPolicyName) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String snapshotPolicyName) { return this.beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName).getSyncPoller(); } /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1147,14 +952,14 @@ public SyncPoller, Void> beginDelete( * @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 snapshotPolicyName, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context) { return this.beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName, context).getSyncPoller(); } /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1165,14 +970,13 @@ public SyncPoller, Void> beginDelete( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String snapshotPolicyName) { - return beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName) - .last() + return beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1183,16 +987,15 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { - return beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String accountName, String snapshotPolicyName, + Context context) { + return beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1207,7 +1010,7 @@ public void delete(String resourceGroupName, String accountName, String snapshot /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1223,32 +1026,28 @@ public void delete(String resourceGroupName, String accountName, String snapshot /** * Get volumes for snapshot policy - * - *

Get volumes associated with snapshot policy. - * + * + * Get volumes associated with snapshot policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. * @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 volumes associated with snapshot policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return volumes associated with snapshot policy along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVolumesWithResponseAsync( - String resourceGroupName, String accountName, String snapshotPolicyName) { + private Mono> listVolumesWithResponseAsync(String resourceGroupName, + String accountName, String snapshotPolicyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1263,26 +1062,16 @@ private Mono> listVolumesWithResponseAsy } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listVolumes( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - snapshotPolicyName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.listVolumes(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, snapshotPolicyName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get volumes for snapshot policy - * - *

Get volumes associated with snapshot policy. - * + * + * Get volumes associated with snapshot policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1290,23 +1079,19 @@ private Mono> listVolumesWithResponseAsy * @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 volumes associated with snapshot policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return volumes associated with snapshot policy along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVolumesWithResponseAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { + private Mono> listVolumesWithResponseAsync(String resourceGroupName, + String accountName, String snapshotPolicyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1321,23 +1106,15 @@ private Mono> listVolumesWithResponseAsy } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listVolumes( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - snapshotPolicyName, - this.client.getApiVersion(), - accept, - context); + return service.listVolumes(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, snapshotPolicyName, this.client.getApiVersion(), accept, context); } /** * Get volumes for snapshot policy - * - *

Get volumes associated with snapshot policy. - * + * + * Get volumes associated with snapshot policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1347,17 +1124,17 @@ private Mono> listVolumesWithResponseAsy * @return volumes associated with snapshot policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listVolumesAsync( - String resourceGroupName, String accountName, String snapshotPolicyName) { + private Mono listVolumesAsync(String resourceGroupName, String accountName, + String snapshotPolicyName) { return listVolumesWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get volumes for snapshot policy - * - *

Get volumes associated with snapshot policy. - * + * + * Get volumes associated with snapshot policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1368,16 +1145,16 @@ private Mono listVolumesAsync( * @return volumes associated with snapshot policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listVolumesWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { + public Response listVolumesWithResponse(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context) { return listVolumesWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, context).block(); } /** * Get volumes for snapshot policy - * - *

Get volumes associated with snapshot policy. - * + * + * Get volumes associated with snapshot policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -1387,8 +1164,8 @@ public Response listVolumesWithResponse( * @return volumes associated with snapshot policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotPolicyVolumeListInner listVolumes( - String resourceGroupName, String accountName, String snapshotPolicyName) { + public SnapshotPolicyVolumeListInner listVolumes(String resourceGroupName, String accountName, + String snapshotPolicyName) { return listVolumesWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE).getValue(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java index f17a12eb82d5..dec956b3979b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java @@ -23,8 +23,8 @@ public final class SnapshotPoliciesImpl implements SnapshotPolicies { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - public SnapshotPoliciesImpl( - SnapshotPoliciesClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + public SnapshotPoliciesImpl(SnapshotPoliciesClient innerClient, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } @@ -39,15 +39,12 @@ public PagedIterable list(String resourceGroupName, String accou return Utils.mapPage(inner, inner1 -> new SnapshotPolicyImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, accountName, snapshotPolicyName, context); + public Response getWithResponse(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, snapshotPolicyName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SnapshotPolicyImpl(inner.getValue(), this.manager())); } else { return null; @@ -71,25 +68,22 @@ public void delete(String resourceGroupName, String accountName, String snapshot this.serviceClient().delete(resourceGroupName, accountName, snapshotPolicyName, context); } - public Response listVolumesWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { - Response inner = - this.serviceClient().listVolumesWithResponse(resourceGroupName, accountName, snapshotPolicyName, context); + public Response listVolumesWithResponse(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context) { + Response inner + = this.serviceClient().listVolumesWithResponse(resourceGroupName, accountName, snapshotPolicyName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SnapshotPolicyVolumeListImpl(inner.getValue(), this.manager())); } else { return null; } } - public SnapshotPolicyVolumeList listVolumes( - String resourceGroupName, String accountName, String snapshotPolicyName) { - SnapshotPolicyVolumeListInner inner = - this.serviceClient().listVolumes(resourceGroupName, accountName, snapshotPolicyName); + public SnapshotPolicyVolumeList listVolumes(String resourceGroupName, String accountName, + String snapshotPolicyName) { + SnapshotPolicyVolumeListInner inner + = this.serviceClient().listVolumes(resourceGroupName, accountName, snapshotPolicyName); if (inner != null) { return new SnapshotPolicyVolumeListImpl(inner, this.manager()); } else { @@ -100,28 +94,18 @@ public SnapshotPolicyVolumeList listVolumes( public SnapshotPolicy getById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String snapshotPolicyName = Utils.getValueFromIdByName(id, "snapshotPolicies"); if (snapshotPolicyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'snapshotPolicies'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'snapshotPolicies'.", id))); } return this.getWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE).getValue(); } @@ -129,28 +113,18 @@ public SnapshotPolicy getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String snapshotPolicyName = Utils.getValueFromIdByName(id, "snapshotPolicies"); if (snapshotPolicyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'snapshotPolicies'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'snapshotPolicies'.", id))); } return this.getWithResponse(resourceGroupName, accountName, snapshotPolicyName, context); } @@ -158,28 +132,18 @@ public Response getByIdWithResponse(String id, Context context) public void deleteById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String snapshotPolicyName = Utils.getValueFromIdByName(id, "snapshotPolicies"); if (snapshotPolicyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'snapshotPolicies'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'snapshotPolicies'.", id))); } this.delete(resourceGroupName, accountName, snapshotPolicyName, Context.NONE); } @@ -187,28 +151,18 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String snapshotPolicyName = Utils.getValueFromIdByName(id, "snapshotPolicies"); if (snapshotPolicyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'snapshotPolicies'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'snapshotPolicies'.", id))); } this.delete(resourceGroupName, accountName, snapshotPolicyName, context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java index 3578341a9a79..3c2dbd88252e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java @@ -114,22 +114,16 @@ public SnapshotPolicyImpl withExistingNetAppAccount(String resourceGroupName, St } public SnapshotPolicy create() { - this.innerObject = - serviceManager - .serviceClient() - .getSnapshotPolicies() - .createWithResponse(resourceGroupName, accountName, snapshotPolicyName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSnapshotPolicies() + .createWithResponse(resourceGroupName, accountName, snapshotPolicyName, this.innerModel(), Context.NONE) + .getValue(); return this; } public SnapshotPolicy create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSnapshotPolicies() - .createWithResponse(resourceGroupName, accountName, snapshotPolicyName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSnapshotPolicies() + .createWithResponse(resourceGroupName, accountName, snapshotPolicyName, this.innerModel(), context) + .getValue(); return this; } @@ -145,25 +139,19 @@ public SnapshotPolicyImpl update() { } public SnapshotPolicy apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSnapshotPolicies() - .update(resourceGroupName, accountName, snapshotPolicyName, updateBody, Context.NONE); + this.innerObject = serviceManager.serviceClient().getSnapshotPolicies().update(resourceGroupName, accountName, + snapshotPolicyName, updateBody, Context.NONE); return this; } public SnapshotPolicy apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSnapshotPolicies() - .update(resourceGroupName, accountName, snapshotPolicyName, updateBody, context); + this.innerObject = serviceManager.serviceClient().getSnapshotPolicies().update(resourceGroupName, accountName, + snapshotPolicyName, updateBody, context); return this; } - SnapshotPolicyImpl( - SnapshotPolicyInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + SnapshotPolicyImpl(SnapshotPolicyInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); @@ -172,22 +160,14 @@ public SnapshotPolicy apply(Context context) { } public SnapshotPolicy refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSnapshotPolicies() - .getWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSnapshotPolicies() + .getWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE).getValue(); return this; } public SnapshotPolicy refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSnapshotPolicies() - .getWithResponse(resourceGroupName, accountName, snapshotPolicyName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSnapshotPolicies() + .getWithResponse(resourceGroupName, accountName, snapshotPolicyName, context).getValue(); return this; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java index cea619124a2a..212400399079 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java @@ -17,8 +17,8 @@ public final class SnapshotPolicyVolumeListImpl implements SnapshotPolicyVolumeL private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - SnapshotPolicyVolumeListImpl( - SnapshotPolicyVolumeListInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + SnapshotPolicyVolumeListImpl(SnapshotPolicyVolumeListInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } @@ -26,9 +26,8 @@ public final class SnapshotPolicyVolumeListImpl implements SnapshotPolicyVolumeL public List value() { List inner = this.innerModel().value(); if (inner != null) { - return Collections - .unmodifiableList( - inner.stream().map(inner1 -> new VolumeImpl(inner1, this.manager())).collect(Collectors.toList())); + return Collections.unmodifiableList( + inner.stream().map(inner1 -> new VolumeImpl(inner1, this.manager())).collect(Collectors.toList())); } else { return Collections.emptyList(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java index cb9c5bc7ed2b..9a6933c57e2a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java @@ -41,22 +41,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SnapshotsClient. */ +/** + * An instance of this class provides access to all the operations defined in SnapshotsClient. + */ public final class SnapshotsClientImpl implements SnapshotsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SnapshotsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of SnapshotsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SnapshotsClientImpl(NetAppManagementClientImpl client) { - this.service = - RestProxy.create(SnapshotsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(SnapshotsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -67,114 +73,78 @@ public final class SnapshotsClientImpl implements SnapshotsClient { @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface SnapshotsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, + 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); + @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}/snapshots/{snapshotName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + 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("snapshotName") String snapshotName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("snapshotName") String snapshotName, @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}/snapshots/{snapshotName}") - @ExpectedResponses({201, 202}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") + @ExpectedResponses({ 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String endpoint, + Mono>> create(@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("snapshotName") String snapshotName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotInner body, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") SnapshotInner 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}/snapshots/{snapshotName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, + 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("snapshotName") String snapshotName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") Object body, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") Object body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + 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("snapshotName") String snapshotName, - @QueryParam("api-version") String apiVersion, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> restoreFiles( - @HostParam("$host") String endpoint, + Mono>> restoreFiles(@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("snapshotName") String snapshotName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SnapshotRestoreFiles body, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("snapshotName") String snapshotName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") SnapshotRestoreFiles body, @HeaderParam("Accept") String accept, Context context); } /** * Describe all snapshots - * - *

List all snapshots associated with the volume. - * + * + * List all snapshots associated with 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. @@ -185,19 +155,15 @@ Mono>> restoreFiles( * @return list of Snapshots 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) { + 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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -214,31 +180,18 @@ private Mono> listSinglePageAsync( } 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(), null, null)) + .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(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Describe all snapshots - * - *

List all snapshots associated with the volume. - * + * + * List all snapshots associated with 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. @@ -250,19 +203,15 @@ private Mono> listSinglePageAsync( * @return list of Snapshots 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) { + 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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -280,27 +229,17 @@ private Mono> listSinglePageAsync( 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(), null, null)); + .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(), null, null)); } /** * Describe all snapshots - * - *

List all snapshots associated with the volume. - * + * + * List all snapshots associated with 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. @@ -311,16 +250,16 @@ private Mono> listSinglePageAsync( * @return list of Snapshots as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName, volumeName)); } /** * Describe all snapshots - * - *

List all snapshots associated with the volume. - * + * + * List all snapshots associated with 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. @@ -332,17 +271,17 @@ private PagedFlux listAsync( * @return list of Snapshots as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroupName, accountName, poolName, volumeName, context)); } /** * Describe all snapshots - * - *

List all snapshots associated with the volume. - * + * + * List all snapshots associated with 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. @@ -353,16 +292,16 @@ private PagedFlux listAsync( * @return list of Snapshots as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + String volumeName) { return new PagedIterable<>(listAsync(resourceGroupName, accountName, poolName, volumeName)); } /** * Describe all snapshots - * - *

List all snapshots associated with the volume. - * + * + * List all snapshots associated with 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. @@ -374,16 +313,16 @@ public PagedIterable list( * @return list of Snapshots as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { return new PagedIterable<>(listAsync(resourceGroupName, accountName, poolName, volumeName, context)); } /** * Describe a snapshot - * - *

Get details of the specified snapshot. - * + * + * Get details of the specified snapshot. + * * @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. @@ -395,19 +334,15 @@ public PagedIterable list( * @return details of the specified snapshot 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 snapshotName) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -428,27 +363,16 @@ private Mono> getWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - this.client.getApiVersion(), - accept, - context)) + context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Describe a snapshot - * - *

Get details of the specified snapshot. - * + * + * Get details of the specified snapshot. + * * @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. @@ -461,24 +385,15 @@ private Mono> getWithResponseAsync( * @return details of the specified snapshot 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 snapshotName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -498,25 +413,15 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, + poolName, volumeName, snapshotName, this.client.getApiVersion(), accept, context); } /** * Describe a snapshot - * - *

Get details of the specified snapshot. - * + * + * Get details of the specified snapshot. + * * @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. @@ -528,17 +433,17 @@ private Mono> getWithResponseAsync( * @return details of the specified snapshot on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { + private Mono getAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName) { return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Describe a snapshot - * - *

Get details of the specified snapshot. - * + * + * Get details of the specified snapshot. + * * @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. @@ -551,22 +456,17 @@ private Mono getAsync( * @return details of the specified snapshot along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Context context) { + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, context) .block(); } /** * Describe a snapshot - * - *

Get details of the specified snapshot. - * + * + * Get details of the specified snapshot. + * * @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. @@ -578,17 +478,17 @@ public Response getWithResponse( * @return details of the specified snapshot. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { + public SnapshotInner get(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName) { return getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE) .getValue(); } /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -601,24 +501,15 @@ public SnapshotInner get( * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body) { + private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, SnapshotInner body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -643,29 +534,17 @@ private Mono>> createWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -679,25 +558,15 @@ private Mono>> createWithResponseAsync( * @return snapshot of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body, - Context context) { + private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, SnapshotInner body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -722,26 +591,15 @@ private Mono>> createWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - this.client.getApiVersion(), - body, - accept, - context); + return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, accept, context); } /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -754,30 +612,19 @@ private Mono>> createWithResponseAsync( * @return the {@link PollerFlux} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SnapshotInner> beginCreateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body) { - Mono>> mono = - createWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SnapshotInner.class, - SnapshotInner.class, - this.client.getContext()); + private PollerFlux, SnapshotInner> beginCreateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String snapshotName, SnapshotInner body) { + Mono>> mono + = createWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SnapshotInner.class, SnapshotInner.class, this.client.getContext()); } /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -791,28 +638,21 @@ private PollerFlux, SnapshotInner> beginCreateAsync( * @return the {@link PollerFlux} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SnapshotInner> beginCreateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body, + private PollerFlux, SnapshotInner> beginCreateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String snapshotName, SnapshotInner body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SnapshotInner.class, SnapshotInner.class, context); + Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, poolName, + volumeName, snapshotName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SnapshotInner.class, SnapshotInner.class, context); } /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -825,23 +665,17 @@ private PollerFlux, SnapshotInner> beginCreateAsync( * @return the {@link SyncPoller} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SnapshotInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body) { - return this - .beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) + public SyncPoller, SnapshotInner> beginCreate(String resourceGroupName, + String accountName, String poolName, String volumeName, String snapshotName, SnapshotInner body) { + return this.beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) .getSyncPoller(); } /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -855,24 +689,18 @@ public SyncPoller, SnapshotInner> beginCreate( * @return the {@link SyncPoller} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SnapshotInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body, + public SyncPoller, SnapshotInner> beginCreate(String resourceGroupName, + String accountName, String poolName, String volumeName, String snapshotName, SnapshotInner body, Context context) { - return this - .beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) + return this.beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) .getSyncPoller(); } /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -885,23 +713,17 @@ public SyncPoller, SnapshotInner> beginCreate( * @return snapshot of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body) { - return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) - .last() + private Mono createAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, SnapshotInner body) { + return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -915,24 +737,17 @@ private Mono createAsync( * @return snapshot of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body, - Context context) { + private Mono createAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, SnapshotInner body, Context context) { return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -945,21 +760,16 @@ private Mono createAsync( * @return snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body) { + public SnapshotInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotInner body) { return createAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body).block(); } /** * Create a snapshot - * - *

Create the specified snapshot within the given volume. - * + * + * Create the specified snapshot within the given 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. @@ -973,22 +783,16 @@ public SnapshotInner create( * @return snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotInner body, - Context context) { + public SnapshotInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotInner body, Context context) { return createAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context).block(); } /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -1001,24 +805,15 @@ public SnapshotInner create( * @return snapshot of a Volume 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 snapshotName, - Object body) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, Object body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1041,29 +836,17 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -1077,25 +860,15 @@ private Mono>> updateWithResponseAsync( * @return snapshot of a Volume 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 snapshotName, - Object body, - Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, Object body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1118,26 +891,15 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - this.client.getApiVersion(), - body, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, accept, context); } /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -1150,30 +912,19 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SnapshotInner> beginUpdateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SnapshotInner.class, - SnapshotInner.class, - this.client.getContext()); + private PollerFlux, SnapshotInner> beginUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String snapshotName, Object body) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SnapshotInner.class, SnapshotInner.class, this.client.getContext()); } /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -1187,28 +938,20 @@ private PollerFlux, SnapshotInner> beginUpdateAsync( * @return the {@link PollerFlux} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SnapshotInner> beginUpdateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body, - Context context) { + private PollerFlux, SnapshotInner> beginUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String snapshotName, Object body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SnapshotInner.class, SnapshotInner.class, context); + Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, poolName, + volumeName, snapshotName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SnapshotInner.class, SnapshotInner.class, context); } /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -1221,23 +964,17 @@ private PollerFlux, SnapshotInner> beginUpdateAsync( * @return the {@link SyncPoller} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SnapshotInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body) { - return this - .beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) + public SyncPoller, SnapshotInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String snapshotName, Object body) { + return this.beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) .getSyncPoller(); } /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -1251,24 +988,17 @@ public SyncPoller, SnapshotInner> beginUpdate( * @return the {@link SyncPoller} for polling of snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SnapshotInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body, - Context context) { - return this - .beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) + public SyncPoller, SnapshotInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String snapshotName, Object body, Context context) { + return this.beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) .getSyncPoller(); } /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -1281,23 +1011,17 @@ public SyncPoller, SnapshotInner> beginUpdate( * @return snapshot of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, Object body) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -1311,24 +1035,17 @@ private Mono updateAsync( * @return snapshot of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body, - Context context) { + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, Object body, Context context) { return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -1341,21 +1058,16 @@ private Mono updateAsync( * @return snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body) { + public SnapshotInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Object body) { return updateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body).block(); } /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -1369,22 +1081,16 @@ public SnapshotInner update( * @return snapshot of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body, - Context context) { + public SnapshotInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Object body, Context context) { return updateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context).block(); } /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -1396,19 +1102,15 @@ public SnapshotInner update( * @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 snapshotName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1426,28 +1128,19 @@ private Mono>> deleteWithResponseAsync( if (snapshotName == null) { return Mono.error(new IllegalArgumentException("Parameter snapshotName 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, - snapshotName, - this.client.getApiVersion(), - context)) + context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -1460,24 +1153,15 @@ private Mono>> deleteWithResponseAsync( * @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 snapshotName, - Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1495,25 +1179,17 @@ private Mono>> deleteWithResponseAsync( if (snapshotName == null) { return Mono.error(new IllegalArgumentException("Parameter snapshotName 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, - snapshotName, - this.client.getApiVersion(), - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), accept, context); } /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -1525,21 +1201,19 @@ private Mono>> deleteWithResponseAsync( * @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 snapshotName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -1552,26 +1226,20 @@ private PollerFlux, Void> beginDeleteAsync( * @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 snapshotName, - Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -1583,18 +1251,17 @@ private PollerFlux, Void> beginDeleteAsync( * @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 snapshotName) { - return this - .beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName) { + return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName) .getSyncPoller(); } /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -1607,23 +1274,17 @@ public SyncPoller, Void> beginDelete( * @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 snapshotName, - Context context) { - return this - .beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, context) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, Context context) { + return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, context) .getSyncPoller(); } /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -1635,18 +1296,17 @@ public SyncPoller, Void> beginDelete( * @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 snapshotName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName) - .last() + private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -1659,23 +1319,17 @@ private Mono deleteAsync( * @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 snapshotName, - Context context) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Context context) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -1686,16 +1340,16 @@ private Mono deleteAsync( * @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 snapshotName) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName) { deleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).block(); } /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -1707,21 +1361,16 @@ public void delete( * @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 snapshotName, - Context context) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Context context) { deleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, context).block(); } /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -1734,24 +1383,15 @@ public void delete( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> restoreFilesWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body) { + private Mono>> restoreFilesWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, SnapshotRestoreFiles body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1774,29 +1414,19 @@ private Mono>> restoreFilesWithResponseAsync( } else { body.validate(); } + final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .restoreFiles( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - this.client.getApiVersion(), - body, - context)) + .withContext(context -> service.restoreFiles(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -1810,25 +1440,15 @@ private Mono>> restoreFilesWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> restoreFilesWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body, - Context context) { + private Mono>> restoreFilesWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, SnapshotRestoreFiles body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1851,26 +1471,17 @@ private Mono>> restoreFilesWithResponseAsync( } else { body.validate(); } + final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .restoreFiles( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - this.client.getApiVersion(), - body, - context); + return service.restoreFiles(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, snapshotName, this.client.getApiVersion(), body, accept, context); } /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -1883,26 +1494,19 @@ private Mono>> restoreFilesWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRestoreFilesAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body) { - Mono>> mono = - restoreFilesWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginRestoreFilesAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, SnapshotRestoreFiles body) { + Mono>> mono + = restoreFilesWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -1916,28 +1520,20 @@ private PollerFlux, Void> beginRestoreFilesAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRestoreFilesAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body, - Context context) { + private PollerFlux, Void> beginRestoreFilesAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, SnapshotRestoreFiles body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - restoreFilesWithResponseAsync( - resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = restoreFilesWithResponseAsync(resourceGroupName, accountName, poolName, + volumeName, snapshotName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -1950,23 +1546,17 @@ private PollerFlux, Void> beginRestoreFilesAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRestoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body) { - return this - .beginRestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) + public SyncPoller, Void> beginRestoreFiles(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, SnapshotRestoreFiles body) { + return this.beginRestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) .getSyncPoller(); } /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -1980,14 +1570,8 @@ public SyncPoller, Void> beginRestoreFiles( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRestoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body, - Context context) { + public SyncPoller, Void> beginRestoreFiles(String resourceGroupName, String accountName, + String poolName, String volumeName, String snapshotName, SnapshotRestoreFiles body, Context context) { return this .beginRestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) .getSyncPoller(); @@ -1995,9 +1579,9 @@ public SyncPoller, Void> beginRestoreFiles( /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -2010,23 +1594,17 @@ public SyncPoller, Void> beginRestoreFiles( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono restoreFilesAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body) { - return beginRestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) - .last() + private Mono restoreFilesAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, SnapshotRestoreFiles body) { + return beginRestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -2040,24 +1618,17 @@ private Mono restoreFilesAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono restoreFilesAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body, - Context context) { + private Mono restoreFilesAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, SnapshotRestoreFiles body, Context context) { return beginRestoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -2069,21 +1640,16 @@ private Mono restoreFilesAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void restoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body) { + public void restoreFiles(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotRestoreFiles body) { restoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body).block(); } /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -2096,14 +1662,8 @@ public void restoreFiles( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void restoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body, - Context context) { + public void restoreFiles(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotRestoreFiles body, Context context) { restoreFilesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context).block(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java index 41a09b710fe6..a7ae03c1f471 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java @@ -22,52 +22,42 @@ public final class SnapshotsImpl implements Snapshots { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - public SnapshotsImpl( - SnapshotsClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + public SnapshotsImpl(SnapshotsClient 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); + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + String volumeName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, poolName, volumeName); return Utils.mapPage(inner, inner1 -> new SnapshotImpl(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); + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, poolName, volumeName, context); return Utils.mapPage(inner, inner1 -> new SnapshotImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String snapshotName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, accountName, poolName, + volumeName, snapshotName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SnapshotImpl(inner.getValue(), this.manager())); } else { return null; } } - public Snapshot get( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { - SnapshotInner inner = - this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, snapshotName); + public Snapshot get(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName) { + SnapshotInner inner + = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, snapshotName); if (inner != null) { return new SnapshotImpl(inner, this.manager()); } else { @@ -75,15 +65,10 @@ public Snapshot get( } } - public Snapshot update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body) { - SnapshotInner inner = - this.serviceClient().update(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); + public Snapshot update(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Object body) { + SnapshotInner inner + = this.serviceClient().update(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); if (inner != null) { return new SnapshotImpl(inner, this.manager()); } else { @@ -91,18 +76,10 @@ public Snapshot update( } } - public Snapshot update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body, - Context context) { - SnapshotInner inner = - this - .serviceClient() - .update(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context); + public Snapshot update(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Object body, Context context) { + SnapshotInner inner = this.serviceClient().update(resourceGroupName, accountName, poolName, volumeName, + snapshotName, body, context); if (inner != null) { return new SnapshotImpl(inner, this.manager()); } else { @@ -110,124 +87,82 @@ public Snapshot update( } } - public void delete( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, snapshotName); } - public void delete( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Context context) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Context context) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); } - public void restoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body) { + public void restoreFiles(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotRestoreFiles body) { this.serviceClient().restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); } - public void restoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body, - Context context) { - this - .serviceClient() - .restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context); + public void restoreFiles(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotRestoreFiles body, Context context) { + this.serviceClient().restoreFiles(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, + context); } public Snapshot getById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String snapshotName = Utils.getValueFromIdByName(id, "snapshots"); if (snapshotName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); } - return this - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE) + return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String snapshotName = Utils.getValueFromIdByName(id, "snapshots"); if (snapshotName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); } return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); } @@ -235,40 +170,28 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String snapshotName = Utils.getValueFromIdByName(id, "snapshots"); if (snapshotName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); } this.delete(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE); } @@ -276,40 +199,28 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String snapshotName = Utils.getValueFromIdByName(id, "snapshots"); if (snapshotName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); } this.delete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); } 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/SubscriptionQuotaItemImpl.java index 3960f0d4352b..70b6ad3a4355 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/SubscriptionQuotaItemImpl.java @@ -13,8 +13,8 @@ public final class SubscriptionQuotaItemImpl implements SubscriptionQuotaItem { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - SubscriptionQuotaItemImpl( - SubscriptionQuotaItemInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + SubscriptionQuotaItemImpl(SubscriptionQuotaItemInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java index cd5e78e0d7ee..e839135d0b06 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java @@ -72,8 +72,8 @@ private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { private SubvolumePatchRequest updateBody; - public SubvolumeInfoImpl withExistingVolume( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public SubvolumeInfoImpl withExistingVolume(String resourceGroupName, String accountName, String poolName, + String volumeName) { this.resourceGroupName = resourceGroupName; this.accountName = accountName; this.poolName = poolName; @@ -82,28 +82,14 @@ public SubvolumeInfoImpl withExistingVolume( } public SubvolumeInfo create() { - this.innerObject = - serviceManager - .serviceClient() - .getSubvolumes() - .create( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - this.innerModel(), - Context.NONE); + this.innerObject = serviceManager.serviceClient().getSubvolumes().create(resourceGroupName, accountName, + poolName, volumeName, subvolumeName, this.innerModel(), Context.NONE); return this; } public SubvolumeInfo create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSubvolumes() - .create( - resourceGroupName, accountName, poolName, volumeName, subvolumeName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getSubvolumes().create(resourceGroupName, accountName, + poolName, volumeName, subvolumeName, this.innerModel(), context); return this; } @@ -119,25 +105,19 @@ public SubvolumeInfoImpl update() { } public SubvolumeInfo apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSubvolumes() - .update(resourceGroupName, accountName, poolName, volumeName, subvolumeName, updateBody, Context.NONE); + this.innerObject = serviceManager.serviceClient().getSubvolumes().update(resourceGroupName, accountName, + poolName, volumeName, subvolumeName, updateBody, Context.NONE); return this; } public SubvolumeInfo apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSubvolumes() - .update(resourceGroupName, accountName, poolName, volumeName, subvolumeName, updateBody, context); + this.innerObject = serviceManager.serviceClient().getSubvolumes().update(resourceGroupName, accountName, + poolName, volumeName, subvolumeName, updateBody, context); return this; } - SubvolumeInfoImpl( - SubvolumeInfoInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + SubvolumeInfoImpl(SubvolumeInfoInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); @@ -148,35 +128,26 @@ public SubvolumeInfo apply(Context context) { } public SubvolumeInfo refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSubvolumes() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSubvolumes() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, Context.NONE) + .getValue(); return this; } public SubvolumeInfo refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSubvolumes() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSubvolumes() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context).getValue(); return this; } public SubvolumeModel getMetadata() { - return serviceManager - .subvolumes() - .getMetadata(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + return serviceManager.subvolumes().getMetadata(resourceGroupName, accountName, poolName, volumeName, + subvolumeName); } public SubvolumeModel getMetadata(Context context) { - return serviceManager - .subvolumes() - .getMetadata(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); + return serviceManager.subvolumes().getMetadata(resourceGroupName, accountName, poolName, volumeName, + subvolumeName, context); } public SubvolumeInfoImpl withPath(String path) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java index cbe5bae7a943..0689baf30fc6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java @@ -13,8 +13,8 @@ public final class SubvolumeModelImpl implements SubvolumeModel { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - SubvolumeModelImpl( - SubvolumeModelInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + SubvolumeModelImpl(SubvolumeModelInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java index 8399800de61a..b346b9d8b2bb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java @@ -42,22 +42,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SubvolumesClient. */ +/** + * An instance of this class provides access to all the operations defined in SubvolumesClient. + */ public final class SubvolumesClientImpl implements SubvolumesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SubvolumesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of SubvolumesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SubvolumesClientImpl(NetAppManagementClientImpl client) { - this.service = - RestProxy.create(SubvolumesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(SubvolumesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -68,124 +74,86 @@ public final class SubvolumesClientImpl implements SubvolumesClient { @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface SubvolumesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVolume( - @HostParam("$host") String endpoint, + Mono> listByVolume(@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); + @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}/subvolumes/{subvolumeName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + 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("subvolumeName") String subvolumeName, - @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}/subvolumes/{subvolumeName}") - @ExpectedResponses({200, 201, 202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("subvolumeName") String subvolumeName, @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}/subvolumes/{subvolumeName}") + @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String endpoint, + Mono>> create(@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("subvolumeName") String subvolumeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SubvolumeInfoInner body, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") SubvolumeInfoInner 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}/subvolumes/{subvolumeName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, + 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("subvolumeName") String subvolumeName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SubvolumePatchRequest body, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") SubvolumePatchRequest body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + 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("subvolumeName") String subvolumeName, - @QueryParam("api-version") String apiVersion, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}/getMetadata") - @ExpectedResponses({200, 202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("subvolumeName") String subvolumeName, @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}/subvolumes/{subvolumeName}/getMetadata") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getMetadata( - @HostParam("$host") String endpoint, + Mono>> getMetadata(@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("subvolumeName") String subvolumeName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("subvolumeName") String subvolumeName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVolumeNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listByVolumeNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * List of all the subvolumes - * - *

Returns a list of the subvolumes in the volume. - * + * + * Returns a list of the subvolumes in 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. @@ -196,19 +164,15 @@ Mono> listByVolumeNext( * @return list of Subvolumes along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVolumeSinglePageAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono> listByVolumeSinglePageAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -225,36 +189,18 @@ private Mono> listByVolumeSinglePageAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByVolume( - 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)) + .withContext(context -> service.listByVolume(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())); } /** * List of all the subvolumes - * - *

Returns a list of the subvolumes in the volume. - * + * + * Returns a list of the subvolumes in 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. @@ -266,19 +212,15 @@ private Mono> listByVolumeSinglePageAsync( * @return list of Subvolumes along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVolumeSinglePageAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono> listByVolumeSinglePageAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -296,32 +238,17 @@ private Mono> listByVolumeSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByVolume( - 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)); + .listByVolume(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)); } /** * List of all the subvolumes - * - *

Returns a list of the subvolumes in the volume. - * + * + * Returns a list of the subvolumes in 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. @@ -332,18 +259,17 @@ private Mono> listByVolumeSinglePageAsync( * @return list of Subvolumes as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByVolumeAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return new PagedFlux<>( - () -> listByVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName), + private PagedFlux listByVolumeAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { + return new PagedFlux<>(() -> listByVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName), nextLink -> listByVolumeNextSinglePageAsync(nextLink)); } /** * List of all the subvolumes - * - *

Returns a list of the subvolumes in the volume. - * + * + * Returns a list of the subvolumes in 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. @@ -355,8 +281,8 @@ private PagedFlux listByVolumeAsync( * @return list of Subvolumes as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByVolumeAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private PagedFlux listByVolumeAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { return new PagedFlux<>( () -> listByVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName, context), nextLink -> listByVolumeNextSinglePageAsync(nextLink, context)); @@ -364,9 +290,9 @@ private PagedFlux listByVolumeAsync( /** * List of all the subvolumes - * - *

Returns a list of the subvolumes in the volume. - * + * + * Returns a list of the subvolumes in 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. @@ -377,16 +303,16 @@ private PagedFlux listByVolumeAsync( * @return list of Subvolumes as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName) { return new PagedIterable<>(listByVolumeAsync(resourceGroupName, accountName, poolName, volumeName)); } /** * List of all the subvolumes - * - *

Returns a list of the subvolumes in the volume. - * + * + * Returns a list of the subvolumes in 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. @@ -398,16 +324,16 @@ public PagedIterable listByVolume( * @return list of Subvolumes as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { return new PagedIterable<>(listByVolumeAsync(resourceGroupName, accountName, poolName, volumeName, context)); } /** * Get the path associated with the subvolumeName - * - *

Returns the path associated with the subvolumeName provided. - * + * + * Returns the path associated with the subvolumeName provided. + * * @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. @@ -419,19 +345,15 @@ public PagedIterable listByVolume( * @return subvolume Information properties 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 subvolumeName) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -452,27 +374,16 @@ private Mono> getWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - this.client.getApiVersion(), - accept, - context)) + context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the path associated with the subvolumeName - * - *

Returns the path associated with the subvolumeName provided. - * + * + * Returns the path associated with the subvolumeName provided. + * * @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. @@ -485,24 +396,15 @@ private Mono> getWithResponseAsync( * @return subvolume Information properties 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 subvolumeName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -522,25 +424,15 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, + poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, context); } /** * Get the path associated with the subvolumeName - * - *

Returns the path associated with the subvolumeName provided. - * + * + * Returns the path associated with the subvolumeName provided. + * * @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. @@ -552,17 +444,17 @@ private Mono> getWithResponseAsync( * @return subvolume Information properties on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + private Mono getAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName) { return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get the path associated with the subvolumeName - * - *

Returns the path associated with the subvolumeName provided. - * + * + * Returns the path associated with the subvolumeName provided. + * * @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. @@ -575,22 +467,17 @@ private Mono getAsync( * @return subvolume Information properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context) { + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) .block(); } /** * Get the path associated with the subvolumeName - * - *

Returns the path associated with the subvolumeName provided. - * + * + * Returns the path associated with the subvolumeName provided. + * * @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. @@ -602,17 +489,17 @@ public Response getWithResponse( * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SubvolumeInfoInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + public SubvolumeInfoInner get(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName) { return getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, Context.NONE) .getValue(); } /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -625,24 +512,15 @@ public SubvolumeInfoInner get( * @return subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body) { + private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName, SubvolumeInfoInner body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -667,29 +545,17 @@ private Mono>> createWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), body, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -703,25 +569,15 @@ private Mono>> createWithResponseAsync( * @return subvolume Information properties along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body, - Context context) { + private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName, SubvolumeInfoInner body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -746,26 +602,15 @@ private Mono>> createWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - this.client.getApiVersion(), - body, - accept, - context); + return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), body, accept, context); } /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -778,30 +623,19 @@ private Mono>> createWithResponseAsync( * @return the {@link PollerFlux} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SubvolumeInfoInner> beginCreateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body) { - Mono>> mono = - createWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SubvolumeInfoInner.class, - SubvolumeInfoInner.class, - this.client.getContext()); + private PollerFlux, SubvolumeInfoInner> beginCreateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumeInfoInner body) { + Mono>> mono + = createWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SubvolumeInfoInner.class, SubvolumeInfoInner.class, this.client.getContext()); } /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -815,28 +649,21 @@ private PollerFlux, SubvolumeInfoInner> beginCrea * @return the {@link PollerFlux} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SubvolumeInfoInner> beginCreateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body, + private PollerFlux, SubvolumeInfoInner> beginCreateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumeInfoInner body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SubvolumeInfoInner.class, SubvolumeInfoInner.class, context); + Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, poolName, + volumeName, subvolumeName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SubvolumeInfoInner.class, SubvolumeInfoInner.class, context); } /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -849,23 +676,17 @@ private PollerFlux, SubvolumeInfoInner> beginCrea * @return the {@link SyncPoller} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SubvolumeInfoInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body) { - return this - .beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body) + public SyncPoller, SubvolumeInfoInner> beginCreate(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumeInfoInner body) { + return this.beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body) .getSyncPoller(); } /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -879,24 +700,18 @@ public SyncPoller, SubvolumeInfoInner> beginCreat * @return the {@link SyncPoller} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SubvolumeInfoInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body, + public SyncPoller, SubvolumeInfoInner> beginCreate(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumeInfoInner body, Context context) { - return this - .beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context) + return this.beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context) .getSyncPoller(); } /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -909,23 +724,17 @@ public SyncPoller, SubvolumeInfoInner> beginCreat * @return subvolume Information properties on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body) { - return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body) - .last() + private Mono createAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, SubvolumeInfoInner body) { + return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -939,24 +748,17 @@ private Mono createAsync( * @return subvolume Information properties on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body, - Context context) { + private Mono createAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, SubvolumeInfoInner body, Context context) { return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -969,21 +771,16 @@ private Mono createAsync( * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SubvolumeInfoInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body) { + public SubvolumeInfoInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, SubvolumeInfoInner body) { return createAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body).block(); } /** * Create or clone a new subvolume - * - *

Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. - * + * + * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath. + * * @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. @@ -997,22 +794,16 @@ public SubvolumeInfoInner create( * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SubvolumeInfoInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumeInfoInner body, - Context context) { + public SubvolumeInfoInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, SubvolumeInfoInner body, Context context) { return createAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context).block(); } /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -1025,24 +816,15 @@ public SubvolumeInfoInner create( * @return subvolume Information properties 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 subvolumeName, - SubvolumePatchRequest body) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName, SubvolumePatchRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1067,29 +849,17 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), body, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -1103,25 +873,15 @@ private Mono>> updateWithResponseAsync( * @return subvolume Information properties 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 subvolumeName, - SubvolumePatchRequest body, - Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName, SubvolumePatchRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1146,26 +906,15 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - this.client.getApiVersion(), - body, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), body, accept, context); } /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -1178,30 +927,19 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SubvolumeInfoInner> beginUpdateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SubvolumeInfoInner.class, - SubvolumeInfoInner.class, - this.client.getContext()); + private PollerFlux, SubvolumeInfoInner> beginUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumePatchRequest body) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SubvolumeInfoInner.class, SubvolumeInfoInner.class, this.client.getContext()); } /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -1215,28 +953,21 @@ private PollerFlux, SubvolumeInfoInner> beginUpda * @return the {@link PollerFlux} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SubvolumeInfoInner> beginUpdateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body, + private PollerFlux, SubvolumeInfoInner> beginUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumePatchRequest body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SubvolumeInfoInner.class, SubvolumeInfoInner.class, context); + Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, poolName, + volumeName, subvolumeName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SubvolumeInfoInner.class, SubvolumeInfoInner.class, context); } /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -1249,23 +980,17 @@ private PollerFlux, SubvolumeInfoInner> beginUpda * @return the {@link SyncPoller} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SubvolumeInfoInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body) { - return this - .beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body) + public SyncPoller, SubvolumeInfoInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumePatchRequest body) { + return this.beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body) .getSyncPoller(); } /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -1279,24 +1004,18 @@ public SyncPoller, SubvolumeInfoInner> beginUpdat * @return the {@link SyncPoller} for polling of subvolume Information properties. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SubvolumeInfoInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body, + public SyncPoller, SubvolumeInfoInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, SubvolumePatchRequest body, Context context) { - return this - .beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context) + return this.beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context) .getSyncPoller(); } /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -1309,23 +1028,17 @@ public SyncPoller, SubvolumeInfoInner> beginUpdat * @return subvolume Information properties on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, SubvolumePatchRequest body) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -1339,24 +1052,17 @@ private Mono updateAsync( * @return subvolume Information properties on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body, - Context context) { + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, SubvolumePatchRequest body, Context context) { return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -1369,21 +1075,16 @@ private Mono updateAsync( * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SubvolumeInfoInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body) { + public SubvolumeInfoInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, SubvolumePatchRequest body) { return updateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body).block(); } /** * Update a subvolume - * - *

Patch a subvolume. - * + * + * Patch a subvolume. + * * @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. @@ -1397,22 +1098,16 @@ public SubvolumeInfoInner update( * @return subvolume Information properties. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SubvolumeInfoInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - SubvolumePatchRequest body, - Context context) { + public SubvolumeInfoInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, SubvolumePatchRequest body, Context context) { return updateAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, body, context).block(); } /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -1424,19 +1119,15 @@ public SubvolumeInfoInner update( * @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 subvolumeName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1454,28 +1145,19 @@ private Mono>> deleteWithResponseAsync( if (subvolumeName == null) { return Mono.error(new IllegalArgumentException("Parameter subvolumeName 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, - subvolumeName, - this.client.getApiVersion(), - context)) + context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -1488,24 +1170,15 @@ private Mono>> deleteWithResponseAsync( * @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 subvolumeName, - Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1523,25 +1196,17 @@ private Mono>> deleteWithResponseAsync( if (subvolumeName == null) { return Mono.error(new IllegalArgumentException("Parameter subvolumeName 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, - subvolumeName, - this.client.getApiVersion(), - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, context); } /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -1553,21 +1218,19 @@ private Mono>> deleteWithResponseAsync( * @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 subvolumeName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -1580,26 +1243,20 @@ private PollerFlux, Void> beginDeleteAsync( * @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 subvolumeName, - Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -1611,18 +1268,17 @@ private PollerFlux, Void> beginDeleteAsync( * @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 subvolumeName) { - return this - .beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName) { + return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName) .getSyncPoller(); } /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -1635,23 +1291,17 @@ public SyncPoller, Void> beginDelete( * @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 subvolumeName, - Context context) { - return this - .beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, Context context) { + return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) .getSyncPoller(); } /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -1663,18 +1313,17 @@ public SyncPoller, Void> beginDelete( * @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 subvolumeName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName) - .last() + private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -1687,23 +1336,17 @@ private Mono deleteAsync( * @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 subvolumeName, - Context context) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, Context context) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -1714,16 +1357,16 @@ private Mono deleteAsync( * @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 subvolumeName) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName) { deleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName).block(); } /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -1735,21 +1378,16 @@ public void delete( * @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 subvolumeName, - Context context) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, Context context) { deleteAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context).block(); } /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -1761,19 +1399,15 @@ public void delete( * @return details of the specified subvolume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> getMetadataWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + private Mono>> getMetadataWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1793,28 +1427,17 @@ private Mono>> getMetadataWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .getMetadata( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.getMetadata(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -1827,24 +1450,15 @@ private Mono>> getMetadataWithResponseAsync( * @return details of the specified subvolume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> getMetadataWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context) { + private Mono>> getMetadataWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String subvolumeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1864,25 +1478,15 @@ private Mono>> getMetadataWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .getMetadata( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - this.client.getApiVersion(), - accept, - context); + return service.getMetadata(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, subvolumeName, this.client.getApiVersion(), accept, context); } /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -1896,23 +1500,17 @@ private Mono>> getMetadataWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SubvolumeModelInner> beginGetMetadataAsync( String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { - Mono>> mono = - getMetadataWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SubvolumeModelInner.class, - SubvolumeModelInner.class, - this.client.getContext()); + Mono>> mono + = getMetadataWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SubvolumeModelInner.class, SubvolumeModelInner.class, this.client.getContext()); } /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -1926,26 +1524,20 @@ private PollerFlux, SubvolumeModelInner> beginGe */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SubvolumeModelInner> beginGetMetadataAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, + String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - getMetadataWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SubvolumeModelInner.class, SubvolumeModelInner.class, context); + Mono>> mono = getMetadataWithResponseAsync(resourceGroupName, accountName, poolName, + volumeName, subvolumeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SubvolumeModelInner.class, SubvolumeModelInner.class, context); } /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -1957,18 +1549,17 @@ private PollerFlux, SubvolumeModelInner> beginGe * @return the {@link SyncPoller} for polling of details of the specified subvolume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SubvolumeModelInner> beginGetMetadata( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { - return this - .beginGetMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName) + public SyncPoller, SubvolumeModelInner> beginGetMetadata(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName) { + return this.beginGetMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName) .getSyncPoller(); } /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -1981,23 +1572,17 @@ public SyncPoller, SubvolumeModelInner> beginGet * @return the {@link SyncPoller} for polling of details of the specified subvolume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SubvolumeModelInner> beginGetMetadata( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context) { - return this - .beginGetMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) + public SyncPoller, SubvolumeModelInner> beginGetMetadata(String resourceGroupName, + String accountName, String poolName, String volumeName, String subvolumeName, Context context) { + return this.beginGetMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) .getSyncPoller(); } /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -2009,18 +1594,17 @@ public SyncPoller, SubvolumeModelInner> beginGet * @return details of the specified subvolume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getMetadataAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { - return beginGetMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName) - .last() + private Mono getMetadataAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName) { + return beginGetMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -2033,23 +1617,17 @@ private Mono getMetadataAsync( * @return details of the specified subvolume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getMetadataAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context) { + private Mono getMetadataAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, Context context) { return beginGetMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -2061,16 +1639,16 @@ private Mono getMetadataAsync( * @return details of the specified subvolume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SubvolumeModelInner getMetadata( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + public SubvolumeModelInner getMetadata(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName) { return getMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName).block(); } /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -2083,21 +1661,17 @@ public SubvolumeModelInner getMetadata( * @return details of the specified subvolume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SubvolumeModelInner getMetadata( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context) { + public SubvolumeModelInner getMetadata(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, Context context) { return getMetadataAsync(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context).block(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -2109,31 +1683,23 @@ private Mono> listByVolumeNextSinglePageAsync( 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.")); + 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.listByVolumeNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>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 - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -2146,23 +1712,13 @@ private Mono> listByVolumeNextSinglePageAsync( 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.")); + 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 - .listByVolumeNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByVolumeNext(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/SubvolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java index bebea0d77813..3b06055385ef 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java @@ -23,52 +23,42 @@ public final class SubvolumesImpl implements Subvolumes { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - public SubvolumesImpl( - SubvolumesClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + public SubvolumesImpl(SubvolumesClient innerClient, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName) { - PagedIterable inner = - this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName); + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName) { + PagedIterable inner + = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName); return Utils.mapPage(inner, inner1 -> new SubvolumeInfoImpl(inner1, this.manager())); } - public PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - PagedIterable inner = - this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName, context); + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + PagedIterable inner + = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName, context); return Utils.mapPage(inner, inner1 -> new SubvolumeInfoImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, accountName, + poolName, volumeName, subvolumeName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SubvolumeInfoImpl(inner.getValue(), this.manager())); } else { return null; } } - public SubvolumeInfo get( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { - SubvolumeInfoInner inner = - this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + public SubvolumeInfo get(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName) { + SubvolumeInfoInner inner + = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, subvolumeName); if (inner != null) { return new SubvolumeInfoImpl(inner, this.manager()); } else { @@ -76,25 +66,20 @@ public SubvolumeInfo get( } } - public void delete( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, subvolumeName); } - public void delete( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, Context context) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); } - public SubvolumeModel getMetadata( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName) { - SubvolumeModelInner inner = - this.serviceClient().getMetadata(resourceGroupName, accountName, poolName, volumeName, subvolumeName); + public SubvolumeModel getMetadata(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName) { + SubvolumeModelInner inner + = this.serviceClient().getMetadata(resourceGroupName, accountName, poolName, volumeName, subvolumeName); if (inner != null) { return new SubvolumeModelImpl(inner, this.manager()); } else { @@ -102,17 +87,10 @@ public SubvolumeModel getMetadata( } } - public SubvolumeModel getMetadata( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context) { - SubvolumeModelInner inner = - this - .serviceClient() - .getMetadata(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); + public SubvolumeModel getMetadata(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, Context context) { + SubvolumeModelInner inner = this.serviceClient().getMetadata(resourceGroupName, accountName, poolName, + volumeName, subvolumeName, context); if (inner != null) { return new SubvolumeModelImpl(inner, this.manager()); } else { @@ -123,83 +101,58 @@ public SubvolumeModel getMetadata( public SubvolumeInfo getById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); if (subvolumeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); } - return this - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, Context.NONE) + return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); if (subvolumeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); } return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); } @@ -207,40 +160,28 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); if (subvolumeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); } this.delete(resourceGroupName, accountName, poolName, volumeName, subvolumeName, Context.NONE); } @@ -248,40 +189,28 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); if (subvolumeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); } this.delete(resourceGroupName, accountName, poolName, volumeName, subvolumeName, context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/Utils.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/Utils.java index 9b4e9994dbb0..e57610e622a0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/Utils.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/Utils.java @@ -41,6 +41,7 @@ static String getValueFromIdByName(String id, String name) { } } return null; + } static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) { @@ -74,6 +75,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri } } return null; + } static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) { @@ -87,26 +89,17 @@ private static final class PagedIterableImpl extends PagedIterable { private final Function, PagedResponse> pageMapper; private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) { - super( - PagedFlux - .create( - () -> - (continuationToken, pageSize) -> - Flux.fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper))))); + super(PagedFlux.create(() -> (continuationToken, pageSize) -> Flux + .fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper))))); this.pagedIterable = pagedIterable; this.mapper = mapper; this.pageMapper = getPageMapper(mapper); } private static Function, PagedResponse> getPageMapper(Function mapper) { - return page -> - new PagedResponseBase( - page.getRequest(), - page.getStatusCode(), - page.getHeaders(), - page.getElements().stream().map(mapper).collect(Collectors.toList()), - page.getContinuationToken(), - null); + return page -> new PagedResponseBase(page.getRequest(), page.getStatusCode(), page.getHeaders(), + page.getElements().stream().map(mapper).collect(Collectors.toList()), page.getContinuationToken(), + null); } @Override diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java index ce232efb3fb5..fd96ea6e0208 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java @@ -18,8 +18,8 @@ public final class VolumeGroupDetailsImpl implements VolumeGroupDetails, VolumeG private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - VolumeGroupDetailsImpl( - VolumeGroupDetailsInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + VolumeGroupDetailsImpl(VolumeGroupDetailsInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } @@ -86,20 +86,14 @@ public VolumeGroupDetailsImpl withExistingNetAppAccount(String resourceGroupName } public VolumeGroupDetails create() { - this.innerObject = - serviceManager - .serviceClient() - .getVolumeGroups() - .create(resourceGroupName, accountName, volumeGroupName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getVolumeGroups().create(resourceGroupName, accountName, + volumeGroupName, this.innerModel(), Context.NONE); return this; } public VolumeGroupDetails create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getVolumeGroups() - .create(resourceGroupName, accountName, volumeGroupName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getVolumeGroups().create(resourceGroupName, accountName, + volumeGroupName, this.innerModel(), context); return this; } @@ -110,22 +104,14 @@ public VolumeGroupDetails create(Context context) { } public VolumeGroupDetails refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getVolumeGroups() - .getWithResponse(resourceGroupName, accountName, volumeGroupName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getVolumeGroups() + .getWithResponse(resourceGroupName, accountName, volumeGroupName, Context.NONE).getValue(); return this; } public VolumeGroupDetails refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getVolumeGroups() - .getWithResponse(resourceGroupName, accountName, volumeGroupName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getVolumeGroups() + .getWithResponse(resourceGroupName, accountName, volumeGroupName, context).getValue(); return this; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java index c90e079de1dc..93dd5c63a1b9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java @@ -39,97 +39,84 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in VolumeGroupsClient. */ +/** + * An instance of this class provides access to all the operations defined in VolumeGroupsClient. + */ public final class VolumeGroupsClientImpl implements VolumeGroupsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final VolumeGroupsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of VolumeGroupsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ VolumeGroupsClientImpl(NetAppManagementClientImpl client) { - this.service = - RestProxy.create(VolumeGroupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(VolumeGroupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for NetAppManagementClientVolumeGroups to be used by the proxy service to - * perform REST calls. + * The interface defining all the services for NetAppManagementClientVolumeGroups to be used by the proxy service + * to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface VolumeGroupsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByNetAppAccount( - @HostParam("$host") String endpoint, + Mono> listByNetAppAccount(@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); + @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}/volumeGroups/{volumeGroupName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("volumeGroupName") String volumeGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("volumeGroupName") String volumeGroupName, @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}/volumeGroups/{volumeGroupName}") - @ExpectedResponses({201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") + @ExpectedResponses({ 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String endpoint, + Mono>> create(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("volumeGroupName") String volumeGroupName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VolumeGroupDetailsInner body, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("volumeGroupName") String volumeGroupName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") VolumeGroupDetailsInner body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + Mono>> delete(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("volumeGroupName") String volumeGroupName, - @QueryParam("api-version") String apiVersion, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("volumeGroupName") String volumeGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); } /** * Describe all volume groups - * - *

List all volume groups for given account. - * + * + * List all volume groups for given account. + * * @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. @@ -138,19 +125,15 @@ Mono>> delete( * @return list of volume group resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByNetAppAccountSinglePageAsync( - String resourceGroupName, String accountName) { + private Mono> listByNetAppAccountSinglePageAsync(String resourceGroupName, + String accountName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -162,28 +145,18 @@ private Mono> listByNetAppAccountSinglePageAsync final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .listByNetAppAccount( - 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(), null, null)) + context -> service.listByNetAppAccount(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(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Describe all volume groups - * - *

List all volume groups for given account. - * + * + * List all volume groups for given account. + * * @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. @@ -193,19 +166,15 @@ private Mono> listByNetAppAccountSinglePageAsync * @return list of volume group resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByNetAppAccountSinglePageAsync( - String resourceGroupName, String accountName, Context context) { + private Mono> listByNetAppAccountSinglePageAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -217,25 +186,17 @@ private Mono> listByNetAppAccountSinglePageAsync final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByNetAppAccount( - 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(), null, null)); + .listByNetAppAccount(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(), null, null)); } /** * Describe all volume groups - * - *

List all volume groups for given account. - * + * + * List all volume groups for given account. + * * @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. @@ -250,9 +211,9 @@ private PagedFlux listByNetAppAccountAsync(String resourceGrou /** * Describe all volume groups - * - *

List all volume groups for given account. - * + * + * List all volume groups for given account. + * * @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. @@ -262,16 +223,16 @@ private PagedFlux listByNetAppAccountAsync(String resourceGrou * @return list of volume group resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByNetAppAccountAsync( - String resourceGroupName, String accountName, Context context) { + private PagedFlux listByNetAppAccountAsync(String resourceGroupName, String accountName, + Context context) { return new PagedFlux<>(() -> listByNetAppAccountSinglePageAsync(resourceGroupName, accountName, context)); } /** * Describe all volume groups - * - *

List all volume groups for given account. - * + * + * List all volume groups for given account. + * * @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. @@ -286,9 +247,9 @@ public PagedIterable listByNetAppAccount(String resourceGroupN /** * Describe all volume groups - * - *

List all volume groups for given account. - * + * + * List all volume groups for given account. + * * @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. @@ -298,39 +259,35 @@ public PagedIterable listByNetAppAccount(String resourceGroupN * @return list of volume group resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByNetAppAccount( - String resourceGroupName, String accountName, Context context) { + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, + Context context) { return new PagedIterable<>(listByNetAppAccountAsync(resourceGroupName, accountName, context)); } /** * Describe a Volume Group - * - *

Get details of the specified volume group. - * + * + * Get details of the specified volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. * @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 details of the specified volume group along with {@link Response} on successful completion of {@link - * Mono}. + * @return details of the specified volume group along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String accountName, String volumeGroupName) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String volumeGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -345,26 +302,16 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - volumeGroupName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, volumeGroupName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Describe a Volume Group - * - *

Get details of the specified volume group. - * + * + * Get details of the specified volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -372,23 +319,19 @@ private Mono> getWithResponseAsync( * @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 details of the specified volume group along with {@link Response} on successful completion of {@link - * Mono}. + * @return details of the specified volume group along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String accountName, String volumeGroupName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String volumeGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -403,23 +346,15 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - volumeGroupName, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, + volumeGroupName, this.client.getApiVersion(), accept, context); } /** * Describe a Volume Group - * - *

Get details of the specified volume group. - * + * + * Get details of the specified volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -429,17 +364,17 @@ private Mono> getWithResponseAsync( * @return details of the specified volume group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String accountName, String volumeGroupName) { + private Mono getAsync(String resourceGroupName, String accountName, + String volumeGroupName) { return getWithResponseAsync(resourceGroupName, accountName, volumeGroupName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Describe a Volume Group - * - *

Get details of the specified volume group. - * + * + * Get details of the specified volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -450,16 +385,16 @@ private Mono getAsync( * @return details of the specified volume group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String volumeGroupName, Context context) { + public Response getWithResponse(String resourceGroupName, String accountName, + String volumeGroupName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, volumeGroupName, context).block(); } /** * Describe a Volume Group - * - *

Get details of the specified volume group. - * + * + * Get details of the specified volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -477,9 +412,9 @@ public VolumeGroupDetailsInner get(String resourceGroupName, String accountName, * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -490,19 +425,15 @@ public VolumeGroupDetailsInner get(String resourceGroupName, String accountName, * @return volume group resource for create along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body) { + private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, + String volumeGroupName, VolumeGroupDetailsInner body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -522,19 +453,8 @@ private Mono>> createWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - volumeGroupName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, volumeGroupName, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -542,9 +462,9 @@ private Mono>> createWithResponseAsync( * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -556,23 +476,15 @@ private Mono>> createWithResponseAsync( * @return volume group resource for create along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String accountName, - String volumeGroupName, - VolumeGroupDetailsInner body, - Context context) { + private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, + String volumeGroupName, VolumeGroupDetailsInner body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -592,26 +504,17 @@ private Mono>> createWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - volumeGroupName, - this.client.getApiVersion(), - body, - accept, - context); + return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, volumeGroupName, this.client.getApiVersion(), body, accept, context); } /** * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -624,25 +527,20 @@ private Mono>> createWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeGroupDetailsInner> beginCreateAsync( String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body) { - Mono>> mono = - createWithResponseAsync(resourceGroupName, accountName, volumeGroupName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - VolumeGroupDetailsInner.class, - VolumeGroupDetailsInner.class, - this.client.getContext()); + Mono>> mono + = createWithResponseAsync(resourceGroupName, accountName, volumeGroupName, body); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), VolumeGroupDetailsInner.class, VolumeGroupDetailsInner.class, + this.client.getContext()); } /** * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -655,31 +553,22 @@ private PollerFlux, VolumeGroupDetailsInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeGroupDetailsInner> beginCreateAsync( - String resourceGroupName, - String accountName, - String volumeGroupName, - VolumeGroupDetailsInner body, + String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createWithResponseAsync(resourceGroupName, accountName, volumeGroupName, body, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - VolumeGroupDetailsInner.class, - VolumeGroupDetailsInner.class, - context); + Mono>> mono + = createWithResponseAsync(resourceGroupName, accountName, volumeGroupName, body, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), VolumeGroupDetailsInner.class, VolumeGroupDetailsInner.class, context); } /** * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -699,9 +588,9 @@ public SyncPoller, VolumeGroupDetailsInner> * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -714,10 +603,7 @@ public SyncPoller, VolumeGroupDetailsInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeGroupDetailsInner> beginCreate( - String resourceGroupName, - String accountName, - String volumeGroupName, - VolumeGroupDetailsInner body, + String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body, Context context) { return this.beginCreateAsync(resourceGroupName, accountName, volumeGroupName, body, context).getSyncPoller(); } @@ -726,9 +612,9 @@ public SyncPoller, VolumeGroupDetailsInner> * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -739,10 +625,9 @@ public SyncPoller, VolumeGroupDetailsInner> * @return volume group resource for create on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body) { - return beginCreateAsync(resourceGroupName, accountName, volumeGroupName, body) - .last() + private Mono createAsync(String resourceGroupName, String accountName, + String volumeGroupName, VolumeGroupDetailsInner body) { + return beginCreateAsync(resourceGroupName, accountName, volumeGroupName, body).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -750,9 +635,9 @@ private Mono createAsync( * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -764,14 +649,9 @@ private Mono createAsync( * @return volume group resource for create on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String accountName, - String volumeGroupName, - VolumeGroupDetailsInner body, - Context context) { - return beginCreateAsync(resourceGroupName, accountName, volumeGroupName, body, context) - .last() + private Mono createAsync(String resourceGroupName, String accountName, + String volumeGroupName, VolumeGroupDetailsInner body, Context context) { + return beginCreateAsync(resourceGroupName, accountName, volumeGroupName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -779,9 +659,9 @@ private Mono createAsync( * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -792,8 +672,8 @@ private Mono createAsync( * @return volume group resource for create. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeGroupDetailsInner create( - String resourceGroupName, String accountName, String volumeGroupName, VolumeGroupDetailsInner body) { + public VolumeGroupDetailsInner create(String resourceGroupName, String accountName, String volumeGroupName, + VolumeGroupDetailsInner body) { return createAsync(resourceGroupName, accountName, volumeGroupName, body).block(); } @@ -801,9 +681,9 @@ public VolumeGroupDetailsInner create( * Create the specified volume group and volumes. Creating volume group will create all the volumes specified in * request body implicitly. Once volumes are created using volume group, those will be treated as regular volumes * thereafter. - * - *

Create a volume group along with specified volumes. - * + * + * Create a volume group along with specified volumes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -815,20 +695,16 @@ public VolumeGroupDetailsInner create( * @return volume group resource for create. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeGroupDetailsInner create( - String resourceGroupName, - String accountName, - String volumeGroupName, - VolumeGroupDetailsInner body, - Context context) { + public VolumeGroupDetailsInner create(String resourceGroupName, String accountName, String volumeGroupName, + VolumeGroupDetailsInner body, Context context) { return createAsync(resourceGroupName, accountName, volumeGroupName, body, context).block(); } /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -838,19 +714,15 @@ public VolumeGroupDetailsInner create( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String accountName, String volumeGroupName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String volumeGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -863,26 +735,18 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter volumeGroupName 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, - volumeGroupName, - this.client.getApiVersion(), - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, volumeGroupName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -893,19 +757,15 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String accountName, String volumeGroupName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String volumeGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -918,23 +778,17 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter volumeGroupName 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, - volumeGroupName, - this.client.getApiVersion(), - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, volumeGroupName, this.client.getApiVersion(), accept, context); } /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -944,21 +798,19 @@ private Mono>> deleteWithResponseAsync( * @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 volumeGroupName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, volumeGroupName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String volumeGroupName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, volumeGroupName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -969,21 +821,20 @@ private PollerFlux, Void> beginDeleteAsync( * @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 volumeGroupName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String volumeGroupName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, volumeGroupName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, volumeGroupName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -993,16 +844,16 @@ private PollerFlux, Void> beginDeleteAsync( * @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 volumeGroupName) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String volumeGroupName) { return this.beginDeleteAsync(resourceGroupName, accountName, volumeGroupName).getSyncPoller(); } /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -1013,16 +864,16 @@ public SyncPoller, Void> beginDelete( * @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 volumeGroupName, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String volumeGroupName, Context context) { return this.beginDeleteAsync(resourceGroupName, accountName, volumeGroupName, context).getSyncPoller(); } /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -1033,16 +884,15 @@ public SyncPoller, Void> beginDelete( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String volumeGroupName) { - return beginDeleteAsync(resourceGroupName, accountName, volumeGroupName) - .last() + return beginDeleteAsync(resourceGroupName, accountName, volumeGroupName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -1053,18 +903,17 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String accountName, String volumeGroupName, Context context) { - return beginDeleteAsync(resourceGroupName, accountName, volumeGroupName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String accountName, String volumeGroupName, + Context context) { + return beginDeleteAsync(resourceGroupName, accountName, volumeGroupName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -1079,9 +928,9 @@ public void delete(String resourceGroupName, String accountName, String volumeGr /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java index e77b6ef18517..7060fa97463e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java @@ -23,34 +23,31 @@ public final class VolumeGroupsImpl implements VolumeGroups { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - public VolumeGroupsImpl( - VolumeGroupsClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + public VolumeGroupsImpl(VolumeGroupsClient innerClient, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName) { - PagedIterable inner = - this.serviceClient().listByNetAppAccount(resourceGroupName, accountName); + PagedIterable inner + = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName); return Utils.mapPage(inner, inner1 -> new VolumeGroupImpl(inner1, this.manager())); } - public PagedIterable listByNetAppAccount( - String resourceGroupName, String accountName, Context context) { - PagedIterable inner = - this.serviceClient().listByNetAppAccount(resourceGroupName, accountName, context); + public PagedIterable listByNetAppAccount(String resourceGroupName, String accountName, + Context context) { + PagedIterable inner + = this.serviceClient().listByNetAppAccount(resourceGroupName, accountName, context); return Utils.mapPage(inner, inner1 -> new VolumeGroupImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String accountName, String volumeGroupName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, accountName, volumeGroupName, context); + public Response getWithResponse(String resourceGroupName, String accountName, + String volumeGroupName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, volumeGroupName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new VolumeGroupDetailsImpl(inner.getValue(), this.manager())); } else { return null; @@ -77,26 +74,18 @@ public void delete(String resourceGroupName, String accountName, String volumeGr public VolumeGroupDetails getById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); if (volumeGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); } return this.getWithResponse(resourceGroupName, accountName, volumeGroupName, Context.NONE).getValue(); } @@ -104,26 +93,18 @@ public VolumeGroupDetails getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); if (volumeGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); } return this.getWithResponse(resourceGroupName, accountName, volumeGroupName, context); } @@ -131,26 +112,18 @@ public Response getByIdWithResponse(String id, Context conte public void deleteById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); if (volumeGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); } this.delete(resourceGroupName, accountName, volumeGroupName, Context.NONE); } @@ -158,26 +131,18 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); if (volumeGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); } this.delete(resourceGroupName, accountName, volumeGroupName, context); } 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 87caf1494954..38beff66cf55 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 @@ -363,20 +363,14 @@ public VolumeImpl withExistingCapacityPool(String resourceGroupName, String acco } public Volume create() { - this.innerObject = - serviceManager - .serviceClient() - .getVolumes() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getVolumes().createOrUpdate(resourceGroupName, accountName, + poolName, volumeName, this.innerModel(), Context.NONE); return this; } public Volume create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getVolumes() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getVolumes().createOrUpdate(resourceGroupName, accountName, + poolName, volumeName, this.innerModel(), context); return this; } @@ -392,20 +386,14 @@ public VolumeImpl update() { } public Volume apply() { - this.innerObject = - serviceManager - .serviceClient() - .getVolumes() - .update(resourceGroupName, accountName, poolName, volumeName, updateBody, Context.NONE); + this.innerObject = serviceManager.serviceClient().getVolumes().update(resourceGroupName, accountName, poolName, + volumeName, updateBody, Context.NONE); return this; } public Volume apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getVolumes() - .update(resourceGroupName, accountName, poolName, volumeName, updateBody, context); + this.innerObject = serviceManager.serviceClient().getVolumes().update(resourceGroupName, accountName, poolName, + volumeName, updateBody, context); return this; } @@ -419,22 +407,14 @@ public Volume apply(Context context) { } public Volume refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getVolumes() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getVolumes() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE).getValue(); return this; } public Volume refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getVolumes() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getVolumes() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, context).getValue(); return this; } @@ -443,9 +423,8 @@ public Volume populateAvailabilityZone() { } public Volume populateAvailabilityZone(Context context) { - return serviceManager - .volumes() - .populateAvailabilityZone(resourceGroupName, accountName, poolName, volumeName, context); + return serviceManager.volumes().populateAvailabilityZone(resourceGroupName, accountName, poolName, volumeName, + context); } public void revert(VolumeRevert body) { @@ -473,16 +452,14 @@ public void breakFileLocks(BreakFileLocksRequest body, Context context) { } public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListForLdapUserRequest body) { - return serviceManager - .volumes() - .listGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body); + return serviceManager.volumes().listGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, + volumeName, body); } - public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( - GetGroupIdListForLdapUserRequest body, Context context) { - return serviceManager - .volumes() - .listGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body, context); + public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListForLdapUserRequest body, + Context context) { + return serviceManager.volumes().listGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, + volumeName, body, context); } public void breakReplication() { @@ -498,9 +475,8 @@ public void reestablishReplication(ReestablishReplicationRequest body) { } public void reestablishReplication(ReestablishReplicationRequest body, Context context) { - serviceManager - .volumes() - .reestablishReplication(resourceGroupName, accountName, poolName, volumeName, body, context); + serviceManager.volumes().reestablishReplication(resourceGroupName, accountName, poolName, volumeName, body, + context); } public PagedIterable listReplications() { @@ -532,9 +508,8 @@ public void authorizeReplication(AuthorizeRequest body) { } public void authorizeReplication(AuthorizeRequest body, Context context) { - serviceManager - .volumes() - .authorizeReplication(resourceGroupName, accountName, poolName, volumeName, body, context); + serviceManager.volumes().authorizeReplication(resourceGroupName, accountName, poolName, volumeName, body, + context); } public void reInitializeReplication() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java index 676f3d12aa53..49548a6ebf17 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java @@ -97,8 +97,8 @@ private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { private VolumeQuotaRulePatch updateBody; - public VolumeQuotaRuleImpl withExistingVolume( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public VolumeQuotaRuleImpl withExistingVolume(String resourceGroupName, String accountName, String poolName, + String volumeName) { this.resourceGroupName = resourceGroupName; this.accountName = accountName; this.poolName = poolName; @@ -107,34 +107,14 @@ public VolumeQuotaRuleImpl withExistingVolume( } public VolumeQuotaRule create() { - this.innerObject = - serviceManager - .serviceClient() - .getVolumeQuotaRules() - .create( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - this.innerModel(), - Context.NONE); + this.innerObject = serviceManager.serviceClient().getVolumeQuotaRules().create(resourceGroupName, accountName, + poolName, volumeName, volumeQuotaRuleName, this.innerModel(), Context.NONE); return this; } public VolumeQuotaRule create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getVolumeQuotaRules() - .create( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - this.innerModel(), - context); + this.innerObject = serviceManager.serviceClient().getVolumeQuotaRules().create(resourceGroupName, accountName, + poolName, volumeName, volumeQuotaRuleName, this.innerModel(), context); return this; } @@ -150,32 +130,19 @@ public VolumeQuotaRuleImpl update() { } public VolumeQuotaRule apply() { - this.innerObject = - serviceManager - .serviceClient() - .getVolumeQuotaRules() - .update( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - updateBody, - Context.NONE); + this.innerObject = serviceManager.serviceClient().getVolumeQuotaRules().update(resourceGroupName, accountName, + poolName, volumeName, volumeQuotaRuleName, updateBody, Context.NONE); return this; } public VolumeQuotaRule apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getVolumeQuotaRules() - .update(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, updateBody, context); + this.innerObject = serviceManager.serviceClient().getVolumeQuotaRules().update(resourceGroupName, accountName, + poolName, volumeName, volumeQuotaRuleName, updateBody, context); return this; } - VolumeQuotaRuleImpl( - VolumeQuotaRuleInner innerObject, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + VolumeQuotaRuleImpl(VolumeQuotaRuleInner innerObject, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); @@ -186,23 +153,16 @@ public VolumeQuotaRule apply(Context context) { } public VolumeQuotaRule refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getVolumeQuotaRules() - .getWithResponse( - resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getVolumeQuotaRules() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, Context.NONE) + .getValue(); return this; } public VolumeQuotaRule refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getVolumeQuotaRules() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getVolumeQuotaRules() + .getWithResponse(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context) + .getValue(); return this; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java index d753bcb2caaa..124f5cd8793d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java @@ -40,22 +40,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in VolumeQuotaRulesClient. */ +/** + * An instance of this class provides access to all the operations defined in VolumeQuotaRulesClient. + */ public final class VolumeQuotaRulesClientImpl implements VolumeQuotaRulesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final VolumeQuotaRulesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of VolumeQuotaRulesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ VolumeQuotaRulesClientImpl(NetAppManagementClientImpl client) { - this.service = - RestProxy.create(VolumeQuotaRulesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(VolumeQuotaRulesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -66,97 +72,68 @@ public final class VolumeQuotaRulesClientImpl implements VolumeQuotaRulesClient @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface VolumeQuotaRulesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVolume( - @HostParam("$host") String endpoint, + Mono> listByVolume(@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); + @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}/volumeQuotaRules/{volumeQuotaRuleName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + 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("volumeQuotaRuleName") String volumeQuotaRuleName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @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}/volumeQuotaRules/{volumeQuotaRuleName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String endpoint, + Mono>> create(@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("volumeQuotaRuleName") String volumeQuotaRuleName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VolumeQuotaRuleInner body, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") VolumeQuotaRuleInner 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}/volumeQuotaRules/{volumeQuotaRuleName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, + 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("volumeQuotaRuleName") String volumeQuotaRuleName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VolumeQuotaRulePatch body, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") VolumeQuotaRulePatch body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + 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("volumeQuotaRuleName") String volumeQuotaRuleName, - @QueryParam("api-version") String apiVersion, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @PathParam("volumeQuotaRuleName") String volumeQuotaRuleName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); } /** * Get all quota rules for a volume - * - *

List all quota rules associated with the volume. - * + * + * List all quota rules associated with 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. @@ -167,19 +144,15 @@ Mono>> delete( * @return list of Volume Quota Rules along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVolumeSinglePageAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono> listByVolumeSinglePageAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -196,31 +169,18 @@ private Mono> listByVolumeSinglePageAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByVolume( - 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(), null, null)) + .withContext(context -> service.listByVolume(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(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get all quota rules for a volume - * - *

List all quota rules associated with the volume. - * + * + * List all quota rules associated with 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. @@ -232,19 +192,15 @@ private Mono> listByVolumeSinglePageAsync( * @return list of Volume Quota Rules along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVolumeSinglePageAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono> listByVolumeSinglePageAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -262,27 +218,17 @@ private Mono> listByVolumeSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByVolume( - 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(), null, null)); + .listByVolume(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(), null, null)); } /** * Get all quota rules for a volume - * - *

List all quota rules associated with the volume. - * + * + * List all quota rules associated with 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. @@ -293,16 +239,16 @@ private Mono> listByVolumeSinglePageAsync( * @return list of Volume Quota Rules as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByVolumeAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private PagedFlux listByVolumeAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { return new PagedFlux<>(() -> listByVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName)); } /** * Get all quota rules for a volume - * - *

List all quota rules associated with the volume. - * + * + * List all quota rules associated with 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. @@ -314,17 +260,17 @@ private PagedFlux listByVolumeAsync( * @return list of Volume Quota Rules as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByVolumeAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private PagedFlux listByVolumeAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { return new PagedFlux<>( () -> listByVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName, context)); } /** * Get all quota rules for a volume - * - *

List all quota rules associated with the volume. - * + * + * List all quota rules associated with 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. @@ -335,16 +281,16 @@ private PagedFlux listByVolumeAsync( * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public PagedIterable listByVolume(String resourceGroupName, String accountName, + String poolName, String volumeName) { return new PagedIterable<>(listByVolumeAsync(resourceGroupName, accountName, poolName, volumeName)); } /** * Get all quota rules for a volume - * - *

List all quota rules associated with the volume. - * + * + * List all quota rules associated with 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. @@ -356,16 +302,16 @@ public PagedIterable listByVolume( * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public PagedIterable listByVolume(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { return new PagedIterable<>(listByVolumeAsync(resourceGroupName, accountName, poolName, volumeName, context)); } /** * Describe a quota rule - * - *

Get details of the specified quota rule. - * + * + * Get details of the specified quota rule. + * * @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. @@ -377,19 +323,15 @@ public PagedIterable listByVolume( * @return details of the specified quota rule 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 volumeQuotaRuleName) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String volumeQuotaRuleName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -410,28 +352,17 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Describe a quota rule - * - *

Get details of the specified quota rule. - * + * + * Get details of the specified quota rule. + * * @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. @@ -444,24 +375,15 @@ private Mono> getWithResponseAsync( * @return details of the specified quota rule 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 volumeQuotaRuleName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String volumeQuotaRuleName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -482,25 +404,15 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, + poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), accept, context); } /** * Describe a quota rule - * - *

Get details of the specified quota rule. - * + * + * Get details of the specified quota rule. + * * @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. @@ -512,17 +424,17 @@ private Mono> getWithResponseAsync( * @return details of the specified quota rule on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName) { + private Mono getAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName) { return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Describe a quota rule - * - *

Get details of the specified quota rule. - * + * + * Get details of the specified quota rule. + * * @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. @@ -535,22 +447,17 @@ private Mono getAsync( * @return details of the specified quota rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - Context context) { + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context) .block(); } /** * Describe a quota rule - * - *

Get details of the specified quota rule. - * + * + * Get details of the specified quota rule. + * * @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. @@ -562,17 +469,17 @@ public Response getWithResponse( * @return details of the specified quota rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeQuotaRuleInner get( - String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName) { + public VolumeQuotaRuleInner get(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName) { return getWithResponse(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, Context.NONE) .getValue(); } /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -585,24 +492,15 @@ public VolumeQuotaRuleInner get( * @return quota Rule of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body) { + private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRuleInner body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -628,29 +526,17 @@ private Mono>> createWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), + body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -664,25 +550,15 @@ private Mono>> createWithResponseAsync( * @return quota Rule of a Volume along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body, - Context context) { + private Mono>> createWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRuleInner body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -708,26 +584,15 @@ private Mono>> createWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - this.client.getApiVersion(), - body, - accept, - context); + return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), body, accept, context); } /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -741,29 +606,19 @@ private Mono>> createWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeQuotaRuleInner> beginCreateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, + String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRuleInner body) { - Mono>> mono = - createWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - VolumeQuotaRuleInner.class, - VolumeQuotaRuleInner.class, - this.client.getContext()); + Mono>> mono + = createWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VolumeQuotaRuleInner.class, VolumeQuotaRuleInner.class, this.client.getContext()); } /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -778,28 +633,20 @@ private PollerFlux, VolumeQuotaRuleInner> begin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeQuotaRuleInner> beginCreateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body, - Context context) { + String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName, + VolumeQuotaRuleInner body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createWithResponseAsync( - resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), VolumeQuotaRuleInner.class, VolumeQuotaRuleInner.class, context); + Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, poolName, + volumeName, volumeQuotaRuleName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VolumeQuotaRuleInner.class, VolumeQuotaRuleInner.class, context); } /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -812,23 +659,17 @@ private PollerFlux, VolumeQuotaRuleInner> begin * @return the {@link SyncPoller} for polling of quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VolumeQuotaRuleInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body) { - return this - .beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body) + public SyncPoller, VolumeQuotaRuleInner> beginCreate(String resourceGroupName, + String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRuleInner body) { + return this.beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body) .getSyncPoller(); } /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -842,13 +683,8 @@ public SyncPoller, VolumeQuotaRuleInner> beginC * @return the {@link SyncPoller} for polling of quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VolumeQuotaRuleInner> beginCreate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body, + public SyncPoller, VolumeQuotaRuleInner> beginCreate(String resourceGroupName, + String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRuleInner body, Context context) { return this .beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body, context) @@ -857,9 +693,9 @@ public SyncPoller, VolumeQuotaRuleInner> beginC /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -872,23 +708,17 @@ public SyncPoller, VolumeQuotaRuleInner> beginC * @return quota Rule of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body) { - return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body) - .last() + private Mono createAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName, VolumeQuotaRuleInner body) { + return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -902,25 +732,17 @@ private Mono createAsync( * @return quota Rule of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body, - Context context) { - return beginCreateAsync( - resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName, VolumeQuotaRuleInner body, Context context) { + return beginCreateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -933,21 +755,16 @@ private Mono createAsync( * @return quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeQuotaRuleInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body) { + public VolumeQuotaRuleInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, VolumeQuotaRuleInner body) { return createAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body).block(); } /** * Create a quota rule - * - *

Create the specified quota rule within the given volume. - * + * + * Create the specified quota rule within the given 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. @@ -961,23 +778,17 @@ public VolumeQuotaRuleInner create( * @return quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeQuotaRuleInner create( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRuleInner body, - Context context) { + public VolumeQuotaRuleInner create(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, VolumeQuotaRuleInner body, Context context) { return createAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body, context) .block(); } /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -990,24 +801,15 @@ public VolumeQuotaRuleInner create( * @return quota Rule of a Volume 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 volumeQuotaRuleName, - VolumeQuotaRulePatch body) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRulePatch body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1033,29 +835,17 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), + body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -1069,25 +859,15 @@ private Mono>> updateWithResponseAsync( * @return quota Rule of a Volume 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 volumeQuotaRuleName, - VolumeQuotaRulePatch body, - Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRulePatch body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1113,26 +893,15 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - this.client.getApiVersion(), - body, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), body, accept, context); } /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -1146,29 +915,19 @@ private Mono>> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeQuotaRuleInner> beginUpdateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, + String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRulePatch body) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - VolumeQuotaRuleInner.class, - VolumeQuotaRuleInner.class, - this.client.getContext()); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VolumeQuotaRuleInner.class, VolumeQuotaRuleInner.class, this.client.getContext()); } /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -1183,28 +942,20 @@ private PollerFlux, VolumeQuotaRuleInner> begin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeQuotaRuleInner> beginUpdateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRulePatch body, - Context context) { + String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName, + VolumeQuotaRulePatch body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync( - resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), VolumeQuotaRuleInner.class, VolumeQuotaRuleInner.class, context); + Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, poolName, + volumeName, volumeQuotaRuleName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VolumeQuotaRuleInner.class, VolumeQuotaRuleInner.class, context); } /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -1217,23 +968,17 @@ private PollerFlux, VolumeQuotaRuleInner> begin * @return the {@link SyncPoller} for polling of quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VolumeQuotaRuleInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRulePatch body) { - return this - .beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body) + public SyncPoller, VolumeQuotaRuleInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRulePatch body) { + return this.beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body) .getSyncPoller(); } /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -1247,13 +992,8 @@ public SyncPoller, VolumeQuotaRuleInner> beginU * @return the {@link SyncPoller} for polling of quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VolumeQuotaRuleInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRulePatch body, + public SyncPoller, VolumeQuotaRuleInner> beginUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, String volumeQuotaRuleName, VolumeQuotaRulePatch body, Context context) { return this .beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body, context) @@ -1262,9 +1002,9 @@ public SyncPoller, VolumeQuotaRuleInner> beginU /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -1277,23 +1017,17 @@ public SyncPoller, VolumeQuotaRuleInner> beginU * @return quota Rule of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRulePatch body) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName, VolumeQuotaRulePatch body) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -1307,25 +1041,17 @@ private Mono updateAsync( * @return quota Rule of a Volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRulePatch body, - Context context) { - return beginUpdateAsync( - resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName, VolumeQuotaRulePatch body, Context context) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -1338,21 +1064,16 @@ private Mono updateAsync( * @return quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeQuotaRuleInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRulePatch body) { + public VolumeQuotaRuleInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, VolumeQuotaRulePatch body) { return updateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body).block(); } /** * Update a quota rule - * - *

Patch a quota rule. - * + * + * Patch a quota rule. + * * @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. @@ -1366,23 +1087,17 @@ public VolumeQuotaRuleInner update( * @return quota Rule of a Volume. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeQuotaRuleInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - VolumeQuotaRulePatch body, - Context context) { + public VolumeQuotaRuleInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, VolumeQuotaRulePatch body, Context context) { return updateAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body, context) .block(); } /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -1394,19 +1109,15 @@ public VolumeQuotaRuleInner update( * @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 volumeQuotaRuleName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String volumeQuotaRuleName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1425,28 +1136,19 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter volumeQuotaRuleName 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, - volumeQuotaRuleName, - this.client.getApiVersion(), - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -1459,24 +1161,15 @@ private Mono>> deleteWithResponseAsync( * @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 volumeQuotaRuleName, - Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String volumeQuotaRuleName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1495,25 +1188,17 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter volumeQuotaRuleName 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, - volumeQuotaRuleName, - this.client.getApiVersion(), - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, volumeQuotaRuleName, this.client.getApiVersion(), accept, context); } /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -1525,21 +1210,19 @@ private Mono>> deleteWithResponseAsync( * @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 volumeQuotaRuleName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String volumeQuotaRuleName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -1552,26 +1235,20 @@ private PollerFlux, Void> beginDeleteAsync( * @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 volumeQuotaRuleName, - Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, String volumeQuotaRuleName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, poolName, + volumeName, volumeQuotaRuleName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -1583,18 +1260,17 @@ private PollerFlux, Void> beginDeleteAsync( * @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 volumeQuotaRuleName) { - return this - .beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName) { + return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName) .getSyncPoller(); } /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -1607,23 +1283,17 @@ public SyncPoller, Void> beginDelete( * @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 volumeQuotaRuleName, - Context context) { - return this - .beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName, Context context) { + return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context) .getSyncPoller(); } /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -1635,18 +1305,17 @@ public SyncPoller, Void> beginDelete( * @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 volumeQuotaRuleName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName) - .last() + private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -1659,23 +1328,17 @@ private Mono deleteAsync( * @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 volumeQuotaRuleName, - Context context) { + private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -1686,16 +1349,16 @@ private Mono deleteAsync( * @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 volumeQuotaRuleName) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName) { deleteAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName).block(); } /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -1707,13 +1370,8 @@ public void delete( * @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 volumeQuotaRuleName, - Context context) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, Context context) { deleteAsync(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context).block(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java index f9a7d722283a..40b328b2d45a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java @@ -21,52 +21,42 @@ public final class VolumeQuotaRulesImpl implements VolumeQuotaRules { private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - public VolumeQuotaRulesImpl( - VolumeQuotaRulesClient innerClient, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { + public VolumeQuotaRulesImpl(VolumeQuotaRulesClient innerClient, + com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName) { - PagedIterable inner = - this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName); + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName) { + PagedIterable inner + = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName); return Utils.mapPage(inner, inner1 -> new VolumeQuotaRuleImpl(inner1, this.manager())); } - public PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - PagedIterable inner = - this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName, context); + public PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + PagedIterable inner + = this.serviceClient().listByVolume(resourceGroupName, accountName, poolName, volumeName, context); return Utils.mapPage(inner, inner1 -> new VolumeQuotaRuleImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context); + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, accountName, + poolName, volumeName, volumeQuotaRuleName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new VolumeQuotaRuleImpl(inner.getValue(), this.manager())); } else { return null; } } - public VolumeQuotaRule get( - String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName) { - VolumeQuotaRuleInner inner = - this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName); + public VolumeQuotaRule get(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName) { + VolumeQuotaRuleInner inner + = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName); if (inner != null) { return new VolumeQuotaRuleImpl(inner, this.manager()); } else { @@ -74,60 +64,41 @@ public VolumeQuotaRule get( } } - public void delete( - String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName); } - public void delete( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - Context context) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, Context context) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context); } public VolumeQuotaRule getById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String volumeQuotaRuleName = Utils.getValueFromIdByName(id, "volumeQuotaRules"); if (volumeQuotaRuleName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'volumeQuotaRules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeQuotaRules'.", id))); } return this .getWithResponse(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, Context.NONE) @@ -137,42 +108,28 @@ public VolumeQuotaRule getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String volumeQuotaRuleName = Utils.getValueFromIdByName(id, "volumeQuotaRules"); if (volumeQuotaRuleName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'volumeQuotaRules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeQuotaRules'.", id))); } return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context); } @@ -180,42 +137,28 @@ public Response getByIdWithResponse(String id, Context context) public void deleteById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String volumeQuotaRuleName = Utils.getValueFromIdByName(id, "volumeQuotaRules"); if (volumeQuotaRuleName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'volumeQuotaRules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeQuotaRules'.", id))); } this.delete(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, Context.NONE); } @@ -223,42 +166,28 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String volumeQuotaRuleName = Utils.getValueFromIdByName(id, "volumeQuotaRules"); if (volumeQuotaRuleName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'volumeQuotaRules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumeQuotaRules'.", id))); } this.delete(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, context); } 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 8c4d8d800841..620498a51682 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 @@ -53,17 +53,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in VolumesClient. */ +/** + * An instance of this class provides access to all the operations defined in VolumesClient. + */ public final class VolumesClientImpl implements VolumesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final VolumesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetAppManagementClientImpl client; /** * Initializes an instance of VolumesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ VolumesClientImpl(NetAppManagementClientImpl client) { @@ -78,370 +84,252 @@ public final class VolumesClientImpl implements VolumesClient { @Host("{$host}") @ServiceInterface(name = "NetAppManagementClie") public interface VolumesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, + Mono> list(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @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}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + 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, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @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"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") - @ExpectedResponses({200, 201, 202}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") + @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, + 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, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VolumeInner 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}") - @ExpectedResponses({200, 202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") VolumeInner 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}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, + 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, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VolumePatch body, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}") - @ExpectedResponses({202, 204}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") VolumePatch 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}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + 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, - @QueryParam("forceDelete") Boolean forceDelete, - @QueryParam("api-version") String apiVersion, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone") - @ExpectedResponses({200, 202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("forceDelete") Boolean forceDelete, @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}/populateAvailabilityZone") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> populateAvailabilityZone( - @HostParam("$host") String endpoint, + Mono>> populateAvailabilityZone(@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); + @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({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> revert( - @HostParam("$host") String endpoint, + Mono>> revert(@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, - @BodyParam("application/json") VolumeRevert body, - Context context); - - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword") - @ExpectedResponses({200, 202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") VolumeRevert 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}/resetCifsPassword") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> resetCifsPassword( - @HostParam("$host") String endpoint, + Mono>> resetCifsPassword(@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, - Context context); + @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({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> breakFileLocks( - @HostParam("$host") String endpoint, + Mono>> breakFileLocks(@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, - @BodyParam("application/json") BreakFileLocksRequest body, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser") - @ExpectedResponses({200, 202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BreakFileLocksRequest 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}/getGroupIdListForLdapUser") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listGetGroupIdListForLdapUser( - @HostParam("$host") String endpoint, + Mono>> listGetGroupIdListForLdapUser(@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("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") GetGroupIdListForLdapUserRequest body, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") GetGroupIdListForLdapUserRequest body, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> breakReplication( - @HostParam("$host") String endpoint, + Mono>> breakReplication(@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, - @BodyParam("application/json") BreakReplicationRequest body, - Context context); - - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication") - @ExpectedResponses({202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BreakReplicationRequest 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}/reestablishReplication") + @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> reestablishReplication( - @HostParam("$host") String endpoint, + Mono>> reestablishReplication(@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("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ReestablishReplicationRequest body, + @BodyParam("application/json") ReestablishReplicationRequest body, @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}/replicationStatus") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> replicationStatus( - @HostParam("$host") String endpoint, + Mono> replicationStatus(@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); + @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}/listReplications") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listReplications") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listReplications( - @HostParam("$host") String endpoint, + Mono> listReplications(@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); + @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({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> resyncReplication( - @HostParam("$host") String endpoint, + Mono>> resyncReplication(@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, - Context context); + @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({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deleteReplication( - @HostParam("$host") String endpoint, + Mono>> deleteReplication(@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, - Context context); + @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({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> authorizeReplication( - @HostParam("$host") String endpoint, + Mono>> authorizeReplication(@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, - @BodyParam("application/json") AuthorizeRequest body, - Context context); - - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication") - @ExpectedResponses({200, 202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") AuthorizeRequest 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}/reinitializeReplication") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> reInitializeReplication( - @HostParam("$host") String endpoint, + Mono>> reInitializeReplication(@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, - Context context); + @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({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> poolChange( - @HostParam("$host") String endpoint, + Mono>> poolChange(@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, - @BodyParam("application/json") PoolChangeRequest body, - Context context); - - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate") - @ExpectedResponses({200, 202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") PoolChangeRequest 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}/relocate") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> relocate( - @HostParam("$host") String endpoint, + Mono>> relocate(@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, - @BodyParam("application/json") RelocateVolumeRequest body, - Context context); - - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation") - @ExpectedResponses({200, 202}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") RelocateVolumeRequest 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}/finalizeRelocation") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> finalizeRelocation( - @HostParam("$host") String endpoint, + Mono>> finalizeRelocation(@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, - Context context); + @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({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revertRelocation") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revertRelocation") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> revertRelocation( - @HostParam("$host") String endpoint, + Mono>> revertRelocation(@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, - Context context); + @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"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Describe all volumes - * - *

List all volumes within the capacity pool. - * + * + * List all volumes within the capacity pool. + * * @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. @@ -451,19 +339,15 @@ Mono> listNext( * @return list of volume resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String accountName, String poolName) { + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + String poolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -477,35 +361,18 @@ private Mono> listSinglePageAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, 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())); } /** * Describe all volumes - * - *

List all volumes within the capacity pool. - * + * + * List all volumes within the capacity pool. + * * @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. @@ -516,19 +383,15 @@ private Mono> listSinglePageAsync( * @return list of volume resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String accountName, String poolName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + String poolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -543,31 +406,17 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Describe all volumes - * - *

List all volumes within the capacity pool. - * + * + * List all volumes within the capacity pool. + * * @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. @@ -578,16 +427,15 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, accountName, poolName), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Describe all volumes - * - *

List all volumes within the capacity pool. - * + * + * List all volumes within the capacity pool. + * * @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. @@ -598,18 +446,17 @@ private PagedFlux listAsync(String resourceGroupName, String accoun * @return list of volume resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String accountName, String poolName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, accountName, poolName, context), + private PagedFlux listAsync(String resourceGroupName, String accountName, String poolName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, poolName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Describe all volumes - * - *

List all volumes within the capacity pool. - * + * + * List all volumes within the capacity pool. + * * @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. @@ -625,9 +472,9 @@ public PagedIterable list(String resourceGroupName, String accountN /** * Describe all volumes - * - *

List all volumes within the capacity pool. - * + * + * List all volumes within the capacity pool. + * * @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. @@ -638,16 +485,16 @@ public PagedIterable list(String resourceGroupName, String accountN * @return list of volume resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String accountName, String poolName, Context context) { + public PagedIterable list(String resourceGroupName, String accountName, String poolName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, accountName, poolName, context)); } /** * Describe a volume - * - *

Get the details of the specified volume. - * + * + * Get the details of the specified 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. @@ -658,19 +505,15 @@ public PagedIterable list( * @return the details of the specified volume 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) { + private Mono> getWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -687,27 +530,16 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.get(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())); } /** * Describe a volume - * - *

Get the details of the specified volume. - * + * + * Get the details of the specified 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. @@ -719,19 +551,15 @@ private Mono> getWithResponseAsync( * @return the details of the specified volume 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, Context context) { + private Mono> getWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -748,24 +576,15 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, accountName, + poolName, volumeName, this.client.getApiVersion(), accept, context); } /** * Describe a volume - * - *

Get the details of the specified volume. - * + * + * Get the details of the specified 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. @@ -776,17 +595,17 @@ private Mono> getWithResponseAsync( * @return the details of the specified volume on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono getAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Describe a volume - * - *

Get the details of the specified volume. - * + * + * Get the details of the specified 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. @@ -798,16 +617,16 @@ private Mono getAsync( * @return the details of the specified volume along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } /** * Describe a volume - * - *

Get the details of the specified volume. - * + * + * Get the details of the specified 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. @@ -824,9 +643,9 @@ public VolumeInner get(String resourceGroupName, String accountName, String pool /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -838,19 +657,15 @@ public VolumeInner get(String resourceGroupName, String accountName, String pool * @return volume 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, VolumeInner body) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, VolumeInner body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -872,28 +687,17 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -906,24 +710,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @return volume 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, - VolumeInner body, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, VolumeInner body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -945,25 +740,15 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); } /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -975,21 +760,19 @@ private Mono>> createOrUpdateWithResponseAsync( * @return the {@link PollerFlux} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VolumeInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), VolumeInner.class, VolumeInner.class, this.client.getContext()); + private PollerFlux, VolumeInner> beginCreateOrUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, VolumeInner body) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VolumeInner.class, VolumeInner.class, this.client.getContext()); } /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -1002,27 +785,20 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn * @return the {@link PollerFlux} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VolumeInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeInner body, - Context context) { + private PollerFlux, VolumeInner> beginCreateOrUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, VolumeInner body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), VolumeInner.class, VolumeInner.class, context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VolumeInner.class, VolumeInner.class, context); } /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -1034,18 +810,17 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VolumeInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body) + public SyncPoller, VolumeInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, VolumeInner body) { + return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body) .getSyncPoller(); } /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -1058,23 +833,17 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate( * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VolumeInner> beginCreateOrUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeInner body, - Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body, context) + public SyncPoller, VolumeInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String poolName, String volumeName, VolumeInner body, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body, context) .getSyncPoller(); } /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -1086,18 +855,17 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate( * @return volume resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, VolumeInner body) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -1110,23 +878,17 @@ private Mono createOrUpdateAsync( * @return volume resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeInner body, - Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body, context) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, VolumeInner body, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -1138,16 +900,16 @@ private Mono createOrUpdateAsync( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeInner createOrUpdate( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeInner body) { + public VolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumeInner body) { return createOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).block(); } /** * Create or Update a volume - * - *

Create or update the specified volume within the capacity pool. - * + * + * Create or update the specified volume within the capacity pool. + * * @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. @@ -1160,21 +922,16 @@ public VolumeInner createOrUpdate( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeInner createOrUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeInner body, - Context context) { + public VolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumeInner body, Context context) { return createOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body, context).block(); } /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -1186,19 +943,15 @@ public VolumeInner createOrUpdate( * @return volume 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, VolumePatch body) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumePatch body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1221,27 +974,16 @@ private Mono>> updateWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - accept, - context)) + context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -1254,24 +996,15 @@ private Mono>> updateWithResponseAsync( * @return volume 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, - VolumePatch body, - Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumePatch body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1293,25 +1026,15 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); } /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -1323,21 +1046,19 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VolumeInner> beginUpdateAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), VolumeInner.class, VolumeInner.class, this.client.getContext()); + private PollerFlux, VolumeInner> beginUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, VolumePatch body) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VolumeInner.class, VolumeInner.class, this.client.getContext()); } /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -1350,27 +1071,20 @@ private PollerFlux, VolumeInner> beginUpdateAsync( * @return the {@link PollerFlux} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VolumeInner> beginUpdateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumePatch body, - Context context) { + private PollerFlux, VolumeInner> beginUpdateAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, VolumePatch body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), VolumeInner.class, VolumeInner.class, context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VolumeInner.class, VolumeInner.class, context); } /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -1382,16 +1096,16 @@ private PollerFlux, VolumeInner> beginUpdateAsync( * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VolumeInner> beginUpdate( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body) { + public SyncPoller, VolumeInner> beginUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumePatch body) { return this.beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); } /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -1404,23 +1118,17 @@ public SyncPoller, VolumeInner> beginUpdate( * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VolumeInner> beginUpdate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumePatch body, - Context context) { - return this - .beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body, context) + public SyncPoller, VolumeInner> beginUpdate(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumePatch body, Context context) { + return this.beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body, context) .getSyncPoller(); } /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -1432,18 +1140,17 @@ public SyncPoller, VolumeInner> beginUpdate( * @return volume resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, VolumePatch body) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -1456,23 +1163,17 @@ private Mono updateAsync( * @return volume resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumePatch body, - Context context) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body, context) - .last() + private Mono updateAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, VolumePatch body, Context context) { + return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -1484,16 +1185,16 @@ private Mono updateAsync( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeInner update( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumePatch body) { + public VolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumePatch body) { return updateAsync(resourceGroupName, accountName, poolName, volumeName, body).block(); } /** * Update a volume - * - *

Patch the specified volume. - * + * + * Patch the specified 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. @@ -1506,46 +1207,37 @@ public VolumeInner update( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeInner update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumePatch body, - Context context) { + public VolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumePatch body, Context context) { return updateAsync(resourceGroupName, accountName, poolName, volumeName, body, context).block(); } /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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>> deleteWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Boolean forceDelete) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1560,34 +1252,25 @@ private Mono>> deleteWithResponseAsync( 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 - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - forceDelete, - this.client.getApiVersion(), - context)) + context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, forceDelete, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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. @@ -1595,24 +1278,15 @@ private Mono>> deleteWithResponseAsync( * @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, - Boolean forceDelete, - Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Boolean forceDelete, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1627,52 +1301,42 @@ private Mono>> deleteWithResponseAsync( 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 - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - forceDelete, - this.client.getApiVersion(), - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, forceDelete, this.client.getApiVersion(), accept, context); } /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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> beginDeleteAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Boolean forceDelete) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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. @@ -1683,28 +1347,26 @@ private PollerFlux, Void> beginDeleteAsync( * @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) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { final Boolean forceDelete = null; - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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. @@ -1712,26 +1374,20 @@ private PollerFlux, Void> beginDeleteAsync( * @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, - Boolean forceDelete, - Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Boolean forceDelete, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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. @@ -1742,23 +1398,23 @@ private PollerFlux, Void> beginDeleteAsync( * @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) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName) { final Boolean forceDelete = null; return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete).getSyncPoller(); } /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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. @@ -1766,47 +1422,40 @@ public SyncPoller, Void> beginDelete( * @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, - Boolean forceDelete, - Context context) { - return this - .beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete, context) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, + String volumeName, Boolean forceDelete, Context context) { + return this.beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete, context) .getSyncPoller(); } /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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 deleteAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete) - .last() + private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + Boolean forceDelete) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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. @@ -1819,22 +1468,21 @@ private Mono deleteAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName) { final Boolean forceDelete = null; - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete) - .last() + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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. @@ -1842,23 +1490,17 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @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, - Boolean forceDelete, - Context context) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete, context) - .last() + private Mono deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + Boolean forceDelete, Context context) { + return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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. @@ -1875,36 +1517,31 @@ public void delete(String resourceGroupName, String accountName, String poolName /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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 delete( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - Boolean forceDelete, - Context context) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + Boolean forceDelete, Context context) { deleteAsync(resourceGroupName, accountName, poolName, volumeName, forceDelete, context).block(); } /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -1915,19 +1552,15 @@ public void delete( * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> populateAvailabilityZoneWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono>> populateAvailabilityZoneWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1945,26 +1578,16 @@ private Mono>> populateAvailabilityZoneWithResponseAsy final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .populateAvailabilityZone( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - accept, - context)) + context -> service.populateAvailabilityZone(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())); } /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -1976,19 +1599,15 @@ private Mono>> populateAvailabilityZoneWithResponseAsy * @return volume resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> populateAvailabilityZoneWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono>> populateAvailabilityZoneWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2005,24 +1624,15 @@ private Mono>> populateAvailabilityZoneWithResponseAsy } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .populateAvailabilityZone( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - accept, - context); + return service.populateAvailabilityZone(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); } /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -2035,19 +1645,17 @@ private Mono>> populateAvailabilityZoneWithResponseAsy @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginPopulateAvailabilityZoneAsync( String resourceGroupName, String accountName, String poolName, String volumeName) { - Mono>> mono = - populateAvailabilityZoneWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), VolumeInner.class, VolumeInner.class, this.client.getContext()); + Mono>> mono + = populateAvailabilityZoneWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VolumeInner.class, VolumeInner.class, this.client.getContext()); } /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -2062,19 +1670,17 @@ private PollerFlux, VolumeInner> beginPopulateAvailabili private PollerFlux, VolumeInner> beginPopulateAvailabilityZoneAsync( String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - populateAvailabilityZoneWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), VolumeInner.class, VolumeInner.class, context); + Mono>> mono + = populateAvailabilityZoneWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VolumeInner.class, VolumeInner.class, context); } /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -2085,18 +1691,17 @@ private PollerFlux, VolumeInner> beginPopulateAvailabili * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VolumeInner> beginPopulateAvailabilityZone( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return this - .beginPopulateAvailabilityZoneAsync(resourceGroupName, accountName, poolName, volumeName) + public SyncPoller, VolumeInner> beginPopulateAvailabilityZone(String resourceGroupName, + String accountName, String poolName, String volumeName) { + return this.beginPopulateAvailabilityZoneAsync(resourceGroupName, accountName, poolName, volumeName) .getSyncPoller(); } /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -2108,18 +1713,17 @@ public SyncPoller, VolumeInner> beginPopulateAvailabilit * @return the {@link SyncPoller} for polling of volume resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VolumeInner> beginPopulateAvailabilityZone( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return this - .beginPopulateAvailabilityZoneAsync(resourceGroupName, accountName, poolName, volumeName, context) + public SyncPoller, VolumeInner> beginPopulateAvailabilityZone(String resourceGroupName, + String accountName, String poolName, String volumeName, Context context) { + return this.beginPopulateAvailabilityZoneAsync(resourceGroupName, accountName, poolName, volumeName, context) .getSyncPoller(); } /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -2130,18 +1734,17 @@ public SyncPoller, VolumeInner> beginPopulateAvailabilit * @return volume resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono populateAvailabilityZoneAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return beginPopulateAvailabilityZoneAsync(resourceGroupName, accountName, poolName, volumeName) - .last() + private Mono populateAvailabilityZoneAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { + return beginPopulateAvailabilityZoneAsync(resourceGroupName, accountName, poolName, volumeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -2153,18 +1756,17 @@ private Mono populateAvailabilityZoneAsync( * @return volume resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono populateAvailabilityZoneAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return beginPopulateAvailabilityZoneAsync(resourceGroupName, accountName, poolName, volumeName, context) - .last() + private Mono populateAvailabilityZoneAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + return beginPopulateAvailabilityZoneAsync(resourceGroupName, accountName, poolName, volumeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -2175,16 +1777,16 @@ private Mono populateAvailabilityZoneAsync( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeInner populateAvailabilityZone( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public VolumeInner populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, + String volumeName) { return populateAvailabilityZoneAsync(resourceGroupName, accountName, poolName, volumeName).block(); } /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -2196,16 +1798,16 @@ public VolumeInner populateAvailabilityZone( * @return volume resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VolumeInner populateAvailabilityZone( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public VolumeInner populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { return populateAvailabilityZoneAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -2217,19 +1819,15 @@ public VolumeInner populateAvailabilityZone( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> revertWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) { + private Mono>> revertWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumeRevert body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2249,28 +1847,19 @@ private Mono>> revertWithResponseAsync( } else { body.validate(); } + final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .revert( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context)) + context -> service.revert(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -2283,24 +1872,15 @@ private Mono>> revertWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> revertWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeRevert body, - Context context) { + private Mono>> revertWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumeRevert body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2320,25 +1900,17 @@ private Mono>> revertWithResponseAsync( } else { body.validate(); } + final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .revert( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context); + return service.revert(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); } /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -2350,21 +1922,19 @@ private Mono>> revertWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRevertAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) { - Mono>> mono = - revertWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginRevertAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumeRevert body) { + Mono>> mono + = revertWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -2377,26 +1947,20 @@ private PollerFlux, Void> beginRevertAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRevertAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeRevert body, - Context context) { + private PollerFlux, Void> beginRevertAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, VolumeRevert body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - revertWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = revertWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -2408,16 +1972,16 @@ private PollerFlux, Void> beginRevertAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRevert( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) { + public SyncPoller, Void> beginRevert(String resourceGroupName, String accountName, String poolName, + String volumeName, VolumeRevert body) { return this.beginRevertAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); } /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -2430,23 +1994,17 @@ public SyncPoller, Void> beginRevert( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRevert( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeRevert body, - Context context) { - return this - .beginRevertAsync(resourceGroupName, accountName, poolName, volumeName, body, context) + public SyncPoller, Void> beginRevert(String resourceGroupName, String accountName, String poolName, + String volumeName, VolumeRevert body, Context context) { + return this.beginRevertAsync(resourceGroupName, accountName, poolName, volumeName, body, context) .getSyncPoller(); } /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -2458,18 +2016,17 @@ public SyncPoller, Void> beginRevert( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono revertAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) { - return beginRevertAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + private Mono revertAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumeRevert body) { + return beginRevertAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -2482,23 +2039,17 @@ private Mono revertAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono revertAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeRevert body, - Context context) { - return beginRevertAsync(resourceGroupName, accountName, poolName, volumeName, body, context) - .last() + private Mono revertAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumeRevert body, Context context) { + return beginRevertAsync(resourceGroupName, accountName, poolName, volumeName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -2509,16 +2060,16 @@ private Mono revertAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void revert( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) { + public void revert(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumeRevert body) { revertAsync(resourceGroupName, accountName, poolName, volumeName, body).block(); } /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -2530,21 +2081,16 @@ public void revert( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void revert( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeRevert body, - Context context) { + public void revert(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumeRevert body, Context context) { revertAsync(resourceGroupName, accountName, poolName, volumeName, body, context).block(); } /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -2555,19 +2101,15 @@ public void revert( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resetCifsPasswordWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono>> resetCifsPasswordWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2582,27 +2124,19 @@ private Mono>> resetCifsPasswordWithResponseAsync( 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 - .resetCifsPassword( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context)) + context -> service.resetCifsPassword(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())); } /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -2614,19 +2148,15 @@ private Mono>> resetCifsPasswordWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resetCifsPasswordWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono>> resetCifsPasswordWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2641,24 +2171,17 @@ private Mono>> resetCifsPasswordWithResponseAsync( 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 - .resetCifsPassword( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context); + return service.resetCifsPassword(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); } /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -2669,21 +2192,19 @@ private Mono>> resetCifsPasswordWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginResetCifsPasswordAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - Mono>> mono = - resetCifsPasswordWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginResetCifsPasswordAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { + Mono>> mono + = resetCifsPasswordWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -2695,21 +2216,20 @@ private PollerFlux, Void> beginResetCifsPasswordAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginResetCifsPasswordAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private PollerFlux, Void> beginResetCifsPasswordAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - resetCifsPasswordWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = resetCifsPasswordWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -2720,16 +2240,16 @@ private PollerFlux, Void> beginResetCifsPasswordAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginResetCifsPassword( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public SyncPoller, Void> beginResetCifsPassword(String resourceGroupName, String accountName, + String poolName, String volumeName) { return this.beginResetCifsPasswordAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); } /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -2741,18 +2261,17 @@ public SyncPoller, Void> beginResetCifsPassword( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginResetCifsPassword( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return this - .beginResetCifsPasswordAsync(resourceGroupName, accountName, poolName, volumeName, context) + public SyncPoller, Void> beginResetCifsPassword(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + return this.beginResetCifsPasswordAsync(resourceGroupName, accountName, poolName, volumeName, context) .getSyncPoller(); } /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -2763,18 +2282,17 @@ public SyncPoller, Void> beginResetCifsPassword( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resetCifsPasswordAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return beginResetCifsPasswordAsync(resourceGroupName, accountName, poolName, volumeName) - .last() + private Mono resetCifsPasswordAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return beginResetCifsPasswordAsync(resourceGroupName, accountName, poolName, volumeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -2786,18 +2304,17 @@ private Mono resetCifsPasswordAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resetCifsPasswordAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return beginResetCifsPasswordAsync(resourceGroupName, accountName, poolName, volumeName, context) - .last() + private Mono resetCifsPasswordAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return beginResetCifsPasswordAsync(resourceGroupName, accountName, poolName, volumeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -2813,9 +2330,9 @@ public void resetCifsPassword(String resourceGroupName, String accountName, Stri /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -2826,16 +2343,16 @@ public void resetCifsPassword(String resourceGroupName, String accountName, Stri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void resetCifsPassword( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { resetCifsPasswordAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -2847,19 +2364,15 @@ public void resetCifsPassword( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> breakFileLocksWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, BreakFileLocksRequest body) { + private Mono>> breakFileLocksWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, BreakFileLocksRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2877,28 +2390,19 @@ private Mono>> breakFileLocksWithResponseAsync( if (body != null) { body.validate(); } + final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .breakFileLocks( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context)) + .withContext(context -> service.breakFileLocks(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -2911,24 +2415,15 @@ private Mono>> breakFileLocksWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> breakFileLocksWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakFileLocksRequest body, - Context context) { + private Mono>> breakFileLocksWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, BreakFileLocksRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2946,25 +2441,17 @@ private Mono>> breakFileLocksWithResponseAsync( if (body != null) { body.validate(); } + final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .breakFileLocks( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context); + return service.breakFileLocks(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); } /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -2976,21 +2463,19 @@ private Mono>> breakFileLocksWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginBreakFileLocksAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, BreakFileLocksRequest body) { - Mono>> mono = - breakFileLocksWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginBreakFileLocksAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, BreakFileLocksRequest body) { + Mono>> mono + = breakFileLocksWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -3001,22 +2486,20 @@ private PollerFlux, Void> beginBreakFileLocksAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginBreakFileLocksAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private PollerFlux, Void> beginBreakFileLocksAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { final BreakFileLocksRequest body = null; - Mono>> mono = - breakFileLocksWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + Mono>> mono + = breakFileLocksWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -3029,26 +2512,20 @@ private PollerFlux, Void> beginBreakFileLocksAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginBreakFileLocksAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakFileLocksRequest body, - Context context) { + private PollerFlux, Void> beginBreakFileLocksAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, BreakFileLocksRequest body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - breakFileLocksWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = breakFileLocksWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -3059,19 +2536,18 @@ private PollerFlux, Void> beginBreakFileLocksAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginBreakFileLocks( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public SyncPoller, Void> beginBreakFileLocks(String resourceGroupName, String accountName, + String poolName, String volumeName) { final BreakFileLocksRequest body = null; - return this - .beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body) + return this.beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body) .getSyncPoller(); } /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -3084,23 +2560,17 @@ public SyncPoller, Void> beginBreakFileLocks( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginBreakFileLocks( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakFileLocksRequest body, - Context context) { - return this - .beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body, context) + public SyncPoller, Void> beginBreakFileLocks(String resourceGroupName, String accountName, + String poolName, String volumeName, BreakFileLocksRequest body, Context context) { + return this.beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body, context) .getSyncPoller(); } /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -3112,18 +2582,17 @@ public SyncPoller, Void> beginBreakFileLocks( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono breakFileLocksAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, BreakFileLocksRequest body) { - return beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + private Mono breakFileLocksAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, BreakFileLocksRequest body) { + return beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -3134,19 +2603,18 @@ private Mono breakFileLocksAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono breakFileLocksAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono breakFileLocksAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { final BreakFileLocksRequest body = null; - return beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + return beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -3159,23 +2627,17 @@ private Mono breakFileLocksAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono breakFileLocksAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakFileLocksRequest body, - Context context) { - return beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body, context) - .last() + private Mono breakFileLocksAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, BreakFileLocksRequest body, Context context) { + return beginBreakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -3192,9 +2654,9 @@ public void breakFileLocks(String resourceGroupName, String accountName, String /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -3206,21 +2668,16 @@ public void breakFileLocks(String resourceGroupName, String accountName, String * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void breakFileLocks( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakFileLocksRequest body, - Context context) { + public void breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName, + BreakFileLocksRequest body, Context context) { breakFileLocksAsync(resourceGroupName, accountName, poolName, volumeName, body, context).block(); } /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -3232,23 +2689,15 @@ public void breakFileLocks( * @return group Id list for Ldap user along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listGetGroupIdListForLdapUserWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body) { + private Mono>> listGetGroupIdListForLdapUserWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3270,28 +2719,17 @@ private Mono>> listGetGroupIdListForLdapUserWithRespon } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listGetGroupIdListForLdapUser( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - accept, - context)) + .withContext(context -> service.listGetGroupIdListForLdapUser(this.client.getEndpoint(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, + this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -3304,24 +2742,16 @@ private Mono>> listGetGroupIdListForLdapUserWithRespon * @return group Id list for Ldap user along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listGetGroupIdListForLdapUserWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body, + private Mono>> listGetGroupIdListForLdapUserWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3343,25 +2773,15 @@ private Mono>> listGetGroupIdListForLdapUserWithRespon } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listGetGroupIdListForLdapUser( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - accept, - context); + return service.listGetGroupIdListForLdapUser(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); } /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -3374,29 +2794,20 @@ private Mono>> listGetGroupIdListForLdapUserWithRespon */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, GetGroupIdListForLdapUserResponseInner> - beginListGetGroupIdListForLdapUserAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body) { - Mono>> mono = - listGetGroupIdListForLdapUserWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - GetGroupIdListForLdapUserResponseInner.class, - GetGroupIdListForLdapUserResponseInner.class, - this.client.getContext()); + beginListGetGroupIdListForLdapUserAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, GetGroupIdListForLdapUserRequest body) { + Mono>> mono = listGetGroupIdListForLdapUserWithResponseAsync(resourceGroupName, + accountName, poolName, volumeName, body); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), GetGroupIdListForLdapUserResponseInner.class, + GetGroupIdListForLdapUserResponseInner.class, this.client.getContext()); } /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -3410,32 +2821,21 @@ private Mono>> listGetGroupIdListForLdapUserWithRespon */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, GetGroupIdListForLdapUserResponseInner> - beginListGetGroupIdListForLdapUserAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body, - Context context) { + beginListGetGroupIdListForLdapUserAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, GetGroupIdListForLdapUserRequest body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - listGetGroupIdListForLdapUserWithResponseAsync( - resourceGroupName, accountName, poolName, volumeName, body, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - GetGroupIdListForLdapUserResponseInner.class, - GetGroupIdListForLdapUserResponseInner.class, - context); + Mono>> mono = listGetGroupIdListForLdapUserWithResponseAsync(resourceGroupName, + accountName, poolName, volumeName, body, context); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), GetGroupIdListForLdapUserResponseInner.class, + GetGroupIdListForLdapUserResponseInner.class, context); } /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -3448,22 +2848,17 @@ private Mono>> listGetGroupIdListForLdapUserWithRespon */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GetGroupIdListForLdapUserResponseInner> - beginListGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body) { - return this - .beginListGetGroupIdListForLdapUserAsync(resourceGroupName, accountName, poolName, volumeName, body) + beginListGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, + String volumeName, GetGroupIdListForLdapUserRequest body) { + return this.beginListGetGroupIdListForLdapUserAsync(resourceGroupName, accountName, poolName, volumeName, body) .getSyncPoller(); } /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -3477,24 +2872,17 @@ private Mono>> listGetGroupIdListForLdapUserWithRespon */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GetGroupIdListForLdapUserResponseInner> - beginListGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body, - Context context) { - return this - .beginListGetGroupIdListForLdapUserAsync( - resourceGroupName, accountName, poolName, volumeName, body, context) - .getSyncPoller(); + beginListGetGroupIdListForLdapUser(String resourceGroupName, String accountName, String poolName, + String volumeName, GetGroupIdListForLdapUserRequest body, Context context) { + return this.beginListGetGroupIdListForLdapUserAsync(resourceGroupName, accountName, poolName, volumeName, body, + context).getSyncPoller(); } /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -3506,22 +2894,17 @@ private Mono>> listGetGroupIdListForLdapUserWithRespon * @return group Id list for Ldap user on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listGetGroupIdListForLdapUserAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body) { + private Mono listGetGroupIdListForLdapUserAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { return beginListGetGroupIdListForLdapUserAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -3534,24 +2917,18 @@ private Mono listGetGroupIdListForLdapUs * @return group Id list for Ldap user on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listGetGroupIdListForLdapUserAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body, + private Mono listGetGroupIdListForLdapUserAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context) { - return beginListGetGroupIdListForLdapUserAsync( - resourceGroupName, accountName, poolName, volumeName, body, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return beginListGetGroupIdListForLdapUserAsync(resourceGroupName, accountName, poolName, volumeName, body, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -3563,20 +2940,16 @@ private Mono listGetGroupIdListForLdapUs * @return group Id list for Ldap user. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body) { + public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, + String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { return listGetGroupIdListForLdapUserAsync(resourceGroupName, accountName, poolName, volumeName, body).block(); } /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -3589,12 +2962,8 @@ public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser( * @return group Id list for Ldap user. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body, + public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser(String resourceGroupName, + String accountName, String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context) { return listGetGroupIdListForLdapUserAsync(resourceGroupName, accountName, poolName, volumeName, body, context) .block(); @@ -3602,9 +2971,9 @@ public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser( /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3616,23 +2985,15 @@ public GetGroupIdListForLdapUserResponseInner listGetGroupIdListForLdapUser( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> breakReplicationWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body) { + private Mono>> breakReplicationWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, BreakReplicationRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3650,28 +3011,19 @@ private Mono>> breakReplicationWithResponseAsync( if (body != null) { body.validate(); } + final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .breakReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context)) + .withContext(context -> service.breakReplication(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3684,24 +3036,15 @@ private Mono>> breakReplicationWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> breakReplicationWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body, - Context context) { + private Mono>> breakReplicationWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, BreakReplicationRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3719,25 +3062,17 @@ private Mono>> breakReplicationWithResponseAsync( if (body != null) { body.validate(); } + final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .breakReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context); + return service.breakReplication(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); } /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3749,25 +3084,19 @@ private Mono>> breakReplicationWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginBreakReplicationAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body) { - Mono>> mono = - breakReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginBreakReplicationAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, BreakReplicationRequest body) { + Mono>> mono + = breakReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3778,22 +3107,20 @@ private PollerFlux, Void> beginBreakReplicationAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginBreakReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private PollerFlux, Void> beginBreakReplicationAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { final BreakReplicationRequest body = null; - Mono>> mono = - breakReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + Mono>> mono + = breakReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3806,26 +3133,20 @@ private PollerFlux, Void> beginBreakReplicationAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginBreakReplicationAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body, - Context context) { + private PollerFlux, Void> beginBreakReplicationAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, BreakReplicationRequest body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - breakReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = breakReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3836,19 +3157,18 @@ private PollerFlux, Void> beginBreakReplicationAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginBreakReplication( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public SyncPoller, Void> beginBreakReplication(String resourceGroupName, String accountName, + String poolName, String volumeName) { final BreakReplicationRequest body = null; - return this - .beginBreakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) + return this.beginBreakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) .getSyncPoller(); } /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3861,23 +3181,17 @@ public SyncPoller, Void> beginBreakReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginBreakReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body, - Context context) { - return this - .beginBreakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context) + public SyncPoller, Void> beginBreakReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, BreakReplicationRequest body, Context context) { + return this.beginBreakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context) .getSyncPoller(); } /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3889,22 +3203,17 @@ public SyncPoller, Void> beginBreakReplication( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono breakReplicationAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body) { - return beginBreakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + private Mono breakReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, BreakReplicationRequest body) { + return beginBreakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3915,19 +3224,18 @@ private Mono breakReplicationAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono breakReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono breakReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { final BreakReplicationRequest body = null; - return beginBreakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + return beginBreakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3940,23 +3248,17 @@ private Mono breakReplicationAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono breakReplicationAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body, - Context context) { - return beginBreakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context) - .last() + private Mono breakReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, BreakReplicationRequest body, Context context) { + return beginBreakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3973,9 +3275,9 @@ public void breakReplication(String resourceGroupName, String accountName, Strin /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -3987,22 +3289,17 @@ public void breakReplication(String resourceGroupName, String accountName, Strin * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void breakReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body, - Context context) { + public void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + BreakReplicationRequest body, Context context) { breakReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context).block(); } /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -4014,23 +3311,15 @@ public void breakReplication( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> reestablishReplicationWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body) { + private Mono>> reestablishReplicationWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, ReestablishReplicationRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -4050,29 +3339,20 @@ private Mono>> reestablishReplicationWithResponseAsync } else { body.validate(); } + final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .reestablishReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context)) + .withContext(context -> service.reestablishReplication(this.client.getEndpoint(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, + this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -4085,24 +3365,15 @@ private Mono>> reestablishReplicationWithResponseAsync * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> reestablishReplicationWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body, - Context context) { + private Mono>> reestablishReplicationWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, ReestablishReplicationRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -4122,26 +3393,18 @@ private Mono>> reestablishReplicationWithResponseAsync } else { body.validate(); } + final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .reestablishReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context); + return service.reestablishReplication(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); } /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -4153,26 +3416,20 @@ private Mono>> reestablishReplicationWithResponseAsync * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginReestablishReplicationAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body) { - Mono>> mono = - reestablishReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginReestablishReplicationAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, ReestablishReplicationRequest body) { + Mono>> mono + = reestablishReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -4185,28 +3442,21 @@ private PollerFlux, Void> beginReestablishReplicationAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginReestablishReplicationAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body, - Context context) { + private PollerFlux, Void> beginReestablishReplicationAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, ReestablishReplicationRequest body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - reestablishReplicationWithResponseAsync( - resourceGroupName, accountName, poolName, volumeName, body, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = reestablishReplicationWithResponseAsync(resourceGroupName, accountName, + poolName, volumeName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -4218,23 +3468,18 @@ private PollerFlux, Void> beginReestablishReplicationAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginReestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body) { - return this - .beginReestablishReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) + public SyncPoller, Void> beginReestablishReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, ReestablishReplicationRequest body) { + return this.beginReestablishReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) .getSyncPoller(); } /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -4247,13 +3492,8 @@ public SyncPoller, Void> beginReestablishReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginReestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body, - Context context) { + public SyncPoller, Void> beginReestablishReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, ReestablishReplicationRequest body, Context context) { return this .beginReestablishReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context) .getSyncPoller(); @@ -4261,10 +3501,10 @@ public SyncPoller, Void> beginReestablishReplication( /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -4276,23 +3516,18 @@ public SyncPoller, Void> beginReestablishReplication( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono reestablishReplicationAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body) { - return beginReestablishReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + private Mono reestablishReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, ReestablishReplicationRequest body) { + return beginReestablishReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -4305,24 +3540,18 @@ private Mono reestablishReplicationAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono reestablishReplicationAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body, - Context context) { + private Mono reestablishReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, ReestablishReplicationRequest body, Context context) { return beginReestablishReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -4333,21 +3562,17 @@ private Mono reestablishReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void reestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, + public void reestablishReplication(String resourceGroupName, String accountName, String poolName, String volumeName, ReestablishReplicationRequest body) { reestablishReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body).block(); } /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -4359,21 +3584,16 @@ public void reestablishReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void reestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body, - Context context) { + public void reestablishReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + ReestablishReplicationRequest body, Context context) { reestablishReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context).block(); } /** * Get volume replication status - * - *

Get the status of the replication. - * + * + * Get the status of the replication. + * * @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. @@ -4384,19 +3604,15 @@ public void reestablishReplication( * @return the status of the replication along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> replicationStatusWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono> replicationStatusWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -4414,26 +3630,16 @@ private Mono> replicationStatusWithResponseAsyn final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .replicationStatus( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - accept, - context)) + context -> service.replicationStatus(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())); } /** * Get volume replication status - * - *

Get the status of the replication. - * + * + * Get the status of the replication. + * * @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. @@ -4445,19 +3651,15 @@ private Mono> replicationStatusWithResponseAsyn * @return the status of the replication along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> replicationStatusWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono> replicationStatusWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -4474,24 +3676,15 @@ private Mono> replicationStatusWithResponseAsyn } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .replicationStatus( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - accept, - context); + return service.replicationStatus(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); } /** * Get volume replication status - * - *

Get the status of the replication. - * + * + * Get the status of the replication. + * * @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. @@ -4502,17 +3695,17 @@ private Mono> replicationStatusWithResponseAsyn * @return the status of the replication on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono replicationStatusAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono replicationStatusAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { return replicationStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get volume replication status - * - *

Get the status of the replication. - * + * + * Get the status of the replication. + * * @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. @@ -4524,17 +3717,17 @@ private Mono replicationStatusAsync( * @return the status of the replication along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response replicationStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public Response replicationStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { return replicationStatusWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context) .block(); } /** * Get volume replication status - * - *

Get the status of the replication. - * + * + * Get the status of the replication. + * * @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. @@ -4545,17 +3738,17 @@ public Response replicationStatusWithResponse( * @return the status of the replication. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationStatusInner replicationStatus( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public ReplicationStatusInner replicationStatus(String resourceGroupName, String accountName, String poolName, + String volumeName) { return replicationStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE) .getValue(); } /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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. @@ -4566,19 +3759,15 @@ public ReplicationStatusInner replicationStatus( * @return list Replications along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listReplicationsSinglePageAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono> listReplicationsSinglePageAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -4595,31 +3784,18 @@ private Mono> listReplicationsSinglePageAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listReplications( - 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(), null, null)) + .withContext(context -> service.listReplications(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(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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. @@ -4631,19 +3807,15 @@ private Mono> listReplicationsSinglePageAsync( * @return list Replications along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listReplicationsSinglePageAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono> listReplicationsSinglePageAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -4661,27 +3833,17 @@ private Mono> listReplicationsSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listReplications( - 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(), null, null)); + .listReplications(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(), null, null)); } /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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. @@ -4692,17 +3854,17 @@ private Mono> listReplicationsSinglePageAsync( * @return list Replications as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listReplicationsAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private PagedFlux listReplicationsAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { return new PagedFlux<>( () -> listReplicationsSinglePageAsync(resourceGroupName, accountName, poolName, volumeName)); } /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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. @@ -4714,17 +3876,17 @@ private PagedFlux listReplicationsAsync( * @return list Replications as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listReplicationsAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private PagedFlux listReplicationsAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { return new PagedFlux<>( () -> listReplicationsSinglePageAsync(resourceGroupName, accountName, poolName, volumeName, context)); } /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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. @@ -4735,16 +3897,16 @@ private PagedFlux listReplicationsAsync( * @return list Replications as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listReplications( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public PagedIterable listReplications(String resourceGroupName, String accountName, + String poolName, String volumeName) { return new PagedIterable<>(listReplicationsAsync(resourceGroupName, accountName, poolName, volumeName)); } /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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. @@ -4756,18 +3918,18 @@ public PagedIterable listReplications( * @return list Replications as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listReplications( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public PagedIterable listReplications(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { return new PagedIterable<>( listReplicationsAsync(resourceGroupName, accountName, poolName, volumeName, context)); } /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -4778,19 +3940,15 @@ public PagedIterable listReplications( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resyncReplicationWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono>> resyncReplicationWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -4805,28 +3963,20 @@ private Mono>> resyncReplicationWithResponseAsync( 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 - .resyncReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context)) + context -> service.resyncReplication(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())); } /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -4838,19 +3988,15 @@ private Mono>> resyncReplicationWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resyncReplicationWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono>> resyncReplicationWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -4865,25 +4011,18 @@ private Mono>> resyncReplicationWithResponseAsync( 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 - .resyncReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context); + return service.resyncReplication(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); } /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -4894,22 +4033,20 @@ private Mono>> resyncReplicationWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginResyncReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - Mono>> mono = - resyncReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginResyncReplicationAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { + Mono>> mono + = resyncReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -4921,22 +4058,21 @@ private PollerFlux, Void> beginResyncReplicationAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginResyncReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private PollerFlux, Void> beginResyncReplicationAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - resyncReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = resyncReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -4947,17 +4083,17 @@ private PollerFlux, Void> beginResyncReplicationAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginResyncReplication( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public SyncPoller, Void> beginResyncReplication(String resourceGroupName, String accountName, + String poolName, String volumeName) { return this.beginResyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); } /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -4969,19 +4105,18 @@ public SyncPoller, Void> beginResyncReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginResyncReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return this - .beginResyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) + public SyncPoller, Void> beginResyncReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + return this.beginResyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) .getSyncPoller(); } /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -4992,19 +4127,18 @@ public SyncPoller, Void> beginResyncReplication( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resyncReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return beginResyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName) - .last() + private Mono resyncReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return beginResyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -5016,19 +4150,18 @@ private Mono resyncReplicationAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resyncReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return beginResyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) - .last() + private Mono resyncReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return beginResyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -5044,10 +4177,10 @@ public void resyncReplication(String resourceGroupName, String accountName, Stri /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -5058,16 +4191,16 @@ public void resyncReplication(String resourceGroupName, String accountName, Stri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void resyncReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void resyncReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { resyncReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -5078,19 +4211,15 @@ public void resyncReplication( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteReplicationWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono>> deleteReplicationWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -5105,27 +4234,19 @@ private Mono>> deleteReplicationWithResponseAsync( 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 - .deleteReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context)) + context -> service.deleteReplication(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())); } /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -5137,19 +4258,15 @@ private Mono>> deleteReplicationWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteReplicationWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono>> deleteReplicationWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -5164,24 +4281,17 @@ private Mono>> deleteReplicationWithResponseAsync( 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 - .deleteReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context); + return service.deleteReplication(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); } /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -5192,21 +4302,19 @@ private Mono>> deleteReplicationWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - Mono>> mono = - deleteReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteReplicationAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { + Mono>> mono + = deleteReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -5218,21 +4326,20 @@ private PollerFlux, Void> beginDeleteReplicationAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private PollerFlux, Void> beginDeleteReplicationAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -5243,16 +4350,16 @@ private PollerFlux, Void> beginDeleteReplicationAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteReplication( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public SyncPoller, Void> beginDeleteReplication(String resourceGroupName, String accountName, + String poolName, String volumeName) { return this.beginDeleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); } /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -5264,18 +4371,17 @@ public SyncPoller, Void> beginDeleteReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return this - .beginDeleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) + public SyncPoller, Void> beginDeleteReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + return this.beginDeleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) .getSyncPoller(); } /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -5286,18 +4392,17 @@ public SyncPoller, Void> beginDeleteReplication( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return beginDeleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName) - .last() + private Mono deleteReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return beginDeleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -5309,18 +4414,17 @@ private Mono deleteReplicationAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return beginDeleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) - .last() + private Mono deleteReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return beginDeleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -5336,9 +4440,9 @@ public void deleteReplication(String resourceGroupName, String accountName, Stri /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -5349,16 +4453,16 @@ public void deleteReplication(String resourceGroupName, String accountName, Stri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void deleteReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { deleteReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -5370,19 +4474,15 @@ public void deleteReplication( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> authorizeReplicationWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) { + private Mono>> authorizeReplicationWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, AuthorizeRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -5402,28 +4502,19 @@ private Mono>> authorizeReplicationWithResponseAsync( } else { body.validate(); } + final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .authorizeReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context)) + .withContext(context -> service.authorizeReplication(this.client.getEndpoint(), + this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, + this.client.getApiVersion(), body, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -5436,24 +4527,15 @@ private Mono>> authorizeReplicationWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> authorizeReplicationWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - AuthorizeRequest body, - Context context) { + private Mono>> authorizeReplicationWithResponseAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, AuthorizeRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -5473,25 +4555,17 @@ private Mono>> authorizeReplicationWithResponseAsync( } else { body.validate(); } + final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .authorizeReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context); + return service.authorizeReplication(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); } /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -5503,21 +4577,19 @@ private Mono>> authorizeReplicationWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginAuthorizeReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) { - Mono>> mono = - authorizeReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginAuthorizeReplicationAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, AuthorizeRequest body) { + Mono>> mono + = authorizeReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -5530,26 +4602,20 @@ private PollerFlux, Void> beginAuthorizeReplicationAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginAuthorizeReplicationAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - AuthorizeRequest body, - Context context) { + private PollerFlux, Void> beginAuthorizeReplicationAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, AuthorizeRequest body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - authorizeReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = authorizeReplicationWithResponseAsync(resourceGroupName, accountName, + poolName, volumeName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -5561,18 +4627,17 @@ private PollerFlux, Void> beginAuthorizeReplicationAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginAuthorizeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) { - return this - .beginAuthorizeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) + public SyncPoller, Void> beginAuthorizeReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, AuthorizeRequest body) { + return this.beginAuthorizeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) .getSyncPoller(); } /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -5585,23 +4650,17 @@ public SyncPoller, Void> beginAuthorizeReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginAuthorizeReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - AuthorizeRequest body, - Context context) { - return this - .beginAuthorizeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context) + public SyncPoller, Void> beginAuthorizeReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, AuthorizeRequest body, Context context) { + return this.beginAuthorizeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context) .getSyncPoller(); } /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -5613,18 +4672,17 @@ public SyncPoller, Void> beginAuthorizeReplication( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono authorizeReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) { - return beginAuthorizeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + private Mono authorizeReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, AuthorizeRequest body) { + return beginAuthorizeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -5637,23 +4695,17 @@ private Mono authorizeReplicationAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono authorizeReplicationAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - AuthorizeRequest body, - Context context) { + private Mono authorizeReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, AuthorizeRequest body, Context context) { return beginAuthorizeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -5664,16 +4716,16 @@ private Mono authorizeReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void authorizeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) { + public void authorizeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + AuthorizeRequest body) { authorizeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body).block(); } /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -5685,21 +4737,16 @@ public void authorizeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void authorizeReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - AuthorizeRequest body, - Context context) { + public void authorizeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + AuthorizeRequest body, Context context) { authorizeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, body, context).block(); } /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -5710,19 +4757,15 @@ public void authorizeReplication( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> reInitializeReplicationWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono>> reInitializeReplicationWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -5737,27 +4780,19 @@ private Mono>> reInitializeReplicationWithResponseAsyn 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 - .reInitializeReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context)) + context -> service.reInitializeReplication(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())); } /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -5769,19 +4804,15 @@ private Mono>> reInitializeReplicationWithResponseAsyn * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> reInitializeReplicationWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono>> reInitializeReplicationWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -5796,24 +4827,17 @@ private Mono>> reInitializeReplicationWithResponseAsyn 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 - .reInitializeReplication( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context); + return service.reInitializeReplication(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); } /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -5824,21 +4848,19 @@ private Mono>> reInitializeReplicationWithResponseAsyn * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginReInitializeReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - Mono>> mono = - reInitializeReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginReInitializeReplicationAsync(String resourceGroupName, + String accountName, String poolName, String volumeName) { + Mono>> mono + = reInitializeReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -5850,21 +4872,20 @@ private PollerFlux, Void> beginReInitializeReplicationAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginReInitializeReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private PollerFlux, Void> beginReInitializeReplicationAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - reInitializeReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = reInitializeReplicationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -5875,18 +4896,17 @@ private PollerFlux, Void> beginReInitializeReplicationAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginReInitializeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return this - .beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName) + public SyncPoller, Void> beginReInitializeReplication(String resourceGroupName, String accountName, + String poolName, String volumeName) { + return this.beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName) .getSyncPoller(); } /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -5898,18 +4918,17 @@ public SyncPoller, Void> beginReInitializeReplication( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginReInitializeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return this - .beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) + public SyncPoller, Void> beginReInitializeReplication(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + return this.beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) .getSyncPoller(); } /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -5920,18 +4939,17 @@ public SyncPoller, Void> beginReInitializeReplication( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono reInitializeReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName) - .last() + private Mono reInitializeReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -5943,18 +4961,17 @@ private Mono reInitializeReplicationAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono reInitializeReplicationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context) - .last() + private Mono reInitializeReplicationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return beginReInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -5964,16 +4981,16 @@ private Mono reInitializeReplicationAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void reInitializeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public void reInitializeReplication(String resourceGroupName, String accountName, String poolName, + String volumeName) { reInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName).block(); } /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -5984,16 +5001,16 @@ public void reInitializeReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void reInitializeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void reInitializeReplication(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { reInitializeReplicationAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -6005,19 +5022,15 @@ public void reInitializeReplication( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> poolChangeWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) { + private Mono>> poolChangeWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, PoolChangeRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -6037,28 +5050,19 @@ private Mono>> poolChangeWithResponseAsync( } else { body.validate(); } + final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .poolChange( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context)) + .withContext(context -> service.poolChange(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -6071,24 +5075,15 @@ private Mono>> poolChangeWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> poolChangeWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - PoolChangeRequest body, - Context context) { + private Mono>> poolChangeWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, PoolChangeRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -6108,25 +5103,17 @@ private Mono>> poolChangeWithResponseAsync( } else { body.validate(); } + final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .poolChange( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context); + return service.poolChange(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); } /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -6138,21 +5125,19 @@ private Mono>> poolChangeWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginPoolChangeAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) { - Mono>> mono = - poolChangeWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginPoolChangeAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, PoolChangeRequest body) { + Mono>> mono + = poolChangeWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -6165,26 +5150,20 @@ private PollerFlux, Void> beginPoolChangeAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginPoolChangeAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - PoolChangeRequest body, - Context context) { + private PollerFlux, Void> beginPoolChangeAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, PoolChangeRequest body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - poolChangeWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = poolChangeWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -6196,16 +5175,16 @@ private PollerFlux, Void> beginPoolChangeAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginPoolChange( - String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) { + public SyncPoller, Void> beginPoolChange(String resourceGroupName, String accountName, + String poolName, String volumeName, PoolChangeRequest body) { return this.beginPoolChangeAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); } /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -6218,23 +5197,17 @@ public SyncPoller, Void> beginPoolChange( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginPoolChange( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - PoolChangeRequest body, - Context context) { - return this - .beginPoolChangeAsync(resourceGroupName, accountName, poolName, volumeName, body, context) + public SyncPoller, Void> beginPoolChange(String resourceGroupName, String accountName, + String poolName, String volumeName, PoolChangeRequest body, Context context) { + return this.beginPoolChangeAsync(resourceGroupName, accountName, poolName, volumeName, body, context) .getSyncPoller(); } /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -6246,18 +5219,17 @@ public SyncPoller, Void> beginPoolChange( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono poolChangeAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) { - return beginPoolChangeAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + private Mono poolChangeAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + PoolChangeRequest body) { + return beginPoolChangeAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -6270,23 +5242,17 @@ private Mono poolChangeAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono poolChangeAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - PoolChangeRequest body, - Context context) { - return beginPoolChangeAsync(resourceGroupName, accountName, poolName, volumeName, body, context) - .last() + private Mono poolChangeAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + PoolChangeRequest body, Context context) { + return beginPoolChangeAsync(resourceGroupName, accountName, poolName, volumeName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -6297,16 +5263,16 @@ private Mono poolChangeAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void poolChange( - String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) { + public void poolChange(String resourceGroupName, String accountName, String poolName, String volumeName, + PoolChangeRequest body) { poolChangeAsync(resourceGroupName, accountName, poolName, volumeName, body).block(); } /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -6318,21 +5284,16 @@ public void poolChange( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void poolChange( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - PoolChangeRequest body, - Context context) { + public void poolChange(String resourceGroupName, String accountName, String poolName, String volumeName, + PoolChangeRequest body, Context context) { poolChangeAsync(resourceGroupName, accountName, poolName, volumeName, body, context).block(); } /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6344,19 +5305,15 @@ public void poolChange( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> relocateWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body) { + private Mono>> relocateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, RelocateVolumeRequest body) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -6374,28 +5331,19 @@ private Mono>> relocateWithResponseAsync( if (body != null) { body.validate(); } + final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .relocate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context)) + .withContext(context -> service.relocate(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6408,24 +5356,15 @@ private Mono>> relocateWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> relocateWithResponseAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - RelocateVolumeRequest body, - Context context) { + private Mono>> relocateWithResponseAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, RelocateVolumeRequest body, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -6443,25 +5382,17 @@ private Mono>> relocateWithResponseAsync( if (body != null) { body.validate(); } + final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .relocate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - body, - context); + return service.relocate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), body, accept, context); } /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6473,21 +5404,19 @@ private Mono>> relocateWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRelocateAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body) { - Mono>> mono = - relocateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginRelocateAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, RelocateVolumeRequest body) { + Mono>> mono + = relocateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6498,22 +5427,20 @@ private PollerFlux, Void> beginRelocateAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRelocateAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private PollerFlux, Void> beginRelocateAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { final RelocateVolumeRequest body = null; - Mono>> mono = - relocateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + Mono>> mono + = relocateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6526,26 +5453,20 @@ private PollerFlux, Void> beginRelocateAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRelocateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - RelocateVolumeRequest body, - Context context) { + private PollerFlux, Void> beginRelocateAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, RelocateVolumeRequest body, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - relocateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = relocateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6556,17 +5477,17 @@ private PollerFlux, Void> beginRelocateAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRelocate( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public SyncPoller, Void> beginRelocate(String resourceGroupName, String accountName, + String poolName, String volumeName) { final RelocateVolumeRequest body = null; return this.beginRelocateAsync(resourceGroupName, accountName, poolName, volumeName, body).getSyncPoller(); } /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6579,23 +5500,17 @@ public SyncPoller, Void> beginRelocate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRelocate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - RelocateVolumeRequest body, - Context context) { - return this - .beginRelocateAsync(resourceGroupName, accountName, poolName, volumeName, body, context) + public SyncPoller, Void> beginRelocate(String resourceGroupName, String accountName, + String poolName, String volumeName, RelocateVolumeRequest body, Context context) { + return this.beginRelocateAsync(resourceGroupName, accountName, poolName, volumeName, body, context) .getSyncPoller(); } /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6607,18 +5522,17 @@ public SyncPoller, Void> beginRelocate( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono relocateAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, RelocateVolumeRequest body) { - return beginRelocateAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + private Mono relocateAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + RelocateVolumeRequest body) { + return beginRelocateAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6631,16 +5545,15 @@ private Mono relocateAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono relocateAsync(String resourceGroupName, String accountName, String poolName, String volumeName) { final RelocateVolumeRequest body = null; - return beginRelocateAsync(resourceGroupName, accountName, poolName, volumeName, body) - .last() + return beginRelocateAsync(resourceGroupName, accountName, poolName, volumeName, body).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6653,23 +5566,17 @@ private Mono relocateAsync(String resourceGroupName, String accountName, S * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono relocateAsync( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - RelocateVolumeRequest body, - Context context) { - return beginRelocateAsync(resourceGroupName, accountName, poolName, volumeName, body, context) - .last() + private Mono relocateAsync(String resourceGroupName, String accountName, String poolName, String volumeName, + RelocateVolumeRequest body, Context context) { + return beginRelocateAsync(resourceGroupName, accountName, poolName, volumeName, body, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6686,9 +5593,9 @@ public void relocate(String resourceGroupName, String accountName, String poolNa /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -6700,21 +5607,16 @@ public void relocate(String resourceGroupName, String accountName, String poolNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void relocate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - RelocateVolumeRequest body, - Context context) { + public void relocate(String resourceGroupName, String accountName, String poolName, String volumeName, + RelocateVolumeRequest body, Context context) { relocateAsync(resourceGroupName, accountName, poolName, volumeName, body, context).block(); } /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -6725,19 +5627,15 @@ public void relocate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> finalizeRelocationWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono>> finalizeRelocationWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -6752,27 +5650,19 @@ private Mono>> finalizeRelocationWithResponseAsync( 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 - .finalizeRelocation( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context)) + context -> service.finalizeRelocation(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())); } /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -6784,19 +5674,15 @@ private Mono>> finalizeRelocationWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> finalizeRelocationWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono>> finalizeRelocationWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -6811,24 +5697,17 @@ private Mono>> finalizeRelocationWithResponseAsync( 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 - .finalizeRelocation( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context); + return service.finalizeRelocation(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); } /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -6839,21 +5718,19 @@ private Mono>> finalizeRelocationWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginFinalizeRelocationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - Mono>> mono = - finalizeRelocationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginFinalizeRelocationAsync(String resourceGroupName, + String accountName, String poolName, String volumeName) { + Mono>> mono + = finalizeRelocationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -6865,21 +5742,20 @@ private PollerFlux, Void> beginFinalizeRelocationAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginFinalizeRelocationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private PollerFlux, Void> beginFinalizeRelocationAsync(String resourceGroupName, + String accountName, String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - finalizeRelocationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = finalizeRelocationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -6890,16 +5766,16 @@ private PollerFlux, Void> beginFinalizeRelocationAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginFinalizeRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public SyncPoller, Void> beginFinalizeRelocation(String resourceGroupName, String accountName, + String poolName, String volumeName) { return this.beginFinalizeRelocationAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); } /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -6911,18 +5787,17 @@ public SyncPoller, Void> beginFinalizeRelocation( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginFinalizeRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return this - .beginFinalizeRelocationAsync(resourceGroupName, accountName, poolName, volumeName, context) + public SyncPoller, Void> beginFinalizeRelocation(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + return this.beginFinalizeRelocationAsync(resourceGroupName, accountName, poolName, volumeName, context) .getSyncPoller(); } /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -6933,18 +5808,17 @@ public SyncPoller, Void> beginFinalizeRelocation( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono finalizeRelocationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return beginFinalizeRelocationAsync(resourceGroupName, accountName, poolName, volumeName) - .last() + private Mono finalizeRelocationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return beginFinalizeRelocationAsync(resourceGroupName, accountName, poolName, volumeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -6956,18 +5830,17 @@ private Mono finalizeRelocationAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono finalizeRelocationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return beginFinalizeRelocationAsync(resourceGroupName, accountName, poolName, volumeName, context) - .last() + private Mono finalizeRelocationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return beginFinalizeRelocationAsync(resourceGroupName, accountName, poolName, volumeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -6983,9 +5856,9 @@ public void finalizeRelocation(String resourceGroupName, String accountName, Str /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -6996,16 +5869,16 @@ public void finalizeRelocation(String resourceGroupName, String accountName, Str * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void finalizeRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void finalizeRelocation(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { finalizeRelocationAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -7016,19 +5889,15 @@ public void finalizeRelocation( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> revertRelocationWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { + private Mono>> revertRelocationWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -7043,27 +5912,18 @@ private Mono>> revertRelocationWithResponseAsync( 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 - .revertRelocation( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context)) + .withContext(context -> service.revertRelocation(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())); } /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -7075,19 +5935,15 @@ private Mono>> revertRelocationWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> revertRelocationWithResponseAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private Mono>> revertRelocationWithResponseAsync(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.")); + 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.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -7102,24 +5958,17 @@ private Mono>> revertRelocationWithResponseAsync( 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 - .revertRelocation( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - accountName, - poolName, - volumeName, - this.client.getApiVersion(), - context); + return service.revertRelocation(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + accountName, poolName, volumeName, this.client.getApiVersion(), accept, context); } /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -7130,21 +5979,19 @@ private Mono>> revertRelocationWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRevertRelocationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - Mono>> mono = - revertRelocationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginRevertRelocationAsync(String resourceGroupName, String accountName, + String poolName, String volumeName) { + Mono>> mono + = revertRelocationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -7156,21 +6003,20 @@ private PollerFlux, Void> beginRevertRelocationAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRevertRelocationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + private PollerFlux, Void> beginRevertRelocationAsync(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - revertRelocationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = revertRelocationWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -7181,16 +6027,16 @@ private PollerFlux, Void> beginRevertRelocationAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRevertRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public SyncPoller, Void> beginRevertRelocation(String resourceGroupName, String accountName, + String poolName, String volumeName) { return this.beginRevertRelocationAsync(resourceGroupName, accountName, poolName, volumeName).getSyncPoller(); } /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -7202,18 +6048,17 @@ public SyncPoller, Void> beginRevertRelocation( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRevertRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return this - .beginRevertRelocationAsync(resourceGroupName, accountName, poolName, volumeName, context) + public SyncPoller, Void> beginRevertRelocation(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + return this.beginRevertRelocationAsync(resourceGroupName, accountName, poolName, volumeName, context) .getSyncPoller(); } /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -7224,18 +6069,17 @@ public SyncPoller, Void> beginRevertRelocation( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono revertRelocationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName) { - return beginRevertRelocationAsync(resourceGroupName, accountName, poolName, volumeName) - .last() + private Mono revertRelocationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName) { + return beginRevertRelocationAsync(resourceGroupName, accountName, poolName, volumeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -7247,18 +6091,17 @@ private Mono revertRelocationAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono revertRelocationAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - return beginRevertRelocationAsync(resourceGroupName, accountName, poolName, volumeName, context) - .last() + private Mono revertRelocationAsync(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + return beginRevertRelocationAsync(resourceGroupName, accountName, poolName, volumeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -7274,9 +6117,9 @@ public void revertRelocation(String resourceGroupName, String accountName, Strin /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -7287,16 +6130,17 @@ public void revertRelocation(String resourceGroupName, String accountName, Strin * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void revertRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void revertRelocation(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { revertRelocationAsync(resourceGroupName, accountName, poolName, volumeName, context).block(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -7308,31 +6152,22 @@ private Mono> listNextSinglePageAsync(String nextLink 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.")); + 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)) + 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 - *

The nextLink parameter. + * + * The nextLink parameter. * @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. @@ -7345,23 +6180,13 @@ private Mono> listNextSinglePageAsync(String nextLink 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.")); + 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)); + 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/VolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java index cfcda0bf3ad6..a3f8220afed6 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 @@ -50,15 +50,12 @@ public PagedIterable list(String resourceGroupName, String accountName, return Utils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, accountName, poolName, volumeName, context); + public Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, poolName, volumeName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new VolumeImpl(inner.getValue(), this.manager())); } else { return null; @@ -78,20 +75,15 @@ public void delete(String resourceGroupName, String accountName, String poolName this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName); } - public void delete( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - Boolean forceDelete, - Context context) { + public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + Boolean forceDelete, Context context) { this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, forceDelete, context); } - public Volume populateAvailabilityZone( - String resourceGroupName, String accountName, String poolName, String volumeName) { - VolumeInner inner = - this.serviceClient().populateAvailabilityZone(resourceGroupName, accountName, poolName, volumeName); + public Volume populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, + String volumeName) { + VolumeInner inner + = this.serviceClient().populateAvailabilityZone(resourceGroupName, accountName, poolName, volumeName); if (inner != null) { return new VolumeImpl(inner, this.manager()); } else { @@ -99,12 +91,10 @@ public Volume populateAvailabilityZone( } } - public Volume populateAvailabilityZone( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - VolumeInner inner = - this - .serviceClient() - .populateAvailabilityZone(resourceGroupName, accountName, poolName, volumeName, context); + public Volume populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + VolumeInner inner = this.serviceClient().populateAvailabilityZone(resourceGroupName, accountName, poolName, + volumeName, context); if (inner != null) { return new VolumeImpl(inner, this.manager()); } else { @@ -112,18 +102,13 @@ public Volume populateAvailabilityZone( } } - public void revert( - String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body) { + public void revert(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumeRevert body) { this.serviceClient().revert(resourceGroupName, accountName, poolName, volumeName, body); } - public void revert( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeRevert body, - Context context) { + public void revert(String resourceGroupName, String accountName, String poolName, String volumeName, + VolumeRevert body, Context context) { this.serviceClient().revert(resourceGroupName, accountName, poolName, volumeName, body, context); } @@ -131,8 +116,8 @@ public void resetCifsPassword(String resourceGroupName, String accountName, Stri this.serviceClient().resetCifsPassword(resourceGroupName, accountName, poolName, volumeName); } - public void resetCifsPassword( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { this.serviceClient().resetCifsPassword(resourceGroupName, accountName, poolName, volumeName, context); } @@ -140,26 +125,15 @@ public void breakFileLocks(String resourceGroupName, String accountName, String this.serviceClient().breakFileLocks(resourceGroupName, accountName, poolName, volumeName); } - public void breakFileLocks( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakFileLocksRequest body, - Context context) { + public void breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName, + BreakFileLocksRequest body, Context context) { this.serviceClient().breakFileLocks(resourceGroupName, accountName, poolName, volumeName, body, context); } - public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body) { - GetGroupIdListForLdapUserResponseInner inner = - this - .serviceClient() - .listGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body); + public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, + String poolName, String volumeName, GetGroupIdListForLdapUserRequest body) { + GetGroupIdListForLdapUserResponseInner inner = this.serviceClient() + .listGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body); if (inner != null) { return new GetGroupIdListForLdapUserResponseImpl(inner, this.manager()); } else { @@ -167,17 +141,10 @@ public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( } } - public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body, - Context context) { - GetGroupIdListForLdapUserResponseInner inner = - this - .serviceClient() - .listGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body, context); + public GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, + String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context) { + GetGroupIdListForLdapUserResponseInner inner = this.serviceClient() + .listGetGroupIdListForLdapUser(resourceGroupName, accountName, poolName, volumeName, body, context); if (inner != null) { return new GetGroupIdListForLdapUserResponseImpl(inner, this.manager()); } else { @@ -189,58 +156,38 @@ public void breakReplication(String resourceGroupName, String accountName, Strin this.serviceClient().breakReplication(resourceGroupName, accountName, poolName, volumeName); } - public void breakReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body, - Context context) { + public void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + BreakReplicationRequest body, Context context) { this.serviceClient().breakReplication(resourceGroupName, accountName, poolName, volumeName, body, context); } - public void reestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, + public void reestablishReplication(String resourceGroupName, String accountName, String poolName, String volumeName, ReestablishReplicationRequest body) { this.serviceClient().reestablishReplication(resourceGroupName, accountName, poolName, volumeName, body); } - public void reestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body, - Context context) { - this - .serviceClient() - .reestablishReplication(resourceGroupName, accountName, poolName, volumeName, body, context); + public void reestablishReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + ReestablishReplicationRequest body, Context context) { + this.serviceClient().reestablishReplication(resourceGroupName, accountName, poolName, volumeName, body, + context); } - public Response replicationStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - Response inner = - this - .serviceClient() - .replicationStatusWithResponse(resourceGroupName, accountName, poolName, volumeName, context); + public Response replicationStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context) { + Response inner = this.serviceClient().replicationStatusWithResponse(resourceGroupName, + accountName, poolName, volumeName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ReplicationStatusImpl(inner.getValue(), this.manager())); } else { return null; } } - public ReplicationStatus replicationStatus( - String resourceGroupName, String accountName, String poolName, String volumeName) { - ReplicationStatusInner inner = - this.serviceClient().replicationStatus(resourceGroupName, accountName, poolName, volumeName); + public ReplicationStatus replicationStatus(String resourceGroupName, String accountName, String poolName, + String volumeName) { + ReplicationStatusInner inner + = this.serviceClient().replicationStatus(resourceGroupName, accountName, poolName, volumeName); if (inner != null) { return new ReplicationStatusImpl(inner, this.manager()); } else { @@ -248,17 +195,17 @@ public ReplicationStatus replicationStatus( } } - public PagedIterable listReplications( - String resourceGroupName, String accountName, String poolName, String volumeName) { - PagedIterable inner = - this.serviceClient().listReplications(resourceGroupName, accountName, poolName, volumeName); + public PagedIterable listReplications(String resourceGroupName, String accountName, String poolName, + String volumeName) { + PagedIterable inner + = this.serviceClient().listReplications(resourceGroupName, accountName, poolName, volumeName); return Utils.mapPage(inner, inner1 -> new ReplicationImpl(inner1, this.manager())); } - public PagedIterable listReplications( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { - PagedIterable inner = - this.serviceClient().listReplications(resourceGroupName, accountName, poolName, volumeName, context); + public PagedIterable listReplications(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { + PagedIterable inner + = this.serviceClient().listReplications(resourceGroupName, accountName, poolName, volumeName, context); return Utils.mapPage(inner, inner1 -> new ReplicationImpl(inner1, this.manager())); } @@ -266,8 +213,8 @@ public void resyncReplication(String resourceGroupName, String accountName, Stri this.serviceClient().resyncReplication(resourceGroupName, accountName, poolName, volumeName); } - public void resyncReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void resyncReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { this.serviceClient().resyncReplication(resourceGroupName, accountName, poolName, volumeName, context); } @@ -275,48 +222,38 @@ public void deleteReplication(String resourceGroupName, String accountName, Stri this.serviceClient().deleteReplication(resourceGroupName, accountName, poolName, volumeName); } - public void deleteReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void deleteReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { this.serviceClient().deleteReplication(resourceGroupName, accountName, poolName, volumeName, context); } - public void authorizeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body) { + public void authorizeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + AuthorizeRequest body) { this.serviceClient().authorizeReplication(resourceGroupName, accountName, poolName, volumeName, body); } - public void authorizeReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - AuthorizeRequest body, - Context context) { + public void authorizeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + AuthorizeRequest body, Context context) { this.serviceClient().authorizeReplication(resourceGroupName, accountName, poolName, volumeName, body, context); } - public void reInitializeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName) { + public void reInitializeReplication(String resourceGroupName, String accountName, String poolName, + String volumeName) { this.serviceClient().reInitializeReplication(resourceGroupName, accountName, poolName, volumeName); } - public void reInitializeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void reInitializeReplication(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context) { this.serviceClient().reInitializeReplication(resourceGroupName, accountName, poolName, volumeName, context); } - public void poolChange( - String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body) { + public void poolChange(String resourceGroupName, String accountName, String poolName, String volumeName, + PoolChangeRequest body) { this.serviceClient().poolChange(resourceGroupName, accountName, poolName, volumeName, body); } - public void poolChange( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - PoolChangeRequest body, - Context context) { + public void poolChange(String resourceGroupName, String accountName, String poolName, String volumeName, + PoolChangeRequest body, Context context) { this.serviceClient().poolChange(resourceGroupName, accountName, poolName, volumeName, body, context); } @@ -324,13 +261,8 @@ public void relocate(String resourceGroupName, String accountName, String poolNa this.serviceClient().relocate(resourceGroupName, accountName, poolName, volumeName); } - public void relocate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - RelocateVolumeRequest body, - Context context) { + public void relocate(String resourceGroupName, String accountName, String poolName, String volumeName, + RelocateVolumeRequest body, Context context) { this.serviceClient().relocate(resourceGroupName, accountName, poolName, volumeName, body, context); } @@ -338,8 +270,8 @@ public void finalizeRelocation(String resourceGroupName, String accountName, Str this.serviceClient().finalizeRelocation(resourceGroupName, accountName, poolName, volumeName); } - public void finalizeRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void finalizeRelocation(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { this.serviceClient().finalizeRelocation(resourceGroupName, accountName, poolName, volumeName, context); } @@ -347,41 +279,31 @@ public void revertRelocation(String resourceGroupName, String accountName, Strin this.serviceClient().revertRelocation(resourceGroupName, accountName, poolName, volumeName); } - public void revertRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context) { + public void revertRelocation(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context) { this.serviceClient().revertRelocation(resourceGroupName, accountName, poolName, volumeName, context); } public Volume getById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE).getValue(); } @@ -389,33 +311,23 @@ public Volume getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, context); } @@ -423,33 +335,23 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } Boolean localForceDelete = null; this.delete(resourceGroupName, accountName, poolName, volumeName, localForceDelete, Context.NONE); @@ -458,33 +360,23 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Boolean forceDelete, Context context) { String resourceGroupName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'netAppAccounts'.", id))); } String poolName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } this.delete(resourceGroupName, accountName, poolName, volumeName, forceDelete, context); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java index b191a2355b40..b3a2261213b0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the implementations for NetAppManagementClient. Microsoft NetApp Files Azure Resource Provider - * specification. + * Package containing the implementations for NetAppManagementClient. + * Microsoft NetApp Files Azure Resource Provider specification. */ package com.azure.resourcemanager.netapp.implementation; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java index 740ac1053d1c..9456e541018d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java @@ -7,11 +7,13 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Encryption settings. */ +/** + * Encryption settings. + */ @Fluent public final class AccountEncryption { /* - * The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault + * The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault */ @JsonProperty(value = "keySource") private KeySource keySource; @@ -28,14 +30,16 @@ public final class AccountEncryption { @JsonProperty(value = "identity") private EncryptionIdentity identity; - /** Creates an instance of AccountEncryption class. */ + /** + * Creates an instance of AccountEncryption class. + */ public AccountEncryption() { } /** * Get the keySource property: The encryption keySource (provider). Possible values (case-insensitive): * Microsoft.NetApp, Microsoft.KeyVault. - * + * * @return the keySource value. */ public KeySource keySource() { @@ -45,7 +49,7 @@ public KeySource keySource() { /** * Set the keySource property: The encryption keySource (provider). Possible values (case-insensitive): * Microsoft.NetApp, Microsoft.KeyVault. - * + * * @param keySource the keySource value to set. * @return the AccountEncryption object itself. */ @@ -57,7 +61,7 @@ public AccountEncryption withKeySource(KeySource keySource) { /** * Get the keyVaultProperties property: Properties provided by KeVault. Applicable if keySource is * 'Microsoft.KeyVault'. - * + * * @return the keyVaultProperties value. */ public KeyVaultProperties keyVaultProperties() { @@ -67,7 +71,7 @@ public KeyVaultProperties keyVaultProperties() { /** * Set the keyVaultProperties property: Properties provided by KeVault. Applicable if keySource is * 'Microsoft.KeyVault'. - * + * * @param keyVaultProperties the keyVaultProperties value to set. * @return the AccountEncryption object itself. */ @@ -79,7 +83,7 @@ public AccountEncryption withKeyVaultProperties(KeyVaultProperties keyVaultPrope /** * Get the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is * 'Microsoft.KeyVault'. - * + * * @return the identity value. */ public EncryptionIdentity identity() { @@ -89,7 +93,7 @@ public EncryptionIdentity identity() { /** * Set the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is * 'Microsoft.KeyVault'. - * + * * @param identity the identity value to set. * @return the AccountEncryption object itself. */ @@ -100,7 +104,7 @@ public AccountEncryption withIdentity(EncryptionIdentity identity) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java index e199fba91bf4..e7c8474d99a2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Accounts. */ +/** + * Resource collection API of Accounts. + */ public interface Accounts { /** * Describe all NetApp Accounts in a subscription - * - *

List and describe all NetApp accounts in the subscription. - * + * + * List and describe all NetApp accounts in the subscription. + * * @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 NetApp account resources as paginated response with {@link PagedIterable}. @@ -23,9 +25,9 @@ public interface Accounts { /** * Describe all NetApp Accounts in a subscription - * - *

List and describe all NetApp accounts in the subscription. - * + * + * List and describe all NetApp accounts in the subscription. + * * @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. @@ -36,9 +38,9 @@ public interface Accounts { /** * Describe all NetApp Accounts in a resource group - * - *

List and describe all NetApp accounts in the resource group. - * + * + * List and describe all NetApp accounts in the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -49,9 +51,9 @@ public interface Accounts { /** * Describe all NetApp Accounts in a resource group - * - *

List and describe all NetApp accounts in the resource group. - * + * + * List and describe all NetApp accounts in the resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -63,9 +65,9 @@ public interface Accounts { /** * Describe a NetApp Account - * - *

Get the NetApp account. - * + * + * Get the NetApp account. + * * @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. @@ -74,14 +76,14 @@ public interface Accounts { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the NetApp account along with {@link Response}. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context); + Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, + Context context); /** * Describe a NetApp Account - * - *

Get the NetApp account. - * + * + * Get the NetApp account. + * * @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. @@ -93,9 +95,9 @@ Response getByResourceGroupWithResponse( /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -106,9 +108,9 @@ Response getByResourceGroupWithResponse( /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -120,10 +122,10 @@ Response getByResourceGroupWithResponse( /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -134,10 +136,10 @@ Response getByResourceGroupWithResponse( /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. @@ -149,9 +151,9 @@ Response getByResourceGroupWithResponse( /** * Describe a NetApp Account - * - *

Get the NetApp account. - * + * + * Get the NetApp account. + * * @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. @@ -162,9 +164,9 @@ Response getByResourceGroupWithResponse( /** * Describe a NetApp Account - * - *

Get the NetApp account. - * + * + * Get the NetApp account. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -176,9 +178,9 @@ Response getByResourceGroupWithResponse( /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @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. @@ -188,9 +190,9 @@ Response getByResourceGroupWithResponse( /** * Delete a NetApp account - * - *

Delete the specified NetApp account. - * + * + * Delete the specified NetApp account. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -201,7 +203,7 @@ Response getByResourceGroupWithResponse( /** * Begins definition for a new NetAppAccount resource. - * + * * @param name resource name. * @return the first stage of the new NetAppAccount definition. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java index 9d686549fa1d..4cf1648cab91 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Active Directory. */ +/** + * Active Directory. + */ @Fluent public final class ActiveDirectory { /* @@ -157,13 +159,15 @@ public final class ActiveDirectory { @JsonProperty(value = "preferredServersForLdapClient") private String preferredServersForLdapClient; - /** Creates an instance of ActiveDirectory class. */ + /** + * Creates an instance of ActiveDirectory class. + */ public ActiveDirectory() { } /** * Get the activeDirectoryId property: Id of the Active Directory. - * + * * @return the activeDirectoryId value. */ public String activeDirectoryId() { @@ -172,7 +176,7 @@ public String activeDirectoryId() { /** * Set the activeDirectoryId property: Id of the Active Directory. - * + * * @param activeDirectoryId the activeDirectoryId value to set. * @return the ActiveDirectory object itself. */ @@ -183,7 +187,7 @@ public ActiveDirectory withActiveDirectoryId(String activeDirectoryId) { /** * Get the username property: A domain user account with permission to create machine accounts. - * + * * @return the username value. */ public String username() { @@ -192,7 +196,7 @@ public String username() { /** * Set the username property: A domain user account with permission to create machine accounts. - * + * * @param username the username value to set. * @return the ActiveDirectory object itself. */ @@ -204,7 +208,7 @@ public ActiveDirectory withUsername(String username) { /** * Get the password property: Plain text password of Active Directory domain administrator, value is masked in the * response. - * + * * @return the password value. */ public String password() { @@ -214,7 +218,7 @@ public String password() { /** * Set the password property: Plain text password of Active Directory domain administrator, value is masked in the * response. - * + * * @param password the password value to set. * @return the ActiveDirectory object itself. */ @@ -225,7 +229,7 @@ public ActiveDirectory withPassword(String password) { /** * Get the domain property: Name of the Active Directory domain. - * + * * @return the domain value. */ public String domain() { @@ -234,7 +238,7 @@ public String domain() { /** * Set the domain property: Name of the Active Directory domain. - * + * * @param domain the domain value to set. * @return the ActiveDirectory object itself. */ @@ -246,7 +250,7 @@ public ActiveDirectory withDomain(String domain) { /** * Get the dns property: Comma separated list of DNS server IP addresses (IPv4 only) for the Active Directory * domain. - * + * * @return the dns value. */ public String dns() { @@ -256,7 +260,7 @@ public String dns() { /** * Set the dns property: Comma separated list of DNS server IP addresses (IPv4 only) for the Active Directory * domain. - * + * * @param dns the dns value to set. * @return the ActiveDirectory object itself. */ @@ -267,7 +271,7 @@ public ActiveDirectory withDns(String dns) { /** * Get the status property: Status of the Active Directory. - * + * * @return the status value. */ public ActiveDirectoryStatus status() { @@ -276,7 +280,7 @@ public ActiveDirectoryStatus status() { /** * Get the statusDetails property: Any details in regards to the Status of the Active Directory. - * + * * @return the statusDetails value. */ public String statusDetails() { @@ -286,7 +290,7 @@ public String statusDetails() { /** * Get the smbServerName property: NetBIOS name of the SMB server. This name will be registered as a computer * account in the AD and used to mount volumes. - * + * * @return the smbServerName value. */ public String smbServerName() { @@ -296,7 +300,7 @@ public String smbServerName() { /** * Set the smbServerName property: NetBIOS name of the SMB server. This name will be registered as a computer * account in the AD and used to mount volumes. - * + * * @param smbServerName the smbServerName value to set. * @return the ActiveDirectory object itself. */ @@ -307,7 +311,7 @@ public ActiveDirectory withSmbServerName(String smbServerName) { /** * Get the organizationalUnit property: The Organizational Unit (OU) within the Windows Active Directory. - * + * * @return the organizationalUnit value. */ public String organizationalUnit() { @@ -316,7 +320,7 @@ public String organizationalUnit() { /** * Set the organizationalUnit property: The Organizational Unit (OU) within the Windows Active Directory. - * + * * @param organizationalUnit the organizationalUnit value to set. * @return the ActiveDirectory object itself. */ @@ -327,7 +331,7 @@ public ActiveDirectory withOrganizationalUnit(String organizationalUnit) { /** * Get the site property: The Active Directory site the service will limit Domain Controller discovery to. - * + * * @return the site value. */ public String site() { @@ -336,7 +340,7 @@ public String site() { /** * Set the site property: The Active Directory site the service will limit Domain Controller discovery to. - * + * * @param site the site value to set. * @return the ActiveDirectory object itself. */ @@ -348,7 +352,7 @@ public ActiveDirectory withSite(String site) { /** * Get the backupOperators property: Users to be added to the Built-in Backup Operator active directory group. A * list of unique usernames without domain specifier. - * + * * @return the backupOperators value. */ public List backupOperators() { @@ -358,7 +362,7 @@ public List backupOperators() { /** * Set the backupOperators property: Users to be added to the Built-in Backup Operator active directory group. A * list of unique usernames without domain specifier. - * + * * @param backupOperators the backupOperators value to set. * @return the ActiveDirectory object itself. */ @@ -370,7 +374,7 @@ public ActiveDirectory withBackupOperators(List backupOperators) { /** * Get the administrators property: Users to be added to the Built-in Administrators active directory group. A list * of unique usernames without domain specifier. - * + * * @return the administrators value. */ public List administrators() { @@ -380,7 +384,7 @@ public List administrators() { /** * Set the administrators property: Users to be added to the Built-in Administrators active directory group. A list * of unique usernames without domain specifier. - * + * * @param administrators the administrators value to set. * @return the ActiveDirectory object itself. */ @@ -390,9 +394,9 @@ public ActiveDirectory withAdministrators(List administrators) { } /** - * Get the kdcIp property: kdc server IP addresses for the active directory machine. This optional parameter is used - * only while creating kerberos volume. - * + * Get the kdcIp property: kdc server IP addresses for the active directory machine. This optional parameter is + * used only while creating kerberos volume. + * * @return the kdcIp value. */ public String kdcIp() { @@ -400,9 +404,9 @@ public String kdcIp() { } /** - * Set the kdcIp property: kdc server IP addresses for the active directory machine. This optional parameter is used - * only while creating kerberos volume. - * + * Set the kdcIp property: kdc server IP addresses for the active directory machine. This optional parameter is + * used only while creating kerberos volume. + * * @param kdcIp the kdcIp value to set. * @return the ActiveDirectory object itself. */ @@ -414,7 +418,7 @@ public ActiveDirectory withKdcIp(String kdcIp) { /** * Get the adName property: Name of the active directory machine. This optional parameter is used only while * creating kerberos volume. - * + * * @return the adName value. */ public String adName() { @@ -424,7 +428,7 @@ public String adName() { /** * Set the adName property: Name of the active directory machine. This optional parameter is used only while * creating kerberos volume. - * + * * @param adName the adName value to set. * @return the ActiveDirectory object itself. */ @@ -435,9 +439,9 @@ public ActiveDirectory withAdName(String adName) { /** * Get the serverRootCACertificate property: When LDAP over SSL/TLS is enabled, the LDAP client is required to have - * base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter is - * used only for dual protocol with LDAP user-mapping volumes. - * + * base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter + * is used only for dual protocol with LDAP user-mapping volumes. + * * @return the serverRootCACertificate value. */ public String serverRootCACertificate() { @@ -446,9 +450,9 @@ public String serverRootCACertificate() { /** * Set the serverRootCACertificate property: When LDAP over SSL/TLS is enabled, the LDAP client is required to have - * base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter is - * used only for dual protocol with LDAP user-mapping volumes. - * + * base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter + * is used only for dual protocol with LDAP user-mapping volumes. + * * @param serverRootCACertificate the serverRootCACertificate value to set. * @return the ActiveDirectory object itself. */ @@ -459,7 +463,7 @@ public ActiveDirectory withServerRootCACertificate(String serverRootCACertificat /** * Get the aesEncryption property: If enabled, AES encryption will be enabled for SMB communication. - * + * * @return the aesEncryption value. */ public Boolean aesEncryption() { @@ -468,7 +472,7 @@ public Boolean aesEncryption() { /** * Set the aesEncryption property: If enabled, AES encryption will be enabled for SMB communication. - * + * * @param aesEncryption the aesEncryption value to set. * @return the ActiveDirectory object itself. */ @@ -479,7 +483,7 @@ public ActiveDirectory withAesEncryption(Boolean aesEncryption) { /** * Get the ldapSigning property: Specifies whether or not the LDAP traffic needs to be signed. - * + * * @return the ldapSigning value. */ public Boolean ldapSigning() { @@ -488,7 +492,7 @@ public Boolean ldapSigning() { /** * Set the ldapSigning property: Specifies whether or not the LDAP traffic needs to be signed. - * + * * @param ldapSigning the ldapSigning value to set. * @return the ActiveDirectory object itself. */ @@ -501,7 +505,7 @@ public ActiveDirectory withLdapSigning(Boolean ldapSigning) { * Get the securityOperators property: Domain Users in the Active directory to be given SeSecurityPrivilege * privilege (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain * specifier. - * + * * @return the securityOperators value. */ public List securityOperators() { @@ -512,7 +516,7 @@ public List securityOperators() { * Set the securityOperators property: Domain Users in the Active directory to be given SeSecurityPrivilege * privilege (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain * specifier. - * + * * @param securityOperators the securityOperators value to set. * @return the ActiveDirectory object itself. */ @@ -523,7 +527,7 @@ public ActiveDirectory withSecurityOperators(List securityOperators) { /** * Get the ldapOverTls property: Specifies whether or not the LDAP traffic needs to be secured via TLS. - * + * * @return the ldapOverTls value. */ public Boolean ldapOverTls() { @@ -532,7 +536,7 @@ public Boolean 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 ActiveDirectory object itself. */ @@ -544,7 +548,7 @@ public ActiveDirectory withLdapOverTls(Boolean ldapOverTls) { /** * Get the allowLocalNfsUsersWithLdap property: If enabled, NFS client local users can also (in addition to LDAP * users) access the NFS volumes. - * + * * @return the allowLocalNfsUsersWithLdap value. */ public Boolean allowLocalNfsUsersWithLdap() { @@ -554,7 +558,7 @@ public Boolean allowLocalNfsUsersWithLdap() { /** * Set the allowLocalNfsUsersWithLdap property: If enabled, NFS client local users can also (in addition to LDAP * users) access the NFS volumes. - * + * * @param allowLocalNfsUsersWithLdap the allowLocalNfsUsersWithLdap value to set. * @return the ActiveDirectory object itself. */ @@ -566,7 +570,7 @@ public ActiveDirectory withAllowLocalNfsUsersWithLdap(Boolean allowLocalNfsUsers /** * Get the encryptDCConnections property: If enabled, Traffic between the SMB server to Domain Controller (DC) will * be encrypted. - * + * * @return the encryptDCConnections value. */ public Boolean encryptDCConnections() { @@ -576,7 +580,7 @@ public Boolean encryptDCConnections() { /** * Set the encryptDCConnections property: If enabled, Traffic between the SMB server to Domain Controller (DC) will * be encrypted. - * + * * @param encryptDCConnections the encryptDCConnections value to set. * @return the ActiveDirectory object itself. */ @@ -587,7 +591,7 @@ public ActiveDirectory withEncryptDCConnections(Boolean encryptDCConnections) { /** * Get the ldapSearchScope property: LDAP Search scope options. - * + * * @return the ldapSearchScope value. */ public LdapSearchScopeOpt ldapSearchScope() { @@ -596,7 +600,7 @@ public LdapSearchScopeOpt ldapSearchScope() { /** * Set the ldapSearchScope property: LDAP Search scope options. - * + * * @param ldapSearchScope the ldapSearchScope value to set. * @return the ActiveDirectory object itself. */ @@ -608,7 +612,7 @@ public ActiveDirectory withLdapSearchScope(LdapSearchScopeOpt ldapSearchScope) { /** * Get the preferredServersForLdapClient property: Comma separated list of IPv4 addresses of preferred servers for * LDAP client. At most two comma separated IPv4 addresses can be passed. - * + * * @return the preferredServersForLdapClient value. */ public String preferredServersForLdapClient() { @@ -618,7 +622,7 @@ public String preferredServersForLdapClient() { /** * Set the preferredServersForLdapClient property: Comma separated list of IPv4 addresses of preferred servers for * LDAP client. At most two comma separated IPv4 addresses can be passed. - * + * * @param preferredServersForLdapClient the preferredServersForLdapClient value to set. * @return the ActiveDirectory object itself. */ @@ -629,7 +633,7 @@ public ActiveDirectory withPreferredServersForLdapClient(String preferredServers /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java index 1cd211261753..2c06f1a14a19 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java @@ -8,26 +8,38 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Status of the Active Directory. */ +/** + * Status of the Active Directory. + */ public final class ActiveDirectoryStatus extends ExpandableStringEnum { - /** Static value Created for ActiveDirectoryStatus. */ + /** + * Static value Created for ActiveDirectoryStatus. + */ public static final ActiveDirectoryStatus CREATED = fromString("Created"); - /** Static value InUse for ActiveDirectoryStatus. */ + /** + * Static value InUse for ActiveDirectoryStatus. + */ public static final ActiveDirectoryStatus IN_USE = fromString("InUse"); - /** Static value Deleted for ActiveDirectoryStatus. */ + /** + * Static value Deleted for ActiveDirectoryStatus. + */ public static final ActiveDirectoryStatus DELETED = fromString("Deleted"); - /** Static value Error for ActiveDirectoryStatus. */ + /** + * Static value Error for ActiveDirectoryStatus. + */ public static final ActiveDirectoryStatus ERROR = fromString("Error"); - /** Static value Updating for ActiveDirectoryStatus. */ + /** + * Static value Updating for ActiveDirectoryStatus. + */ public static final ActiveDirectoryStatus UPDATING = fromString("Updating"); /** * Creates a new instance of ActiveDirectoryStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,7 +48,7 @@ public ActiveDirectoryStatus() { /** * Creates or finds a ActiveDirectoryStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding ActiveDirectoryStatus. */ @@ -47,7 +59,7 @@ public static ActiveDirectoryStatus fromString(String name) { /** * Gets known ActiveDirectoryStatus values. - * + * * @return known ActiveDirectoryStatus values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java index 9088823db74e..4bf81e7f607d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Application Type. */ +/** + * Application Type. + */ public final class ApplicationType extends ExpandableStringEnum { - /** Static value SAP-HANA for ApplicationType. */ + /** + * Static value SAP-HANA for ApplicationType. + */ public static final ApplicationType SAP_HANA = fromString("SAP-HANA"); - /** Static value ORACLE for ApplicationType. */ + /** + * Static value ORACLE for ApplicationType. + */ public static final ApplicationType ORACLE = fromString("ORACLE"); /** * Creates a new instance of ApplicationType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public ApplicationType() { /** * Creates or finds a ApplicationType from its string representation. - * + * * @param name a name to look for. * @return the corresponding ApplicationType. */ @@ -38,7 +44,7 @@ public static ApplicationType fromString(String name) { /** * Gets known ApplicationType values. - * + * * @return known ApplicationType values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java index 8df4ad87c090..f50feecac3fd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Authorize request. */ +/** + * Authorize request. + */ @Fluent public final class AuthorizeRequest { /* @@ -16,13 +18,15 @@ public final class AuthorizeRequest { @JsonProperty(value = "remoteVolumeResourceId") private String remoteVolumeResourceId; - /** Creates an instance of AuthorizeRequest class. */ + /** + * Creates an instance of AuthorizeRequest class. + */ public AuthorizeRequest() { } /** * Get the remoteVolumeResourceId property: Resource id of the remote volume. - * + * * @return the remoteVolumeResourceId value. */ public String remoteVolumeResourceId() { @@ -31,7 +35,7 @@ public String remoteVolumeResourceId() { /** * Set the remoteVolumeResourceId property: Resource id of the remote volume. - * + * * @param remoteVolumeResourceId the remoteVolumeResourceId value to set. * @return the AuthorizeRequest object itself. */ @@ -42,7 +46,7 @@ public AuthorizeRequest withRemoteVolumeResourceId(String remoteVolumeResourceId /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java index 6e2ee96a45e6..90ed71680a69 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java @@ -10,19 +10,23 @@ /** * avsDataStore - * - *

Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + * + * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. */ public final class AvsDataStore extends ExpandableStringEnum { - /** Static value Enabled for AvsDataStore. */ + /** + * Static value Enabled for AvsDataStore. + */ public static final AvsDataStore ENABLED = fromString("Enabled"); - /** Static value Disabled for AvsDataStore. */ + /** + * Static value Disabled for AvsDataStore. + */ public static final AvsDataStore DISABLED = fromString("Disabled"); /** * Creates a new instance of AvsDataStore value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -31,7 +35,7 @@ public AvsDataStore() { /** * Creates or finds a AvsDataStore from its string representation. - * + * * @param name a name to look for. * @return the corresponding AvsDataStore. */ @@ -42,7 +46,7 @@ public static AvsDataStore fromString(String name) { /** * Gets known AvsDataStore values. - * + * * @return known AvsDataStore values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java index 167d09407c1a..9d42c83cf9ad 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of BackupPolicies. */ +/** + * Resource collection API of BackupPolicies. + */ public interface BackupPolicies { /** * List backup policies - * - *

List backup policies for Netapp Account. - * + * + * List backup policies for Netapp Account. + * * @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. @@ -26,9 +28,9 @@ public interface BackupPolicies { /** * List backup policies - * - *

List backup policies for Netapp Account. - * + * + * List backup policies for Netapp Account. + * * @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. @@ -41,9 +43,9 @@ public interface BackupPolicies { /** * Get a backup Policy - * - *

Get a particular backup Policy. - * + * + * Get a particular backup Policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -53,14 +55,14 @@ public interface BackupPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a particular backup Policy along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String accountName, String backupPolicyName, Context context); + Response getWithResponse(String resourceGroupName, String accountName, String backupPolicyName, + Context context); /** * Get a backup Policy - * - *

Get a particular backup Policy. - * + * + * Get a particular backup Policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -73,9 +75,9 @@ Response getWithResponse( /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -87,9 +89,9 @@ Response getWithResponse( /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param backupPolicyName Backup policy Name which uniquely identify backup policy. @@ -102,9 +104,9 @@ Response getWithResponse( /** * Get a backup Policy - * - *

Get a particular backup Policy. - * + * + * Get a particular backup Policy. + * * @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. @@ -115,9 +117,9 @@ Response getWithResponse( /** * Get a backup Policy - * - *

Get a particular backup Policy. - * + * + * Get a particular backup Policy. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -129,9 +131,9 @@ Response getWithResponse( /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @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. @@ -141,9 +143,9 @@ Response getWithResponse( /** * Delete a backup policy - * - *

Delete backup policy. - * + * + * Delete backup policy. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -154,7 +156,7 @@ Response getWithResponse( /** * Begins definition for a new BackupPolicy resource. - * + * * @param name resource name. * @return the first stage of the new BackupPolicy definition. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java index ea183dd7e6dc..322ece1823e2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of Backup Policies. */ +/** + * List of Backup Policies. + */ @Fluent public final class BackupPoliciesList { /* @@ -18,13 +20,15 @@ public final class BackupPoliciesList { @JsonProperty(value = "value") private List value; - /** Creates an instance of BackupPoliciesList class. */ + /** + * Creates an instance of BackupPoliciesList class. + */ public BackupPoliciesList() { } /** * Get the value property: A list of backup policies. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: A list of backup policies. - * + * * @param value the value value to set. * @return the BackupPoliciesList object itself. */ @@ -44,7 +48,7 @@ public BackupPoliciesList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java index c79375be54e4..6a1bc36c1db6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java @@ -11,160 +11,167 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of BackupPolicy. */ +/** + * An immutable client-side representation of BackupPolicy. + */ public interface BackupPolicy { /** * 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 location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ String etag(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the backupPolicyId property: Backup Policy Resource ID. - * + * * @return the backupPolicyId value. */ String backupPolicyId(); /** * Gets the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the dailyBackupsToKeep property: Daily backups count to keep. - * + * * @return the dailyBackupsToKeep value. */ Integer dailyBackupsToKeep(); /** * Gets the weeklyBackupsToKeep property: Weekly backups count to keep. - * + * * @return the weeklyBackupsToKeep value. */ Integer weeklyBackupsToKeep(); /** * Gets the monthlyBackupsToKeep property: Monthly backups count to keep. - * + * * @return the monthlyBackupsToKeep value. */ Integer monthlyBackupsToKeep(); /** * Gets the volumesAssigned property: Volumes using current backup policy. - * + * * @return the volumesAssigned value. */ Integer volumesAssigned(); /** * Gets the enabled property: The property to decide policy is enabled or not. - * + * * @return the enabled value. */ Boolean enabled(); /** * Gets the volumeBackups property: A list of volumes assigned to this policy. - * + * * @return the volumeBackups value. */ List volumeBackups(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * 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.BackupPolicyInner object. - * + * * @return the inner object. */ BackupPolicyInner innerModel(); - /** The entirety of the BackupPolicy definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithCreate { + /** + * The entirety of the BackupPolicy definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The BackupPolicy definition stages. */ + /** + * The BackupPolicy definition stages. + */ interface DefinitionStages { - /** The first stage of the BackupPolicy definition. */ + /** + * The first stage of the BackupPolicy definition. + */ interface Blank extends WithLocation { } - /** The stage of the BackupPolicy definition allowing to specify location. */ + /** + * The stage of the BackupPolicy definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -172,18 +179,20 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the BackupPolicy definition allowing to specify parent resource. */ + /** + * The stage of the BackupPolicy definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, accountName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @return the next definition stage. @@ -195,77 +204,84 @@ interface WithParentResource { * The stage of the BackupPolicy 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.WithDailyBackupsToKeep, - DefinitionStages.WithWeeklyBackupsToKeep, - DefinitionStages.WithMonthlyBackupsToKeep, - DefinitionStages.WithEnabled { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithDailyBackupsToKeep, + DefinitionStages.WithWeeklyBackupsToKeep, DefinitionStages.WithMonthlyBackupsToKeep, + DefinitionStages.WithEnabled { /** * Executes the create request. - * + * * @return the created resource. */ BackupPolicy create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ BackupPolicy create(Context context); } - /** The stage of the BackupPolicy definition allowing to specify tags. */ + /** + * The stage of the BackupPolicy definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the BackupPolicy definition allowing to specify dailyBackupsToKeep. */ + /** + * The stage of the BackupPolicy definition allowing to specify dailyBackupsToKeep. + */ interface WithDailyBackupsToKeep { /** * Specifies the dailyBackupsToKeep property: Daily backups count to keep. - * + * * @param dailyBackupsToKeep Daily backups count to keep. * @return the next definition stage. */ WithCreate withDailyBackupsToKeep(Integer dailyBackupsToKeep); } - /** The stage of the BackupPolicy definition allowing to specify weeklyBackupsToKeep. */ + /** + * The stage of the BackupPolicy definition allowing to specify weeklyBackupsToKeep. + */ interface WithWeeklyBackupsToKeep { /** * Specifies the weeklyBackupsToKeep property: Weekly backups count to keep. - * + * * @param weeklyBackupsToKeep Weekly backups count to keep. * @return the next definition stage. */ WithCreate withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep); } - /** The stage of the BackupPolicy definition allowing to specify monthlyBackupsToKeep. */ + /** + * The stage of the BackupPolicy definition allowing to specify monthlyBackupsToKeep. + */ interface WithMonthlyBackupsToKeep { /** * Specifies the monthlyBackupsToKeep property: Monthly backups count to keep. - * + * * @param monthlyBackupsToKeep Monthly backups count to keep. * @return the next definition stage. */ WithCreate withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep); } - /** The stage of the BackupPolicy definition allowing to specify enabled. */ + /** + * The stage of the BackupPolicy definition allowing to specify enabled. + */ interface WithEnabled { /** * Specifies the enabled property: The property to decide policy is enabled or not. - * + * * @param enabled The property to decide policy is enabled or not. * @return the next definition stage. */ @@ -275,85 +291,95 @@ interface WithEnabled { /** * Begins update for the BackupPolicy resource. - * + * * @return the stage of resource update. */ BackupPolicy.Update update(); - /** The template for BackupPolicy update. */ - interface Update - extends UpdateStages.WithTags, - UpdateStages.WithDailyBackupsToKeep, - UpdateStages.WithWeeklyBackupsToKeep, - UpdateStages.WithMonthlyBackupsToKeep, - UpdateStages.WithEnabled { + /** + * The template for BackupPolicy update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithDailyBackupsToKeep, + UpdateStages.WithWeeklyBackupsToKeep, UpdateStages.WithMonthlyBackupsToKeep, UpdateStages.WithEnabled { /** * Executes the update request. - * + * * @return the updated resource. */ BackupPolicy apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ BackupPolicy apply(Context context); } - /** The BackupPolicy update stages. */ + /** + * The BackupPolicy update stages. + */ interface UpdateStages { - /** The stage of the BackupPolicy update allowing to specify tags. */ + /** + * The stage of the BackupPolicy update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the BackupPolicy update allowing to specify dailyBackupsToKeep. */ + /** + * The stage of the BackupPolicy update allowing to specify dailyBackupsToKeep. + */ interface WithDailyBackupsToKeep { /** * Specifies the dailyBackupsToKeep property: Daily backups count to keep. - * + * * @param dailyBackupsToKeep Daily backups count to keep. * @return the next definition stage. */ Update withDailyBackupsToKeep(Integer dailyBackupsToKeep); } - /** The stage of the BackupPolicy update allowing to specify weeklyBackupsToKeep. */ + /** + * The stage of the BackupPolicy update allowing to specify weeklyBackupsToKeep. + */ interface WithWeeklyBackupsToKeep { /** * Specifies the weeklyBackupsToKeep property: Weekly backups count to keep. - * + * * @param weeklyBackupsToKeep Weekly backups count to keep. * @return the next definition stage. */ Update withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep); } - /** The stage of the BackupPolicy update allowing to specify monthlyBackupsToKeep. */ + /** + * The stage of the BackupPolicy update allowing to specify monthlyBackupsToKeep. + */ interface WithMonthlyBackupsToKeep { /** * Specifies the monthlyBackupsToKeep property: Monthly backups count to keep. - * + * * @param monthlyBackupsToKeep Monthly backups count to keep. * @return the next definition stage. */ Update withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep); } - /** The stage of the BackupPolicy update allowing to specify enabled. */ + /** + * The stage of the BackupPolicy update allowing to specify enabled. + */ interface WithEnabled { /** * Specifies the enabled property: The property to decide policy is enabled or not. - * + * * @param enabled The property to decide policy is enabled or not. * @return the next definition stage. */ @@ -363,14 +389,14 @@ interface WithEnabled { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ BackupPolicy refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java index 4284e807afd6..a0269adbc99e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java @@ -11,7 +11,9 @@ import java.util.List; import java.util.Map; -/** Backup policy Details for create and update. */ +/** + * Backup policy Details for create and update. + */ @Fluent public final class BackupPolicyPatch extends Resource { /* @@ -20,27 +22,33 @@ public final class BackupPolicyPatch extends Resource { @JsonProperty(value = "properties") private BackupPolicyProperties innerProperties; - /** Creates an instance of BackupPolicyPatch class. */ + /** + * Creates an instance of BackupPolicyPatch class. + */ public BackupPolicyPatch() { } /** * Get the innerProperties property: Backup policy Properties. - * + * * @return the innerProperties value. */ private BackupPolicyProperties innerProperties() { return this.innerProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public BackupPolicyPatch withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public BackupPolicyPatch withTags(Map tags) { super.withTags(tags); @@ -49,7 +57,7 @@ public BackupPolicyPatch withTags(Map tags) { /** * Get the backupPolicyId property: Backup Policy Resource ID. - * + * * @return the backupPolicyId value. */ public String backupPolicyId() { @@ -58,7 +66,7 @@ public String backupPolicyId() { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -67,7 +75,7 @@ public String provisioningState() { /** * Get the dailyBackupsToKeep property: Daily backups count to keep. - * + * * @return the dailyBackupsToKeep value. */ public Integer dailyBackupsToKeep() { @@ -76,7 +84,7 @@ public Integer dailyBackupsToKeep() { /** * Set the dailyBackupsToKeep property: Daily backups count to keep. - * + * * @param dailyBackupsToKeep the dailyBackupsToKeep value to set. * @return the BackupPolicyPatch object itself. */ @@ -90,7 +98,7 @@ public BackupPolicyPatch withDailyBackupsToKeep(Integer dailyBackupsToKeep) { /** * Get the weeklyBackupsToKeep property: Weekly backups count to keep. - * + * * @return the weeklyBackupsToKeep value. */ public Integer weeklyBackupsToKeep() { @@ -99,7 +107,7 @@ public Integer weeklyBackupsToKeep() { /** * Set the weeklyBackupsToKeep property: Weekly backups count to keep. - * + * * @param weeklyBackupsToKeep the weeklyBackupsToKeep value to set. * @return the BackupPolicyPatch object itself. */ @@ -113,7 +121,7 @@ public BackupPolicyPatch withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep) { /** * Get the monthlyBackupsToKeep property: Monthly backups count to keep. - * + * * @return the monthlyBackupsToKeep value. */ public Integer monthlyBackupsToKeep() { @@ -122,7 +130,7 @@ public Integer monthlyBackupsToKeep() { /** * Set the monthlyBackupsToKeep property: Monthly backups count to keep. - * + * * @param monthlyBackupsToKeep the monthlyBackupsToKeep value to set. * @return the BackupPolicyPatch object itself. */ @@ -136,7 +144,7 @@ public BackupPolicyPatch withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) /** * Get the volumesAssigned property: Volumes using current backup policy. - * + * * @return the volumesAssigned value. */ public Integer volumesAssigned() { @@ -145,7 +153,7 @@ public Integer volumesAssigned() { /** * Get the enabled property: The property to decide policy is enabled or not. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -154,7 +162,7 @@ public Boolean enabled() { /** * Set the enabled property: The property to decide policy is enabled or not. - * + * * @param enabled the enabled value to set. * @return the BackupPolicyPatch object itself. */ @@ -168,7 +176,7 @@ public BackupPolicyPatch withEnabled(Boolean enabled) { /** * Get the volumeBackups property: A list of volumes assigned to this policy. - * + * * @return the volumeBackups value. */ public List volumeBackups() { @@ -177,7 +185,7 @@ public List volumeBackups() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java index f9bacb68e3c2..f80539951799 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Backups.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Backups. */ +/** + * Resource collection API of Backups. + */ public interface Backups { /** * Get volume's restore status - * - *

Get the status of the restore for a volume. - * + * + * Get the status of the restore for a 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. @@ -24,14 +26,14 @@ public interface Backups { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of the restore for a volume along with {@link Response}. */ - Response getVolumeRestoreStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + Response getVolumeRestoreStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); /** * Get volume's restore status - * - *

Get the status of the restore for a volume. - * + * + * Get the status of the restore for a 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. @@ -41,6 +43,6 @@ Response getVolumeRestoreStatusWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of the restore for a volume. */ - RestoreStatus getVolumeRestoreStatus( - String resourceGroupName, String accountName, String poolName, String volumeName); + RestoreStatus getVolumeRestoreStatus(String resourceGroupName, String accountName, String poolName, + String volumeName); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java index c7c746231ae2..f7938fe6e222 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Break file locks request. */ +/** + * Break file locks request. + */ @Fluent public final class BreakFileLocksRequest { /* @@ -23,13 +25,15 @@ public final class BreakFileLocksRequest { @JsonProperty(value = "confirmRunningDisruptiveOperation") private Boolean confirmRunningDisruptiveOperation; - /** Creates an instance of BreakFileLocksRequest class. */ + /** + * Creates an instance of BreakFileLocksRequest class. + */ public BreakFileLocksRequest() { } /** * Get the clientIp property: To clear file locks on a volume for a particular client. - * + * * @return the clientIp value. */ public String clientIp() { @@ -38,7 +42,7 @@ public String clientIp() { /** * Set the clientIp property: To clear file locks on a volume for a particular client. - * + * * @param clientIp the clientIp value to set. * @return the BreakFileLocksRequest object itself. */ @@ -50,7 +54,7 @@ public BreakFileLocksRequest withClientIp(String clientIp) { /** * Get the confirmRunningDisruptiveOperation property: Break File locks could be a disruptive operation for * application as locks on the volume will be broken, if want to process, set to true. - * + * * @return the confirmRunningDisruptiveOperation value. */ public Boolean confirmRunningDisruptiveOperation() { @@ -60,7 +64,7 @@ public Boolean confirmRunningDisruptiveOperation() { /** * Set the confirmRunningDisruptiveOperation property: Break File locks could be a disruptive operation for * application as locks on the volume will be broken, if want to process, set to true. - * + * * @param confirmRunningDisruptiveOperation the confirmRunningDisruptiveOperation value to set. * @return the BreakFileLocksRequest object itself. */ @@ -71,7 +75,7 @@ public BreakFileLocksRequest withConfirmRunningDisruptiveOperation(Boolean confi /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java index 7f26836181ff..a01530588c9f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Break replication request. */ +/** + * Break replication request. + */ @Fluent public final class BreakReplicationRequest { /* @@ -16,14 +18,16 @@ public final class BreakReplicationRequest { @JsonProperty(value = "forceBreakReplication") private Boolean forceBreakReplication; - /** Creates an instance of BreakReplicationRequest class. */ + /** + * Creates an instance of BreakReplicationRequest class. + */ public BreakReplicationRequest() { } /** * Get the forceBreakReplication property: If replication is in status transferring and you want to force break the * replication, set to true. - * + * * @return the forceBreakReplication value. */ public Boolean forceBreakReplication() { @@ -33,7 +37,7 @@ public Boolean forceBreakReplication() { /** * Set the forceBreakReplication property: If replication is in status transferring and you want to force break the * replication, set to true. - * + * * @param forceBreakReplication the forceBreakReplication value to set. * @return the BreakReplicationRequest object itself. */ @@ -44,7 +48,7 @@ public BreakReplicationRequest withForceBreakReplication(Boolean forceBreakRepli /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 a7a1964ed8e0..3b19e5a77457 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 @@ -10,179 +10,185 @@ import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; import java.util.Map; -/** An immutable client-side representation of CapacityPool. */ +/** + * An immutable client-side representation of CapacityPool. + */ public interface CapacityPool { /** * 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 location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ String etag(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the poolId property: poolId - * - *

UUID v4 used to identify the Pool. - * + * + * UUID v4 used to identify the Pool. + * * @return the poolId value. */ String poolId(); /** * Gets the size property: size - * - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104). - * + * * @return the size value. */ long size(); /** * Gets the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @return the serviceLevel value. */ ServiceLevel serviceLevel(); /** * Gets the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the totalThroughputMibps property: Total throughput of pool in MiB/s. - * + * * @return the totalThroughputMibps value. */ Float totalThroughputMibps(); /** * Gets the utilizedThroughputMibps property: Utilized throughput of pool in MiB/s. - * + * * @return the utilizedThroughputMibps value. */ Float utilizedThroughputMibps(); /** * Gets the qosType property: The qos type of the pool. - * + * * @return the qosType value. */ QosType qosType(); /** * Gets the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes. - * + * * @return the coolAccess value. */ Boolean coolAccess(); /** * Gets the encryptionType property: encryptionType - * - *

Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in - * it. This value can only be set when creating new pool. - * + * + * Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. + * This value can only be set when creating new pool. + * * @return the encryptionType value. */ EncryptionType encryptionType(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * 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.CapacityPoolInner object. - * + * * @return the inner object. */ CapacityPoolInner innerModel(); - /** The entirety of the CapacityPool definition. */ + /** + * The entirety of the CapacityPool definition. + */ interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithSize, - DefinitionStages.WithServiceLevel, - DefinitionStages.WithCreate { + extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithParentResource, + DefinitionStages.WithSize, DefinitionStages.WithServiceLevel, DefinitionStages.WithCreate { } - /** The CapacityPool definition stages. */ + /** + * The CapacityPool definition stages. + */ interface DefinitionStages { - /** The first stage of the CapacityPool definition. */ + /** + * The first stage of the CapacityPool definition. + */ interface Blank extends WithLocation { } - /** The stage of the CapacityPool definition allowing to specify location. */ + /** + * The stage of the CapacityPool definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -190,18 +196,20 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the CapacityPool definition allowing to specify parent resource. */ + /** + * The stage of the CapacityPool definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, accountName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @return the next definition stage. @@ -209,31 +217,37 @@ interface WithParentResource { WithSize withExistingNetAppAccount(String resourceGroupName, String accountName); } - /** The stage of the CapacityPool definition allowing to specify size. */ + /** + * The stage of the CapacityPool definition allowing to specify size. + */ interface WithSize { /** * Specifies the size property: size - * - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104).. - * + * * @param size size - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply - * of 4398046511104). + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * 4398046511104). * @return the next definition stage. */ WithServiceLevel withSize(long size); } - /** The stage of the CapacityPool definition allowing to specify serviceLevel. */ + /** + * The stage of the CapacityPool definition allowing to specify serviceLevel. + */ interface WithServiceLevel { /** * Specifies the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @param serviceLevel serviceLevel - *

The service level of the file system. + * + * The service level of the file system. * @return the next definition stage. */ WithCreate withServiceLevel(ServiceLevel serviceLevel); @@ -243,71 +257,77 @@ 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.WithQosType, + DefinitionStages.WithCoolAccess, DefinitionStages.WithEncryptionType { /** * Executes the create request. - * + * * @return the created resource. */ CapacityPool create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ CapacityPool create(Context context); } - /** The stage of the CapacityPool definition allowing to specify tags. */ + /** + * The stage of the CapacityPool definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the CapacityPool definition allowing to specify qosType. */ + /** + * The stage of the CapacityPool definition allowing to specify qosType. + */ interface WithQosType { /** * Specifies the qosType property: The qos type of the pool. - * + * * @param qosType The qos type of the pool. * @return the next definition stage. */ WithCreate withQosType(QosType qosType); } - /** The stage of the CapacityPool definition allowing to specify coolAccess. */ + /** + * The stage of the CapacityPool definition allowing to specify coolAccess. + */ interface WithCoolAccess { /** * Specifies the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes.. - * + * * @param coolAccess If enabled (true) the pool can contain cool Access enabled volumes. * @return the next definition stage. */ WithCreate withCoolAccess(Boolean coolAccess); } - /** The stage of the CapacityPool definition allowing to specify encryptionType. */ + /** + * The stage of the CapacityPool definition allowing to specify encryptionType. + */ interface WithEncryptionType { /** * Specifies the encryptionType property: encryptionType - * - *

Encryption type of the capacity pool, set encryption type for data at rest for this pool and all - * volumes in it. This value can only be set when creating new pool.. - * + * + * Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes + * in it. This value can only be set when creating new pool.. + * * @param encryptionType encryptionType - *

Encryption type of the capacity pool, set encryption type for data at rest for this pool and all - * volumes in it. This value can only be set when creating new pool. + * + * Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes + * in it. This value can only be set when creating new pool. * @return the next definition stage. */ WithCreate withEncryptionType(EncryptionType encryptionType); @@ -316,75 +336,88 @@ interface WithEncryptionType { /** * Begins update for the CapacityPool resource. - * + * * @return the stage of resource update. */ CapacityPool.Update update(); - /** The template for CapacityPool update. */ + /** + * The template for CapacityPool update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithSize, UpdateStages.WithQosType, UpdateStages.WithCoolAccess { /** * Executes the update request. - * + * * @return the updated resource. */ CapacityPool apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ CapacityPool apply(Context context); } - /** The CapacityPool update stages. */ + /** + * The CapacityPool update stages. + */ interface UpdateStages { - /** The stage of the CapacityPool update allowing to specify tags. */ + /** + * The stage of the CapacityPool update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the CapacityPool update allowing to specify size. */ + /** + * The stage of the CapacityPool update allowing to specify size. + */ interface WithSize { /** * Specifies the size property: size - * - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104).. - * + * * @param size size - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply - * of 4398046511104). + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * 4398046511104). * @return the next definition stage. */ Update withSize(Long size); } - /** The stage of the CapacityPool update allowing to specify qosType. */ + /** + * The stage of the CapacityPool update allowing to specify qosType. + */ interface WithQosType { /** * Specifies the qosType property: The qos type of the pool. - * + * * @param qosType The qos type of the pool. * @return the next definition stage. */ Update withQosType(QosType qosType); } - /** The stage of the CapacityPool update allowing to specify coolAccess. */ + /** + * The stage of the CapacityPool update allowing to specify coolAccess. + */ interface WithCoolAccess { /** * Specifies the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes.. - * + * * @param coolAccess If enabled (true) the pool can contain cool Access enabled volumes. * @return the next definition stage. */ @@ -394,14 +427,14 @@ interface WithCoolAccess { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ CapacityPool refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java index 69f2465122b2..39716538a8b9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of capacity pool resources. */ +/** + * List of capacity pool resources. + */ @Fluent public final class CapacityPoolList { /* @@ -24,13 +26,15 @@ public final class CapacityPoolList { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of CapacityPoolList class. */ + /** + * Creates an instance of CapacityPoolList class. + */ public CapacityPoolList() { } /** * Get the value property: List of Capacity pools. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Set the value property: List of Capacity pools. - * + * * @param value the value value to set. * @return the CapacityPoolList object itself. */ @@ -50,7 +54,7 @@ public CapacityPoolList withValue(List value) { /** * Get the nextLink property: URL to get the next set of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -59,7 +63,7 @@ public String nextLink() { /** * Set the nextLink property: URL to get the next set of results. - * + * * @param nextLink the nextLink value to set. * @return the CapacityPoolList object itself. */ @@ -70,7 +74,7 @@ public CapacityPoolList withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 177550baea88..4e2c6fda933b 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 @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Capacity pool patch resource. */ +/** + * Capacity pool patch resource. + */ @Fluent public final class CapacityPoolPatch extends Resource { /* @@ -19,27 +21,33 @@ public final class CapacityPoolPatch extends Resource { @JsonProperty(value = "properties") private PoolPatchProperties innerProperties; - /** Creates an instance of CapacityPoolPatch class. */ + /** + * Creates an instance of CapacityPoolPatch class. + */ public CapacityPoolPatch() { } /** * Get the innerProperties property: Capacity pool properties. - * + * * @return the innerProperties value. */ private PoolPatchProperties innerProperties() { return this.innerProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public CapacityPoolPatch withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public CapacityPoolPatch withTags(Map tags) { super.withTags(tags); @@ -48,10 +56,10 @@ public CapacityPoolPatch withTags(Map tags) { /** * Get the size property: size - * - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104). - * + * * @return the size value. */ public Long size() { @@ -60,10 +68,10 @@ public Long size() { /** * Set the size property: size - * - *

Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of + * + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of * 4398046511104). - * + * * @param size the size value to set. * @return the CapacityPoolPatch object itself. */ @@ -77,7 +85,7 @@ public CapacityPoolPatch withSize(Long size) { /** * Get the qosType property: The qos type of the pool. - * + * * @return the qosType value. */ public QosType qosType() { @@ -86,7 +94,7 @@ public QosType qosType() { /** * Set the qosType property: The qos type of the pool. - * + * * @param qosType the qosType value to set. * @return the CapacityPoolPatch object itself. */ @@ -100,7 +108,7 @@ public CapacityPoolPatch withQosType(QosType qosType) { /** * Get the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes. - * + * * @return the coolAccess value. */ public Boolean coolAccess() { @@ -109,7 +117,7 @@ public Boolean coolAccess() { /** * Set the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes. - * + * * @param coolAccess the coolAccess value to set. * @return the CapacityPoolPatch object itself. */ @@ -123,7 +131,7 @@ public CapacityPoolPatch withCoolAccess(Boolean coolAccess) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java index f62330360993..67dd907abb9a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java @@ -6,12 +6,14 @@ import com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner; -/** An immutable client-side representation of CheckAvailabilityResponse. */ +/** + * An immutable client-side representation of CheckAvailabilityResponse. + */ public interface CheckAvailabilityResponse { /** * Gets the isAvailable property: <code>true</code> indicates name is valid and available. * <code>false</code> indicates the name is invalid, unavailable, or both. - * + * * @return the isAvailable value. */ Boolean isAvailable(); @@ -20,7 +22,7 @@ public interface CheckAvailabilityResponse { * Gets the reason property: <code>Invalid</code> indicates the name provided does not match Azure App * Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and * is therefore unavailable. - * + * * @return the reason value. */ InAvailabilityReasonType reason(); @@ -29,14 +31,14 @@ public interface CheckAvailabilityResponse { * Gets the message property: If reason == invalid, provide the user with the reason why the given name is invalid, * and provide the resource naming requirements so that the user can select a valid name. If reason == * AlreadyExists, explain that resource name is already in use, and direct them to select a different name. - * + * * @return the message value. */ String message(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner object. - * + * * @return the inner object. */ CheckAvailabilityResponseInner innerModel(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java index cd91f8ac32f7..6aec34851148 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java @@ -8,27 +8,37 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Resource type used for verification. */ +/** + * Resource type used for verification. + */ public final class CheckNameResourceTypes extends ExpandableStringEnum { - /** Static value Microsoft.NetApp/netAppAccounts for CheckNameResourceTypes. */ - public static final CheckNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS = - fromString("Microsoft.NetApp/netAppAccounts"); + /** + * Static value Microsoft.NetApp/netAppAccounts for CheckNameResourceTypes. + */ + public static final CheckNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS + = fromString("Microsoft.NetApp/netAppAccounts"); - /** Static value Microsoft.NetApp/netAppAccounts/capacityPools for CheckNameResourceTypes. */ - public static final CheckNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS = - fromString("Microsoft.NetApp/netAppAccounts/capacityPools"); + /** + * Static value Microsoft.NetApp/netAppAccounts/capacityPools for CheckNameResourceTypes. + */ + public static final CheckNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS + = fromString("Microsoft.NetApp/netAppAccounts/capacityPools"); - /** Static value Microsoft.NetApp/netAppAccounts/capacityPools/volumes for CheckNameResourceTypes. */ - public static final CheckNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES = - fromString("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"); + /** + * Static value Microsoft.NetApp/netAppAccounts/capacityPools/volumes for CheckNameResourceTypes. + */ + public static final CheckNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES + = fromString("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"); - /** Static value Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots for CheckNameResourceTypes. */ - public static final CheckNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS = - fromString("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"); + /** + * Static value Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots for CheckNameResourceTypes. + */ + public static final CheckNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS + = fromString("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"); /** * Creates a new instance of CheckNameResourceTypes value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -37,7 +47,7 @@ public CheckNameResourceTypes() { /** * Creates or finds a CheckNameResourceTypes from its string representation. - * + * * @param name a name to look for. * @return the corresponding CheckNameResourceTypes. */ @@ -48,7 +58,7 @@ public static CheckNameResourceTypes fromString(String name) { /** * Gets known CheckNameResourceTypes values. - * + * * @return known CheckNameResourceTypes values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckQuotaNameResourceTypes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckQuotaNameResourceTypes.java index 3279b50ac2c2..78abb3536fa7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckQuotaNameResourceTypes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckQuotaNameResourceTypes.java @@ -8,28 +8,37 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Resource type used for verification. */ +/** + * Resource type used for verification. + */ public final class CheckQuotaNameResourceTypes extends ExpandableStringEnum { - /** Static value Microsoft.NetApp/netAppAccounts for CheckQuotaNameResourceTypes. */ - public static final CheckQuotaNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS = - fromString("Microsoft.NetApp/netAppAccounts"); + /** + * Static value Microsoft.NetApp/netAppAccounts for CheckQuotaNameResourceTypes. + */ + public static final CheckQuotaNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS + = fromString("Microsoft.NetApp/netAppAccounts"); - /** Static value Microsoft.NetApp/netAppAccounts/capacityPools for CheckQuotaNameResourceTypes. */ - public static final CheckQuotaNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS = - fromString("Microsoft.NetApp/netAppAccounts/capacityPools"); + /** + * Static value Microsoft.NetApp/netAppAccounts/capacityPools for CheckQuotaNameResourceTypes. + */ + public static final CheckQuotaNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS + = fromString("Microsoft.NetApp/netAppAccounts/capacityPools"); - /** Static value Microsoft.NetApp/netAppAccounts/capacityPools/volumes for CheckQuotaNameResourceTypes. */ - public static final CheckQuotaNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES = - fromString("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"); + /** + * Static value Microsoft.NetApp/netAppAccounts/capacityPools/volumes for CheckQuotaNameResourceTypes. + */ + public static final CheckQuotaNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES + = fromString("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"); - /** Static value Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots for CheckQuotaNameResourceTypes. */ - public static final CheckQuotaNameResourceTypes - MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS = - fromString("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"); + /** + * Static value Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots for CheckQuotaNameResourceTypes. + */ + public static final CheckQuotaNameResourceTypes MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS + = fromString("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"); /** * Creates a new instance of CheckQuotaNameResourceTypes value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -38,7 +47,7 @@ public CheckQuotaNameResourceTypes() { /** * Creates or finds a CheckQuotaNameResourceTypes from its string representation. - * + * * @param name a name to look for. * @return the corresponding CheckQuotaNameResourceTypes. */ @@ -49,7 +58,7 @@ public static CheckQuotaNameResourceTypes fromString(String name) { /** * Gets known CheckQuotaNameResourceTypes values. - * + * * @return known CheckQuotaNameResourceTypes values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChownMode.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChownMode.java index 206dc0bb36b0..05a1d231f0f1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChownMode.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChownMode.java @@ -13,15 +13,19 @@ * the ownership of the file. unrestricted - Non-root users can change ownership of files that they own. */ public final class ChownMode extends ExpandableStringEnum { - /** Static value Restricted for ChownMode. */ + /** + * Static value Restricted for ChownMode. + */ public static final ChownMode RESTRICTED = fromString("Restricted"); - /** Static value Unrestricted for ChownMode. */ + /** + * Static value Unrestricted for ChownMode. + */ public static final ChownMode UNRESTRICTED = fromString("Unrestricted"); /** * Creates a new instance of ChownMode value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +34,7 @@ public ChownMode() { /** * Creates or finds a ChownMode from its string representation. - * + * * @param name a name to look for. * @return the corresponding ChownMode. */ @@ -41,7 +45,7 @@ public static ChownMode fromString(String name) { /** * Gets known ChownMode values. - * + * * @return known ChownMode values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java index 52f8c1b1f037..09ed20bbdf11 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java @@ -10,24 +10,31 @@ /** * coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the - * read pattern for cool access enabled volumes. The possible values for this field are: Default - Data will be pulled - * from cool tier to standard storage on random reads. This policy is the default. OnRead - All client-driven data read - * is pulled from cool tier to standard storage on both sequential and random reads. Never - No client-driven data is - * pulled from cool tier to standard storage. + * read pattern for cool access enabled volumes. The possible values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. */ public final class CoolAccessRetrievalPolicy extends ExpandableStringEnum { - /** Static value Default for CoolAccessRetrievalPolicy. */ + /** + * Static value Default for CoolAccessRetrievalPolicy. + */ public static final CoolAccessRetrievalPolicy DEFAULT = fromString("Default"); - /** Static value OnRead for CoolAccessRetrievalPolicy. */ + /** + * Static value OnRead for CoolAccessRetrievalPolicy. + */ public static final CoolAccessRetrievalPolicy ON_READ = fromString("OnRead"); - /** Static value Never for CoolAccessRetrievalPolicy. */ + /** + * Static value Never for CoolAccessRetrievalPolicy. + */ public static final CoolAccessRetrievalPolicy NEVER = fromString("Never"); /** * Creates a new instance of CoolAccessRetrievalPolicy value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,7 +43,7 @@ public CoolAccessRetrievalPolicy() { /** * Creates or finds a CoolAccessRetrievalPolicy from its string representation. - * + * * @param name a name to look for. * @return the corresponding CoolAccessRetrievalPolicy. */ @@ -47,7 +54,7 @@ public static CoolAccessRetrievalPolicy fromString(String name) { /** * Gets known CoolAccessRetrievalPolicy values. - * + * * @return known CoolAccessRetrievalPolicy values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java index 8285395f7b13..d42824880363 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Daily Schedule properties. */ +/** + * Daily Schedule properties. + */ @Fluent public final class DailySchedule { /* @@ -34,13 +36,15 @@ public final class DailySchedule { @JsonProperty(value = "usedBytes") private Long usedBytes; - /** Creates an instance of DailySchedule class. */ + /** + * Creates an instance of DailySchedule class. + */ public DailySchedule() { } /** * Get the snapshotsToKeep property: Daily snapshot count to keep. - * + * * @return the snapshotsToKeep value. */ public Integer snapshotsToKeep() { @@ -49,7 +53,7 @@ public Integer snapshotsToKeep() { /** * Set the snapshotsToKeep property: Daily snapshot count to keep. - * + * * @param snapshotsToKeep the snapshotsToKeep value to set. * @return the DailySchedule object itself. */ @@ -60,7 +64,7 @@ public DailySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { /** * Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * + * * @return the hour value. */ public Integer hour() { @@ -69,7 +73,7 @@ public Integer hour() { /** * Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * + * * @param hour the hour value to set. * @return the DailySchedule object itself. */ @@ -80,7 +84,7 @@ public DailySchedule withHour(Integer hour) { /** * Get the minute property: Indicates which minute snapshot should be taken. - * + * * @return the minute value. */ public Integer minute() { @@ -89,7 +93,7 @@ public Integer minute() { /** * Set the minute property: Indicates which minute snapshot should be taken. - * + * * @param minute the minute value to set. * @return the DailySchedule object itself. */ @@ -100,7 +104,7 @@ public DailySchedule withMinute(Integer minute) { /** * Get the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes. - * + * * @return the usedBytes value. */ public Long usedBytes() { @@ -109,7 +113,7 @@ public Long usedBytes() { /** * Set the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes. - * + * * @param usedBytes the usedBytes value to set. * @return the DailySchedule object itself. */ @@ -120,7 +124,7 @@ public DailySchedule withUsedBytes(Long usedBytes) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java index 1bfafc14300d..00e9574c7db5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Dimension of blobs, possibly be blob type or access tier. */ +/** + * Dimension of blobs, possibly be blob type or access tier. + */ @Fluent public final class Dimension { /* @@ -22,13 +24,15 @@ public final class Dimension { @JsonProperty(value = "displayName") private String displayName; - /** Creates an instance of Dimension class. */ + /** + * Creates an instance of Dimension class. + */ public Dimension() { } /** * Get the name property: Display name of dimension. - * + * * @return the name value. */ public String name() { @@ -37,7 +41,7 @@ public String name() { /** * Set the name property: Display name of dimension. - * + * * @param name the name value to set. * @return the Dimension object itself. */ @@ -48,7 +52,7 @@ public Dimension withName(String name) { /** * Get the displayName property: Display name of dimension. - * + * * @return the displayName value. */ public String displayName() { @@ -57,7 +61,7 @@ public String displayName() { /** * Set the displayName property: Display name of dimension. - * + * * @param displayName the displayName value to set. * @return the Dimension object itself. */ @@ -68,7 +72,7 @@ public Dimension withDisplayName(String displayName) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java index 30896260d6b9..7ffc07e08243 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Flag indicating whether subvolume operations are enabled on the volume. */ +/** + * Flag indicating whether subvolume operations are enabled on the volume. + */ public final class EnableSubvolumes extends ExpandableStringEnum { - /** Static value Enabled for EnableSubvolumes. */ + /** + * Static value Enabled for EnableSubvolumes. + */ public static final EnableSubvolumes ENABLED = fromString("Enabled"); - /** Static value Disabled for EnableSubvolumes. */ + /** + * Static value Disabled for EnableSubvolumes. + */ public static final EnableSubvolumes DISABLED = fromString("Disabled"); /** * Creates a new instance of EnableSubvolumes value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public EnableSubvolumes() { /** * Creates or finds a EnableSubvolumes from its string representation. - * + * * @param name a name to look for. * @return the corresponding EnableSubvolumes. */ @@ -38,7 +44,7 @@ public static EnableSubvolumes fromString(String name) { /** * Gets known EnableSubvolumes values. - * + * * @return known EnableSubvolumes values. */ public static Collection values() { 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 7301e65cd7d3..1da24f921a82 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 @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Identity used to authenticate with key vault. */ +/** + * Identity used to authenticate with key vault. + */ @Fluent public final class EncryptionIdentity { /* @@ -23,14 +25,16 @@ public final class EncryptionIdentity { @JsonProperty(value = "userAssignedIdentity") private String userAssignedIdentity; - /** Creates an instance of EncryptionIdentity class. */ + /** + * Creates an instance of EncryptionIdentity class. + */ public EncryptionIdentity() { } /** * Get the principalId property: The principal ID (object ID) of the identity used to authenticate with key vault. * Read-only. - * + * * @return the principalId value. */ public String principalId() { @@ -41,7 +45,7 @@ public String principalId() { * Get the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to * authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of * identity.userAssignedIdentities. - * + * * @return the userAssignedIdentity value. */ public String userAssignedIdentity() { @@ -52,7 +56,7 @@ public String userAssignedIdentity() { * Set the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to * authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of * identity.userAssignedIdentities. - * + * * @param userAssignedIdentity the userAssignedIdentity value to set. * @return the EncryptionIdentity object itself. */ @@ -63,7 +67,7 @@ public EncryptionIdentity withUserAssignedIdentity(String userAssignedIdentity) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionKeySource.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionKeySource.java index 655749627c99..b707368a32bb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionKeySource.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionKeySource.java @@ -13,15 +13,19 @@ * 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'. */ public final class EncryptionKeySource extends ExpandableStringEnum { - /** Static value Microsoft.NetApp for EncryptionKeySource. */ + /** + * Static value Microsoft.NetApp for EncryptionKeySource. + */ public static final EncryptionKeySource MICROSOFT_NET_APP = fromString("Microsoft.NetApp"); - /** Static value Microsoft.KeyVault for EncryptionKeySource. */ + /** + * Static value Microsoft.KeyVault for EncryptionKeySource. + */ public static final EncryptionKeySource MICROSOFT_KEY_VAULT = fromString("Microsoft.KeyVault"); /** * Creates a new instance of EncryptionKeySource value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +34,7 @@ public EncryptionKeySource() { /** * Creates or finds a EncryptionKeySource from its string representation. - * + * * @param name a name to look for. * @return the corresponding EncryptionKeySource. */ @@ -41,7 +45,7 @@ public static EncryptionKeySource fromString(String name) { /** * Gets known EncryptionKeySource values. - * + * * @return known EncryptionKeySource values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java index d179254c5f54..4ae46c168a1b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java @@ -10,20 +10,24 @@ /** * encryptionType - * - *

Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. - * This value can only be set when creating new pool. + * + * Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This + * value can only be set when creating new pool. */ public final class EncryptionType extends ExpandableStringEnum { - /** Static value Single for EncryptionType. */ + /** + * Static value Single for EncryptionType. + */ public static final EncryptionType SINGLE = fromString("Single"); - /** Static value Double for EncryptionType. */ + /** + * Static value Double for EncryptionType. + */ public static final EncryptionType DOUBLE = fromString("Double"); /** * Creates a new instance of EncryptionType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -32,7 +36,7 @@ public EncryptionType() { /** * Creates or finds a EncryptionType from its string representation. - * + * * @param name a name to look for. * @return the corresponding EncryptionType. */ @@ -43,7 +47,7 @@ public static EncryptionType fromString(String name) { /** * Gets known EncryptionType values. - * + * * @return known EncryptionType values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java index edba038707bd..4ce55742a939 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Indicates whether the local volume is the source or destination for the Volume Replication. */ +/** + * Indicates whether the local volume is the source or destination for the Volume Replication. + */ public final class EndpointType extends ExpandableStringEnum { - /** Static value src for EndpointType. */ + /** + * Static value src for EndpointType. + */ public static final EndpointType SRC = fromString("src"); - /** Static value dst for EndpointType. */ + /** + * Static value dst for EndpointType. + */ public static final EndpointType DST = fromString("dst"); /** * Creates a new instance of EndpointType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public EndpointType() { /** * Creates or finds a EndpointType from its string representation. - * + * * @param name a name to look for. * @return the corresponding EndpointType. */ @@ -38,7 +44,7 @@ public static EndpointType fromString(String name) { /** * Gets known EndpointType values. - * + * * @return known EndpointType values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java index a60445c3147b..464d500046f3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Volume Export Policy Rule. */ +/** + * Volume Export Policy Rule. + */ @Fluent public final class ExportPolicyRule { /* @@ -101,13 +103,15 @@ public final class ExportPolicyRule { @JsonProperty(value = "chownMode") private ChownMode chownMode; - /** Creates an instance of ExportPolicyRule class. */ + /** + * Creates an instance of ExportPolicyRule class. + */ public ExportPolicyRule() { } /** * Get the ruleIndex property: Order index. - * + * * @return the ruleIndex value. */ public Integer ruleIndex() { @@ -116,7 +120,7 @@ public Integer ruleIndex() { /** * Set the ruleIndex property: Order index. - * + * * @param ruleIndex the ruleIndex value to set. * @return the ExportPolicyRule object itself. */ @@ -127,7 +131,7 @@ public ExportPolicyRule withRuleIndex(Integer ruleIndex) { /** * Get the unixReadOnly property: Read only access. - * + * * @return the unixReadOnly value. */ public Boolean unixReadOnly() { @@ -136,7 +140,7 @@ public Boolean unixReadOnly() { /** * Set the unixReadOnly property: Read only access. - * + * * @param unixReadOnly the unixReadOnly value to set. * @return the ExportPolicyRule object itself. */ @@ -147,7 +151,7 @@ public ExportPolicyRule withUnixReadOnly(Boolean unixReadOnly) { /** * Get the unixReadWrite property: Read and write access. - * + * * @return the unixReadWrite value. */ public Boolean unixReadWrite() { @@ -156,7 +160,7 @@ public Boolean unixReadWrite() { /** * Set the unixReadWrite property: Read and write access. - * + * * @param unixReadWrite the unixReadWrite value to set. * @return the ExportPolicyRule object itself. */ @@ -168,7 +172,7 @@ public ExportPolicyRule withUnixReadWrite(Boolean unixReadWrite) { /** * Get the kerberos5ReadOnly property: Kerberos5 Read only access. To be use with swagger version 2020-05-01 or * later. - * + * * @return the kerberos5ReadOnly value. */ public Boolean kerberos5ReadOnly() { @@ -178,7 +182,7 @@ public Boolean kerberos5ReadOnly() { /** * Set the kerberos5ReadOnly property: Kerberos5 Read only access. To be use with swagger version 2020-05-01 or * later. - * + * * @param kerberos5ReadOnly the kerberos5ReadOnly value to set. * @return the ExportPolicyRule object itself. */ @@ -190,7 +194,7 @@ public ExportPolicyRule withKerberos5ReadOnly(Boolean kerberos5ReadOnly) { /** * Get the kerberos5ReadWrite property: Kerberos5 Read and write access. To be use with swagger version 2020-05-01 * or later. - * + * * @return the kerberos5ReadWrite value. */ public Boolean kerberos5ReadWrite() { @@ -200,7 +204,7 @@ public Boolean kerberos5ReadWrite() { /** * Set the kerberos5ReadWrite property: Kerberos5 Read and write access. To be use with swagger version 2020-05-01 * or later. - * + * * @param kerberos5ReadWrite the kerberos5ReadWrite value to set. * @return the ExportPolicyRule object itself. */ @@ -212,7 +216,7 @@ public ExportPolicyRule withKerberos5ReadWrite(Boolean kerberos5ReadWrite) { /** * Get the kerberos5IReadOnly property: Kerberos5i Read only access. To be use with swagger version 2020-05-01 or * later. - * + * * @return the kerberos5IReadOnly value. */ public Boolean kerberos5IReadOnly() { @@ -222,7 +226,7 @@ public Boolean kerberos5IReadOnly() { /** * Set the kerberos5IReadOnly property: Kerberos5i Read only access. To be use with swagger version 2020-05-01 or * later. - * + * * @param kerberos5IReadOnly the kerberos5IReadOnly value to set. * @return the ExportPolicyRule object itself. */ @@ -232,9 +236,9 @@ public ExportPolicyRule withKerberos5IReadOnly(Boolean kerberos5IReadOnly) { } /** - * Get the kerberos5IReadWrite property: Kerberos5i Read and write access. To be use with swagger version 2020-05-01 - * or later. - * + * Get the kerberos5IReadWrite property: Kerberos5i Read and write access. To be use with swagger version + * 2020-05-01 or later. + * * @return the kerberos5IReadWrite value. */ public Boolean kerberos5IReadWrite() { @@ -242,9 +246,9 @@ public Boolean kerberos5IReadWrite() { } /** - * Set the kerberos5IReadWrite property: Kerberos5i Read and write access. To be use with swagger version 2020-05-01 - * or later. - * + * Set the kerberos5IReadWrite property: Kerberos5i Read and write access. To be use with swagger version + * 2020-05-01 or later. + * * @param kerberos5IReadWrite the kerberos5IReadWrite value to set. * @return the ExportPolicyRule object itself. */ @@ -256,7 +260,7 @@ public ExportPolicyRule withKerberos5IReadWrite(Boolean kerberos5IReadWrite) { /** * Get the kerberos5PReadOnly property: Kerberos5p Read only access. To be use with swagger version 2020-05-01 or * later. - * + * * @return the kerberos5PReadOnly value. */ public Boolean kerberos5PReadOnly() { @@ -266,7 +270,7 @@ public Boolean kerberos5PReadOnly() { /** * Set the kerberos5PReadOnly property: Kerberos5p Read only access. To be use with swagger version 2020-05-01 or * later. - * + * * @param kerberos5PReadOnly the kerberos5PReadOnly value to set. * @return the ExportPolicyRule object itself. */ @@ -276,9 +280,9 @@ public ExportPolicyRule withKerberos5PReadOnly(Boolean kerberos5PReadOnly) { } /** - * Get the kerberos5PReadWrite property: Kerberos5p Read and write access. To be use with swagger version 2020-05-01 - * or later. - * + * Get the kerberos5PReadWrite property: Kerberos5p Read and write access. To be use with swagger version + * 2020-05-01 or later. + * * @return the kerberos5PReadWrite value. */ public Boolean kerberos5PReadWrite() { @@ -286,9 +290,9 @@ public Boolean kerberos5PReadWrite() { } /** - * Set the kerberos5PReadWrite property: Kerberos5p Read and write access. To be use with swagger version 2020-05-01 - * or later. - * + * Set the kerberos5PReadWrite property: Kerberos5p Read and write access. To be use with swagger version + * 2020-05-01 or later. + * * @param kerberos5PReadWrite the kerberos5PReadWrite value to set. * @return the ExportPolicyRule object itself. */ @@ -299,7 +303,7 @@ public ExportPolicyRule withKerberos5PReadWrite(Boolean kerberos5PReadWrite) { /** * Get the cifs property: Allows CIFS protocol. - * + * * @return the cifs value. */ public Boolean cifs() { @@ -308,7 +312,7 @@ public Boolean cifs() { /** * Set the cifs property: Allows CIFS protocol. - * + * * @param cifs the cifs value to set. * @return the ExportPolicyRule object itself. */ @@ -319,7 +323,7 @@ public ExportPolicyRule withCifs(Boolean cifs) { /** * Get the nfsv3 property: Allows NFSv3 protocol. Enable only for NFSv3 type volumes. - * + * * @return the nfsv3 value. */ public Boolean nfsv3() { @@ -328,7 +332,7 @@ public Boolean nfsv3() { /** * Set the nfsv3 property: Allows NFSv3 protocol. Enable only for NFSv3 type volumes. - * + * * @param nfsv3 the nfsv3 value to set. * @return the ExportPolicyRule object itself. */ @@ -339,7 +343,7 @@ public ExportPolicyRule withNfsv3(Boolean nfsv3) { /** * Get the nfsv41 property: Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes. - * + * * @return the nfsv41 value. */ public Boolean nfsv41() { @@ -348,7 +352,7 @@ public Boolean nfsv41() { /** * Set the nfsv41 property: Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes. - * + * * @param nfsv41 the nfsv41 value to set. * @return the ExportPolicyRule object itself. */ @@ -360,7 +364,7 @@ public ExportPolicyRule withNfsv41(Boolean nfsv41) { /** * Get the allowedClients property: Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 * host addresses and host names. - * + * * @return the allowedClients value. */ public String allowedClients() { @@ -370,7 +374,7 @@ public String allowedClients() { /** * Set the allowedClients property: Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 * host addresses and host names. - * + * * @param allowedClients the allowedClients value to set. * @return the ExportPolicyRule object itself. */ @@ -381,7 +385,7 @@ public ExportPolicyRule withAllowedClients(String allowedClients) { /** * Get the hasRootAccess property: Has root access to volume. - * + * * @return the hasRootAccess value. */ public Boolean hasRootAccess() { @@ -390,7 +394,7 @@ public Boolean hasRootAccess() { /** * Set the hasRootAccess property: Has root access to volume. - * + * * @param hasRootAccess the hasRootAccess value to set. * @return the ExportPolicyRule object itself. */ @@ -403,7 +407,7 @@ public ExportPolicyRule withHasRootAccess(Boolean hasRootAccess) { * Get the chownMode property: This parameter specifies who is authorized to change the ownership of a file. * restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change * ownership of files that they own. - * + * * @return the chownMode value. */ public ChownMode chownMode() { @@ -414,7 +418,7 @@ public ChownMode chownMode() { * Set the chownMode property: This parameter specifies who is authorized to change the ownership of a file. * restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change * ownership of files that they own. - * + * * @param chownMode the chownMode value to set. * @return the ExportPolicyRule object itself. */ @@ -425,7 +429,7 @@ public ExportPolicyRule withChownMode(ChownMode chownMode) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java index f5c152833927..beb23545bc49 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java @@ -13,15 +13,19 @@ * the volume. */ public final class FileAccessLogs extends ExpandableStringEnum { - /** Static value Enabled for FileAccessLogs. */ + /** + * Static value Enabled for FileAccessLogs. + */ public static final FileAccessLogs ENABLED = fromString("Enabled"); - /** Static value Disabled for FileAccessLogs. */ + /** + * Static value Disabled for FileAccessLogs. + */ public static final FileAccessLogs DISABLED = fromString("Disabled"); /** * Creates a new instance of FileAccessLogs value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +34,7 @@ public FileAccessLogs() { /** * Creates or finds a FileAccessLogs from its string representation. - * + * * @param name a name to look for. * @return the corresponding FileAccessLogs. */ @@ -41,7 +45,7 @@ public static FileAccessLogs fromString(String name) { /** * Gets known FileAccessLogs values. - * + * * @return known FileAccessLogs values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java index 9aa97459add5..ffd70c149b09 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** File path availability request content - availability is based on the name and the subnetId. */ +/** + * File path availability request content - availability is based on the name and the subnetId. + */ @Fluent public final class FilePathAvailabilityRequest { /* @@ -23,13 +25,15 @@ public final class FilePathAvailabilityRequest { @JsonProperty(value = "subnetId", required = true) private String subnetId; - /** Creates an instance of FilePathAvailabilityRequest class. */ + /** + * Creates an instance of FilePathAvailabilityRequest class. + */ public FilePathAvailabilityRequest() { } /** * Get the name property: File path to verify. - * + * * @return the name value. */ public String name() { @@ -38,7 +42,7 @@ public String name() { /** * Set the name property: File path to verify. - * + * * @param name the name value to set. * @return the FilePathAvailabilityRequest object itself. */ @@ -50,7 +54,7 @@ public FilePathAvailabilityRequest withName(String name) { /** * Get the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes. - * + * * @return the subnetId value. */ public String subnetId() { @@ -60,7 +64,7 @@ public String subnetId() { /** * Set the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes. - * + * * @param subnetId the subnetId value to set. * @return the FilePathAvailabilityRequest object itself. */ @@ -71,21 +75,17 @@ public FilePathAvailabilityRequest withSubnetId(String subnetId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (name() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property name in model FilePathAvailabilityRequest")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property name in model FilePathAvailabilityRequest")); } if (subnetId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property subnetId in model FilePathAvailabilityRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property subnetId in model FilePathAvailabilityRequest")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java index b1cea5afdd7a..f4f12a742f38 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Get group Id list for LDAP User request. */ +/** + * Get group Id list for LDAP User request. + */ @Fluent public final class GetGroupIdListForLdapUserRequest { /* @@ -17,13 +19,15 @@ public final class GetGroupIdListForLdapUserRequest { @JsonProperty(value = "username", required = true) private String username; - /** Creates an instance of GetGroupIdListForLdapUserRequest class. */ + /** + * Creates an instance of GetGroupIdListForLdapUserRequest class. + */ public GetGroupIdListForLdapUserRequest() { } /** * Get the username property: username is required to fetch the group to which user is part of. - * + * * @return the username value. */ public String username() { @@ -32,7 +36,7 @@ public String username() { /** * Set the username property: username is required to fetch the group to which user is part of. - * + * * @param username the username value to set. * @return the GetGroupIdListForLdapUserRequest object itself. */ @@ -43,15 +47,13 @@ public GetGroupIdListForLdapUserRequest withUsername(String username) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (username() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model GetGroupIdListForLdapUserRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property username in model GetGroupIdListForLdapUserRequest")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java index 4ad175966da2..319d56a2e28e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java @@ -7,18 +7,20 @@ import com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner; import java.util.List; -/** An immutable client-side representation of GetGroupIdListForLdapUserResponse. */ +/** + * An immutable client-side representation of GetGroupIdListForLdapUserResponse. + */ public interface GetGroupIdListForLdapUserResponse { /** * Gets the groupIdsForLdapUser property: Group Id list. - * + * * @return the groupIdsForLdapUser value. */ List groupIdsForLdapUser(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner object. - * + * * @return the inner object. */ GetGroupIdListForLdapUserResponseInner innerModel(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java index 75c621f1e1d0..8e6f82c033b0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Hourly Schedule properties. */ +/** + * Hourly Schedule properties. + */ @Fluent public final class HourlySchedule { /* @@ -28,13 +30,15 @@ public final class HourlySchedule { @JsonProperty(value = "usedBytes") private Long usedBytes; - /** Creates an instance of HourlySchedule class. */ + /** + * Creates an instance of HourlySchedule class. + */ public HourlySchedule() { } /** * Get the snapshotsToKeep property: Hourly snapshot count to keep. - * + * * @return the snapshotsToKeep value. */ public Integer snapshotsToKeep() { @@ -43,7 +47,7 @@ public Integer snapshotsToKeep() { /** * Set the snapshotsToKeep property: Hourly snapshot count to keep. - * + * * @param snapshotsToKeep the snapshotsToKeep value to set. * @return the HourlySchedule object itself. */ @@ -54,7 +58,7 @@ public HourlySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { /** * Get the minute property: Indicates which minute snapshot should be taken. - * + * * @return the minute value. */ public Integer minute() { @@ -63,7 +67,7 @@ public Integer minute() { /** * Set the minute property: Indicates which minute snapshot should be taken. - * + * * @param minute the minute value to set. * @return the HourlySchedule object itself. */ @@ -74,7 +78,7 @@ public HourlySchedule withMinute(Integer minute) { /** * Get the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes. - * + * * @return the usedBytes value. */ public Long usedBytes() { @@ -83,7 +87,7 @@ public Long usedBytes() { /** * Set the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes. - * + * * @param usedBytes the usedBytes value to set. * @return the HourlySchedule object itself. */ @@ -94,7 +98,7 @@ public HourlySchedule withUsedBytes(Long usedBytes) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java index ec7a42e2a0f8..25ebf55d1d32 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java @@ -13,15 +13,19 @@ * <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable. */ public final class InAvailabilityReasonType extends ExpandableStringEnum { - /** Static value Invalid for InAvailabilityReasonType. */ + /** + * Static value Invalid for InAvailabilityReasonType. + */ public static final InAvailabilityReasonType INVALID = fromString("Invalid"); - /** Static value AlreadyExists for InAvailabilityReasonType. */ + /** + * Static value AlreadyExists for InAvailabilityReasonType. + */ public static final InAvailabilityReasonType ALREADY_EXISTS = fromString("AlreadyExists"); /** * Creates a new instance of InAvailabilityReasonType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +34,7 @@ public InAvailabilityReasonType() { /** * Creates or finds a InAvailabilityReasonType from its string representation. - * + * * @param name a name to look for. * @return the corresponding InAvailabilityReasonType. */ @@ -41,7 +45,7 @@ public static InAvailabilityReasonType fromString(String name) { /** * Gets known InAvailabilityReasonType values. - * + * * @return known InAvailabilityReasonType values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java index c1ae5520504f..99e996cad0fa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault. */ +/** + * The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault. + */ public final class KeySource extends ExpandableStringEnum { - /** Static value Microsoft.NetApp for KeySource. */ + /** + * Static value Microsoft.NetApp for KeySource. + */ public static final KeySource MICROSOFT_NET_APP = fromString("Microsoft.NetApp"); - /** Static value Microsoft.KeyVault for KeySource. */ + /** + * Static value Microsoft.KeyVault for KeySource. + */ public static final KeySource MICROSOFT_KEY_VAULT = fromString("Microsoft.KeyVault"); /** * Creates a new instance of KeySource value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public KeySource() { /** * Creates or finds a KeySource from its string representation. - * + * * @param name a name to look for. * @return the corresponding KeySource. */ @@ -38,7 +44,7 @@ public static KeySource fromString(String name) { /** * Gets known KeySource values. - * + * * @return known KeySource values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java index 5e61579793e8..eb29929bf804 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Properties of key vault. */ +/** + * Properties of key vault. + */ @Fluent public final class KeyVaultProperties { /* @@ -41,13 +43,15 @@ public final class KeyVaultProperties { @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private KeyVaultStatus status; - /** Creates an instance of KeyVaultProperties class. */ + /** + * Creates an instance of KeyVaultProperties class. + */ public KeyVaultProperties() { } /** * Get the keyVaultId property: UUID v4 used to identify the Azure Key Vault configuration. - * + * * @return the keyVaultId value. */ public String keyVaultId() { @@ -56,7 +60,7 @@ public String keyVaultId() { /** * Get the keyVaultUri property: The Uri of KeyVault. - * + * * @return the keyVaultUri value. */ public String keyVaultUri() { @@ -65,7 +69,7 @@ public String keyVaultUri() { /** * Set the keyVaultUri property: The Uri of KeyVault. - * + * * @param keyVaultUri the keyVaultUri value to set. * @return the KeyVaultProperties object itself. */ @@ -76,7 +80,7 @@ public KeyVaultProperties withKeyVaultUri(String keyVaultUri) { /** * Get the keyName property: The name of KeyVault key. - * + * * @return the keyName value. */ public String keyName() { @@ -85,7 +89,7 @@ public String keyName() { /** * Set the keyName property: The name of KeyVault key. - * + * * @param keyName the keyName value to set. * @return the KeyVaultProperties object itself. */ @@ -96,7 +100,7 @@ public KeyVaultProperties withKeyName(String keyName) { /** * Get the keyVaultResourceId property: The resource ID of KeyVault. - * + * * @return the keyVaultResourceId value. */ public String keyVaultResourceId() { @@ -105,7 +109,7 @@ public String keyVaultResourceId() { /** * Set the keyVaultResourceId property: The resource ID of KeyVault. - * + * * @param keyVaultResourceId the keyVaultResourceId value to set. * @return the KeyVaultProperties object itself. */ @@ -116,7 +120,7 @@ public KeyVaultProperties withKeyVaultResourceId(String keyVaultResourceId) { /** * Get the status property: Status of the KeyVault connection. - * + * * @return the status value. */ public KeyVaultStatus status() { @@ -125,25 +129,21 @@ public KeyVaultStatus status() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (keyVaultUri() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property keyVaultUri in model KeyVaultProperties")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property keyVaultUri in model KeyVaultProperties")); } if (keyName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property keyName in model KeyVaultProperties")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property keyName in model KeyVaultProperties")); } if (keyVaultResourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property keyVaultResourceId in model KeyVaultProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property keyVaultResourceId in model KeyVaultProperties")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java index b15030ede039..e4a178b53bd0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java @@ -8,26 +8,38 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Status of the KeyVault connection. */ +/** + * Status of the KeyVault connection. + */ public final class KeyVaultStatus extends ExpandableStringEnum { - /** Static value Created for KeyVaultStatus. */ + /** + * Static value Created for KeyVaultStatus. + */ public static final KeyVaultStatus CREATED = fromString("Created"); - /** Static value InUse for KeyVaultStatus. */ + /** + * Static value InUse for KeyVaultStatus. + */ public static final KeyVaultStatus IN_USE = fromString("InUse"); - /** Static value Deleted for KeyVaultStatus. */ + /** + * Static value Deleted for KeyVaultStatus. + */ public static final KeyVaultStatus DELETED = fromString("Deleted"); - /** Static value Error for KeyVaultStatus. */ + /** + * Static value Error for KeyVaultStatus. + */ public static final KeyVaultStatus ERROR = fromString("Error"); - /** Static value Updating for KeyVaultStatus. */ + /** + * Static value Updating for KeyVaultStatus. + */ public static final KeyVaultStatus UPDATING = fromString("Updating"); /** * Creates a new instance of KeyVaultStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,7 +48,7 @@ public KeyVaultStatus() { /** * Creates or finds a KeyVaultStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding KeyVaultStatus. */ @@ -47,7 +59,7 @@ public static KeyVaultStatus fromString(String name) { /** * Gets known KeyVaultStatus values. - * + * * @return known KeyVaultStatus values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java index 224f07e75a0b..679785cfc5c4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** LDAP search scope. */ +/** + * LDAP search scope. + */ @Fluent public final class LdapSearchScopeOpt { /* @@ -28,13 +30,15 @@ public final class LdapSearchScopeOpt { @JsonProperty(value = "groupMembershipFilter") private String groupMembershipFilter; - /** Creates an instance of LdapSearchScopeOpt class. */ + /** + * Creates an instance of LdapSearchScopeOpt class. + */ public LdapSearchScopeOpt() { } /** * Get the userDN property: This specifies the user DN, which overrides the base DN for user lookups. - * + * * @return the userDN value. */ public String userDN() { @@ -43,7 +47,7 @@ public String userDN() { /** * Set the userDN property: This specifies the user DN, which overrides the base DN for user lookups. - * + * * @param userDN the userDN value to set. * @return the LdapSearchScopeOpt object itself. */ @@ -54,7 +58,7 @@ public LdapSearchScopeOpt withUserDN(String userDN) { /** * Get the groupDN property: This specifies the group DN, which overrides the base DN for group lookups. - * + * * @return the groupDN value. */ public String groupDN() { @@ -63,7 +67,7 @@ public String groupDN() { /** * Set the groupDN property: This specifies the group DN, which overrides the base DN for group lookups. - * + * * @param groupDN the groupDN value to set. * @return the LdapSearchScopeOpt object itself. */ @@ -75,7 +79,7 @@ public LdapSearchScopeOpt withGroupDN(String groupDN) { /** * Get the groupMembershipFilter property: This specifies the custom LDAP search filter to be used when looking up * group membership from LDAP server. - * + * * @return the groupMembershipFilter value. */ public String groupMembershipFilter() { @@ -85,7 +89,7 @@ public String groupMembershipFilter() { /** * Set the groupMembershipFilter property: This specifies the custom LDAP search filter to be used when looking up * group membership from LDAP server. - * + * * @param groupMembershipFilter the groupMembershipFilter value to set. * @return the LdapSearchScopeOpt object itself. */ @@ -96,7 +100,7 @@ public LdapSearchScopeOpt withGroupMembershipFilter(String groupMembershipFilter /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplications.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplications.java index c7699d5ba474..b151064a1aa4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplications.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ListReplications.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List Replications. */ +/** + * List Replications. + */ @Fluent public final class ListReplications { /* @@ -18,13 +20,15 @@ public final class ListReplications { @JsonProperty(value = "value") private List value; - /** Creates an instance of ListReplications class. */ + /** + * Creates an instance of ListReplications class. + */ public ListReplications() { } /** * Get the value property: A list of replications. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: A list of replications. - * + * * @param value the value value to set. * @return the ListReplications object itself. */ @@ -44,7 +48,7 @@ public ListReplications withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java index f3f7f7087926..260b9682224e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Log Definition of a single resource metric. */ +/** + * Log Definition of a single resource metric. + */ @Fluent public final class LogSpecification { /* @@ -22,13 +24,15 @@ public final class LogSpecification { @JsonProperty(value = "displayName") private String displayName; - /** Creates an instance of LogSpecification class. */ + /** + * Creates an instance of LogSpecification class. + */ public LogSpecification() { } /** * Get the name property: Name of log specification. - * + * * @return the name value. */ public String name() { @@ -37,7 +41,7 @@ public String name() { /** * Set the name property: Name of log specification. - * + * * @param name the name value to set. * @return the LogSpecification object itself. */ @@ -48,7 +52,7 @@ public LogSpecification withName(String name) { /** * Get the displayName property: Display name of log specification. - * + * * @return the displayName value. */ public String displayName() { @@ -57,7 +61,7 @@ public String displayName() { /** * Set the displayName property: Display name of log specification. - * + * * @param displayName the displayName value to set. * @return the LogSpecification object itself. */ @@ -68,7 +72,7 @@ public LogSpecification withDisplayName(String displayName) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentity.java index a858fc204cf5..2753cef5c00e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentity.java @@ -11,7 +11,9 @@ import java.util.Map; import java.util.UUID; -/** Managed service identity (system assigned and/or user assigned identities). */ +/** + * Managed service identity (system assigned and/or user assigned identities). + */ @Fluent public final class ManagedServiceIdentity { /* @@ -37,21 +39,24 @@ public final class ManagedServiceIdentity { /* * The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys * will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/ + * userAssignedIdentities/{identityName}. * The dictionary values can be empty objects ({}) in requests. */ @JsonProperty(value = "userAssignedIdentities") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map userAssignedIdentities; - /** Creates an instance of ManagedServiceIdentity class. */ + /** + * Creates an instance of ManagedServiceIdentity class. + */ public ManagedServiceIdentity() { } /** * Get the principalId property: The service principal ID of the system assigned identity. This property will only * be provided for a system assigned identity. - * + * * @return the principalId value. */ public UUID principalId() { @@ -59,9 +64,9 @@ public UUID principalId() { } /** - * Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for - * a system assigned identity. - * + * Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided + * for a system assigned identity. + * * @return the tenantId value. */ public UUID tenantId() { @@ -71,7 +76,7 @@ public UUID tenantId() { /** * Get the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are * allowed). - * + * * @return the type value. */ public ManagedServiceIdentityType type() { @@ -81,7 +86,7 @@ public ManagedServiceIdentityType type() { /** * Set the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are * allowed). - * + * * @param type the type value to set. * @return the ManagedServiceIdentity object itself. */ @@ -95,7 +100,7 @@ public ManagedServiceIdentity withType(ManagedServiceIdentityType type) { * userAssignedIdentities dictionary keys will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. * The dictionary values can be empty objects ({}) in requests. - * + * * @return the userAssignedIdentities value. */ public Map userAssignedIdentities() { @@ -107,7 +112,7 @@ public Map userAssignedIdentities() { * userAssignedIdentities dictionary keys will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. * The dictionary values can be empty objects ({}) in requests. - * + * * @param userAssignedIdentities the userAssignedIdentities value to set. * @return the ManagedServiceIdentity object itself. */ @@ -118,24 +123,20 @@ public ManagedServiceIdentity withUserAssignedIdentities(Map { - if (e != null) { - e.validate(); - } - }); + userAssignedIdentities().values().forEach(e -> { + if (e != null) { + e.validate(); + } + }); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java index f5264290d1cb..79ee9d792b76 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java @@ -8,24 +8,34 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ +/** + * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + */ public final class ManagedServiceIdentityType extends ExpandableStringEnum { - /** Static value None for ManagedServiceIdentityType. */ + /** + * Static value None for ManagedServiceIdentityType. + */ public static final ManagedServiceIdentityType NONE = fromString("None"); - /** Static value SystemAssigned for ManagedServiceIdentityType. */ + /** + * Static value SystemAssigned for ManagedServiceIdentityType. + */ public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); - /** Static value UserAssigned for ManagedServiceIdentityType. */ + /** + * Static value UserAssigned for ManagedServiceIdentityType. + */ public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned"); - /** Static value SystemAssigned,UserAssigned for ManagedServiceIdentityType. */ - public static final ManagedServiceIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED = - fromString("SystemAssigned,UserAssigned"); + /** + * Static value SystemAssigned,UserAssigned for ManagedServiceIdentityType. + */ + public static final ManagedServiceIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED + = fromString("SystemAssigned,UserAssigned"); /** * Creates a new instance of ManagedServiceIdentityType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -34,7 +44,7 @@ public ManagedServiceIdentityType() { /** * Creates or finds a ManagedServiceIdentityType from its string representation. - * + * * @param name a name to look for. * @return the corresponding ManagedServiceIdentityType. */ @@ -45,7 +55,7 @@ public static ManagedServiceIdentityType fromString(String name) { /** * Gets known ManagedServiceIdentityType values. - * + * * @return known ManagedServiceIdentityType values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java index 921981591b51..55cd66bfda20 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java @@ -8,14 +8,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for MetricAggregationType. */ +/** + * Defines values for MetricAggregationType. + */ public final class MetricAggregationType extends ExpandableStringEnum { - /** Static value Average for MetricAggregationType. */ + /** + * Static value Average for MetricAggregationType. + */ public static final MetricAggregationType AVERAGE = fromString("Average"); /** * Creates a new instance of MetricAggregationType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,7 +28,7 @@ public MetricAggregationType() { /** * Creates or finds a MetricAggregationType from its string representation. - * + * * @param name a name to look for. * @return the corresponding MetricAggregationType. */ @@ -35,7 +39,7 @@ public static MetricAggregationType fromString(String name) { /** * Gets known MetricAggregationType values. - * + * * @return known MetricAggregationType values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java index 621dc33b626f..666a16e9a43c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Metric specification of operation. */ +/** + * Metric specification of operation. + */ @Fluent public final class MetricSpecification { /* @@ -107,13 +109,15 @@ public final class MetricSpecification { @JsonProperty(value = "isInternal") private Boolean isInternal; - /** Creates an instance of MetricSpecification class. */ + /** + * Creates an instance of MetricSpecification class. + */ public MetricSpecification() { } /** * Get the name property: Name of metric specification. - * + * * @return the name value. */ public String name() { @@ -122,7 +126,7 @@ public String name() { /** * Set the name property: Name of metric specification. - * + * * @param name the name value to set. * @return the MetricSpecification object itself. */ @@ -133,7 +137,7 @@ public MetricSpecification withName(String name) { /** * Get the displayName property: Display name of metric specification. - * + * * @return the displayName value. */ public String displayName() { @@ -142,7 +146,7 @@ public String displayName() { /** * Set the displayName property: Display name of metric specification. - * + * * @param displayName the displayName value to set. * @return the MetricSpecification object itself. */ @@ -153,7 +157,7 @@ public MetricSpecification withDisplayName(String displayName) { /** * Get the displayDescription property: Display description of metric specification. - * + * * @return the displayDescription value. */ public String displayDescription() { @@ -162,7 +166,7 @@ public String displayDescription() { /** * Set the displayDescription property: Display description of metric specification. - * + * * @param displayDescription the displayDescription value to set. * @return the MetricSpecification object itself. */ @@ -173,7 +177,7 @@ public MetricSpecification withDisplayDescription(String displayDescription) { /** * Get the unit property: Unit could be Bytes or Count. - * + * * @return the unit value. */ public String unit() { @@ -182,7 +186,7 @@ public String unit() { /** * Set the unit property: Unit could be Bytes or Count. - * + * * @param unit the unit value to set. * @return the MetricSpecification object itself. */ @@ -193,7 +197,7 @@ public MetricSpecification withUnit(String unit) { /** * Get the supportedAggregationTypes property: Support metric aggregation type. - * + * * @return the supportedAggregationTypes value. */ public List supportedAggregationTypes() { @@ -202,7 +206,7 @@ public List supportedAggregationTypes() { /** * Set the supportedAggregationTypes property: Support metric aggregation type. - * + * * @param supportedAggregationTypes the supportedAggregationTypes value to set. * @return the MetricSpecification object itself. */ @@ -213,7 +217,7 @@ public MetricSpecification withSupportedAggregationTypes(List supportedTimeGrainTypes() { @@ -222,7 +226,7 @@ public List supportedTimeGrainTypes() { /** * Set the supportedTimeGrainTypes property: The supported time grain types for the metrics. - * + * * @param supportedTimeGrainTypes the supportedTimeGrainTypes value to set. * @return the MetricSpecification object itself. */ @@ -233,7 +237,7 @@ public MetricSpecification withSupportedTimeGrainTypes(List supportedTim /** * Get the internalMetricName property: The internal metric name. - * + * * @return the internalMetricName value. */ public String internalMetricName() { @@ -242,7 +246,7 @@ public String internalMetricName() { /** * Set the internalMetricName property: The internal metric name. - * + * * @param internalMetricName the internalMetricName value to set. * @return the MetricSpecification object itself. */ @@ -253,7 +257,7 @@ public MetricSpecification withInternalMetricName(String internalMetricName) { /** * Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts. - * + * * @return the enableRegionalMdmAccount value. */ public Boolean enableRegionalMdmAccount() { @@ -262,7 +266,7 @@ public Boolean enableRegionalMdmAccount() { /** * Set the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts. - * + * * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set. * @return the MetricSpecification object itself. */ @@ -273,7 +277,7 @@ public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMd /** * Get the sourceMdmAccount property: The source MDM account. - * + * * @return the sourceMdmAccount value. */ public String sourceMdmAccount() { @@ -282,7 +286,7 @@ public String sourceMdmAccount() { /** * Set the sourceMdmAccount property: The source MDM account. - * + * * @param sourceMdmAccount the sourceMdmAccount value to set. * @return the MetricSpecification object itself. */ @@ -293,7 +297,7 @@ public MetricSpecification withSourceMdmAccount(String sourceMdmAccount) { /** * Get the sourceMdmNamespace property: The source MDM namespace. - * + * * @return the sourceMdmNamespace value. */ public String sourceMdmNamespace() { @@ -302,7 +306,7 @@ public String sourceMdmNamespace() { /** * Set the sourceMdmNamespace property: The source MDM namespace. - * + * * @param sourceMdmNamespace the sourceMdmNamespace value to set. * @return the MetricSpecification object itself. */ @@ -313,7 +317,7 @@ public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace) { /** * Get the dimensions property: Dimensions of blobs, including blob type and access tier. - * + * * @return the dimensions value. */ public List dimensions() { @@ -322,7 +326,7 @@ public List dimensions() { /** * Set the dimensions property: Dimensions of blobs, including blob type and access tier. - * + * * @param dimensions the dimensions value to set. * @return the MetricSpecification object itself. */ @@ -333,7 +337,7 @@ public MetricSpecification withDimensions(List dimensions) { /** * Get the aggregationType property: Aggregation type could be Average. - * + * * @return the aggregationType value. */ public String aggregationType() { @@ -342,7 +346,7 @@ public String aggregationType() { /** * Set the aggregationType property: Aggregation type could be Average. - * + * * @param aggregationType the aggregationType value to set. * @return the MetricSpecification object itself. */ @@ -353,7 +357,7 @@ public MetricSpecification withAggregationType(String aggregationType) { /** * Get the fillGapWithZero property: The property to decide fill gap with zero or not. - * + * * @return the fillGapWithZero value. */ public Boolean fillGapWithZero() { @@ -362,7 +366,7 @@ public Boolean fillGapWithZero() { /** * Set the fillGapWithZero property: The property to decide fill gap with zero or not. - * + * * @param fillGapWithZero the fillGapWithZero value to set. * @return the MetricSpecification object itself. */ @@ -373,7 +377,7 @@ public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero) { /** * Get the category property: The category this metric specification belong to, could be Capacity. - * + * * @return the category value. */ public String category() { @@ -382,7 +386,7 @@ public String category() { /** * Set the category property: The category this metric specification belong to, could be Capacity. - * + * * @param category the category value to set. * @return the MetricSpecification object itself. */ @@ -393,7 +397,7 @@ public MetricSpecification withCategory(String category) { /** * Get the resourceIdDimensionNameOverride property: Account Resource Id. - * + * * @return the resourceIdDimensionNameOverride value. */ public String resourceIdDimensionNameOverride() { @@ -402,7 +406,7 @@ public String resourceIdDimensionNameOverride() { /** * Set the resourceIdDimensionNameOverride property: Account Resource Id. - * + * * @param resourceIdDimensionNameOverride the resourceIdDimensionNameOverride value to set. * @return the MetricSpecification object itself. */ @@ -413,7 +417,7 @@ public MetricSpecification withResourceIdDimensionNameOverride(String resourceId /** * Get the isInternal property: Whether the metric is internal. - * + * * @return the isInternal value. */ public Boolean isInternal() { @@ -422,7 +426,7 @@ public Boolean isInternal() { /** * Set the isInternal property: Whether the metric is internal. - * + * * @param isInternal the isInternal value to set. * @return the MetricSpecification object itself. */ @@ -433,7 +437,7 @@ public MetricSpecification withIsInternal(Boolean isInternal) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java index e96fe709d955..2e88067f935c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The status of the replication. */ +/** + * The status of the replication. + */ public final class MirrorState extends ExpandableStringEnum { - /** Static value Uninitialized for MirrorState. */ + /** + * Static value Uninitialized for MirrorState. + */ public static final MirrorState UNINITIALIZED = fromString("Uninitialized"); - /** Static value Mirrored for MirrorState. */ + /** + * Static value Mirrored for MirrorState. + */ public static final MirrorState MIRRORED = fromString("Mirrored"); - /** Static value Broken for MirrorState. */ + /** + * Static value Broken for MirrorState. + */ public static final MirrorState BROKEN = fromString("Broken"); /** * Creates a new instance of MirrorState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public MirrorState() { /** * Creates or finds a MirrorState from its string representation. - * + * * @param name a name to look for. * @return the corresponding MirrorState. */ @@ -41,7 +49,7 @@ public static MirrorState fromString(String name) { /** * Gets known MirrorState values. - * + * * @return known MirrorState values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java index d450311aede5..dbda3ccc09c3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Monthly Schedule properties. */ +/** + * Monthly Schedule properties. + */ @Fluent public final class MonthlySchedule { /* @@ -40,13 +42,15 @@ public final class MonthlySchedule { @JsonProperty(value = "usedBytes") private Long usedBytes; - /** Creates an instance of MonthlySchedule class. */ + /** + * Creates an instance of MonthlySchedule class. + */ public MonthlySchedule() { } /** * Get the snapshotsToKeep property: Monthly snapshot count to keep. - * + * * @return the snapshotsToKeep value. */ public Integer snapshotsToKeep() { @@ -55,7 +59,7 @@ public Integer snapshotsToKeep() { /** * Set the snapshotsToKeep property: Monthly snapshot count to keep. - * + * * @param snapshotsToKeep the snapshotsToKeep value to set. * @return the MonthlySchedule object itself. */ @@ -67,7 +71,7 @@ public MonthlySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { /** * Get the daysOfMonth property: Indicates which days of the month snapshot should be taken. A comma delimited * string. - * + * * @return the daysOfMonth value. */ public String daysOfMonth() { @@ -77,7 +81,7 @@ public String daysOfMonth() { /** * Set the daysOfMonth property: Indicates which days of the month snapshot should be taken. A comma delimited * string. - * + * * @param daysOfMonth the daysOfMonth value to set. * @return the MonthlySchedule object itself. */ @@ -88,7 +92,7 @@ public MonthlySchedule withDaysOfMonth(String daysOfMonth) { /** * Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * + * * @return the hour value. */ public Integer hour() { @@ -97,7 +101,7 @@ public Integer hour() { /** * Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * + * * @param hour the hour value to set. * @return the MonthlySchedule object itself. */ @@ -108,7 +112,7 @@ public MonthlySchedule withHour(Integer hour) { /** * Get the minute property: Indicates which minute snapshot should be taken. - * + * * @return the minute value. */ public Integer minute() { @@ -117,7 +121,7 @@ public Integer minute() { /** * Set the minute property: Indicates which minute snapshot should be taken. - * + * * @param minute the minute value to set. * @return the MonthlySchedule object itself. */ @@ -128,7 +132,7 @@ public MonthlySchedule withMinute(Integer minute) { /** * Get the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes. - * + * * @return the usedBytes value. */ public Long usedBytes() { @@ -137,7 +141,7 @@ public Long usedBytes() { /** * Set the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes. - * + * * @param usedBytes the usedBytes value to set. * @return the MonthlySchedule object itself. */ @@ -148,7 +152,7 @@ public MonthlySchedule withUsedBytes(Long usedBytes) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 cbecca8a7388..867609d0b592 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 @@ -11,81 +11,83 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of NetAppAccount. */ +/** + * An immutable client-side representation of NetAppAccount. + */ public interface NetAppAccount { /** * 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 location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ String etag(); /** * Gets the identity property: The identity used for the resource. - * + * * @return the identity value. */ ManagedServiceIdentity identity(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the activeDirectories property: Active Directories. - * + * * @return the activeDirectories value. */ List activeDirectories(); /** * Gets the encryption property: Encryption settings. - * + * * @return the encryption value. */ AccountEncryption encryption(); @@ -93,58 +95,63 @@ public interface NetAppAccount { /** * Gets the disableShowmount property: Shows the status of disableShowmount for all volumes under the subscription, * null equals false. - * + * * @return the disableShowmount value. */ Boolean disableShowmount(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * 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.NetAppAccountInner object. - * + * * @return the inner object. */ NetAppAccountInner innerModel(); - /** The entirety of the NetAppAccount definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, - DefinitionStages.WithCreate { + /** + * The entirety of the NetAppAccount definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { } - /** The NetAppAccount definition stages. */ + /** + * The NetAppAccount definition stages. + */ interface DefinitionStages { - /** The first stage of the NetAppAccount definition. */ + /** + * The first stage of the NetAppAccount definition. + */ interface Blank extends WithLocation { } - /** The stage of the NetAppAccount definition allowing to specify location. */ + /** + * The stage of the NetAppAccount definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -152,18 +159,20 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the NetAppAccount definition allowing to specify parent resource. */ + /** + * The stage of the NetAppAccount definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ @@ -174,65 +183,70 @@ interface WithResourceGroup { * The stage of the NetAppAccount 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.WithIdentity, - DefinitionStages.WithActiveDirectories, - DefinitionStages.WithEncryption { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, + DefinitionStages.WithActiveDirectories, DefinitionStages.WithEncryption { /** * Executes the create request. - * + * * @return the created resource. */ NetAppAccount create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ NetAppAccount create(Context context); } - /** The stage of the NetAppAccount definition allowing to specify tags. */ + /** + * The stage of the NetAppAccount definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the NetAppAccount definition allowing to specify identity. */ + /** + * The stage of the NetAppAccount definition allowing to specify identity. + */ interface WithIdentity { /** * Specifies the identity property: The identity used for the resource.. - * + * * @param identity The identity used for the resource. * @return the next definition stage. */ WithCreate withIdentity(ManagedServiceIdentity identity); } - /** The stage of the NetAppAccount definition allowing to specify activeDirectories. */ + /** + * The stage of the NetAppAccount definition allowing to specify activeDirectories. + */ interface WithActiveDirectories { /** * Specifies the activeDirectories property: Active Directories. - * + * * @param activeDirectories Active Directories. * @return the next definition stage. */ WithCreate withActiveDirectories(List activeDirectories); } - /** The stage of the NetAppAccount definition allowing to specify encryption. */ + /** + * The stage of the NetAppAccount definition allowing to specify encryption. + */ interface WithEncryption { /** * Specifies the encryption property: Encryption settings. - * + * * @param encryption Encryption settings. * @return the next definition stage. */ @@ -242,73 +256,82 @@ interface WithEncryption { /** * Begins update for the NetAppAccount resource. - * + * * @return the stage of resource update. */ NetAppAccount.Update update(); - /** The template for NetAppAccount update. */ - interface Update - extends UpdateStages.WithTags, - UpdateStages.WithIdentity, - UpdateStages.WithActiveDirectories, - UpdateStages.WithEncryption { + /** + * The template for NetAppAccount update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithActiveDirectories, + UpdateStages.WithEncryption { /** * Executes the update request. - * + * * @return the updated resource. */ NetAppAccount apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ NetAppAccount apply(Context context); } - /** The NetAppAccount update stages. */ + /** + * The NetAppAccount update stages. + */ interface UpdateStages { - /** The stage of the NetAppAccount update allowing to specify tags. */ + /** + * The stage of the NetAppAccount update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the NetAppAccount update allowing to specify identity. */ + /** + * The stage of the NetAppAccount update allowing to specify identity. + */ interface WithIdentity { /** * Specifies the identity property: The identity used for the resource.. - * + * * @param identity The identity used for the resource. * @return the next definition stage. */ Update withIdentity(ManagedServiceIdentity identity); } - /** The stage of the NetAppAccount update allowing to specify activeDirectories. */ + /** + * The stage of the NetAppAccount update allowing to specify activeDirectories. + */ interface WithActiveDirectories { /** * Specifies the activeDirectories property: Active Directories. - * + * * @param activeDirectories Active Directories. * @return the next definition stage. */ Update withActiveDirectories(List activeDirectories); } - /** The stage of the NetAppAccount update allowing to specify encryption. */ + /** + * The stage of the NetAppAccount update allowing to specify encryption. + */ interface WithEncryption { /** * Specifies the encryption property: Encryption settings. - * + * * @param encryption Encryption settings. * @return the next definition stage. */ @@ -318,14 +341,14 @@ interface WithEncryption { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ NetAppAccount refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -333,10 +356,10 @@ interface WithEncryption { /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. */ @@ -344,10 +367,10 @@ interface WithEncryption { /** * Renew identity credentials - * - *

Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If + * + * Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If * encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * + * * @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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java index b87cad4205ea..c65b657d7389 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of NetApp account resources. */ +/** + * List of NetApp account resources. + */ @Fluent public final class NetAppAccountList { /* @@ -24,13 +26,15 @@ public final class NetAppAccountList { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of NetAppAccountList class. */ + /** + * Creates an instance of NetAppAccountList class. + */ public NetAppAccountList() { } /** * Get the value property: Multiple NetApp accounts. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Set the value property: Multiple NetApp accounts. - * + * * @param value the value value to set. * @return the NetAppAccountList object itself. */ @@ -50,7 +54,7 @@ public NetAppAccountList withValue(List value) { /** * Get the nextLink property: URL to get the next set of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -59,7 +63,7 @@ public String nextLink() { /** * Set the nextLink property: URL to get the next set of results. - * + * * @param nextLink the nextLink value to set. * @return the NetAppAccountList object itself. */ @@ -70,7 +74,7 @@ public NetAppAccountList withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 612cdb9cf516..551c73c4e8f0 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 @@ -11,7 +11,9 @@ import java.util.List; import java.util.Map; -/** NetApp account patch resource. */ +/** + * NetApp account patch resource. + */ @Fluent public final class NetAppAccountPatch extends Resource { /* @@ -26,13 +28,15 @@ public final class NetAppAccountPatch extends Resource { @JsonProperty(value = "identity") private ManagedServiceIdentity identity; - /** Creates an instance of NetAppAccountPatch class. */ + /** + * Creates an instance of NetAppAccountPatch class. + */ public NetAppAccountPatch() { } /** * Get the innerProperties property: NetApp Account properties. - * + * * @return the innerProperties value. */ private AccountProperties innerProperties() { @@ -41,7 +45,7 @@ private AccountProperties innerProperties() { /** * Get the identity property: The identity used for the resource. - * + * * @return the identity value. */ public ManagedServiceIdentity identity() { @@ -50,7 +54,7 @@ public ManagedServiceIdentity identity() { /** * Set the identity property: The identity used for the resource. - * + * * @param identity the identity value to set. * @return the NetAppAccountPatch object itself. */ @@ -59,14 +63,18 @@ public NetAppAccountPatch withIdentity(ManagedServiceIdentity identity) { return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public NetAppAccountPatch withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public NetAppAccountPatch withTags(Map tags) { super.withTags(tags); @@ -75,7 +83,7 @@ public NetAppAccountPatch withTags(Map tags) { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -84,7 +92,7 @@ public String provisioningState() { /** * Get the activeDirectories property: Active Directories. - * + * * @return the activeDirectories value. */ public List activeDirectories() { @@ -93,7 +101,7 @@ public List activeDirectories() { /** * Set the activeDirectories property: Active Directories. - * + * * @param activeDirectories the activeDirectories value to set. * @return the NetAppAccountPatch object itself. */ @@ -107,7 +115,7 @@ public NetAppAccountPatch withActiveDirectories(List activeDire /** * Get the encryption property: Encryption settings. - * + * * @return the encryption value. */ public AccountEncryption encryption() { @@ -116,7 +124,7 @@ public AccountEncryption encryption() { /** * Set the encryption property: Encryption settings. - * + * * @param encryption the encryption value to set. * @return the NetAppAccountPatch object itself. */ @@ -131,7 +139,7 @@ public NetAppAccountPatch withEncryption(AccountEncryption encryption) { /** * Get the disableShowmount property: Shows the status of disableShowmount for all volumes under the subscription, * null equals false. - * + * * @return the disableShowmount value. */ public Boolean disableShowmount() { @@ -140,7 +148,7 @@ public Boolean disableShowmount() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 882c7b47f81b..5cf1dcac7d97 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 @@ -8,14 +8,16 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of NetAppResourceQuotaLimits. */ +/** + * Resource collection API of NetAppResourceQuotaLimits. + */ public interface NetAppResourceQuotaLimits { /** * Get quota limits - * - *

Get the default and current limits for quotas. - * - * @param location The name of Azure region. + * + * Get the default and current limits for quotas. + * + * @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. @@ -25,10 +27,10 @@ public interface NetAppResourceQuotaLimits { /** * Get quota limits - * - *

Get the default and current limits for quotas. - * - * @param location The name of Azure region. + * + * Get the default and current limits for quotas. + * + * @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. @@ -39,10 +41,10 @@ public interface NetAppResourceQuotaLimits { /** * Get quota limits - * - *

Get the default and current subscription quota limit. - * - * @param location The name of Azure region. + * + * Get the default and current subscription quota limit. + * + * @param location The name of the Azure region. * @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. @@ -54,10 +56,10 @@ public interface NetAppResourceQuotaLimits { /** * Get quota limits - * - *

Get the default and current subscription quota limit. - * - * @param location The name of Azure region. + * + * Get the default and current subscription quota limit. + * + * @param location The name of the Azure region. * @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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java index 836de3753eb6..8e6e04cb52f9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java @@ -7,14 +7,16 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of NetAppResources. */ +/** + * Resource collection API of NetAppResources. + */ public interface NetAppResources { /** * Check resource name availability - * - *

Check if a resource name is available. - * - * @param location The name of Azure region. + * + * Check if a resource name is available. + * + * @param location The name of the Azure region. * @param body Name availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -22,15 +24,15 @@ public interface NetAppResources { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information regarding availability of a resource along with {@link Response}. */ - Response checkNameAvailabilityWithResponse( - String location, ResourceNameAvailabilityRequest body, Context context); + Response checkNameAvailabilityWithResponse(String location, + ResourceNameAvailabilityRequest body, Context context); /** * Check resource name availability - * - *

Check if a resource name is available. - * - * @param location The name of Azure region. + * + * Check if a resource name is available. + * + * @param location The name of the Azure region. * @param body Name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -41,10 +43,10 @@ Response checkNameAvailabilityWithResponse( /** * Check file path availability - * - *

Check if a file path is available. - * - * @param location The name of Azure region. + * + * Check if a file path is available. + * + * @param location The name of the Azure region. * @param body File path availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -52,15 +54,15 @@ Response checkNameAvailabilityWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information regarding availability of a resource along with {@link Response}. */ - Response checkFilePathAvailabilityWithResponse( - String location, FilePathAvailabilityRequest body, Context context); + Response checkFilePathAvailabilityWithResponse(String location, + FilePathAvailabilityRequest body, Context context); /** * Check file path availability - * - *

Check if a file path is available. - * - * @param location The name of Azure region. + * + * Check if a file path is available. + * + * @param location The name of the Azure region. * @param body File path availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -71,10 +73,10 @@ Response checkFilePathAvailabilityWithResponse( /** * Check quota availability - * - *

Check if a quota is available. - * - * @param location The name of Azure region. + * + * Check if a quota is available. + * + * @param location The name of the Azure region. * @param body Quota availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -82,15 +84,15 @@ Response checkFilePathAvailabilityWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information regarding availability of a resource along with {@link Response}. */ - Response checkQuotaAvailabilityWithResponse( - String location, QuotaAvailabilityRequest body, Context context); + Response checkQuotaAvailabilityWithResponse(String location, + QuotaAvailabilityRequest body, Context context); /** * Check quota availability - * - *

Check if a quota is available. - * - * @param location The name of Azure region. + * + * Check if a quota is available. + * + * @param location The name of the Azure region. * @param body Quota availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -101,10 +103,10 @@ Response checkQuotaAvailabilityWithResponse( /** * Describes region specific information. - * - *

Provides storage to network proximity and logical zone mapping information. - * - * @param location The name of Azure region. + * + * Provides storage to network proximity and logical zone mapping information. + * + * @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. @@ -115,10 +117,10 @@ Response checkQuotaAvailabilityWithResponse( /** * Describes region specific information. - * - *

Provides storage to network proximity and logical zone mapping information. - * - * @param location The name of Azure region. + * + * Provides storage to network proximity and logical zone mapping information. + * + * @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. @@ -128,10 +130,10 @@ Response checkQuotaAvailabilityWithResponse( /** * Describe a network sibling set - * - *

Get details of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Get details of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Network sibling set to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -139,15 +141,15 @@ Response checkQuotaAvailabilityWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return details of the specified network sibling set along with {@link Response}. */ - Response queryNetworkSiblingSetWithResponse( - String location, QueryNetworkSiblingSetRequest body, Context context); + Response queryNetworkSiblingSetWithResponse(String location, QueryNetworkSiblingSetRequest body, + Context context); /** * Describe a network sibling set - * - *

Get details of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Get details of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Network sibling set to query. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -158,10 +160,10 @@ Response queryNetworkSiblingSetWithResponse( /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -172,10 +174,10 @@ Response queryNetworkSiblingSetWithResponse( /** * Update the network features of a network sibling set - * - *

Update the network features of the specified network sibling set. - * - * @param location The name of Azure region. + * + * Update the network features of the specified network sibling set. + * + * @param location The name of the Azure region. * @param body Update for the specified network sibling set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java index 63835cfc5255..5af054d77ac3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java @@ -10,25 +10,33 @@ /** * Network features - * - *

Network features available to the volume, or current state of update. + * + * Network features available to the volume, or current state of update. */ public final class NetworkFeatures extends ExpandableStringEnum { - /** Static value Basic for NetworkFeatures. */ + /** + * Static value Basic for NetworkFeatures. + */ public static final NetworkFeatures BASIC = fromString("Basic"); - /** Static value Standard for NetworkFeatures. */ + /** + * Static value Standard for NetworkFeatures. + */ public static final NetworkFeatures STANDARD = fromString("Standard"); - /** Static value Basic_Standard for NetworkFeatures. */ + /** + * Static value Basic_Standard for NetworkFeatures. + */ public static final NetworkFeatures BASIC_STANDARD = fromString("Basic_Standard"); - /** Static value Standard_Basic for NetworkFeatures. */ + /** + * Static value Standard_Basic for NetworkFeatures. + */ public static final NetworkFeatures STANDARD_BASIC = fromString("Standard_Basic"); /** * Creates a new instance of NetworkFeatures value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -37,7 +45,7 @@ public NetworkFeatures() { /** * Creates or finds a NetworkFeatures from its string representation. - * + * * @param name a name to look for. * @return the corresponding NetworkFeatures. */ @@ -48,7 +56,7 @@ public static NetworkFeatures fromString(String name) { /** * Gets known NetworkFeatures values. - * + * * @return known NetworkFeatures values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java index ff0182f96da8..7a81728e3c8d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java @@ -7,41 +7,43 @@ import com.azure.resourcemanager.netapp.fluent.models.NetworkSiblingSetInner; import java.util.List; -/** An immutable client-side representation of NetworkSiblingSet. */ +/** + * An immutable client-side representation of NetworkSiblingSet. + */ public interface NetworkSiblingSet { /** * Gets the networkSiblingSetId property: Network Sibling Set ID - * - *

Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - * + * + * Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + * * @return the networkSiblingSetId value. */ String networkSiblingSetId(); /** * Gets the subnetId property: Subnet resource Id - * - *

The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example + * + * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. - * + * * @return the subnetId value. */ String subnetId(); /** * Gets the networkSiblingSetStateId property: Network sibling set state Id - * - *

Network sibling set state Id identifying the current state of the sibling set. - * + * + * Network sibling set state Id identifying the current state of the sibling set. + * * @return the networkSiblingSetStateId value. */ String networkSiblingSetStateId(); /** * Gets the networkFeatures property: Network features - * - *

Network features available to the volume, or current state of update. - * + * + * Network features available to the volume, or current state of update. + * * @return the networkFeatures value. */ NetworkFeatures networkFeatures(); @@ -49,21 +51,21 @@ public interface NetworkSiblingSet { /** * Gets the provisioningState property: Gets the status of the NetworkSiblingSet at the time the operation was * called. - * + * * @return the provisioningState value. */ NetworkSiblingSetProvisioningState provisioningState(); /** * Gets the nicInfoList property: List of NIC information. - * + * * @return the nicInfoList value. */ List nicInfoList(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.NetworkSiblingSetInner object. - * + * * @return the inner object. */ NetworkSiblingSetInner innerModel(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java index 877453aa0a60..bec663fdb885 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java @@ -8,23 +8,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Gets the status of the NetworkSiblingSet at the time the operation was called. */ +/** + * Gets the status of the NetworkSiblingSet at the time the operation was called. + */ public final class NetworkSiblingSetProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for NetworkSiblingSetProvisioningState. */ + /** + * Static value Succeeded for NetworkSiblingSetProvisioningState. + */ public static final NetworkSiblingSetProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for NetworkSiblingSetProvisioningState. */ + /** + * Static value Failed for NetworkSiblingSetProvisioningState. + */ public static final NetworkSiblingSetProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for NetworkSiblingSetProvisioningState. */ + /** + * Static value Canceled for NetworkSiblingSetProvisioningState. + */ public static final NetworkSiblingSetProvisioningState CANCELED = fromString("Canceled"); - /** Static value Updating for NetworkSiblingSetProvisioningState. */ + /** + * Static value Updating for NetworkSiblingSetProvisioningState. + */ public static final NetworkSiblingSetProvisioningState UPDATING = fromString("Updating"); /** * Creates a new instance of NetworkSiblingSetProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,7 +43,7 @@ public NetworkSiblingSetProvisioningState() { /** * Creates or finds a NetworkSiblingSetProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding NetworkSiblingSetProvisioningState. */ @@ -44,7 +54,7 @@ public static NetworkSiblingSetProvisioningState fromString(String name) { /** * Gets known NetworkSiblingSetProvisioningState values. - * + * * @return known NetworkSiblingSetProvisioningState values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java index 16af8fb0a645..90f17b9849d1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java @@ -10,8 +10,8 @@ /** * NIC information - * - *

NIC information and list of volumes for which the NIC has the primary mount ip address. + * + * NIC information and list of volumes for which the NIC has the primary mount ip address. */ @Fluent public final class NicInfo { @@ -27,13 +27,15 @@ public final class NicInfo { @JsonProperty(value = "volumeResourceIds") private List volumeResourceIds; - /** Creates an instance of NicInfo class. */ + /** + * Creates an instance of NicInfo class. + */ public NicInfo() { } /** * Get the ipAddress property: ipAddress. - * + * * @return the ipAddress value. */ public String ipAddress() { @@ -42,7 +44,7 @@ public String ipAddress() { /** * Get the volumeResourceIds property: Volume resource Ids. - * + * * @return the volumeResourceIds value. */ public List volumeResourceIds() { @@ -51,7 +53,7 @@ public List volumeResourceIds() { /** * Set the volumeResourceIds property: Volume resource Ids. - * + * * @param volumeResourceIds the volumeResourceIds value to set. * @return the NicInfo object itself. */ @@ -62,7 +64,7 @@ public NicInfo withVolumeResourceIds(List volumeResourceIds) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operation.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operation.java index da8407caf63f..f822353ce966 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operation.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operation.java @@ -6,39 +6,41 @@ import com.azure.resourcemanager.netapp.fluent.models.OperationInner; -/** An immutable client-side representation of Operation. */ +/** + * An immutable client-side representation of Operation. + */ public interface Operation { /** * Gets the name property: Operation name: {provider}/{resource}/{operation}. - * + * * @return the name value. */ String name(); /** * Gets the display property: Display metadata associated with the operation. - * + * * @return the display value. */ OperationDisplay display(); /** * Gets the origin property: The origin of operations. - * + * * @return the origin value. */ String origin(); /** * Gets the serviceSpecification property: One property of operation, include metric specifications. - * + * * @return the serviceSpecification value. */ ServiceSpecification serviceSpecification(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.OperationInner object. - * + * * @return the inner object. */ OperationInner innerModel(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java index 990ed7628cba..d5caf9ee561c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Display metadata associated with the operation. */ +/** + * Display metadata associated with the operation. + */ @Fluent public final class OperationDisplay { /* @@ -34,13 +36,15 @@ public final class OperationDisplay { @JsonProperty(value = "description") private String description; - /** Creates an instance of OperationDisplay class. */ + /** + * Creates an instance of OperationDisplay class. + */ public OperationDisplay() { } /** * Get the provider property: Service provider: Microsoft NetApp. - * + * * @return the provider value. */ public String provider() { @@ -49,7 +53,7 @@ public String provider() { /** * Set the provider property: Service provider: Microsoft NetApp. - * + * * @param provider the provider value to set. * @return the OperationDisplay object itself. */ @@ -60,7 +64,7 @@ public OperationDisplay withProvider(String provider) { /** * Get the resource property: Resource on which the operation is performed etc. - * + * * @return the resource value. */ public String resource() { @@ -69,7 +73,7 @@ public String resource() { /** * Set the resource property: Resource on which the operation is performed etc. - * + * * @param resource the resource value to set. * @return the OperationDisplay object itself. */ @@ -80,7 +84,7 @@ public OperationDisplay withResource(String resource) { /** * Get the operation property: Type of operation: get, read, delete, etc. - * + * * @return the operation value. */ public String operation() { @@ -89,7 +93,7 @@ public String operation() { /** * Set the operation property: Type of operation: get, read, delete, etc. - * + * * @param operation the operation value to set. * @return the OperationDisplay object itself. */ @@ -100,7 +104,7 @@ public OperationDisplay withOperation(String operation) { /** * Get the description property: Operation description. - * + * * @return the description value. */ public String description() { @@ -109,7 +113,7 @@ public String description() { /** * Set the description property: Operation description. - * + * * @param description the description value to set. * @return the OperationDisplay object itself. */ @@ -120,7 +124,7 @@ public OperationDisplay withDescription(String description) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 d37723af6518..2174fe5ebbaf 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 @@ -21,13 +21,15 @@ public final class OperationListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of OperationListResult class. */ + /** + * Creates an instance of OperationListResult class. + */ public OperationListResult() { } /** * Get the value property: List of Storage operations supported by the Storage resource provider. - * + * * @return the value value. */ public List value() { @@ -36,7 +38,7 @@ public List value() { /** * Set the value property: List of Storage operations supported by the Storage resource provider. - * + * * @param value the value value to set. * @return the OperationListResult object itself. */ @@ -47,7 +49,7 @@ public OperationListResult withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operations.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operations.java index 5f2f98610d17..1e952b6e09a8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operations.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Operations.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of Operations. */ +/** + * Resource collection API of Operations. + */ public interface Operations { /** * Describes the Resource Provider - * - *

Lists all of the available Microsoft.NetApp Rest API operations. - * + * + * Lists all of the available Microsoft.NetApp Rest API operations. + * * @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 result of the request to list Cloud Volume operations as paginated response with {@link PagedIterable}. @@ -22,9 +24,9 @@ public interface Operations { /** * Describes the Resource Provider - * - *

Lists all of the available Microsoft.NetApp Rest API operations. - * + * + * Lists all of the available Microsoft.NetApp Rest API operations. + * * @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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java index 954b59ca13d1..7fa34f04cab3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Application specific parameters for the placement of volumes in the volume group. */ +/** + * Application specific parameters for the placement of volumes in the volume group. + */ @Fluent public final class PlacementKeyValuePairs { /* @@ -23,13 +25,16 @@ public final class PlacementKeyValuePairs { @JsonProperty(value = "value", required = true) private String value; - /** Creates an instance of PlacementKeyValuePairs class. */ + /** + * Creates an instance of PlacementKeyValuePairs class. + */ public PlacementKeyValuePairs() { } /** - * Get the key property: Key for an application specific parameter for the placement of volumes in the volume group. - * + * Get the key property: Key for an application specific parameter for the placement of volumes in the volume + * group. + * * @return the key value. */ public String key() { @@ -37,8 +42,9 @@ public String key() { } /** - * Set the key property: Key for an application specific parameter for the placement of volumes in the volume group. - * + * Set the key property: Key for an application specific parameter for the placement of volumes in the volume + * group. + * * @param key the key value to set. * @return the PlacementKeyValuePairs object itself. */ @@ -50,7 +56,7 @@ public PlacementKeyValuePairs withKey(String key) { /** * Get the value property: Value for an application specific parameter for the placement of volumes in the volume * group. - * + * * @return the value value. */ public String value() { @@ -60,7 +66,7 @@ public String value() { /** * Set the value property: Value for an application specific parameter for the placement of volumes in the volume * group. - * + * * @param value the value value to set. * @return the PlacementKeyValuePairs object itself. */ @@ -71,19 +77,17 @@ public PlacementKeyValuePairs withValue(String value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (key() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property key in model PlacementKeyValuePairs")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property key in model PlacementKeyValuePairs")); } if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model PlacementKeyValuePairs")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property value in model PlacementKeyValuePairs")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java index e43fc85ee905..879c09260fb9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Pool change request. */ +/** + * Pool change request. + */ @Fluent public final class PoolChangeRequest { /* @@ -17,13 +19,15 @@ public final class PoolChangeRequest { @JsonProperty(value = "newPoolResourceId", required = true) private String newPoolResourceId; - /** Creates an instance of PoolChangeRequest class. */ + /** + * Creates an instance of PoolChangeRequest class. + */ public PoolChangeRequest() { } /** * Get the newPoolResourceId property: Resource id of the pool to move volume to. - * + * * @return the newPoolResourceId value. */ public String newPoolResourceId() { @@ -32,7 +36,7 @@ public String newPoolResourceId() { /** * Set the newPoolResourceId property: Resource id of the pool to move volume to. - * + * * @param newPoolResourceId the newPoolResourceId value to set. * @return the PoolChangeRequest object itself. */ @@ -43,15 +47,13 @@ public PoolChangeRequest withNewPoolResourceId(String newPoolResourceId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (newPoolResourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property newPoolResourceId in model PoolChangeRequest")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property newPoolResourceId in model PoolChangeRequest")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java index e11b0609e91e..719359185491 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Pools.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Pools. */ +/** + * Resource collection API of Pools. + */ public interface Pools { /** * Describe all Capacity Pools - * - *

List all capacity pools in the NetApp Account. - * + * + * List all capacity pools in the NetApp Account. + * * @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. @@ -26,9 +28,9 @@ public interface Pools { /** * Describe all Capacity Pools - * - *

List all capacity pools in the NetApp Account. - * + * + * List all capacity pools in the NetApp Account. + * * @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. @@ -41,9 +43,9 @@ public interface Pools { /** * Describe a Capacity Pool - * - *

Get details of the specified capacity pool. - * + * + * Get details of the specified capacity pool. + * * @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. @@ -53,14 +55,14 @@ public interface Pools { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return details of the specified capacity pool along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String accountName, String poolName, Context context); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + Context context); /** * Describe a Capacity Pool - * - *

Get details of the specified capacity pool. - * + * + * Get details of the specified capacity pool. + * * @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. @@ -73,9 +75,9 @@ Response getWithResponse( /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -87,9 +89,9 @@ Response getWithResponse( /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -102,9 +104,9 @@ Response getWithResponse( /** * Describe a Capacity Pool - * - *

Get details of the specified capacity pool. - * + * + * Get details of the specified capacity pool. + * * @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. @@ -115,9 +117,9 @@ Response getWithResponse( /** * Describe a Capacity Pool - * - *

Get details of the specified capacity pool. - * + * + * Get details of the specified capacity pool. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -129,9 +131,9 @@ Response getWithResponse( /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @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. @@ -141,9 +143,9 @@ Response getWithResponse( /** * Delete a capacity pool - * - *

Delete the specified capacity pool. - * + * + * Delete the specified capacity pool. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -154,7 +156,7 @@ Response getWithResponse( /** * Begins definition for a new CapacityPool resource. - * + * * @param name resource name. * @return the first stage of the new CapacityPool definition. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java index 6ae7a1a7af9c..e087d87c98ee 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java @@ -7,30 +7,48 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Gets the status of the VolumeQuotaRule at the time the operation was called. */ +/** + * Gets the status of the VolumeQuotaRule at the time the operation was called. + */ public enum ProvisioningState { - /** Enum value Accepted. */ + /** + * Enum value Accepted. + */ ACCEPTED("Accepted"), - /** Enum value Creating. */ + /** + * Enum value Creating. + */ CREATING("Creating"), - /** Enum value Patching. */ + /** + * Enum value Patching. + */ PATCHING("Patching"), - /** Enum value Deleting. */ + /** + * Enum value Deleting. + */ DELETING("Deleting"), - /** Enum value Moving. */ + /** + * Enum value Moving. + */ MOVING("Moving"), - /** Enum value Failed. */ + /** + * Enum value Failed. + */ FAILED("Failed"), - /** Enum value Succeeded. */ + /** + * Enum value Succeeded. + */ SUCCEEDED("Succeeded"); - /** The actual serialized value for a ProvisioningState instance. */ + /** + * The actual serialized value for a ProvisioningState instance. + */ private final String value; ProvisioningState(String value) { @@ -39,7 +57,7 @@ public enum ProvisioningState { /** * Parses a serialized value to a ProvisioningState instance. - * + * * @param value the serialized value to parse. * @return the parsed ProvisioningState object, or null if unable to parse. */ @@ -57,7 +75,9 @@ public static ProvisioningState fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QosType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QosType.java index c1c3dadaa284..7b6c03021187 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QosType.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QosType.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The qos type of the pool. */ +/** + * The qos type of the pool. + */ public final class QosType extends ExpandableStringEnum { - /** Static value Auto for QosType. */ + /** + * Static value Auto for QosType. + */ public static final QosType AUTO = fromString("Auto"); - /** Static value Manual for QosType. */ + /** + * Static value Manual for QosType. + */ public static final QosType MANUAL = fromString("Manual"); /** * Creates a new instance of QosType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public QosType() { /** * Creates or finds a QosType from its string representation. - * + * * @param name a name to look for. * @return the corresponding QosType. */ @@ -38,7 +44,7 @@ public static QosType fromString(String name) { /** * Gets known QosType values. - * + * * @return known QosType values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java index a29402e6d26d..17a248122f09 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java @@ -10,14 +10,14 @@ /** * QueryNetworkSiblingSetRequest - * - *

Network sibling set query. + * + * Network sibling set query. */ @Fluent public final class QueryNetworkSiblingSetRequest { /* * Network Sibling Set ID - * + * * Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. */ @JsonProperty(value = "networkSiblingSetId", required = true) @@ -25,22 +25,25 @@ public final class QueryNetworkSiblingSetRequest { /* * Subnet resource Id - * + * * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example - * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/ + * subnets/{mySubnet} */ @JsonProperty(value = "subnetId", required = true) private String subnetId; - /** Creates an instance of QueryNetworkSiblingSetRequest class. */ + /** + * Creates an instance of QueryNetworkSiblingSetRequest class. + */ public QueryNetworkSiblingSetRequest() { } /** * Get the networkSiblingSetId property: Network Sibling Set ID - * - *

Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - * + * + * Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + * * @return the networkSiblingSetId value. */ public String networkSiblingSetId() { @@ -49,9 +52,9 @@ public String networkSiblingSetId() { /** * Set the networkSiblingSetId property: Network Sibling Set ID - * - *

Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - * + * + * Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + * * @param networkSiblingSetId the networkSiblingSetId value to set. * @return the QueryNetworkSiblingSetRequest object itself. */ @@ -62,10 +65,10 @@ public QueryNetworkSiblingSetRequest withNetworkSiblingSetId(String networkSibli /** * Get the subnetId property: Subnet resource Id - * - *

The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example + * + * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. - * + * * @return the subnetId value. */ public String subnetId() { @@ -74,10 +77,10 @@ public String subnetId() { /** * Set the subnetId property: Subnet resource Id - * - *

The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example + * + * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. - * + * * @param subnetId the subnetId value to set. * @return the QueryNetworkSiblingSetRequest object itself. */ @@ -88,21 +91,17 @@ public QueryNetworkSiblingSetRequest withSubnetId(String subnetId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (networkSiblingSetId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property networkSiblingSetId in model QueryNetworkSiblingSetRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property networkSiblingSetId in model QueryNetworkSiblingSetRequest")); } if (subnetId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property subnetId in model QueryNetworkSiblingSetRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property subnetId in model QueryNetworkSiblingSetRequest")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java index 2c0dc58f426c..d66cc68d4a05 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Quota availability request content. */ +/** + * Quota availability request content. + */ @Fluent public final class QuotaAvailabilityRequest { /* @@ -29,13 +31,15 @@ public final class QuotaAvailabilityRequest { @JsonProperty(value = "resourceGroup", required = true) private String resourceGroup; - /** Creates an instance of QuotaAvailabilityRequest class. */ + /** + * Creates an instance of QuotaAvailabilityRequest class. + */ public QuotaAvailabilityRequest() { } /** * Get the name property: Name of the resource to verify. - * + * * @return the name value. */ public String name() { @@ -44,7 +48,7 @@ public String name() { /** * Set the name property: Name of the resource to verify. - * + * * @param name the name value to set. * @return the QuotaAvailabilityRequest object itself. */ @@ -55,7 +59,7 @@ public QuotaAvailabilityRequest withName(String name) { /** * Get the type property: Resource type used for verification. - * + * * @return the type value. */ public CheckQuotaNameResourceTypes type() { @@ -64,7 +68,7 @@ public CheckQuotaNameResourceTypes type() { /** * Set the type property: Resource type used for verification. - * + * * @param type the type value to set. * @return the QuotaAvailabilityRequest object itself. */ @@ -75,7 +79,7 @@ public QuotaAvailabilityRequest withType(CheckQuotaNameResourceTypes type) { /** * Get the resourceGroup property: Resource group name. - * + * * @return the resourceGroup value. */ public String resourceGroup() { @@ -84,7 +88,7 @@ public String resourceGroup() { /** * Set the resourceGroup property: Resource group name. - * + * * @param resourceGroup the resourceGroup value to set. * @return the QuotaAvailabilityRequest object itself. */ @@ -95,25 +99,21 @@ public QuotaAvailabilityRequest withResourceGroup(String resourceGroup) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (name() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property name in model QuotaAvailabilityRequest")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property name in model QuotaAvailabilityRequest")); } if (type() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property type in model QuotaAvailabilityRequest")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property type in model QuotaAvailabilityRequest")); } if (resourceGroup() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property resourceGroup in model QuotaAvailabilityRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property resourceGroup in model QuotaAvailabilityRequest")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java index 4d2d84a0daff..07255b001d93 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Re-establish request object supplied in the body of the operation. */ +/** + * Re-establish request object supplied in the body of the operation. + */ @Fluent public final class ReestablishReplicationRequest { /* @@ -16,13 +18,15 @@ public final class ReestablishReplicationRequest { @JsonProperty(value = "sourceVolumeId") private String sourceVolumeId; - /** Creates an instance of ReestablishReplicationRequest class. */ + /** + * Creates an instance of ReestablishReplicationRequest class. + */ public ReestablishReplicationRequest() { } /** * Get the sourceVolumeId property: Resource id of the source volume for the replication. - * + * * @return the sourceVolumeId value. */ public String sourceVolumeId() { @@ -31,7 +35,7 @@ public String sourceVolumeId() { /** * Set the sourceVolumeId property: Resource id of the source volume for the replication. - * + * * @param sourceVolumeId the sourceVolumeId value to set. * @return the ReestablishReplicationRequest object itself. */ @@ -42,7 +46,7 @@ public ReestablishReplicationRequest withSourceVolumeId(String sourceVolumeId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java index ebfc0908ed86..8d9cc1d1bd2d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java @@ -7,29 +7,31 @@ import com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner; import java.util.List; -/** An immutable client-side representation of RegionInfo. */ +/** + * An immutable client-side representation of RegionInfo. + */ public interface RegionInfo { /** * Gets the storageToNetworkProximity property: Storage to Network Proximity - * - *

Provides storage to network proximity information in the region. - * + * + * Provides storage to network proximity information in the region. + * * @return the storageToNetworkProximity value. */ RegionStorageToNetworkProximity storageToNetworkProximity(); /** * Gets the availabilityZoneMappings property: Logical availability zone mappings. - * - *

Provides logical availability zone mappings for the subscription for a region. - * + * + * Provides logical availability zone mappings for the subscription for a region. + * * @return the availabilityZoneMappings value. */ List availabilityZoneMappings(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner object. - * + * * @return the inner object. */ RegionInfoInner innerModel(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java index a0dce69eeb4c..918ead354a2d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The RegionInfoAvailabilityZoneMappingsItem model. */ +/** + * The RegionInfoAvailabilityZoneMappingsItem model. + */ @Fluent public final class RegionInfoAvailabilityZoneMappingsItem { /* @@ -22,13 +24,15 @@ public final class RegionInfoAvailabilityZoneMappingsItem { @JsonProperty(value = "isAvailable") private Boolean isAvailable; - /** Creates an instance of RegionInfoAvailabilityZoneMappingsItem class. */ + /** + * Creates an instance of RegionInfoAvailabilityZoneMappingsItem class. + */ public RegionInfoAvailabilityZoneMappingsItem() { } /** * Get the availabilityZone property: Logical availability zone. - * + * * @return the availabilityZone value. */ public String availabilityZone() { @@ -37,7 +41,7 @@ public String availabilityZone() { /** * Set the availabilityZone property: Logical availability zone. - * + * * @param availabilityZone the availabilityZone value to set. * @return the RegionInfoAvailabilityZoneMappingsItem object itself. */ @@ -48,7 +52,7 @@ public RegionInfoAvailabilityZoneMappingsItem withAvailabilityZone(String availa /** * Get the isAvailable property: Available availability zone. - * + * * @return the isAvailable value. */ public Boolean isAvailable() { @@ -57,7 +61,7 @@ public Boolean isAvailable() { /** * Set the isAvailable property: Available availability zone. - * + * * @param isAvailable the isAvailable value to set. * @return the RegionInfoAvailabilityZoneMappingsItem object itself. */ @@ -68,7 +72,7 @@ public RegionInfoAvailabilityZoneMappingsItem withIsAvailable(Boolean isAvailabl /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java index 8b2cfc28720f..c9ef87a13aec 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java @@ -10,37 +10,53 @@ /** * Storage to Network Proximity - * - *

Provides storage to network proximity information in the region. + * + * Provides storage to network proximity information in the region. */ public final class RegionStorageToNetworkProximity extends ExpandableStringEnum { - /** Static value Default for RegionStorageToNetworkProximity. */ + /** + * Static value Default for RegionStorageToNetworkProximity. + */ public static final RegionStorageToNetworkProximity DEFAULT = fromString("Default"); - /** Static value T1 for RegionStorageToNetworkProximity. */ + /** + * Static value T1 for RegionStorageToNetworkProximity. + */ public static final RegionStorageToNetworkProximity T1 = fromString("T1"); - /** Static value T2 for RegionStorageToNetworkProximity. */ + /** + * Static value T2 for RegionStorageToNetworkProximity. + */ public static final RegionStorageToNetworkProximity T2 = fromString("T2"); - /** Static value AcrossT2 for RegionStorageToNetworkProximity. */ + /** + * Static value AcrossT2 for RegionStorageToNetworkProximity. + */ public static final RegionStorageToNetworkProximity ACROSS_T2 = fromString("AcrossT2"); - /** Static value T1AndT2 for RegionStorageToNetworkProximity. */ + /** + * Static value T1AndT2 for RegionStorageToNetworkProximity. + */ public static final RegionStorageToNetworkProximity T1AND_T2 = fromString("T1AndT2"); - /** Static value T1AndAcrossT2 for RegionStorageToNetworkProximity. */ + /** + * Static value T1AndAcrossT2 for RegionStorageToNetworkProximity. + */ public static final RegionStorageToNetworkProximity T1AND_ACROSS_T2 = fromString("T1AndAcrossT2"); - /** Static value T2AndAcrossT2 for RegionStorageToNetworkProximity. */ + /** + * Static value T2AndAcrossT2 for RegionStorageToNetworkProximity. + */ public static final RegionStorageToNetworkProximity T2AND_ACROSS_T2 = fromString("T2AndAcrossT2"); - /** Static value T1AndT2AndAcrossT2 for RegionStorageToNetworkProximity. */ + /** + * Static value T1AndT2AndAcrossT2 for RegionStorageToNetworkProximity. + */ public static final RegionStorageToNetworkProximity T1AND_T2AND_ACROSS_T2 = fromString("T1AndT2AndAcrossT2"); /** * Creates a new instance of RegionStorageToNetworkProximity value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -49,7 +65,7 @@ public RegionStorageToNetworkProximity() { /** * Creates or finds a RegionStorageToNetworkProximity from its string representation. - * + * * @param name a name to look for. * @return the corresponding RegionStorageToNetworkProximity. */ @@ -60,7 +76,7 @@ public static RegionStorageToNetworkProximity fromString(String name) { /** * Gets known RegionStorageToNetworkProximity values. - * + * * @return known RegionStorageToNetworkProximity values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelationshipStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelationshipStatus.java index a7f9e913b56a..830b2531dee9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelationshipStatus.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelationshipStatus.java @@ -8,17 +8,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Status of the mirror relationship. */ +/** + * Status of the mirror relationship. + */ public final class RelationshipStatus extends ExpandableStringEnum { - /** Static value Idle for RelationshipStatus. */ + /** + * Static value Idle for RelationshipStatus. + */ public static final RelationshipStatus IDLE = fromString("Idle"); - /** Static value Transferring for RelationshipStatus. */ + /** + * Static value Transferring for RelationshipStatus. + */ public static final RelationshipStatus TRANSFERRING = fromString("Transferring"); + /** + * Static value Failed for RelationshipStatus. + */ + public static final RelationshipStatus FAILED = fromString("Failed"); + + /** + * Static value Unknown for RelationshipStatus. + */ + public static final RelationshipStatus UNKNOWN = fromString("Unknown"); + /** * Creates a new instance of RelationshipStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +43,7 @@ public RelationshipStatus() { /** * Creates or finds a RelationshipStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding RelationshipStatus. */ @@ -38,7 +54,7 @@ public static RelationshipStatus fromString(String name) { /** * Gets known RelationshipStatus values. - * + * * @return known RelationshipStatus values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java index 017c437246a5..ecc166da5b48 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Relocate volume request. */ +/** + * Relocate volume request. + */ @Fluent public final class RelocateVolumeRequest { /* @@ -16,13 +18,15 @@ public final class RelocateVolumeRequest { @JsonProperty(value = "creationToken") private String creationToken; - /** Creates an instance of RelocateVolumeRequest class. */ + /** + * Creates an instance of RelocateVolumeRequest class. + */ public RelocateVolumeRequest() { } /** * Get the creationToken property: New creation token for the volume that controls the mount point name. - * + * * @return the creationToken value. */ public String creationToken() { @@ -31,7 +35,7 @@ public String creationToken() { /** * Set the creationToken property: New creation token for the volume that controls the mount point name. - * + * * @param creationToken the creationToken value to set. * @return the RelocateVolumeRequest object itself. */ @@ -42,7 +46,7 @@ public RelocateVolumeRequest withCreationToken(String creationToken) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Replication.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Replication.java index 2855f8534a75..2c805152607f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Replication.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Replication.java @@ -6,40 +6,42 @@ import com.azure.resourcemanager.netapp.fluent.models.ReplicationInner; -/** An immutable client-side representation of Replication. */ +/** + * An immutable client-side representation of Replication. + */ public interface Replication { /** * Gets the endpointType property: Indicates whether the local volume is the source or destination for the Volume * Replication. - * + * * @return the endpointType value. */ EndpointType endpointType(); /** * Gets the replicationSchedule property: Schedule. - * + * * @return the replicationSchedule value. */ ReplicationSchedule replicationSchedule(); /** * Gets the remoteVolumeResourceId property: The resource ID of the remote volume. - * + * * @return the remoteVolumeResourceId value. */ String remoteVolumeResourceId(); /** * Gets the remoteVolumeRegion property: The remote region for the other end of the Volume Replication. - * + * * @return the remoteVolumeRegion value. */ String remoteVolumeRegion(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ReplicationInner object. - * + * * @return the inner object. */ ReplicationInner innerModel(); 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 dde2036e14b7..21a38ce648ea 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 @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Replication properties. */ +/** + * Replication properties. + */ @Fluent public final class ReplicationObject { /* @@ -41,13 +43,15 @@ public final class ReplicationObject { @JsonProperty(value = "remoteVolumeRegion") private String remoteVolumeRegion; - /** Creates an instance of ReplicationObject class. */ + /** + * Creates an instance of ReplicationObject class. + */ public ReplicationObject() { } /** * Get the replicationId property: Id. - * + * * @return the replicationId value. */ public String replicationId() { @@ -57,7 +61,7 @@ public String replicationId() { /** * Get the endpointType property: Indicates whether the local volume is the source or destination for the Volume * Replication. - * + * * @return the endpointType value. */ public EndpointType endpointType() { @@ -67,7 +71,7 @@ public EndpointType 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. */ @@ -78,7 +82,7 @@ public ReplicationObject withEndpointType(EndpointType endpointType) { /** * Get the replicationSchedule property: Schedule. - * + * * @return the replicationSchedule value. */ public ReplicationSchedule replicationSchedule() { @@ -87,7 +91,7 @@ public ReplicationSchedule replicationSchedule() { /** * Set the replicationSchedule property: Schedule. - * + * * @param replicationSchedule the replicationSchedule value to set. * @return the ReplicationObject object itself. */ @@ -98,7 +102,7 @@ public ReplicationObject withReplicationSchedule(ReplicationSchedule replication /** * Get the remoteVolumeResourceId property: The resource ID of the remote volume. - * + * * @return the remoteVolumeResourceId value. */ public String remoteVolumeResourceId() { @@ -107,7 +111,7 @@ public String remoteVolumeResourceId() { /** * Set the remoteVolumeResourceId property: The resource ID of the remote volume. - * + * * @param remoteVolumeResourceId the remoteVolumeResourceId value to set. * @return the ReplicationObject object itself. */ @@ -118,7 +122,7 @@ public ReplicationObject withRemoteVolumeResourceId(String remoteVolumeResourceI /** * Get the remoteVolumeRegion property: The remote region for the other end of the Volume Replication. - * + * * @return the remoteVolumeRegion value. */ public String remoteVolumeRegion() { @@ -127,7 +131,7 @@ public String remoteVolumeRegion() { /** * Set the remoteVolumeRegion property: The remote region for the other end of the Volume Replication. - * + * * @param remoteVolumeRegion the remoteVolumeRegion value to set. * @return the ReplicationObject object itself. */ @@ -138,15 +142,13 @@ public ReplicationObject withRemoteVolumeRegion(String remoteVolumeRegion) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (remoteVolumeResourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property remoteVolumeResourceId in model ReplicationObject")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property remoteVolumeResourceId in model ReplicationObject")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java index 6df05d65b4ab..b71e15a5b81d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Schedule. */ +/** + * Schedule. + */ public final class ReplicationSchedule extends ExpandableStringEnum { - /** Static value _10minutely for ReplicationSchedule. */ + /** + * Static value _10minutely for ReplicationSchedule. + */ public static final ReplicationSchedule ONE_ZEROMINUTELY = fromString("_10minutely"); - /** Static value hourly for ReplicationSchedule. */ + /** + * Static value hourly for ReplicationSchedule. + */ public static final ReplicationSchedule HOURLY = fromString("hourly"); - /** Static value daily for ReplicationSchedule. */ + /** + * Static value daily for ReplicationSchedule. + */ public static final ReplicationSchedule DAILY = fromString("daily"); /** * Creates a new instance of ReplicationSchedule value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public ReplicationSchedule() { /** * Creates or finds a ReplicationSchedule from its string representation. - * + * * @param name a name to look for. * @return the corresponding ReplicationSchedule. */ @@ -41,7 +49,7 @@ public static ReplicationSchedule fromString(String name) { /** * Gets known ReplicationSchedule values. - * + * * @return known ReplicationSchedule values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java index 619473e0f56c..10bb4adbc94d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java @@ -6,46 +6,48 @@ import com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner; -/** An immutable client-side representation of ReplicationStatus. */ +/** + * An immutable client-side representation of ReplicationStatus. + */ public interface ReplicationStatus { /** * Gets the healthy property: Replication health check. - * + * * @return the healthy value. */ Boolean healthy(); /** * Gets the relationshipStatus property: Status of the mirror relationship. - * + * * @return the relationshipStatus value. */ RelationshipStatus relationshipStatus(); /** * Gets the mirrorState property: The status of the replication. - * + * * @return the mirrorState value. */ MirrorState mirrorState(); /** * Gets the totalProgress property: The progress of the replication. - * + * * @return the totalProgress value. */ String totalProgress(); /** * Gets the errorMessage property: Displays error message if the replication is in an error state. - * + * * @return the errorMessage value. */ String errorMessage(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner object. - * + * * @return the inner object. */ ReplicationStatusInner innerModel(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java index 84b6f2afd7ec..ecd495cc3b78 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Resource name availability request content. */ +/** + * Resource name availability request content. + */ @Fluent public final class ResourceNameAvailabilityRequest { /* @@ -29,13 +31,15 @@ public final class ResourceNameAvailabilityRequest { @JsonProperty(value = "resourceGroup", required = true) private String resourceGroup; - /** Creates an instance of ResourceNameAvailabilityRequest class. */ + /** + * Creates an instance of ResourceNameAvailabilityRequest class. + */ public ResourceNameAvailabilityRequest() { } /** * Get the name property: Resource name to verify. - * + * * @return the name value. */ public String name() { @@ -44,7 +48,7 @@ public String name() { /** * Set the name property: Resource name to verify. - * + * * @param name the name value to set. * @return the ResourceNameAvailabilityRequest object itself. */ @@ -55,7 +59,7 @@ public ResourceNameAvailabilityRequest withName(String name) { /** * Get the type property: Resource type used for verification. - * + * * @return the type value. */ public CheckNameResourceTypes type() { @@ -64,7 +68,7 @@ public CheckNameResourceTypes type() { /** * Set the type property: Resource type used for verification. - * + * * @param type the type value to set. * @return the ResourceNameAvailabilityRequest object itself. */ @@ -75,7 +79,7 @@ public ResourceNameAvailabilityRequest withType(CheckNameResourceTypes type) { /** * Get the resourceGroup property: Resource group name. - * + * * @return the resourceGroup value. */ public String resourceGroup() { @@ -84,7 +88,7 @@ public String resourceGroup() { /** * Set the resourceGroup property: Resource group name. - * + * * @param resourceGroup the resourceGroup value to set. * @return the ResourceNameAvailabilityRequest object itself. */ @@ -95,27 +99,21 @@ public ResourceNameAvailabilityRequest withResourceGroup(String resourceGroup) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (name() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property name in model ResourceNameAvailabilityRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property name in model ResourceNameAvailabilityRequest")); } if (type() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property type in model ResourceNameAvailabilityRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property type in model ResourceNameAvailabilityRequest")); } if (resourceGroup() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property resourceGroup in model ResourceNameAvailabilityRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property resourceGroup in model ResourceNameAvailabilityRequest")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java index a916deac0e70..34a1370fea0c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java @@ -6,53 +6,55 @@ import com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner; -/** An immutable client-side representation of RestoreStatus. */ +/** + * An immutable client-side representation of RestoreStatus. + */ public interface RestoreStatus { /** * Gets the healthy property: Restore health status. - * + * * @return the healthy value. */ Boolean healthy(); /** * Gets the relationshipStatus property: Status of the restore SnapMirror relationship. - * + * * @return the relationshipStatus value. */ RelationshipStatus relationshipStatus(); /** * Gets the mirrorState property: The status of the restore. - * + * * @return the mirrorState value. */ MirrorState mirrorState(); /** * Gets the unhealthyReason property: Reason for the unhealthy restore relationship. - * + * * @return the unhealthyReason value. */ String unhealthyReason(); /** * Gets the errorMessage property: Displays error message if the restore is in an error state. - * + * * @return the errorMessage value. */ String errorMessage(); /** * Gets the totalTransferBytes property: Displays the total bytes transferred. - * + * * @return the totalTransferBytes value. */ Long totalTransferBytes(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner object. - * + * * @return the inner object. */ RestoreStatusInner innerModel(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java index 0f56c5364496..5a1b0fcc9214 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. */ +/** + * The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol. + */ public final class SecurityStyle extends ExpandableStringEnum { - /** Static value ntfs for SecurityStyle. */ + /** + * Static value ntfs for SecurityStyle. + */ public static final SecurityStyle NTFS = fromString("ntfs"); - /** Static value unix for SecurityStyle. */ + /** + * Static value unix for SecurityStyle. + */ public static final SecurityStyle UNIX = fromString("unix"); /** * Creates a new instance of SecurityStyle value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public SecurityStyle() { /** * Creates or finds a SecurityStyle from its string representation. - * + * * @param name a name to look for. * @return the corresponding SecurityStyle. */ @@ -38,7 +44,7 @@ public static SecurityStyle fromString(String name) { /** * Gets known SecurityStyle values. - * + * * @return known SecurityStyle values. */ public static Collection values() { 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 f0903d5f8ebe..c0308e5cdd77 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 @@ -10,25 +10,33 @@ /** * serviceLevel - * - *

The service level of the file system. + * + * The service level of the file system. */ public final class ServiceLevel extends ExpandableStringEnum { - /** Static value Standard for ServiceLevel. */ + /** + * Static value Standard for ServiceLevel. + */ public static final ServiceLevel STANDARD = fromString("Standard"); - /** Static value Premium for ServiceLevel. */ + /** + * Static value Premium for ServiceLevel. + */ public static final ServiceLevel PREMIUM = fromString("Premium"); - /** Static value Ultra for ServiceLevel. */ + /** + * Static value Ultra for ServiceLevel. + */ public static final ServiceLevel ULTRA = fromString("Ultra"); - /** Static value StandardZRS for ServiceLevel. */ + /** + * Static value StandardZRS for ServiceLevel. + */ public static final ServiceLevel STANDARD_ZRS = fromString("StandardZRS"); /** * Creates a new instance of ServiceLevel value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -37,7 +45,7 @@ public ServiceLevel() { /** * Creates or finds a ServiceLevel from its string representation. - * + * * @param name a name to look for. * @return the corresponding ServiceLevel. */ @@ -48,7 +56,7 @@ public static ServiceLevel fromString(String name) { /** * Gets known ServiceLevel values. - * + * * @return known ServiceLevel values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java index d1e49239b57e..7a91ae1a86d3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** One property of operation, include metric specifications. */ +/** + * One property of operation, include metric specifications. + */ @Fluent public final class ServiceSpecification { /* @@ -23,13 +25,15 @@ public final class ServiceSpecification { @JsonProperty(value = "logSpecifications") private List logSpecifications; - /** Creates an instance of ServiceSpecification class. */ + /** + * Creates an instance of ServiceSpecification class. + */ public ServiceSpecification() { } /** * Get the metricSpecifications property: Metric specifications of operation. - * + * * @return the metricSpecifications value. */ public List metricSpecifications() { @@ -38,7 +42,7 @@ public List metricSpecifications() { /** * Set the metricSpecifications property: Metric specifications of operation. - * + * * @param metricSpecifications the metricSpecifications value to set. * @return the ServiceSpecification object itself. */ @@ -49,7 +53,7 @@ public ServiceSpecification withMetricSpecifications(List m /** * Get the logSpecifications property: Log specification of operation. - * + * * @return the logSpecifications value. */ public List logSpecifications() { @@ -58,7 +62,7 @@ public List logSpecifications() { /** * Set the logSpecifications property: Log specification of operation. - * + * * @param logSpecifications the logSpecifications value to set. * @return the ServiceSpecification object itself. */ @@ -69,7 +73,7 @@ public ServiceSpecification withLogSpecifications(List logSpec /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java index 6969fc27b9a5..c15525e3d4eb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java @@ -10,19 +10,23 @@ /** * smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. */ public final class SmbAccessBasedEnumeration extends ExpandableStringEnum { - /** Static value Disabled for SmbAccessBasedEnumeration. */ + /** + * Static value Disabled for SmbAccessBasedEnumeration. + */ public static final SmbAccessBasedEnumeration DISABLED = fromString("Disabled"); - /** Static value Enabled for SmbAccessBasedEnumeration. */ + /** + * Static value Enabled for SmbAccessBasedEnumeration. + */ public static final SmbAccessBasedEnumeration ENABLED = fromString("Enabled"); /** * Creates a new instance of SmbAccessBasedEnumeration value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -31,7 +35,7 @@ public SmbAccessBasedEnumeration() { /** * Creates or finds a SmbAccessBasedEnumeration from its string representation. - * + * * @param name a name to look for. * @return the corresponding SmbAccessBasedEnumeration. */ @@ -42,7 +46,7 @@ public static SmbAccessBasedEnumeration fromString(String name) { /** * Gets known SmbAccessBasedEnumeration values. - * + * * @return known SmbAccessBasedEnumeration values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java index ed338e385b05..ccbc67e8f0d8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java @@ -10,19 +10,23 @@ /** * smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. */ public final class SmbNonBrowsable extends ExpandableStringEnum { - /** Static value Disabled for SmbNonBrowsable. */ + /** + * Static value Disabled for SmbNonBrowsable. + */ public static final SmbNonBrowsable DISABLED = fromString("Disabled"); - /** Static value Enabled for SmbNonBrowsable. */ + /** + * Static value Enabled for SmbNonBrowsable. + */ public static final SmbNonBrowsable ENABLED = fromString("Enabled"); /** * Creates a new instance of SmbNonBrowsable value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -31,7 +35,7 @@ public SmbNonBrowsable() { /** * Creates or finds a SmbNonBrowsable from its string representation. - * + * * @param name a name to look for. * @return the corresponding SmbNonBrowsable. */ @@ -42,7 +46,7 @@ public static SmbNonBrowsable fromString(String name) { /** * Gets known SmbNonBrowsable values. - * + * * @return known SmbNonBrowsable values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java index 4daee5e921fa..1798242cf1ee 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java @@ -10,108 +10,115 @@ import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of Snapshot. */ +/** + * An immutable client-side representation of Snapshot. + */ public interface Snapshot { /** * 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 location property: Resource location. - * + * * @return the location value. */ String location(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the snapshotId property: snapshotId - * - *

UUID v4 used to identify the Snapshot. - * + * + * UUID v4 used to identify the Snapshot. + * * @return the snapshotId value. */ String snapshotId(); /** * Gets the created property: name - * - *

The creation date of the snapshot. - * + * + * The creation date of the snapshot. + * * @return the created value. */ OffsetDateTime created(); /** * Gets the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SnapshotInner object. - * + * * @return the inner object. */ SnapshotInner innerModel(); - /** The entirety of the Snapshot definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithCreate { + /** + * The entirety of the Snapshot definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The Snapshot definition stages. */ + /** + * The Snapshot definition stages. + */ interface DefinitionStages { - /** The first stage of the Snapshot definition. */ + /** + * The first stage of the Snapshot definition. + */ interface Blank extends WithLocation { } - /** The stage of the Snapshot definition allowing to specify location. */ + /** + * The stage of the Snapshot definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location Resource location. * @return the next definition stage. */ @@ -119,26 +126,28 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location Resource location. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the Snapshot definition allowing to specify parent resource. */ + /** + * The stage of the Snapshot 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); + WithCreate withExistingVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); } /** @@ -148,14 +157,14 @@ WithCreate withExistingVolume( interface WithCreate { /** * Executes the create request. - * + * * @return the created resource. */ Snapshot create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ @@ -165,14 +174,14 @@ interface WithCreate { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ Snapshot refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -180,9 +189,9 @@ interface WithCreate { /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @param body Restore payload supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -192,9 +201,9 @@ interface WithCreate { /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @param body Restore payload supplied in the body of the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java index 438e3f0f46f9..7e302c19f224 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SnapshotPolicies. */ +/** + * Resource collection API of SnapshotPolicies. + */ public interface SnapshotPolicies { /** * List snapshot policy. - * + * * @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. @@ -24,7 +26,7 @@ public interface SnapshotPolicies { /** * List snapshot policy. - * + * * @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. @@ -37,7 +39,7 @@ public interface SnapshotPolicies { /** * Get a snapshot Policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -47,12 +49,12 @@ public interface SnapshotPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a snapshot Policy along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context); + Response getWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, + Context context); /** * Get a snapshot Policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -65,7 +67,7 @@ Response getWithResponse( /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -77,7 +79,7 @@ Response getWithResponse( /** * Delete snapshot policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -90,9 +92,9 @@ Response getWithResponse( /** * Get volumes for snapshot policy - * - *

Get volumes associated with snapshot policy. - * + * + * Get volumes associated with snapshot policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -102,14 +104,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volumes associated with snapshot policy along with {@link Response}. */ - Response listVolumesWithResponse( - String resourceGroupName, String accountName, String snapshotPolicyName, Context context); + Response listVolumesWithResponse(String resourceGroupName, String accountName, + String snapshotPolicyName, Context context); /** * Get volumes for snapshot policy - * - *

Get volumes associated with snapshot policy. - * + * + * Get volumes associated with snapshot policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param snapshotPolicyName The name of the snapshot policy. @@ -122,7 +124,7 @@ Response listVolumesWithResponse( /** * Get a snapshot Policy. - * + * * @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. @@ -133,7 +135,7 @@ Response listVolumesWithResponse( /** * Get a snapshot Policy. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -145,7 +147,7 @@ Response listVolumesWithResponse( /** * Delete snapshot policy. - * + * * @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. @@ -155,7 +157,7 @@ Response listVolumesWithResponse( /** * Delete snapshot policy. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -166,7 +168,7 @@ Response listVolumesWithResponse( /** * Begins definition for a new SnapshotPolicy resource. - * + * * @param name resource name. * @return the first stage of the new SnapshotPolicy definition. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java index 878fc48d619d..7f533beaf985 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of Snapshot Policies. */ +/** + * List of Snapshot Policies. + */ @Fluent public final class SnapshotPoliciesList { /* @@ -18,13 +20,15 @@ public final class SnapshotPoliciesList { @JsonProperty(value = "value") private List value; - /** Creates an instance of SnapshotPoliciesList class. */ + /** + * Creates an instance of SnapshotPoliciesList class. + */ public SnapshotPoliciesList() { } /** * Get the value property: A list of snapshot policies. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: A list of snapshot policies. - * + * * @param value the value value to set. * @return the SnapshotPoliciesList object itself. */ @@ -44,7 +48,7 @@ public SnapshotPoliciesList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java index fa34485c2ae6..16ca35c83a8a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java @@ -10,146 +10,153 @@ import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner; import java.util.Map; -/** An immutable client-side representation of SnapshotPolicy. */ +/** + * An immutable client-side representation of SnapshotPolicy. + */ public interface SnapshotPolicy { /** * 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 location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ String etag(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the hourlySchedule property: Schedule for hourly snapshots. - * + * * @return the hourlySchedule value. */ HourlySchedule hourlySchedule(); /** * Gets the dailySchedule property: Schedule for daily snapshots. - * + * * @return the dailySchedule value. */ DailySchedule dailySchedule(); /** * Gets the weeklySchedule property: Schedule for weekly snapshots. - * + * * @return the weeklySchedule value. */ WeeklySchedule weeklySchedule(); /** * Gets the monthlySchedule property: Schedule for monthly snapshots. - * + * * @return the monthlySchedule value. */ MonthlySchedule monthlySchedule(); /** * Gets the enabled property: The property to decide policy is enabled or not. - * + * * @return the enabled value. */ Boolean enabled(); /** * Gets the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * 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.SnapshotPolicyInner object. - * + * * @return the inner object. */ SnapshotPolicyInner innerModel(); - /** The entirety of the SnapshotPolicy definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithCreate { + /** + * The entirety of the SnapshotPolicy definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The SnapshotPolicy definition stages. */ + /** + * The SnapshotPolicy definition stages. + */ interface DefinitionStages { - /** The first stage of the SnapshotPolicy definition. */ + /** + * The first stage of the SnapshotPolicy definition. + */ interface Blank extends WithLocation { } - /** The stage of the SnapshotPolicy definition allowing to specify location. */ + /** + * The stage of the SnapshotPolicy definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -157,18 +164,20 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the SnapshotPolicy definition allowing to specify parent resource. */ + /** + * The stage of the SnapshotPolicy definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, accountName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @return the next definition stage. @@ -181,88 +190,96 @@ interface WithParentResource { * resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithTags, - DefinitionStages.WithHourlySchedule, - DefinitionStages.WithDailySchedule, - DefinitionStages.WithWeeklySchedule, - DefinitionStages.WithMonthlySchedule, - DefinitionStages.WithEnabled { + extends DefinitionStages.WithTags, DefinitionStages.WithHourlySchedule, DefinitionStages.WithDailySchedule, + DefinitionStages.WithWeeklySchedule, DefinitionStages.WithMonthlySchedule, DefinitionStages.WithEnabled { /** * Executes the create request. - * + * * @return the created resource. */ SnapshotPolicy create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ SnapshotPolicy create(Context context); } - /** The stage of the SnapshotPolicy definition allowing to specify tags. */ + /** + * The stage of the SnapshotPolicy definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the SnapshotPolicy definition allowing to specify hourlySchedule. */ + /** + * The stage of the SnapshotPolicy definition allowing to specify hourlySchedule. + */ interface WithHourlySchedule { /** * Specifies the hourlySchedule property: Schedule for hourly snapshots. - * + * * @param hourlySchedule Schedule for hourly snapshots. * @return the next definition stage. */ WithCreate withHourlySchedule(HourlySchedule hourlySchedule); } - /** The stage of the SnapshotPolicy definition allowing to specify dailySchedule. */ + /** + * The stage of the SnapshotPolicy definition allowing to specify dailySchedule. + */ interface WithDailySchedule { /** * Specifies the dailySchedule property: Schedule for daily snapshots. - * + * * @param dailySchedule Schedule for daily snapshots. * @return the next definition stage. */ WithCreate withDailySchedule(DailySchedule dailySchedule); } - /** The stage of the SnapshotPolicy definition allowing to specify weeklySchedule. */ + /** + * The stage of the SnapshotPolicy definition allowing to specify weeklySchedule. + */ interface WithWeeklySchedule { /** * Specifies the weeklySchedule property: Schedule for weekly snapshots. - * + * * @param weeklySchedule Schedule for weekly snapshots. * @return the next definition stage. */ WithCreate withWeeklySchedule(WeeklySchedule weeklySchedule); } - /** The stage of the SnapshotPolicy definition allowing to specify monthlySchedule. */ + /** + * The stage of the SnapshotPolicy definition allowing to specify monthlySchedule. + */ interface WithMonthlySchedule { /** * Specifies the monthlySchedule property: Schedule for monthly snapshots. - * + * * @param monthlySchedule Schedule for monthly snapshots. * @return the next definition stage. */ WithCreate withMonthlySchedule(MonthlySchedule monthlySchedule); } - /** The stage of the SnapshotPolicy definition allowing to specify enabled. */ + /** + * The stage of the SnapshotPolicy definition allowing to specify enabled. + */ interface WithEnabled { /** * Specifies the enabled property: The property to decide policy is enabled or not. - * + * * @param enabled The property to decide policy is enabled or not. * @return the next definition stage. */ @@ -272,97 +289,108 @@ interface WithEnabled { /** * Begins update for the SnapshotPolicy resource. - * + * * @return the stage of resource update. */ SnapshotPolicy.Update update(); - /** The template for SnapshotPolicy update. */ - interface Update - extends UpdateStages.WithTags, - UpdateStages.WithHourlySchedule, - UpdateStages.WithDailySchedule, - UpdateStages.WithWeeklySchedule, - UpdateStages.WithMonthlySchedule, - UpdateStages.WithEnabled { + /** + * The template for SnapshotPolicy update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithHourlySchedule, UpdateStages.WithDailySchedule, + UpdateStages.WithWeeklySchedule, UpdateStages.WithMonthlySchedule, UpdateStages.WithEnabled { /** * Executes the update request. - * + * * @return the updated resource. */ SnapshotPolicy apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ SnapshotPolicy apply(Context context); } - /** The SnapshotPolicy update stages. */ + /** + * The SnapshotPolicy update stages. + */ interface UpdateStages { - /** The stage of the SnapshotPolicy update allowing to specify tags. */ + /** + * The stage of the SnapshotPolicy update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags. - * + * * @param tags Resource tags. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the SnapshotPolicy update allowing to specify hourlySchedule. */ + /** + * The stage of the SnapshotPolicy update allowing to specify hourlySchedule. + */ interface WithHourlySchedule { /** * Specifies the hourlySchedule property: Schedule for hourly snapshots. - * + * * @param hourlySchedule Schedule for hourly snapshots. * @return the next definition stage. */ Update withHourlySchedule(HourlySchedule hourlySchedule); } - /** The stage of the SnapshotPolicy update allowing to specify dailySchedule. */ + /** + * The stage of the SnapshotPolicy update allowing to specify dailySchedule. + */ interface WithDailySchedule { /** * Specifies the dailySchedule property: Schedule for daily snapshots. - * + * * @param dailySchedule Schedule for daily snapshots. * @return the next definition stage. */ Update withDailySchedule(DailySchedule dailySchedule); } - /** The stage of the SnapshotPolicy update allowing to specify weeklySchedule. */ + /** + * The stage of the SnapshotPolicy update allowing to specify weeklySchedule. + */ interface WithWeeklySchedule { /** * Specifies the weeklySchedule property: Schedule for weekly snapshots. - * + * * @param weeklySchedule Schedule for weekly snapshots. * @return the next definition stage. */ Update withWeeklySchedule(WeeklySchedule weeklySchedule); } - /** The stage of the SnapshotPolicy update allowing to specify monthlySchedule. */ + /** + * The stage of the SnapshotPolicy update allowing to specify monthlySchedule. + */ interface WithMonthlySchedule { /** * Specifies the monthlySchedule property: Schedule for monthly snapshots. - * + * * @param monthlySchedule Schedule for monthly snapshots. * @return the next definition stage. */ Update withMonthlySchedule(MonthlySchedule monthlySchedule); } - /** The stage of the SnapshotPolicy update allowing to specify enabled. */ + /** + * The stage of the SnapshotPolicy update allowing to specify enabled. + */ interface WithEnabled { /** * Specifies the enabled property: The property to decide policy is enabled or not. - * + * * @param enabled The property to decide policy is enabled or not. * @return the next definition stage. */ @@ -372,14 +400,14 @@ interface WithEnabled { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ SnapshotPolicy refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java index 2b28636e705a..70cef92e2dd9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Snapshot policy Details for create and update. */ +/** + * Snapshot policy Details for create and update. + */ @Fluent public final class SnapshotPolicyPatch { /* @@ -50,13 +52,15 @@ public final class SnapshotPolicyPatch { @JsonProperty(value = "properties") private SnapshotPolicyProperties innerProperties; - /** Creates an instance of SnapshotPolicyPatch class. */ + /** + * Creates an instance of SnapshotPolicyPatch class. + */ public SnapshotPolicyPatch() { } /** * Get the location property: Resource location. - * + * * @return the location value. */ public String location() { @@ -65,7 +69,7 @@ public String location() { /** * Set the location property: Resource location. - * + * * @param location the location value to set. * @return the SnapshotPolicyPatch object itself. */ @@ -76,7 +80,7 @@ public SnapshotPolicyPatch withLocation(String location) { /** * Get the id property: Resource Id. - * + * * @return the id value. */ public String id() { @@ -85,7 +89,7 @@ public String id() { /** * Get the name property: Resource name. - * + * * @return the name value. */ public String name() { @@ -94,7 +98,7 @@ public String name() { /** * Get the type property: Resource type. - * + * * @return the type value. */ public String type() { @@ -103,7 +107,7 @@ public String type() { /** * Get the tags property: Resource tags. - * + * * @return the tags value. */ public Map tags() { @@ -112,7 +116,7 @@ public Map tags() { /** * Set the tags property: Resource tags. - * + * * @param tags the tags value to set. * @return the SnapshotPolicyPatch object itself. */ @@ -123,7 +127,7 @@ public SnapshotPolicyPatch withTags(Map tags) { /** * Get the innerProperties property: Snapshot Policy properties. - * + * * @return the innerProperties value. */ private SnapshotPolicyProperties innerProperties() { @@ -132,7 +136,7 @@ private SnapshotPolicyProperties innerProperties() { /** * Get the hourlySchedule property: Schedule for hourly snapshots. - * + * * @return the hourlySchedule value. */ public HourlySchedule hourlySchedule() { @@ -141,7 +145,7 @@ public HourlySchedule hourlySchedule() { /** * Set the hourlySchedule property: Schedule for hourly snapshots. - * + * * @param hourlySchedule the hourlySchedule value to set. * @return the SnapshotPolicyPatch object itself. */ @@ -155,7 +159,7 @@ public SnapshotPolicyPatch withHourlySchedule(HourlySchedule hourlySchedule) { /** * Get the dailySchedule property: Schedule for daily snapshots. - * + * * @return the dailySchedule value. */ public DailySchedule dailySchedule() { @@ -164,7 +168,7 @@ public DailySchedule dailySchedule() { /** * Set the dailySchedule property: Schedule for daily snapshots. - * + * * @param dailySchedule the dailySchedule value to set. * @return the SnapshotPolicyPatch object itself. */ @@ -178,7 +182,7 @@ public SnapshotPolicyPatch withDailySchedule(DailySchedule dailySchedule) { /** * Get the weeklySchedule property: Schedule for weekly snapshots. - * + * * @return the weeklySchedule value. */ public WeeklySchedule weeklySchedule() { @@ -187,7 +191,7 @@ public WeeklySchedule weeklySchedule() { /** * Set the weeklySchedule property: Schedule for weekly snapshots. - * + * * @param weeklySchedule the weeklySchedule value to set. * @return the SnapshotPolicyPatch object itself. */ @@ -201,7 +205,7 @@ public SnapshotPolicyPatch withWeeklySchedule(WeeklySchedule weeklySchedule) { /** * Get the monthlySchedule property: Schedule for monthly snapshots. - * + * * @return the monthlySchedule value. */ public MonthlySchedule monthlySchedule() { @@ -210,7 +214,7 @@ public MonthlySchedule monthlySchedule() { /** * Set the monthlySchedule property: Schedule for monthly snapshots. - * + * * @param monthlySchedule the monthlySchedule value to set. * @return the SnapshotPolicyPatch object itself. */ @@ -224,7 +228,7 @@ public SnapshotPolicyPatch withMonthlySchedule(MonthlySchedule monthlySchedule) /** * Get the enabled property: The property to decide policy is enabled or not. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -233,7 +237,7 @@ public Boolean enabled() { /** * Set the enabled property: The property to decide policy is enabled or not. - * + * * @param enabled the enabled value to set. * @return the SnapshotPolicyPatch object itself. */ @@ -247,7 +251,7 @@ public SnapshotPolicyPatch withEnabled(Boolean enabled) { /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -256,7 +260,7 @@ public String provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java index beb609f8fde3..c88962524763 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java @@ -7,18 +7,20 @@ import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner; import java.util.List; -/** An immutable client-side representation of SnapshotPolicyVolumeList. */ +/** + * An immutable client-side representation of SnapshotPolicyVolumeList. + */ public interface SnapshotPolicyVolumeList { /** * Gets the value property: List of volumes. - * + * * @return the value value. */ List value(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner object. - * + * * @return the inner object. */ SnapshotPolicyVolumeListInner innerModel(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java index b157a77a6511..3292bba7a360 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Restore payload for Single File Snapshot Restore. */ +/** + * Restore payload for Single File Snapshot Restore. + */ @Fluent public final class SnapshotRestoreFiles { /* @@ -24,13 +26,15 @@ public final class SnapshotRestoreFiles { @JsonProperty(value = "destinationPath") private String destinationPath; - /** Creates an instance of SnapshotRestoreFiles class. */ + /** + * Creates an instance of SnapshotRestoreFiles class. + */ public SnapshotRestoreFiles() { } /** * Get the filePaths property: List of files to be restored. - * + * * @return the filePaths value. */ public List filePaths() { @@ -39,7 +43,7 @@ public List filePaths() { /** * Set the filePaths property: List of files to be restored. - * + * * @param filePaths the filePaths value to set. * @return the SnapshotRestoreFiles object itself. */ @@ -50,7 +54,7 @@ public SnapshotRestoreFiles withFilePaths(List filePaths) { /** * Get the destinationPath property: Destination folder where the files will be restored. - * + * * @return the destinationPath value. */ public String destinationPath() { @@ -59,7 +63,7 @@ public String destinationPath() { /** * Set the destinationPath property: Destination folder where the files will be restored. - * + * * @param destinationPath the destinationPath value to set. * @return the SnapshotRestoreFiles object itself. */ @@ -70,14 +74,13 @@ public SnapshotRestoreFiles withDestinationPath(String destinationPath) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (filePaths() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property filePaths in model SnapshotRestoreFiles")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property filePaths in model SnapshotRestoreFiles")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java index b0f09dd0c225..533c8d1f9d4b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Snapshots. */ +/** + * Resource collection API of Snapshots. + */ public interface Snapshots { /** * Describe all snapshots - * - *

List all snapshots associated with the volume. - * + * + * List all snapshots associated with 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. @@ -28,9 +30,9 @@ public interface Snapshots { /** * Describe all snapshots - * - *

List all snapshots associated with the volume. - * + * + * List all snapshots associated with 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. @@ -41,14 +43,14 @@ public interface Snapshots { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of Snapshots as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + PagedIterable list(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Describe a snapshot - * - *

Get details of the specified snapshot. - * + * + * Get details of the specified snapshot. + * * @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. @@ -60,19 +62,14 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return details of the specified snapshot along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Context context); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Context context); /** * Describe a snapshot - * - *

Get details of the specified snapshot. - * + * + * Get details of the specified snapshot. + * * @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. @@ -87,9 +84,9 @@ Response getWithResponse( /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -101,19 +98,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - Snapshot update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body); + Snapshot update(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Object body); /** * Update a snapshot - * - *

Patch a snapshot. - * + * + * Patch a snapshot. + * * @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. @@ -126,20 +118,14 @@ Snapshot update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return snapshot of a Volume. */ - Snapshot update( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - Object body, - Context context); + Snapshot update(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, Object body, Context context); /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -153,9 +139,9 @@ Snapshot update( /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -166,19 +152,14 @@ Snapshot update( * @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 snapshotName, + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, Context context); /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -189,19 +170,14 @@ void delete( * @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 restoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body); + void restoreFiles(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotRestoreFiles body); /** * Create a new Snapshot Restore Files request - * - *

Restore the specified files from the specified snapshot to the active filesystem. - * + * + * Restore the specified files from the specified snapshot to the active filesystem. + * * @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. @@ -213,20 +189,14 @@ void restoreFiles( * @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 restoreFiles( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String snapshotName, - SnapshotRestoreFiles body, - Context context); + void restoreFiles(String resourceGroupName, String accountName, String poolName, String volumeName, + String snapshotName, SnapshotRestoreFiles body, Context context); /** * Describe a snapshot - * - *

Get details of the specified snapshot. - * + * + * Get details of the specified snapshot. + * * @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. @@ -237,9 +207,9 @@ void restoreFiles( /** * Describe a snapshot - * - *

Get details of the specified snapshot. - * + * + * Get details of the specified snapshot. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -251,9 +221,9 @@ void restoreFiles( /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @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. @@ -263,9 +233,9 @@ void restoreFiles( /** * Delete a snapshot - * - *

Delete snapshot. - * + * + * Delete snapshot. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -276,7 +246,7 @@ void restoreFiles( /** * Begins definition for a new Snapshot resource. - * + * * @param name resource name. * @return the first stage of the new Snapshot definition. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java index ff61708c7460..731db5a69ccb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of Snapshots. */ +/** + * List of Snapshots. + */ @Fluent public final class SnapshotsList { /* @@ -18,13 +20,15 @@ public final class SnapshotsList { @JsonProperty(value = "value") private List value; - /** Creates an instance of SnapshotsList class. */ + /** + * Creates an instance of SnapshotsList class. + */ public SnapshotsList() { } /** * Get the value property: A list of Snapshots. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: A list of Snapshots. - * + * * @param value the value value to set. * @return the SnapshotsList object itself. */ @@ -44,7 +48,7 @@ public SnapshotsList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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/SubscriptionQuotaItem.java index a27ea097b9d0..82460e375806 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/SubscriptionQuotaItem.java @@ -7,53 +7,55 @@ import com.azure.core.management.SystemData; import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; -/** An immutable client-side representation of SubscriptionQuotaItem. */ +/** + * An immutable client-side representation of SubscriptionQuotaItem. + */ public interface SubscriptionQuotaItem { /** * 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 current property: The current quota value. - * + * * @return the current value. */ Integer current(); /** * Gets the defaultProperty property: The default quota value. - * + * * @return the defaultProperty value. */ Integer defaultProperty(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner object. - * + * * @return the inner object. */ SubscriptionQuotaItemInner innerModel(); 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 index 322606913b29..99be137f11c9 100644 --- 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 @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of Subscription Quota Items. */ +/** + * List of Subscription Quota Items. + */ @Fluent public final class SubscriptionQuotaItemList { /* @@ -18,13 +20,15 @@ public final class SubscriptionQuotaItemList { @JsonProperty(value = "value") private List value; - /** Creates an instance of SubscriptionQuotaItemList class. */ + /** + * Creates an instance of SubscriptionQuotaItemList class. + */ public SubscriptionQuotaItemList() { } /** * Get the value property: A list of SubscriptionQuotaItems. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: A list of SubscriptionQuotaItems. - * + * * @param value the value value to set. * @return the SubscriptionQuotaItemList object itself. */ @@ -44,7 +48,7 @@ public SubscriptionQuotaItemList withValue(List valu /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java index 7a471e0f3442..7e01d44c72ad 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java @@ -8,108 +8,118 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; -/** An immutable client-side representation of SubvolumeInfo. */ +/** + * An immutable client-side representation of SubvolumeInfo. + */ public interface SubvolumeInfo { /** * 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: path - * - *

Path to the subvolume. - * + * + * Path to the subvolume. + * * @return the path value. */ String path(); /** * Gets the size property: size - * - *

Truncate subvolume to the provided size in bytes. - * + * + * Truncate subvolume to the provided size in bytes. + * * @return the size value. */ Long size(); /** * Gets the parentPath property: name - * - *

parent path to the subvolume. - * + * + * parent path to the subvolume. + * * @return the parentPath value. */ String parentPath(); /** * Gets the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ String provisioningState(); /** * 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.SubvolumeInfoInner object. - * + * * @return the inner object. */ SubvolumeInfoInner innerModel(); - /** The entirety of the SubvolumeInfo definition. */ + /** + * The entirety of the SubvolumeInfo definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The SubvolumeInfo definition stages. */ + /** + * The SubvolumeInfo definition stages. + */ interface DefinitionStages { - /** The first stage of the SubvolumeInfo definition. */ + /** + * The first stage of the SubvolumeInfo definition. + */ interface Blank extends WithParentResource { } - /** The stage of the SubvolumeInfo definition allowing to specify parent resource. */ + /** + * The stage of the SubvolumeInfo 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); + WithCreate withExistingVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); } /** @@ -120,57 +130,66 @@ interface WithCreate extends DefinitionStages.WithPath, DefinitionStages.WithSize, DefinitionStages.WithParentPath { /** * Executes the create request. - * + * * @return the created resource. */ SubvolumeInfo create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ SubvolumeInfo create(Context context); } - /** The stage of the SubvolumeInfo definition allowing to specify path. */ + /** + * The stage of the SubvolumeInfo definition allowing to specify path. + */ interface WithPath { /** * Specifies the path property: path - * - *

Path to the subvolume. - * + * + * Path to the subvolume. + * * @param path path - *

Path to the subvolume. + * + * Path to the subvolume. * @return the next definition stage. */ WithCreate withPath(String path); } - /** The stage of the SubvolumeInfo definition allowing to specify size. */ + /** + * The stage of the SubvolumeInfo definition allowing to specify size. + */ interface WithSize { /** * Specifies the size property: size - * - *

Truncate subvolume to the provided size in bytes. - * + * + * Truncate subvolume to the provided size in bytes. + * * @param size size - *

Truncate subvolume to the provided size in bytes. + * + * Truncate subvolume to the provided size in bytes. * @return the next definition stage. */ WithCreate withSize(Long size); } - /** The stage of the SubvolumeInfo definition allowing to specify parentPath. */ + /** + * The stage of the SubvolumeInfo definition allowing to specify parentPath. + */ interface WithParentPath { /** * Specifies the parentPath property: name - * - *

parent path to the subvolume. - * + * + * parent path to the subvolume. + * * @param parentPath name - *

parent path to the subvolume. + * + * parent path to the subvolume. * @return the next definition stage. */ WithCreate withParentPath(String parentPath); @@ -179,54 +198,64 @@ interface WithParentPath { /** * Begins update for the SubvolumeInfo resource. - * + * * @return the stage of resource update. */ SubvolumeInfo.Update update(); - /** The template for SubvolumeInfo update. */ + /** + * The template for SubvolumeInfo update. + */ interface Update extends UpdateStages.WithSize, UpdateStages.WithPath { /** * Executes the update request. - * + * * @return the updated resource. */ SubvolumeInfo apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ SubvolumeInfo apply(Context context); } - /** The SubvolumeInfo update stages. */ + /** + * The SubvolumeInfo update stages. + */ interface UpdateStages { - /** The stage of the SubvolumeInfo update allowing to specify size. */ + /** + * The stage of the SubvolumeInfo update allowing to specify size. + */ interface WithSize { /** * Specifies the size property: size - * - *

Truncate subvolume to the provided size in bytes. - * + * + * Truncate subvolume to the provided size in bytes. + * * @param size size - *

Truncate subvolume to the provided size in bytes. + * + * Truncate subvolume to the provided size in bytes. * @return the next definition stage. */ Update withSize(Long size); } - /** The stage of the SubvolumeInfo update allowing to specify path. */ + /** + * The stage of the SubvolumeInfo update allowing to specify path. + */ interface WithPath { /** * Specifies the path property: path - * - *

path to the subvolume. - * + * + * path to the subvolume. + * * @param path path - *

path to the subvolume. + * + * path to the subvolume. * @return the next definition stage. */ Update withPath(String path); @@ -235,14 +264,14 @@ interface WithPath { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ SubvolumeInfo refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -250,9 +279,9 @@ interface WithPath { /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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 details of the specified subvolume. @@ -261,9 +290,9 @@ interface WithPath { /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java index 9693656988f5..b91f2f0aabd2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java @@ -7,120 +7,122 @@ import com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of SubvolumeModel. */ +/** + * An immutable client-side representation of SubvolumeModel. + */ public interface SubvolumeModel { /** * Gets the id property: Resource Id. - * + * * @return the id value. */ String id(); /** * Gets the name property: Resource name. - * + * * @return the name value. */ String name(); /** * Gets the type property: Resource type. - * + * * @return the type value. */ String type(); /** * Gets the path property: path - * - *

Path to the subvolume. - * + * + * Path to the subvolume. + * * @return the path value. */ String path(); /** * Gets the parentPath property: parentpath - * - *

Path to the parent subvolume. - * + * + * Path to the parent subvolume. + * * @return the parentPath value. */ String parentPath(); /** * Gets the size property: size - * - *

Size of subvolume. - * + * + * Size of subvolume. + * * @return the size value. */ Long size(); /** * Gets the bytesUsed property: bytesUsed - * - *

Bytes used. - * + * + * Bytes used. + * * @return the bytesUsed value. */ Long bytesUsed(); /** * Gets the permissions property: permissions - * - *

Permissions of the subvolume. - * + * + * Permissions of the subvolume. + * * @return the permissions value. */ String permissions(); /** * Gets the creationTimestamp property: creationTimeStamp - * - *

Creation time and date. - * + * + * Creation time and date. + * * @return the creationTimestamp value. */ OffsetDateTime creationTimestamp(); /** * Gets the accessedTimestamp property: accessedTimeStamp - * - *

Most recent access time and date. - * + * + * Most recent access time and date. + * * @return the accessedTimestamp value. */ OffsetDateTime accessedTimestamp(); /** * Gets the modifiedTimestamp property: modifiedTimeStamp - * - *

Most recent modification time and date. - * + * + * Most recent modification time and date. + * * @return the modifiedTimestamp value. */ OffsetDateTime modifiedTimestamp(); /** * Gets the changedTimestamp property: changedTimeStamp - * - *

Most recent change time and date. - * + * + * Most recent change time and date. + * * @return the changedTimestamp value. */ OffsetDateTime changedTimestamp(); /** * Gets the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner object. - * + * * @return the inner object. */ SubvolumeModelInner innerModel(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java index e8dc8411d1c9..91548bcfac0c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams; import com.fasterxml.jackson.annotation.JsonProperty; -/** Subvolume Patch Request properties. */ +/** + * Subvolume Patch Request properties. + */ @Fluent public final class SubvolumePatchRequest { /* @@ -17,13 +19,15 @@ public final class SubvolumePatchRequest { @JsonProperty(value = "properties") private SubvolumePatchParams innerProperties; - /** Creates an instance of SubvolumePatchRequest class. */ + /** + * Creates an instance of SubvolumePatchRequest class. + */ public SubvolumePatchRequest() { } /** * Get the innerProperties property: Subvolume Properties. - * + * * @return the innerProperties value. */ private SubvolumePatchParams innerProperties() { @@ -32,9 +36,9 @@ private SubvolumePatchParams innerProperties() { /** * Get the size property: size - * - *

Truncate subvolume to the provided size in bytes. - * + * + * Truncate subvolume to the provided size in bytes. + * * @return the size value. */ public Long size() { @@ -43,9 +47,9 @@ public Long size() { /** * Set the size property: size - * - *

Truncate subvolume to the provided size in bytes. - * + * + * Truncate subvolume to the provided size in bytes. + * * @param size the size value to set. * @return the SubvolumePatchRequest object itself. */ @@ -59,9 +63,9 @@ public SubvolumePatchRequest withSize(Long size) { /** * Get the path property: path - * - *

path to the subvolume. - * + * + * path to the subvolume. + * * @return the path value. */ public String path() { @@ -70,9 +74,9 @@ public String path() { /** * Set the path property: path - * - *

path to the subvolume. - * + * + * path to the subvolume. + * * @param path the path value to set. * @return the SubvolumePatchRequest object itself. */ @@ -86,7 +90,7 @@ public SubvolumePatchRequest withPath(String path) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java index 8ba2e1dbe2db..91f81dfd0d74 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Subvolumes. */ +/** + * Resource collection API of Subvolumes. + */ public interface Subvolumes { /** * List of all the subvolumes - * - *

Returns a list of the subvolumes in the volume. - * + * + * Returns a list of the subvolumes in 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. @@ -24,14 +26,14 @@ public interface Subvolumes { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of Subvolumes as paginated response with {@link PagedIterable}. */ - PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); /** * List of all the subvolumes - * - *

Returns a list of the subvolumes in the volume. - * + * + * Returns a list of the subvolumes in 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. @@ -42,14 +44,14 @@ PagedIterable listByVolume( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of Subvolumes as paginated response with {@link PagedIterable}. */ - PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); /** * Get the path associated with the subvolumeName - * - *

Returns the path associated with the subvolumeName provided. - * + * + * Returns the path associated with the subvolumeName provided. + * * @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. @@ -61,19 +63,14 @@ PagedIterable listByVolume( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return subvolume Information properties along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String subvolumeName, Context context); /** * Get the path associated with the subvolumeName - * - *

Returns the path associated with the subvolumeName provided. - * + * + * Returns the path associated with the subvolumeName provided. + * * @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. @@ -84,14 +81,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return subvolume Information properties. */ - SubvolumeInfo get( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + SubvolumeInfo get(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName); /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -105,9 +102,9 @@ SubvolumeInfo get( /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -118,19 +115,14 @@ SubvolumeInfo get( * @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 subvolumeName, + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName, Context context); /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -141,14 +133,14 @@ void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return details of the specified subvolume. */ - SubvolumeModel getMetadata( - String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName); + SubvolumeModel getMetadata(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName); /** * Describe a subvolume - * - *

Get details of the specified subvolume. - * + * + * Get details of the specified subvolume. + * * @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. @@ -160,19 +152,14 @@ SubvolumeModel getMetadata( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return details of the specified subvolume. */ - SubvolumeModel getMetadata( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String subvolumeName, - Context context); + SubvolumeModel getMetadata(String resourceGroupName, String accountName, String poolName, String volumeName, + String subvolumeName, Context context); /** * Get the path associated with the subvolumeName - * - *

Returns the path associated with the subvolumeName provided. - * + * + * Returns the path associated with the subvolumeName provided. + * * @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. @@ -183,9 +170,9 @@ SubvolumeModel getMetadata( /** * Get the path associated with the subvolumeName - * - *

Returns the path associated with the subvolumeName provided. - * + * + * Returns the path associated with the subvolumeName provided. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -197,9 +184,9 @@ SubvolumeModel getMetadata( /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @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. @@ -209,9 +196,9 @@ SubvolumeModel getMetadata( /** * Delete a subvolume - * - *

Delete subvolume. - * + * + * Delete subvolume. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -222,7 +209,7 @@ SubvolumeModel getMetadata( /** * Begins definition for a new SubvolumeInfo resource. - * + * * @param name resource name. * @return the first stage of the new SubvolumeInfo definition. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java index e15ee4975cb6..eea2f16b7660 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of Subvolumes. */ +/** + * List of Subvolumes. + */ @Fluent public final class SubvolumesList { /* @@ -24,13 +26,15 @@ public final class SubvolumesList { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of SubvolumesList class. */ + /** + * Creates an instance of SubvolumesList class. + */ public SubvolumesList() { } /** * Get the value property: A list of Subvolumes. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Set the value property: A list of Subvolumes. - * + * * @param value the value value to set. * @return the SubvolumesList object itself. */ @@ -50,7 +54,7 @@ public SubvolumesList withValue(List value) { /** * Get the nextLink property: URL to get the next set of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -59,7 +63,7 @@ public String nextLink() { /** * Set the nextLink property: URL to get the next set of results. - * + * * @param nextLink the nextLink value to set. * @return the SubvolumesList object itself. */ @@ -70,7 +74,7 @@ public SubvolumesList withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 a0b8d3ca9358..6641b99a90bd 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,25 +10,33 @@ /** * quotaType - * - *

Type of quota. + * + * Type of quota. */ public final class Type extends ExpandableStringEnum { - /** Static value DefaultUserQuota for Type. */ + /** + * Static value DefaultUserQuota for Type. + */ public static final Type DEFAULT_USER_QUOTA = fromString("DefaultUserQuota"); - /** Static value DefaultGroupQuota for Type. */ + /** + * Static value DefaultGroupQuota for Type. + */ public static final Type DEFAULT_GROUP_QUOTA = fromString("DefaultGroupQuota"); - /** Static value IndividualUserQuota for Type. */ + /** + * Static value IndividualUserQuota for Type. + */ public static final Type INDIVIDUAL_USER_QUOTA = fromString("IndividualUserQuota"); - /** Static value IndividualGroupQuota for Type. */ + /** + * Static value IndividualGroupQuota for Type. + */ public static final Type INDIVIDUAL_GROUP_QUOTA = fromString("IndividualGroupQuota"); /** * Creates a new instance of Type value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -37,7 +45,7 @@ public Type() { /** * Creates or finds a Type from its string representation. - * + * * @param name a name to look for. * @return the corresponding Type. */ @@ -48,7 +56,7 @@ public static Type fromString(String name) { /** * Gets known Type values. - * + * * @return known Type values. */ public static Collection values() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java index a6be209db8b6..abad9f5864a6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java @@ -10,14 +10,14 @@ /** * UpdateNetworkSiblingSetRequest - * - *

Network sibling set update. + * + * Network sibling set update. */ @Fluent public final class UpdateNetworkSiblingSetRequest { /* * Network Sibling Set ID - * + * * Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. */ @JsonProperty(value = "networkSiblingSetId", required = true) @@ -25,16 +25,17 @@ public final class UpdateNetworkSiblingSetRequest { /* * Subnet resource Id - * + * * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example - * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/ + * subnets/{mySubnet} */ @JsonProperty(value = "subnetId", required = true) private String subnetId; /* * Network sibling set state Id - * + * * Network sibling set state Id identifying the current state of the sibling set. */ @JsonProperty(value = "networkSiblingSetStateId", required = true) @@ -42,21 +43,23 @@ public final class UpdateNetworkSiblingSetRequest { /* * Network features - * + * * Network features available to the volume, some such */ @JsonProperty(value = "networkFeatures", required = true) private NetworkFeatures networkFeatures; - /** Creates an instance of UpdateNetworkSiblingSetRequest class. */ + /** + * Creates an instance of UpdateNetworkSiblingSetRequest class. + */ public UpdateNetworkSiblingSetRequest() { } /** * Get the networkSiblingSetId property: Network Sibling Set ID - * - *

Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - * + * + * Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + * * @return the networkSiblingSetId value. */ public String networkSiblingSetId() { @@ -65,9 +68,9 @@ public String networkSiblingSetId() { /** * Set the networkSiblingSetId property: Network Sibling Set ID - * - *

Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. - * + * + * Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. + * * @param networkSiblingSetId the networkSiblingSetId value to set. * @return the UpdateNetworkSiblingSetRequest object itself. */ @@ -78,10 +81,10 @@ public UpdateNetworkSiblingSetRequest withNetworkSiblingSetId(String networkSibl /** * Get the subnetId property: Subnet resource Id - * - *

The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example + * + * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. - * + * * @return the subnetId value. */ public String subnetId() { @@ -90,10 +93,10 @@ public String subnetId() { /** * Set the subnetId property: Subnet resource Id - * - *

The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example + * + * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}. - * + * * @param subnetId the subnetId value to set. * @return the UpdateNetworkSiblingSetRequest object itself. */ @@ -104,9 +107,9 @@ public UpdateNetworkSiblingSetRequest withSubnetId(String subnetId) { /** * Get the networkSiblingSetStateId property: Network sibling set state Id - * - *

Network sibling set state Id identifying the current state of the sibling set. - * + * + * Network sibling set state Id identifying the current state of the sibling set. + * * @return the networkSiblingSetStateId value. */ public String networkSiblingSetStateId() { @@ -115,9 +118,9 @@ public String networkSiblingSetStateId() { /** * Set the networkSiblingSetStateId property: Network sibling set state Id - * - *

Network sibling set state Id identifying the current state of the sibling set. - * + * + * Network sibling set state Id identifying the current state of the sibling set. + * * @param networkSiblingSetStateId the networkSiblingSetStateId value to set. * @return the UpdateNetworkSiblingSetRequest object itself. */ @@ -128,9 +131,9 @@ public UpdateNetworkSiblingSetRequest withNetworkSiblingSetStateId(String networ /** * Get the networkFeatures property: Network features - * - *

Network features available to the volume, some such. - * + * + * Network features available to the volume, some such. + * * @return the networkFeatures value. */ public NetworkFeatures networkFeatures() { @@ -139,9 +142,9 @@ public NetworkFeatures networkFeatures() { /** * Set the networkFeatures property: Network features - * - *

Network features available to the volume, some such. - * + * + * Network features available to the volume, some such. + * * @param networkFeatures the networkFeatures value to set. * @return the UpdateNetworkSiblingSetRequest object itself. */ @@ -152,33 +155,25 @@ public UpdateNetworkSiblingSetRequest withNetworkFeatures(NetworkFeatures networ /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (networkSiblingSetId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property networkSiblingSetId in model UpdateNetworkSiblingSetRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property networkSiblingSetId in model UpdateNetworkSiblingSetRequest")); } if (subnetId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property subnetId in model UpdateNetworkSiblingSetRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property subnetId in model UpdateNetworkSiblingSetRequest")); } if (networkSiblingSetStateId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property networkSiblingSetStateId in model UpdateNetworkSiblingSetRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property networkSiblingSetStateId in model UpdateNetworkSiblingSetRequest")); } if (networkFeatures() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property networkFeatures in model UpdateNetworkSiblingSetRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property networkFeatures in model UpdateNetworkSiblingSetRequest")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java index 576e1d4c0aa6..98856e541e8f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.UUID; -/** User assigned identity properties. */ +/** + * User assigned identity properties. + */ @Immutable public final class UserAssignedIdentity { /* @@ -23,13 +25,15 @@ public final class UserAssignedIdentity { @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) private UUID clientId; - /** Creates an instance of UserAssignedIdentity class. */ + /** + * Creates an instance of UserAssignedIdentity class. + */ public UserAssignedIdentity() { } /** * Get the principalId property: The principal ID of the assigned identity. - * + * * @return the principalId value. */ public UUID principalId() { @@ -38,7 +42,7 @@ public UUID principalId() { /** * Get the clientId property: The client ID of the assigned identity. - * + * * @return the clientId value. */ public UUID clientId() { @@ -47,7 +51,7 @@ public UUID clientId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 5a75c3d34590..a8dc5e859db0 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 @@ -13,132 +13,134 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of Volume. */ +/** + * An immutable client-side representation of Volume. + */ public interface Volume { /** * 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 location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ String etag(); /** * Gets the zones property: Availability Zone. - * + * * @return the zones value. */ List zones(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the fileSystemId property: FileSystem ID - * - *

Unique FileSystem Identifier. - * + * + * Unique FileSystem Identifier. + * * @return the fileSystemId value. */ String fileSystemId(); /** * Gets the creationToken property: Creation Token or File Path - * - *

A unique file path for the volume. Used when creating mount targets. - * + * + * A unique file path for the volume. Used when creating mount targets. + * * @return the creationToken value. */ String creationToken(); /** * Gets the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @return the serviceLevel value. */ ServiceLevel serviceLevel(); /** * Gets the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. - * + * * @return the usageThreshold value. */ long usageThreshold(); /** * Gets the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @return the exportPolicy value. */ VolumePropertiesExportPolicy exportPolicy(); /** * Gets the protocolTypes property: protocolTypes - * - *

Set of protocol types, default NFSv3, CIFS for SMB protocol. - * + * + * Set of protocol types, default NFSv3, CIFS for SMB protocol. + * * @return the protocolTypes value. */ List protocolTypes(); /** * Gets the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the snapshotId property: Snapshot ID - * - *

UUID v4 or resource identifier used to identify the Snapshot. - * + * + * UUID v4 or resource identifier used to identify the Snapshot. + * * @return the snapshotId value. */ String snapshotId(); @@ -146,25 +148,25 @@ public interface Volume { /** * Gets the deleteBaseSnapshot property: If enabled (true) the snapshot the volume was created from will be * automatically deleted after the volume create operation has finished. Defaults to false. - * + * * @return the deleteBaseSnapshot value. */ Boolean deleteBaseSnapshot(); /** * Gets the backupId property: Backup ID - * - *

UUID v4 or resource identifier used to identify the Backup. - * + * + * UUID v4 or resource identifier used to identify the Backup. + * * @return the backupId value. */ String backupId(); /** * Gets the baremetalTenantId property: Baremetal Tenant ID - * - *

Unique Baremetal Tenant Identifier. - * + * + * Unique Baremetal Tenant Identifier. + * * @return the baremetalTenantId value. */ String baremetalTenantId(); @@ -172,43 +174,43 @@ public interface Volume { /** * Gets the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes. - * + * * @return the subnetId value. */ String subnetId(); /** * Gets the networkFeatures property: Network features - * - *

Network features available to the volume, or current state of update. - * + * + * Network features available to the volume, or current state of update. + * * @return the networkFeatures value. */ NetworkFeatures networkFeatures(); /** * Gets the networkSiblingSetId property: Network Sibling Set ID - * - *

Network Sibling Set ID for the the group of volumes sharing networking resources. - * + * + * Network Sibling Set ID for the the group of volumes sharing networking resources. + * * @return the networkSiblingSetId value. */ String networkSiblingSetId(); /** * Gets the storageToNetworkProximity property: Storage to Network Proximity - * - *

Provides storage to network proximity information for the volume. - * + * + * Provides storage to network proximity information for the volume. + * * @return the storageToNetworkProximity value. */ VolumeStorageToNetworkProximity storageToNetworkProximity(); /** * Gets the mountTargets property: mountTargets - * - *

List of mount targets. - * + * + * List of mount targets. + * * @return the mountTargets value. */ List mountTargets(); @@ -216,23 +218,23 @@ public interface Volume { /** * Gets the volumeType property: What type of volume is this. For destination volumes in Cross Region Replication, * set type to DataProtection. - * + * * @return the volumeType value. */ String volumeType(); /** * Gets the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @return the dataProtection value. */ VolumePropertiesDataProtection dataProtection(); /** * Gets the isRestoring property: Restoring. - * + * * @return the isRestoring value. */ Boolean isRestoring(); @@ -240,7 +242,7 @@ public interface Volume { /** * Gets 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). - * + * * @return the snapshotDirectoryVisible value. */ Boolean snapshotDirectoryVisible(); @@ -248,7 +250,7 @@ public interface Volume { /** * Gets the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger version * 2020-05-01 or later. - * + * * @return the kerberosEnabled value. */ Boolean kerberosEnabled(); @@ -256,7 +258,7 @@ public interface Volume { /** * Gets the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol * or CIFS protocol. - * + * * @return the securityStyle value. */ SecurityStyle securityStyle(); @@ -264,25 +266,25 @@ public interface Volume { /** * Gets the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol * volume. To be used with swagger version 2020-08-01 or later. - * + * * @return the smbEncryption value. */ Boolean smbEncryption(); /** * Gets the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbAccessBasedEnumeration value. */ SmbAccessBasedEnumeration smbAccessBasedEnumeration(); /** * Gets the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbNonBrowsable value. */ SmbNonBrowsable smbNonBrowsable(); @@ -290,7 +292,7 @@ public interface Volume { /** * Gets the smbContinuouslyAvailable property: Enables continuously available share property for smb volume. Only * applicable for SMB volume. - * + * * @return the smbContinuouslyAvailable value. */ Boolean smbContinuouslyAvailable(); @@ -298,7 +300,7 @@ public interface Volume { /** * Gets the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume and this will * be accepted as input only for manual qosType volume. - * + * * @return the throughputMibps value. */ Float throughputMibps(); @@ -306,7 +308,7 @@ public interface Volume { /** * Gets the actualThroughputMibps property: Actual throughput in MiB/s for auto qosType volumes calculated based on * size and serviceLevel. - * + * * @return the actualThroughputMibps value. */ Float actualThroughputMibps(); @@ -315,7 +317,7 @@ public interface Volume { * Gets the encryptionKeySource property: Source of key used to encrypt data in volume. Applicable if NetApp account * has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, * Microsoft.KeyVault'. - * + * * @return the encryptionKeySource value. */ EncryptionKeySource encryptionKeySource(); @@ -323,21 +325,21 @@ public interface Volume { /** * Gets the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for KeyVault. It must * reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - * + * * @return the keyVaultPrivateEndpointResourceId value. */ String keyVaultPrivateEndpointResourceId(); /** * Gets the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume. - * + * * @return the ldapEnabled value. */ Boolean ldapEnabled(); /** * Gets the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * + * * @return the coolAccess value. */ Boolean coolAccess(); @@ -345,7 +347,7 @@ public interface Volume { /** * Gets the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients * will be tiered. - * + * * @return the coolnessPeriod value. */ Integer coolnessPeriod(); @@ -353,10 +355,12 @@ public interface Volume { /** * Gets the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior * from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible - * values for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This - * policy is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both - * sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage. - * + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + * * @return the coolAccessRetrievalPolicy value. */ CoolAccessRetrievalPolicy coolAccessRetrievalPolicy(); @@ -367,7 +371,7 @@ public interface Volume { * 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. - * + * * @return the unixPermissions value. */ String unixPermissions(); @@ -376,7 +380,7 @@ public interface Volume { * Gets the cloneProgress property: When a volume is being restored from another volume's snapshot, will show the * percentage completion of this cloning process. When this value is empty/null there is no cloning process * currently happening on this volume. This value will update every 5 minutes during cloning. - * + * * @return the cloneProgress value. */ Integer cloneProgress(); @@ -384,32 +388,32 @@ public interface Volume { /** * Gets the fileAccessLogs property: Flag indicating whether file access logs are enabled for the volume, based on * active diagnostic settings present on the volume. - * + * * @return the fileAccessLogs value. */ FileAccessLogs fileAccessLogs(); /** * Gets the avsDataStore property: avsDataStore - * - *

Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - * + * + * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + * * @return the avsDataStore value. */ AvsDataStore avsDataStore(); /** * Gets the dataStoreResourceId property: dataStoreResourceId - * - *

Data store resource unique identifier. - * + * + * Data store resource unique identifier. + * * @return the dataStoreResourceId value. */ List dataStoreResourceId(); /** * Gets the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. - * + * * @return the isDefaultQuotaEnabled value. */ Boolean isDefaultQuotaEnabled(); @@ -417,7 +421,7 @@ public interface Volume { /** * Gets the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, * the minimum value of 4 KiBs applies . - * + * * @return the defaultUserQuotaInKiBs value. */ Long defaultUserQuotaInKiBs(); @@ -425,7 +429,7 @@ public interface Volume { /** * Gets the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is * set, the minimum value of 4 KiBs applies. - * + * * @return the defaultGroupQuotaInKiBs value. */ Long defaultGroupQuotaInKiBs(); @@ -433,14 +437,14 @@ public interface Volume { /** * Gets the maximumNumberOfFiles property: Maximum number of files allowed. Needs a service request in order to be * changed. Only allowed to be changed if volume quota is more than 4TiB. - * + * * @return the maximumNumberOfFiles value. */ Long maximumNumberOfFiles(); /** * Gets the volumeGroupName property: Volume Group Name. - * + * * @return the volumeGroupName value. */ String volumeGroupName(); @@ -448,21 +452,21 @@ public interface Volume { /** * Gets the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume * group. - * + * * @return the capacityPoolResourceId value. */ String capacityPoolResourceId(); /** * Gets the proximityPlacementGroup property: Proximity placement group associated with the volume. - * + * * @return the proximityPlacementGroup value. */ String proximityPlacementGroup(); /** * Gets the t2Network property: T2 network information. - * + * * @return the t2Network value. */ String t2Network(); @@ -470,7 +474,7 @@ public interface Volume { /** * Gets the volumeSpecName property: Volume spec name is the application specific designation or identifier for the * particular volume in a volume group for e.g. data, log. - * + * * @return the volumeSpecName value. */ String volumeSpecName(); @@ -478,105 +482,108 @@ public interface Volume { /** * Gets the encrypted property: Specifies if the volume is encrypted or not. Only available on volumes created or * updated after 2022-01-01. - * + * * @return the encrypted value. */ Boolean encrypted(); /** * Gets the placementRules property: Volume placement rules - * - *

Application specific placement rules for the particular volume. - * + * + * Application specific placement rules for the particular volume. + * * @return the placementRules value. */ List placementRules(); /** * Gets the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the volume. - * + * * @return the enableSubvolumes value. */ EnableSubvolumes enableSubvolumes(); /** * Gets the provisionedAvailabilityZone property: Provisioned Availability Zone - * - *

The availability zone where the volume is provisioned. This refers to the logical availability zone where the + * + * The availability zone where the volume is provisioned. This refers to the logical availability zone where the * volume resides. - * + * * @return the provisionedAvailabilityZone value. */ String provisionedAvailabilityZone(); /** * Gets the isLargeVolume property: Is Large Volume - * - *

Specifies whether volume is a Large Volume or Regular Volume. - * + * + * Specifies whether volume is a Large Volume or Regular Volume. + * * @return the isLargeVolume value. */ Boolean isLargeVolume(); /** * Gets the originatingResourceId property: Originating Resource Id - * - *

Id of the snapshot or backup that the volume is restored from. - * + * + * Id of the snapshot or backup that the volume is restored from. + * * @return the originatingResourceId value. */ String originatingResourceId(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * 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.VolumeInner object. - * + * * @return the inner object. */ VolumeInner innerModel(); - /** The entirety of the Volume definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithCreationToken, - DefinitionStages.WithUsageThreshold, - DefinitionStages.WithSubnetId, - DefinitionStages.WithCreate { + /** + * The entirety of the Volume definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreationToken, DefinitionStages.WithUsageThreshold, + DefinitionStages.WithSubnetId, DefinitionStages.WithCreate { } - /** The Volume definition stages. */ + /** + * The Volume definition stages. + */ interface DefinitionStages { - /** The first stage of the Volume definition. */ + /** + * The first stage of the Volume definition. + */ interface Blank extends WithLocation { } - /** The stage of the Volume definition allowing to specify location. */ + /** + * The stage of the Volume definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -584,18 +591,20 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the Volume definition allowing to specify parent resource. */ + /** + * The stage of the Volume definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, accountName, poolName. - * + * * @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. @@ -604,46 +613,54 @@ interface WithParentResource { WithCreationToken withExistingCapacityPool(String resourceGroupName, String accountName, String poolName); } - /** The stage of the Volume definition allowing to specify creationToken. */ + /** + * The stage of the Volume definition allowing to specify creationToken. + */ interface WithCreationToken { /** * Specifies the creationToken property: Creation Token or File Path - * - *

A unique file path for the volume. Used when creating mount targets. - * + * + * A unique file path for the volume. Used when creating mount targets. + * * @param creationToken Creation Token or File Path - *

A unique file path for the volume. Used when creating mount targets. + * + * A unique file path for the volume. Used when creating mount targets. * @return the next definition stage. */ WithUsageThreshold withCreationToken(String creationToken); } - /** The stage of the Volume definition allowing to specify usageThreshold. */ + /** + * The stage of the Volume definition allowing to specify usageThreshold. + */ interface WithUsageThreshold { /** * Specifies the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. * Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on * exceptional basis. Specified in bytes.. - * + * * @param usageThreshold usageThreshold - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting - * only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for - * LargeVolume on exceptional basis. Specified in bytes. + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. + * Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on + * exceptional basis. Specified in bytes. * @return the next definition stage. */ WithSubnetId withUsageThreshold(long usageThreshold); } - /** The stage of the Volume definition allowing to specify subnetId. */ + /** + * The stage of the Volume definition allowing to specify subnetId. + */ interface WithSubnetId { /** * Specifies the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes. - * + * * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation - * Microsoft.NetApp/volumes. + * Microsoft.NetApp/volumes. * @return the next definition stage. */ WithCreate withSubnetId(String subnetId); @@ -653,411 +670,457 @@ interface WithSubnetId { * The stage of the Volume 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.WithZones, - 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.WithUnixPermissions, - DefinitionStages.WithAvsDataStore, - DefinitionStages.WithIsDefaultQuotaEnabled, - DefinitionStages.WithDefaultUserQuotaInKiBs, - DefinitionStages.WithDefaultGroupQuotaInKiBs, - DefinitionStages.WithCapacityPoolResourceId, - DefinitionStages.WithProximityPlacementGroup, - DefinitionStages.WithVolumeSpecName, - DefinitionStages.WithPlacementRules, - DefinitionStages.WithEnableSubvolumes, - DefinitionStages.WithIsLargeVolume { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithZones, + 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.WithUnixPermissions, + DefinitionStages.WithAvsDataStore, DefinitionStages.WithIsDefaultQuotaEnabled, + DefinitionStages.WithDefaultUserQuotaInKiBs, DefinitionStages.WithDefaultGroupQuotaInKiBs, + DefinitionStages.WithCapacityPoolResourceId, DefinitionStages.WithProximityPlacementGroup, + DefinitionStages.WithVolumeSpecName, DefinitionStages.WithPlacementRules, + DefinitionStages.WithEnableSubvolumes, DefinitionStages.WithIsLargeVolume { /** * Executes the create request. - * + * * @return the created resource. */ Volume create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ Volume create(Context context); } - /** The stage of the Volume definition allowing to specify tags. */ + /** + * The stage of the Volume definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the Volume definition allowing to specify zones. */ + /** + * The stage of the Volume definition allowing to specify zones. + */ interface WithZones { /** * Specifies the zones property: Availability Zone. - * + * * @param zones Availability Zone. * @return the next definition stage. */ WithCreate withZones(List zones); } - /** The stage of the Volume definition allowing to specify serviceLevel. */ + /** + * The stage of the Volume definition allowing to specify serviceLevel. + */ interface WithServiceLevel { /** * Specifies the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @param serviceLevel serviceLevel - *

The service level of the file system. + * + * The service level of the file system. * @return the next definition stage. */ WithCreate withServiceLevel(ServiceLevel serviceLevel); } - /** The stage of the Volume definition allowing to specify exportPolicy. */ + /** + * The stage of the Volume definition allowing to specify exportPolicy. + */ interface WithExportPolicy { /** * Specifies the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @param exportPolicy exportPolicy - *

Set of export policy rules. + * + * Set of export policy rules. * @return the next definition stage. */ WithCreate withExportPolicy(VolumePropertiesExportPolicy exportPolicy); } - /** The stage of the Volume definition allowing to specify protocolTypes. */ + /** + * The stage of the Volume definition allowing to specify protocolTypes. + */ interface WithProtocolTypes { /** * Specifies the protocolTypes property: protocolTypes - * - *

Set of protocol types, default NFSv3, CIFS for SMB protocol. - * + * + * Set of protocol types, default NFSv3, CIFS for SMB protocol. + * * @param protocolTypes protocolTypes - *

Set of protocol types, default NFSv3, CIFS for SMB protocol. + * + * Set of protocol types, default NFSv3, CIFS for SMB protocol. * @return the next definition stage. */ WithCreate withProtocolTypes(List protocolTypes); } - /** The stage of the Volume definition allowing to specify snapshotId. */ + /** + * The stage of the Volume definition allowing to specify snapshotId. + */ interface WithSnapshotId { /** * Specifies the snapshotId property: Snapshot ID - * - *

UUID v4 or resource identifier used to identify the Snapshot.. - * + * + * UUID v4 or resource identifier used to identify the Snapshot.. + * * @param snapshotId Snapshot ID - *

UUID v4 or resource identifier used to identify the Snapshot. + * + * UUID v4 or resource identifier used to identify the Snapshot. * @return the next definition stage. */ WithCreate withSnapshotId(String snapshotId); } - /** The stage of the Volume definition allowing to specify deleteBaseSnapshot. */ + /** + * The stage of the Volume definition allowing to specify deleteBaseSnapshot. + */ interface WithDeleteBaseSnapshot { /** * Specifies the deleteBaseSnapshot property: If enabled (true) the snapshot the volume was created from * will be automatically deleted after the volume create operation has finished. Defaults to false. - * + * * @param deleteBaseSnapshot If enabled (true) the snapshot the volume was created from will be - * automatically deleted after the volume create operation has finished. Defaults to false. + * automatically deleted after the volume create operation has finished. Defaults to false. * @return the next definition stage. */ WithCreate withDeleteBaseSnapshot(Boolean deleteBaseSnapshot); } - /** The stage of the Volume definition allowing to specify backupId. */ + /** + * The stage of the Volume definition allowing to specify backupId. + */ interface WithBackupId { /** * Specifies the backupId property: Backup ID - * - *

UUID v4 or resource identifier used to identify the Backup.. - * + * + * UUID v4 or resource identifier used to identify the Backup.. + * * @param backupId Backup ID - *

UUID v4 or resource identifier used to identify the Backup. + * + * UUID v4 or resource identifier used to identify the Backup. * @return the next definition stage. */ WithCreate withBackupId(String backupId); } - /** The stage of the Volume definition allowing to specify networkFeatures. */ + /** + * The stage of the Volume definition allowing to specify networkFeatures. + */ interface WithNetworkFeatures { /** * Specifies the networkFeatures property: Network features - * - *

Network features available to the volume, or current state of update.. - * + * + * Network features available to the volume, or current state of update.. + * * @param networkFeatures Network features - *

Network features available to the volume, or current state of update. + * + * Network features available to the volume, or current state of update. * @return the next definition stage. */ WithCreate withNetworkFeatures(NetworkFeatures networkFeatures); } - /** The stage of the Volume definition allowing to specify volumeType. */ + /** + * The stage of the Volume definition allowing to specify volumeType. + */ interface WithVolumeType { /** * Specifies the volumeType property: What type of volume is this. For destination volumes in Cross Region * Replication, set type to DataProtection. - * + * * @param volumeType What type of volume is this. For destination volumes in Cross Region Replication, set - * type to DataProtection. + * type to DataProtection. * @return the next definition stage. */ WithCreate withVolumeType(String volumeType); } - /** The stage of the Volume definition allowing to specify dataProtection. */ + /** + * The stage of the Volume definition allowing to specify dataProtection. + */ interface WithDataProtection { /** * Specifies the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @param dataProtection DataProtection - *

DataProtection type volumes include an object containing details of the replication. + * + * DataProtection type volumes include an object containing details of the replication. * @return the next definition stage. */ WithCreate withDataProtection(VolumePropertiesDataProtection dataProtection); } - /** The stage of the Volume definition allowing to specify isRestoring. */ + /** + * The stage of the Volume definition allowing to specify isRestoring. + */ interface WithIsRestoring { /** * Specifies the isRestoring property: Restoring. - * + * * @param isRestoring Restoring. * @return the next definition stage. */ WithCreate withIsRestoring(Boolean isRestoring); } - /** The stage of the Volume definition allowing to specify snapshotDirectoryVisible. */ + /** + * The stage of the Volume definition allowing to specify snapshotDirectoryVisible. + */ interface WithSnapshotDirectoryVisible { /** * Specifies 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).. - * + * * @param snapshotDirectoryVisible 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). + * which provides access to each of the volume's snapshots (defaults to true). * @return the next definition stage. */ WithCreate withSnapshotDirectoryVisible(Boolean snapshotDirectoryVisible); } - /** The stage of the Volume definition allowing to specify kerberosEnabled. */ + /** + * The stage of the Volume definition allowing to specify kerberosEnabled. + */ interface WithKerberosEnabled { /** * Specifies the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger * version 2020-05-01 or later. - * + * * @param kerberosEnabled Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 - * or later. + * or later. * @return the next definition stage. */ WithCreate withKerberosEnabled(Boolean kerberosEnabled); } - /** The stage of the Volume definition allowing to specify securityStyle. */ + /** + * The stage of the Volume definition allowing to specify securityStyle. + */ interface WithSecurityStyle { /** * Specifies the securityStyle property: The security style of volume, default unix, defaults to ntfs for * dual protocol or CIFS protocol. - * + * * @param securityStyle The security style of volume, default unix, defaults to ntfs for dual protocol or - * CIFS protocol. + * CIFS protocol. * @return the next definition stage. */ WithCreate withSecurityStyle(SecurityStyle securityStyle); } - /** The stage of the Volume definition allowing to specify smbEncryption. */ + /** + * The stage of the Volume definition allowing to specify smbEncryption. + */ interface WithSmbEncryption { /** * Specifies the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for * SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later. - * + * * @param smbEncryption Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol - * volume. To be used with swagger version 2020-08-01 or later. + * volume. To be used with swagger version 2020-08-01 or later. * @return the next definition stage. */ WithCreate withSmbEncryption(Boolean smbEncryption); } - /** The stage of the Volume definition allowing to specify smbAccessBasedEnumeration. */ + /** + * The stage of the Volume definition allowing to specify smbAccessBasedEnumeration. + */ interface WithSmbAccessBasedEnumeration { /** * Specifies the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol * volume. - * + * * @param smbAccessBasedEnumeration smbAccessBasedEnumeration - *

Enables access-based enumeration share property for SMB Shares. Only applicable for - * SMB/DualProtocol volume. + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol + * volume. * @return the next definition stage. */ WithCreate withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration smbAccessBasedEnumeration); } - /** The stage of the Volume definition allowing to specify smbNonBrowsable. */ + /** + * The stage of the Volume definition allowing to specify smbNonBrowsable. + */ interface WithSmbNonBrowsable { /** * Specifies the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbNonBrowsable smbNonBrowsable - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. * @return the next definition stage. */ WithCreate withSmbNonBrowsable(SmbNonBrowsable smbNonBrowsable); } - /** The stage of the Volume definition allowing to specify smbContinuouslyAvailable. */ + /** + * The stage of the Volume definition allowing to specify smbContinuouslyAvailable. + */ interface WithSmbContinuouslyAvailable { /** * Specifies the smbContinuouslyAvailable property: Enables continuously available share property for smb * volume. Only applicable for SMB volume. - * + * * @param smbContinuouslyAvailable Enables continuously available share property for smb volume. Only - * applicable for SMB volume. + * applicable for SMB volume. * @return the next definition stage. */ WithCreate withSmbContinuouslyAvailable(Boolean smbContinuouslyAvailable); } - /** The stage of the Volume definition allowing to specify throughputMibps. */ + /** + * The stage of the Volume definition allowing to specify throughputMibps. + */ interface WithThroughputMibps { /** * Specifies the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume * and this will be accepted as input only for manual qosType volume. - * + * * @param throughputMibps Maximum throughput in MiB/s that can be achieved by this volume and this will be - * accepted as input only for manual qosType volume. + * accepted as input only for manual qosType volume. * @return the next definition stage. */ WithCreate withThroughputMibps(Float throughputMibps); } - /** The stage of the Volume definition allowing to specify encryptionKeySource. */ + /** + * The stage of the Volume definition allowing to specify encryptionKeySource. + */ interface WithEncryptionKeySource { /** * Specifies the encryptionKeySource property: Source of key used to encrypt data in volume. Applicable if * NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: * 'Microsoft.NetApp, Microsoft.KeyVault'. - * + * * @param encryptionKeySource Source of key used to encrypt data in volume. Applicable if NetApp account has - * encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: - * 'Microsoft.NetApp, Microsoft.KeyVault'. + * encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, + * Microsoft.KeyVault'. * @return the next definition stage. */ WithCreate withEncryptionKeySource(EncryptionKeySource encryptionKeySource); } - /** The stage of the Volume definition allowing to specify keyVaultPrivateEndpointResourceId. */ + /** + * The stage of the Volume definition allowing to specify keyVaultPrivateEndpointResourceId. + */ interface WithKeyVaultPrivateEndpointResourceId { /** * Specifies the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for * KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = * 'Microsoft.KeyVault'.. - * + * * @param keyVaultPrivateEndpointResourceId The resource ID of private endpoint for KeyVault. It must reside - * in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. + * in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. * @return the next definition stage. */ WithCreate withKeyVaultPrivateEndpointResourceId(String keyVaultPrivateEndpointResourceId); } - /** The stage of the Volume definition allowing to specify ldapEnabled. */ + /** + * The stage of the Volume definition allowing to specify ldapEnabled. + */ interface WithLdapEnabled { /** * Specifies the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume.. - * + * * @param ldapEnabled Specifies whether LDAP is enabled or not for a given NFS volume. * @return the next definition stage. */ WithCreate withLdapEnabled(Boolean ldapEnabled); } - /** The stage of the Volume definition allowing to specify coolAccess. */ + /** + * The stage of the Volume definition allowing to specify coolAccess. + */ interface WithCoolAccess { /** * Specifies the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume.. - * + * * @param coolAccess Specifies whether Cool Access(tiering) is enabled for the volume. * @return the next definition stage. */ WithCreate withCoolAccess(Boolean coolAccess); } - /** The stage of the Volume definition allowing to specify coolnessPeriod. */ + /** + * The stage of the Volume definition allowing to specify coolnessPeriod. + */ interface WithCoolnessPeriod { /** * Specifies the coolnessPeriod property: Specifies the number of days after which data that is not accessed * by clients will be tiered.. - * + * * @param coolnessPeriod Specifies the number of days after which data that is not accessed by clients will - * be tiered. + * be tiered. * @return the next definition stage. */ WithCreate withCoolnessPeriod(Integer coolnessPeriod); } - /** The stage of the Volume definition allowing to specify coolAccessRetrievalPolicy. */ + /** + * The stage of the Volume definition allowing to specify coolAccessRetrievalPolicy. + */ interface WithCoolAccessRetrievalPolicy { /** * Specifies the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval * behavior from the cool tier to standard storage based on the read pattern for cool access enabled - * volumes. The possible values for this field are: Default - Data will be pulled from cool tier to standard - * storage on random reads. This policy is the default. OnRead - All client-driven data read is pulled from - * cool tier to standard storage on both sequential and random reads. Never - No client-driven data is - * pulled from cool tier to standard storage.. - * + * volumes. The possible values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the + * default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and + * random reads. + * Never - No client-driven data is pulled from cool tier to standard storage.. + * * @param coolAccessRetrievalPolicy coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The - * possible values for this field are: Default - Data will be pulled from cool tier to standard storage - * on random reads. This policy is the default. OnRead - All client-driven data read is pulled from cool - * tier to standard storage on both sequential and random reads. Never - No client-driven data is pulled - * from cool tier to standard storage. + * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the + * default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and + * random reads. + * Never - No client-driven data is pulled from cool tier to standard storage. * @return the next definition stage. */ WithCreate withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy coolAccessRetrievalPolicy); } - /** The stage of the Volume definition allowing to specify unixPermissions. */ + /** + * The stage of the Volume definition allowing to specify unixPermissions. + */ interface WithUnixPermissions { /** * Specifies the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. @@ -1065,139 +1128,162 @@ interface WithUnixPermissions { * 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.. - * + * * @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. + * 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. * @return the next definition stage. */ WithCreate withUnixPermissions(String unixPermissions); } - /** The stage of the Volume definition allowing to specify avsDataStore. */ + /** + * The stage of the Volume definition allowing to specify avsDataStore. + */ interface WithAvsDataStore { /** * Specifies the avsDataStore property: avsDataStore - * - *

Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - * + * + * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + * * @param avsDataStore avsDataStore - *

Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + * + * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. * @return the next definition stage. */ WithCreate withAvsDataStore(AvsDataStore avsDataStore); } - /** The stage of the Volume definition allowing to specify isDefaultQuotaEnabled. */ + /** + * The stage of the Volume definition allowing to specify isDefaultQuotaEnabled. + */ interface WithIsDefaultQuotaEnabled { /** * Specifies the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume.. - * + * * @param isDefaultQuotaEnabled Specifies if default quota is enabled for the volume. * @return the next definition stage. */ WithCreate withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled); } - /** The stage of the Volume definition allowing to specify defaultUserQuotaInKiBs. */ + /** + * The stage of the Volume definition allowing to specify defaultUserQuotaInKiBs. + */ interface WithDefaultUserQuotaInKiBs { /** * Specifies the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If * isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies .. - * + * * @param defaultUserQuotaInKiBs Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the - * minimum value of 4 KiBs applies . + * minimum value of 4 KiBs applies . * @return the next definition stage. */ WithCreate withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs); } - /** The stage of the Volume definition allowing to specify defaultGroupQuotaInKiBs. */ + /** + * The stage of the Volume definition allowing to specify defaultGroupQuotaInKiBs. + */ interface WithDefaultGroupQuotaInKiBs { /** * Specifies the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If * isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies.. - * + * * @param defaultGroupQuotaInKiBs Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, - * the minimum value of 4 KiBs applies. + * the minimum value of 4 KiBs applies. * @return the next definition stage. */ WithCreate withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs); } - /** The stage of the Volume definition allowing to specify capacityPoolResourceId. */ + /** + * The stage of the Volume definition allowing to specify capacityPoolResourceId. + */ interface WithCapacityPoolResourceId { /** * Specifies the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through * volume group. - * + * * @param capacityPoolResourceId Pool Resource Id used in case of creating a volume through volume group. * @return the next definition stage. */ WithCreate withCapacityPoolResourceId(String capacityPoolResourceId); } - /** The stage of the Volume definition allowing to specify proximityPlacementGroup. */ + /** + * The stage of the Volume definition allowing to specify proximityPlacementGroup. + */ interface WithProximityPlacementGroup { /** * Specifies the proximityPlacementGroup property: Proximity placement group associated with the volume. - * + * * @param proximityPlacementGroup Proximity placement group associated with the volume. * @return the next definition stage. */ WithCreate withProximityPlacementGroup(String proximityPlacementGroup); } - /** The stage of the Volume definition allowing to specify volumeSpecName. */ + /** + * The stage of the Volume definition allowing to specify volumeSpecName. + */ interface WithVolumeSpecName { /** * Specifies the volumeSpecName property: Volume spec name is the application specific designation or * identifier for the particular volume in a volume group for e.g. data, log. - * + * * @param volumeSpecName Volume spec name is the application specific designation or identifier for the - * particular volume in a volume group for e.g. data, log. + * particular volume in a volume group for e.g. data, log. * @return the next definition stage. */ WithCreate withVolumeSpecName(String volumeSpecName); } - /** The stage of the Volume definition allowing to specify placementRules. */ + /** + * The stage of the Volume definition allowing to specify placementRules. + */ interface WithPlacementRules { /** * Specifies the placementRules property: Volume placement rules - * - *

Application specific placement rules for the particular volume. - * + * + * Application specific placement rules for the particular volume. + * * @param placementRules Volume placement rules - *

Application specific placement rules for the particular volume. + * + * Application specific placement rules for the particular volume. * @return the next definition stage. */ WithCreate withPlacementRules(List placementRules); } - /** The stage of the Volume definition allowing to specify enableSubvolumes. */ + /** + * The stage of the Volume definition allowing to specify enableSubvolumes. + */ interface WithEnableSubvolumes { /** * Specifies the enableSubvolumes property: Flag indicating whether subvolume operations are enabled on the * volume. - * + * * @param enableSubvolumes Flag indicating whether subvolume operations are enabled on the volume. * @return the next definition stage. */ WithCreate withEnableSubvolumes(EnableSubvolumes enableSubvolumes); } - /** The stage of the Volume definition allowing to specify isLargeVolume. */ + /** + * The stage of the Volume definition allowing to specify isLargeVolume. + */ interface WithIsLargeVolume { /** * Specifies the isLargeVolume property: Is Large Volume - * - *

Specifies whether volume is a Large Volume or Regular Volume.. - * + * + * Specifies whether volume is a Large Volume or Regular Volume.. + * * @param isLargeVolume Is Large Volume - *

Specifies whether volume is a Large Volume or Regular Volume. + * + * Specifies whether volume is a Large Volume or Regular Volume. * @return the next definition stage. */ WithCreate withIsLargeVolume(Boolean isLargeVolume); @@ -1206,169 +1292,187 @@ interface WithIsLargeVolume { /** * Begins update for the Volume resource. - * + * * @return the stage of resource update. */ Volume.Update update(); - /** The template for Volume update. */ - interface Update - extends UpdateStages.WithTags, - UpdateStages.WithServiceLevel, - UpdateStages.WithUsageThreshold, - UpdateStages.WithExportPolicy, - UpdateStages.WithThroughputMibps, - UpdateStages.WithDataProtection, - UpdateStages.WithIsDefaultQuotaEnabled, - UpdateStages.WithDefaultUserQuotaInKiBs, - UpdateStages.WithDefaultGroupQuotaInKiBs, - UpdateStages.WithUnixPermissions, - UpdateStages.WithCoolAccess, - UpdateStages.WithCoolnessPeriod, - UpdateStages.WithCoolAccessRetrievalPolicy, - UpdateStages.WithSnapshotDirectoryVisible, - UpdateStages.WithSmbAccessBasedEnumeration, - UpdateStages.WithSmbNonBrowsable { + /** + * The template for Volume update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithServiceLevel, UpdateStages.WithUsageThreshold, + UpdateStages.WithExportPolicy, UpdateStages.WithThroughputMibps, UpdateStages.WithDataProtection, + UpdateStages.WithIsDefaultQuotaEnabled, UpdateStages.WithDefaultUserQuotaInKiBs, + UpdateStages.WithDefaultGroupQuotaInKiBs, UpdateStages.WithUnixPermissions, UpdateStages.WithCoolAccess, + UpdateStages.WithCoolnessPeriod, UpdateStages.WithCoolAccessRetrievalPolicy, + UpdateStages.WithSnapshotDirectoryVisible, UpdateStages.WithSmbAccessBasedEnumeration, + UpdateStages.WithSmbNonBrowsable { /** * Executes the update request. - * + * * @return the updated resource. */ Volume apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ Volume apply(Context context); } - /** The Volume update stages. */ + /** + * The Volume update stages. + */ interface UpdateStages { - /** The stage of the Volume update allowing to specify tags. */ + /** + * The stage of the Volume update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the Volume update allowing to specify serviceLevel. */ + /** + * The stage of the Volume update allowing to specify serviceLevel. + */ interface WithServiceLevel { /** * Specifies the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @param serviceLevel serviceLevel - *

The service level of the file system. + * + * The service level of the file system. * @return the next definition stage. */ Update withServiceLevel(ServiceLevel serviceLevel); } - /** The stage of the Volume update allowing to specify usageThreshold. */ + /** + * The stage of the Volume update allowing to specify usageThreshold. + */ interface WithUsageThreshold { /** * Specifies the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. * Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on * exceptional basis. Specified in bytes.. - * + * * @param usageThreshold usageThreshold - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting - * only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for - * LargeVolume on exceptional basis. Specified in bytes. + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. + * Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on + * exceptional basis. Specified in bytes. * @return the next definition stage. */ Update withUsageThreshold(Long usageThreshold); } - /** The stage of the Volume update allowing to specify exportPolicy. */ + /** + * The stage of the Volume update allowing to specify exportPolicy. + */ interface WithExportPolicy { /** * Specifies the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @param exportPolicy exportPolicy - *

Set of export policy rules. + * + * Set of export policy rules. * @return the next definition stage. */ Update withExportPolicy(VolumePatchPropertiesExportPolicy exportPolicy); } - /** The stage of the Volume update allowing to specify throughputMibps. */ + /** + * The stage of the Volume update allowing to specify throughputMibps. + */ interface WithThroughputMibps { /** * Specifies the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume * and this will be accepted as input only for manual qosType volume. - * + * * @param throughputMibps Maximum throughput in MiB/s that can be achieved by this volume and this will be - * accepted as input only for manual qosType volume. + * accepted as input only for manual qosType volume. * @return the next definition stage. */ Update withThroughputMibps(Float throughputMibps); } - /** The stage of the Volume update allowing to specify dataProtection. */ + /** + * The stage of the Volume update allowing to specify dataProtection. + */ interface WithDataProtection { /** * Specifies the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @param dataProtection DataProtection - *

DataProtection type volumes include an object containing details of the replication. + * + * DataProtection type volumes include an object containing details of the replication. * @return the next definition stage. */ Update withDataProtection(VolumePatchPropertiesDataProtection dataProtection); } - /** The stage of the Volume update allowing to specify isDefaultQuotaEnabled. */ + /** + * The stage of the Volume update allowing to specify isDefaultQuotaEnabled. + */ interface WithIsDefaultQuotaEnabled { /** * Specifies the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume.. - * + * * @param isDefaultQuotaEnabled Specifies if default quota is enabled for the volume. * @return the next definition stage. */ Update withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled); } - /** The stage of the Volume update allowing to specify defaultUserQuotaInKiBs. */ + /** + * The stage of the Volume update allowing to specify defaultUserQuotaInKiBs. + */ interface WithDefaultUserQuotaInKiBs { /** * Specifies the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If * isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies .. - * + * * @param defaultUserQuotaInKiBs Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the - * minimum value of 4 KiBs applies . + * minimum value of 4 KiBs applies . * @return the next definition stage. */ Update withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs); } - /** The stage of the Volume update allowing to specify defaultGroupQuotaInKiBs. */ + /** + * The stage of the Volume update allowing to specify defaultGroupQuotaInKiBs. + */ interface WithDefaultGroupQuotaInKiBs { /** * Specifies the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If * isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies.. - * + * * @param defaultGroupQuotaInKiBs Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, - * the minimum value of 4 KiBs applies. + * the minimum value of 4 KiBs applies. * @return the next definition stage. */ Update withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs); } - /** The stage of the Volume update allowing to specify unixPermissions. */ + /** + * The stage of the Volume update allowing to specify unixPermissions. + */ interface WithUnixPermissions { /** * Specifies the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. @@ -1376,100 +1480,118 @@ interface WithUnixPermissions { * 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.. - * + * * @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. + * 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. * @return the next definition stage. */ Update withUnixPermissions(String unixPermissions); } - /** The stage of the Volume update allowing to specify coolAccess. */ + /** + * The stage of the Volume update allowing to specify coolAccess. + */ interface WithCoolAccess { /** * Specifies the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume.. - * + * * @param coolAccess Specifies whether Cool Access(tiering) is enabled for the volume. * @return the next definition stage. */ Update withCoolAccess(Boolean coolAccess); } - /** The stage of the Volume update allowing to specify coolnessPeriod. */ + /** + * The stage of the Volume update allowing to specify coolnessPeriod. + */ interface WithCoolnessPeriod { /** * Specifies the coolnessPeriod property: Specifies the number of days after which data that is not accessed * by clients will be tiered.. - * + * * @param coolnessPeriod Specifies the number of days after which data that is not accessed by clients will - * be tiered. + * be tiered. * @return the next definition stage. */ Update withCoolnessPeriod(Integer coolnessPeriod); } - /** The stage of the Volume update allowing to specify coolAccessRetrievalPolicy. */ + /** + * The stage of the Volume update allowing to specify coolAccessRetrievalPolicy. + */ interface WithCoolAccessRetrievalPolicy { /** * Specifies the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval * behavior from the cool tier to standard storage based on the read pattern for cool access enabled - * volumes. The possible values for this field are: Default - Data will be pulled from cool tier to standard - * storage on random reads. This policy is the default. OnRead - All client-driven data read is pulled from - * cool tier to standard storage on both sequential and random reads. Never - No client-driven data is - * pulled from cool tier to standard storage.. - * + * volumes. The possible values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the + * default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and + * random reads. + * Never - No client-driven data is pulled from cool tier to standard storage.. + * * @param coolAccessRetrievalPolicy coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The - * possible values for this field are: Default - Data will be pulled from cool tier to standard storage - * on random reads. This policy is the default. OnRead - All client-driven data read is pulled from cool - * tier to standard storage on both sequential and random reads. Never - No client-driven data is pulled - * from cool tier to standard storage. + * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the + * default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and + * random reads. + * Never - No client-driven data is pulled from cool tier to standard storage. * @return the next definition stage. */ Update withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy coolAccessRetrievalPolicy); } - /** The stage of the Volume update allowing to specify snapshotDirectoryVisible. */ + /** + * The stage of the Volume update allowing to specify snapshotDirectoryVisible. + */ interface WithSnapshotDirectoryVisible { /** * Specifies 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.. - * + * * @param snapshotDirectoryVisible If enabled (true) the volume will contain a read-only snapshot directory - * which provides access to each of the volume's snapshots. + * which provides access to each of the volume's snapshots. * @return the next definition stage. */ Update withSnapshotDirectoryVisible(Boolean snapshotDirectoryVisible); } - /** The stage of the Volume update allowing to specify smbAccessBasedEnumeration. */ + /** + * The stage of the Volume update allowing to specify smbAccessBasedEnumeration. + */ interface WithSmbAccessBasedEnumeration { /** * Specifies the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol * volume. - * + * * @param smbAccessBasedEnumeration smbAccessBasedEnumeration - *

Enables access-based enumeration share property for SMB Shares. Only applicable for - * SMB/DualProtocol volume. + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol + * volume. * @return the next definition stage. */ Update withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration smbAccessBasedEnumeration); } - /** The stage of the Volume update allowing to specify smbNonBrowsable. */ + /** + * The stage of the Volume update allowing to specify smbNonBrowsable. + */ interface WithSmbNonBrowsable { /** * Specifies the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbNonBrowsable smbNonBrowsable - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. * @return the next definition stage. */ Update withSmbNonBrowsable(SmbNonBrowsable smbNonBrowsable); @@ -1478,14 +1600,14 @@ interface WithSmbNonBrowsable { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ Volume refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -1493,9 +1615,9 @@ interface WithSmbNonBrowsable { /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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 volume resource. @@ -1504,9 +1626,9 @@ interface WithSmbNonBrowsable { /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -1517,9 +1639,9 @@ interface WithSmbNonBrowsable { /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @param body Object for snapshot to revert supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1529,9 +1651,9 @@ interface WithSmbNonBrowsable { /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @param body Object for snapshot to revert supplied in the body of the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1542,9 +1664,9 @@ interface WithSmbNonBrowsable { /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. */ @@ -1552,9 +1674,9 @@ interface WithSmbNonBrowsable { /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -1564,9 +1686,9 @@ interface WithSmbNonBrowsable { /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. */ @@ -1574,9 +1696,9 @@ interface WithSmbNonBrowsable { /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a volume. + * * @param body Optional body to provide the ability to clear file locks with selected options. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1587,9 +1709,9 @@ interface WithSmbNonBrowsable { /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @param body Returns group Id list for a specific LDAP user. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1600,9 +1722,9 @@ interface WithSmbNonBrowsable { /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @param body Returns group Id list for a specific LDAP user. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1610,14 +1732,14 @@ interface WithSmbNonBrowsable { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return group Id list for Ldap user. */ - GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( - GetGroupIdListForLdapUserRequest body, Context context); + GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(GetGroupIdListForLdapUserRequest body, + Context context); /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. */ @@ -1625,9 +1747,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination volume. + * * @param body Optional body to force break the replication. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1638,10 +1760,10 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @param body body for the id of the source volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1651,10 +1773,10 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @param body body for the id of the source volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1665,9 +1787,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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 list Replications as paginated response with {@link PagedIterable}. @@ -1676,9 +1798,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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. @@ -1689,10 +1811,10 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. */ @@ -1700,10 +1822,10 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -1713,9 +1835,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. */ @@ -1723,9 +1845,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -1735,9 +1857,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source volume. + * * @param body Authorize request object supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1747,9 +1869,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source volume. + * * @param body Authorize request object supplied in the body of the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1760,9 +1882,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. */ @@ -1770,9 +1892,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -1782,9 +1904,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @param body Move volume to the pool supplied in the body of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1794,9 +1916,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @param body Move volume to the pool supplied in the body of the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1807,9 +1929,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. */ @@ -1817,9 +1939,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @param body Relocate volume request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1830,9 +1952,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. */ @@ -1840,9 +1962,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -1852,9 +1974,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. */ @@ -1862,9 +1984,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java index 60671c49d4fa..9ba4a6cc638d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Volume details using the backup policy. */ +/** + * Volume details using the backup policy. + */ @Fluent public final class VolumeBackups { /* @@ -28,13 +30,15 @@ public final class VolumeBackups { @JsonProperty(value = "policyEnabled") private Boolean policyEnabled; - /** Creates an instance of VolumeBackups class. */ + /** + * Creates an instance of VolumeBackups class. + */ public VolumeBackups() { } /** * Get the volumeName property: Volume name. - * + * * @return the volumeName value. */ public String volumeName() { @@ -43,7 +47,7 @@ public String volumeName() { /** * Set the volumeName property: Volume name. - * + * * @param volumeName the volumeName value to set. * @return the VolumeBackups object itself. */ @@ -54,7 +58,7 @@ public VolumeBackups withVolumeName(String volumeName) { /** * Get the backupsCount property: Total count of backups for volume. - * + * * @return the backupsCount value. */ public Integer backupsCount() { @@ -63,7 +67,7 @@ public Integer backupsCount() { /** * Set the backupsCount property: Total count of backups for volume. - * + * * @param backupsCount the backupsCount value to set. * @return the VolumeBackups object itself. */ @@ -74,7 +78,7 @@ public VolumeBackups withBackupsCount(Integer backupsCount) { /** * Get the policyEnabled property: Policy enabled. - * + * * @return the policyEnabled value. */ public Boolean policyEnabled() { @@ -83,7 +87,7 @@ public Boolean policyEnabled() { /** * Set the policyEnabled property: Policy enabled. - * + * * @param policyEnabled the policyEnabled value to set. * @return the VolumeBackups object itself. */ @@ -94,7 +98,7 @@ public VolumeBackups withPolicyEnabled(Boolean policyEnabled) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java index 8bc8461d03dd..00a857f4c178 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java @@ -6,53 +6,55 @@ import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner; -/** An immutable client-side representation of VolumeGroup. */ +/** + * An immutable client-side representation of VolumeGroup. + */ public interface VolumeGroup { /** * Gets the location property: Resource location. - * + * * @return the location value. */ String location(); /** * Gets the id property: Resource Id. - * + * * @return the id value. */ String id(); /** * Gets the name property: Resource name. - * + * * @return the name value. */ String name(); /** * Gets the type property: Resource type. - * + * * @return the type value. */ String type(); /** * Gets the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the groupMetadata property: Volume group details. - * + * * @return the groupMetadata value. */ VolumeGroupMetadata groupMetadata(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner object. - * + * * @return the inner object. */ VolumeGroupInner innerModel(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java index 713b62a3a26d..9c2267bb2982 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java @@ -9,94 +9,104 @@ import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner; import java.util.List; -/** An immutable client-side representation of VolumeGroupDetails. */ +/** + * An immutable client-side representation of VolumeGroupDetails. + */ public interface VolumeGroupDetails { /** * Gets the location property: Resource location. - * + * * @return the location value. */ String location(); /** * Gets the id property: Resource Id. - * + * * @return the id value. */ String id(); /** * Gets the name property: Resource name. - * + * * @return the name value. */ String name(); /** * Gets the type property: Resource type. - * + * * @return the type value. */ String type(); /** * Gets the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the groupMetadata property: Volume group details. - * + * * @return the groupMetadata value. */ VolumeGroupMetadata groupMetadata(); /** * Gets the volumes property: List of volumes from group. - * + * * @return the volumes value. */ List volumes(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the inner com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner object. - * + * * @return the inner object. */ VolumeGroupDetailsInner innerModel(); - /** The entirety of the VolumeGroupDetails definition. */ + /** + * The entirety of the VolumeGroupDetails definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The VolumeGroupDetails definition stages. */ + /** + * The VolumeGroupDetails definition stages. + */ interface DefinitionStages { - /** The first stage of the VolumeGroupDetails definition. */ + /** + * The first stage of the VolumeGroupDetails definition. + */ interface Blank extends WithParentResource { } - /** The stage of the VolumeGroupDetails definition allowing to specify parent resource. */ + /** + * The stage of the VolumeGroupDetails definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, accountName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @return the next definition stage. @@ -112,25 +122,27 @@ interface WithCreate extends DefinitionStages.WithLocation, DefinitionStages.WithGroupMetadata, DefinitionStages.WithVolumes { /** * Executes the create request. - * + * * @return the created resource. */ VolumeGroupDetails create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ VolumeGroupDetails create(Context context); } - /** The stage of the VolumeGroupDetails definition allowing to specify location. */ + /** + * The stage of the VolumeGroupDetails definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location Resource location. * @return the next definition stage. */ @@ -138,29 +150,33 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location Resource location. * @return the next definition stage. */ WithCreate withRegion(String location); } - /** The stage of the VolumeGroupDetails definition allowing to specify groupMetadata. */ + /** + * The stage of the VolumeGroupDetails definition allowing to specify groupMetadata. + */ interface WithGroupMetadata { /** * Specifies the groupMetadata property: Volume group details. - * + * * @param groupMetadata Volume group details. * @return the next definition stage. */ WithCreate withGroupMetadata(VolumeGroupMetadata groupMetadata); } - /** The stage of the VolumeGroupDetails definition allowing to specify volumes. */ + /** + * The stage of the VolumeGroupDetails definition allowing to specify volumes. + */ interface WithVolumes { /** * Specifies the volumes property: List of volumes from group. - * + * * @param volumes List of volumes from group. * @return the next definition stage. */ @@ -170,14 +186,14 @@ interface WithVolumes { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ VolumeGroupDetails refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java index 903bc63aab04..cf48d0acc5ce 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of volume group resources. */ +/** + * List of volume group resources. + */ @Fluent public final class VolumeGroupList { /* @@ -18,13 +20,15 @@ public final class VolumeGroupList { @JsonProperty(value = "value") private List value; - /** Creates an instance of VolumeGroupList class. */ + /** + * Creates an instance of VolumeGroupList class. + */ public VolumeGroupList() { } /** * Get the value property: List of volume Groups. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: List of volume Groups. - * + * * @param value the value value to set. * @return the VolumeGroupList object itself. */ @@ -44,7 +48,7 @@ public VolumeGroupList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java index 5d63d5c2d93c..50b71e9a3362 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Volume group properties. */ +/** + * Volume group properties. + */ @Fluent public final class VolumeGroupMetadata { /* @@ -31,31 +33,27 @@ public final class VolumeGroupMetadata { /* * Global volume placement rules - * + * * Application specific placement rules for the volume group */ @JsonProperty(value = "globalPlacementRules") private List globalPlacementRules; - /* - * Application specific identifier of deployment rules for the volume group - */ - @JsonProperty(value = "deploymentSpecId") - private String deploymentSpecId; - /* * Number of volumes in volume group */ @JsonProperty(value = "volumesCount", access = JsonProperty.Access.WRITE_ONLY) private Long volumesCount; - /** Creates an instance of VolumeGroupMetadata class. */ + /** + * Creates an instance of VolumeGroupMetadata class. + */ public VolumeGroupMetadata() { } /** * Get the groupDescription property: Group Description. - * + * * @return the groupDescription value. */ public String groupDescription() { @@ -64,7 +62,7 @@ public String groupDescription() { /** * Set the groupDescription property: Group Description. - * + * * @param groupDescription the groupDescription value to set. * @return the VolumeGroupMetadata object itself. */ @@ -75,7 +73,7 @@ public VolumeGroupMetadata withGroupDescription(String groupDescription) { /** * Get the applicationType property: Application Type. - * + * * @return the applicationType value. */ public ApplicationType applicationType() { @@ -84,7 +82,7 @@ public ApplicationType applicationType() { /** * Set the applicationType property: Application Type. - * + * * @param applicationType the applicationType value to set. * @return the VolumeGroupMetadata object itself. */ @@ -95,7 +93,7 @@ public VolumeGroupMetadata withApplicationType(ApplicationType applicationType) /** * Get the applicationIdentifier property: Application specific identifier. - * + * * @return the applicationIdentifier value. */ public String applicationIdentifier() { @@ -104,7 +102,7 @@ public String applicationIdentifier() { /** * Set the applicationIdentifier property: Application specific identifier. - * + * * @param applicationIdentifier the applicationIdentifier value to set. * @return the VolumeGroupMetadata object itself. */ @@ -115,9 +113,9 @@ public VolumeGroupMetadata withApplicationIdentifier(String applicationIdentifie /** * Get the globalPlacementRules property: Global volume placement rules - * - *

Application specific placement rules for the volume group. - * + * + * Application specific placement rules for the volume group. + * * @return the globalPlacementRules value. */ public List globalPlacementRules() { @@ -126,9 +124,9 @@ public List globalPlacementRules() { /** * Set the globalPlacementRules property: Global volume placement rules - * - *

Application specific placement rules for the volume group. - * + * + * Application specific placement rules for the volume group. + * * @param globalPlacementRules the globalPlacementRules value to set. * @return the VolumeGroupMetadata object itself. */ @@ -137,29 +135,9 @@ public VolumeGroupMetadata withGlobalPlacementRules(List return this; } - /** - * Get the deploymentSpecId property: Application specific identifier of deployment rules for the volume group. - * - * @return the deploymentSpecId value. - */ - public String deploymentSpecId() { - return this.deploymentSpecId; - } - - /** - * Set the deploymentSpecId property: Application specific identifier of deployment rules for the volume group. - * - * @param deploymentSpecId the deploymentSpecId value to set. - * @return the VolumeGroupMetadata object itself. - */ - public VolumeGroupMetadata withDeploymentSpecId(String deploymentSpecId) { - this.deploymentSpecId = deploymentSpecId; - return this; - } - /** * Get the volumesCount property: Number of volumes in volume group. - * + * * @return the volumesCount value. */ public Long volumesCount() { @@ -168,7 +146,7 @@ public Long volumesCount() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { 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 8998a1937960..db2712bb5a2f 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 @@ -14,7 +14,9 @@ import java.util.List; import java.util.Map; -/** Volume resource. */ +/** + * Volume resource. + */ @Fluent public final class VolumeGroupVolumeProperties extends ProxyResource { /* @@ -42,13 +44,15 @@ public final class VolumeGroupVolumeProperties extends ProxyResource { @JsonProperty(value = "properties", required = true) private VolumeProperties innerProperties = new VolumeProperties(); - /** Creates an instance of VolumeGroupVolumeProperties class. */ + /** + * Creates an instance of VolumeGroupVolumeProperties class. + */ public VolumeGroupVolumeProperties() { } /** * Get the name property: Resource name. - * + * * @return the name value. */ public String name() { @@ -57,7 +61,7 @@ public String name() { /** * Set the name property: Resource name. - * + * * @param name the name value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -68,7 +72,7 @@ public VolumeGroupVolumeProperties withName(String name) { /** * Get the tags property: Resource tags. - * + * * @return the tags value. */ public Map tags() { @@ -77,7 +81,7 @@ public Map tags() { /** * Set the tags property: Resource tags. - * + * * @param tags the tags value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -88,7 +92,7 @@ public VolumeGroupVolumeProperties withTags(Map tags) { /** * Get the zones property: Availability Zone. - * + * * @return the zones value. */ public List zones() { @@ -97,7 +101,7 @@ public List zones() { /** * Set the zones property: Availability Zone. - * + * * @param zones the zones value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -108,7 +112,7 @@ public VolumeGroupVolumeProperties withZones(List zones) { /** * Get the innerProperties property: Volume properties. - * + * * @return the innerProperties value. */ private VolumeProperties innerProperties() { @@ -117,9 +121,9 @@ private VolumeProperties innerProperties() { /** * Get the fileSystemId property: FileSystem ID - * - *

Unique FileSystem Identifier. - * + * + * Unique FileSystem Identifier. + * * @return the fileSystemId value. */ public String fileSystemId() { @@ -128,9 +132,9 @@ public String fileSystemId() { /** * Get the creationToken property: Creation Token or File Path - * - *

A unique file path for the volume. Used when creating mount targets. - * + * + * A unique file path for the volume. Used when creating mount targets. + * * @return the creationToken value. */ public String creationToken() { @@ -139,9 +143,9 @@ public String creationToken() { /** * Set the creationToken property: Creation Token or File Path - * - *

A unique file path for the volume. Used when creating mount targets. - * + * + * A unique file path for the volume. Used when creating mount targets. + * * @param creationToken the creationToken value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -155,9 +159,9 @@ public VolumeGroupVolumeProperties withCreationToken(String creationToken) { /** * Get the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @return the serviceLevel value. */ public ServiceLevel serviceLevel() { @@ -166,9 +170,9 @@ public ServiceLevel serviceLevel() { /** * Set the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @param serviceLevel the serviceLevel value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -182,11 +186,11 @@ public VolumeGroupVolumeProperties withServiceLevel(ServiceLevel serviceLevel) { /** * Get the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. - * + * * @return the usageThreshold value. */ public long usageThreshold() { @@ -195,11 +199,11 @@ public long usageThreshold() { /** * Set the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. - * + * * @param usageThreshold the usageThreshold value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -213,9 +217,9 @@ public VolumeGroupVolumeProperties withUsageThreshold(long usageThreshold) { /** * Get the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @return the exportPolicy value. */ public VolumePropertiesExportPolicy exportPolicy() { @@ -224,9 +228,9 @@ public VolumePropertiesExportPolicy exportPolicy() { /** * Set the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @param exportPolicy the exportPolicy value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -240,9 +244,9 @@ public VolumeGroupVolumeProperties withExportPolicy(VolumePropertiesExportPolicy /** * Get the protocolTypes property: protocolTypes - * - *

Set of protocol types, default NFSv3, CIFS for SMB protocol. - * + * + * Set of protocol types, default NFSv3, CIFS for SMB protocol. + * * @return the protocolTypes value. */ public List protocolTypes() { @@ -251,9 +255,9 @@ public List protocolTypes() { /** * Set the protocolTypes property: protocolTypes - * - *

Set of protocol types, default NFSv3, CIFS for SMB protocol. - * + * + * Set of protocol types, default NFSv3, CIFS for SMB protocol. + * * @param protocolTypes the protocolTypes value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -267,7 +271,7 @@ public VolumeGroupVolumeProperties withProtocolTypes(List protocolTypes) /** * Get the provisioningState property: Azure lifecycle management. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -276,9 +280,9 @@ public String provisioningState() { /** * Get the snapshotId property: Snapshot ID - * - *

UUID v4 or resource identifier used to identify the Snapshot. - * + * + * UUID v4 or resource identifier used to identify the Snapshot. + * * @return the snapshotId value. */ public String snapshotId() { @@ -287,9 +291,9 @@ public String snapshotId() { /** * Set the snapshotId property: Snapshot ID - * - *

UUID v4 or resource identifier used to identify the Snapshot. - * + * + * UUID v4 or resource identifier used to identify the Snapshot. + * * @param snapshotId the snapshotId value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -304,7 +308,7 @@ public VolumeGroupVolumeProperties withSnapshotId(String snapshotId) { /** * Get the deleteBaseSnapshot property: If enabled (true) the snapshot the volume was created from will be * automatically deleted after the volume create operation has finished. Defaults to false. - * + * * @return the deleteBaseSnapshot value. */ public Boolean deleteBaseSnapshot() { @@ -314,7 +318,7 @@ public Boolean deleteBaseSnapshot() { /** * Set the deleteBaseSnapshot property: If enabled (true) the snapshot the volume was created from will be * automatically deleted after the volume create operation has finished. Defaults to false. - * + * * @param deleteBaseSnapshot the deleteBaseSnapshot value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -328,9 +332,9 @@ public VolumeGroupVolumeProperties withDeleteBaseSnapshot(Boolean deleteBaseSnap /** * Get the backupId property: Backup ID - * - *

UUID v4 or resource identifier used to identify the Backup. - * + * + * UUID v4 or resource identifier used to identify the Backup. + * * @return the backupId value. */ public String backupId() { @@ -339,9 +343,9 @@ public String backupId() { /** * Set the backupId property: Backup ID - * - *

UUID v4 or resource identifier used to identify the Backup. - * + * + * UUID v4 or resource identifier used to identify the Backup. + * * @param backupId the backupId value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -355,9 +359,9 @@ public VolumeGroupVolumeProperties withBackupId(String backupId) { /** * Get the baremetalTenantId property: Baremetal Tenant ID - * - *

Unique Baremetal Tenant Identifier. - * + * + * Unique Baremetal Tenant Identifier. + * * @return the baremetalTenantId value. */ public String baremetalTenantId() { @@ -367,7 +371,7 @@ public String baremetalTenantId() { /** * Get the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes. - * + * * @return the subnetId value. */ public String subnetId() { @@ -377,7 +381,7 @@ public String subnetId() { /** * Set the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes. - * + * * @param subnetId the subnetId value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -391,9 +395,9 @@ public VolumeGroupVolumeProperties withSubnetId(String subnetId) { /** * Get the networkFeatures property: Network features - * - *

Network features available to the volume, or current state of update. - * + * + * Network features available to the volume, or current state of update. + * * @return the networkFeatures value. */ public NetworkFeatures networkFeatures() { @@ -402,9 +406,9 @@ public NetworkFeatures networkFeatures() { /** * Set the networkFeatures property: Network features - * - *

Network features available to the volume, or current state of update. - * + * + * Network features available to the volume, or current state of update. + * * @param networkFeatures the networkFeatures value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -418,9 +422,9 @@ public VolumeGroupVolumeProperties withNetworkFeatures(NetworkFeatures networkFe /** * Get the networkSiblingSetId property: Network Sibling Set ID - * - *

Network Sibling Set ID for the the group of volumes sharing networking resources. - * + * + * Network Sibling Set ID for the the group of volumes sharing networking resources. + * * @return the networkSiblingSetId value. */ public String networkSiblingSetId() { @@ -429,9 +433,9 @@ public String networkSiblingSetId() { /** * Get the storageToNetworkProximity property: Storage to Network Proximity - * - *

Provides storage to network proximity information for the volume. - * + * + * Provides storage to network proximity information for the volume. + * * @return the storageToNetworkProximity value. */ public VolumeStorageToNetworkProximity storageToNetworkProximity() { @@ -440,9 +444,9 @@ public VolumeStorageToNetworkProximity storageToNetworkProximity() { /** * Get the mountTargets property: mountTargets - * - *

List of mount targets. - * + * + * List of mount targets. + * * @return the mountTargets value. */ public List mountTargets() { @@ -452,7 +456,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. - * + * * @return the volumeType value. */ public String volumeType() { @@ -462,7 +466,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. - * + * * @param volumeType the volumeType value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -476,9 +480,9 @@ public VolumeGroupVolumeProperties withVolumeType(String volumeType) { /** * Get the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @return the dataProtection value. */ public VolumePropertiesDataProtection dataProtection() { @@ -487,9 +491,9 @@ public VolumePropertiesDataProtection dataProtection() { /** * Set the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @param dataProtection the dataProtection value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -503,7 +507,7 @@ public VolumeGroupVolumeProperties withDataProtection(VolumePropertiesDataProtec /** * Get the isRestoring property: Restoring. - * + * * @return the isRestoring value. */ public Boolean isRestoring() { @@ -512,7 +516,7 @@ public Boolean isRestoring() { /** * Set the isRestoring property: Restoring. - * + * * @param isRestoring the isRestoring value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -527,7 +531,7 @@ public VolumeGroupVolumeProperties withIsRestoring(Boolean 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). - * + * * @return the snapshotDirectoryVisible value. */ public Boolean snapshotDirectoryVisible() { @@ -537,7 +541,7 @@ public Boolean snapshotDirectoryVisible() { /** * Set 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). - * + * * @param snapshotDirectoryVisible the snapshotDirectoryVisible value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -552,7 +556,7 @@ public VolumeGroupVolumeProperties withSnapshotDirectoryVisible(Boolean snapshot /** * Get the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger version * 2020-05-01 or later. - * + * * @return the kerberosEnabled value. */ public Boolean kerberosEnabled() { @@ -562,7 +566,7 @@ public Boolean kerberosEnabled() { /** * Set the kerberosEnabled property: Describe if a volume is KerberosEnabled. To be use with swagger version * 2020-05-01 or later. - * + * * @param kerberosEnabled the kerberosEnabled value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -575,9 +579,9 @@ public VolumeGroupVolumeProperties withKerberosEnabled(Boolean kerberosEnabled) } /** - * Get the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol or - * CIFS protocol. - * + * Get the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol + * or CIFS protocol. + * * @return the securityStyle value. */ public SecurityStyle securityStyle() { @@ -585,9 +589,9 @@ public SecurityStyle securityStyle() { } /** - * Set the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol or - * CIFS protocol. - * + * Set the securityStyle property: The security style of volume, default unix, defaults to ntfs for dual protocol + * or CIFS protocol. + * * @param securityStyle the securityStyle value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -602,7 +606,7 @@ public VolumeGroupVolumeProperties withSecurityStyle(SecurityStyle securityStyle /** * Get the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol * volume. To be used with swagger version 2020-08-01 or later. - * + * * @return the smbEncryption value. */ public Boolean smbEncryption() { @@ -612,7 +616,7 @@ public Boolean smbEncryption() { /** * Set the smbEncryption property: Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol * volume. To be used with swagger version 2020-08-01 or later. - * + * * @param smbEncryption the smbEncryption value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -626,9 +630,9 @@ public VolumeGroupVolumeProperties withSmbEncryption(Boolean smbEncryption) { /** * Get the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbAccessBasedEnumeration value. */ public SmbAccessBasedEnumeration smbAccessBasedEnumeration() { @@ -637,14 +641,14 @@ public SmbAccessBasedEnumeration smbAccessBasedEnumeration() { /** * Set the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbAccessBasedEnumeration the smbAccessBasedEnumeration value to set. * @return the VolumeGroupVolumeProperties object itself. */ - public VolumeGroupVolumeProperties withSmbAccessBasedEnumeration( - SmbAccessBasedEnumeration smbAccessBasedEnumeration) { + public VolumeGroupVolumeProperties + withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration smbAccessBasedEnumeration) { if (this.innerProperties() == null) { this.innerProperties = new VolumeProperties(); } @@ -654,9 +658,9 @@ public VolumeGroupVolumeProperties withSmbAccessBasedEnumeration( /** * Get the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbNonBrowsable value. */ public SmbNonBrowsable smbNonBrowsable() { @@ -665,9 +669,9 @@ public SmbNonBrowsable smbNonBrowsable() { /** * Set the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbNonBrowsable the smbNonBrowsable value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -682,7 +686,7 @@ public VolumeGroupVolumeProperties withSmbNonBrowsable(SmbNonBrowsable smbNonBro /** * Get the smbContinuouslyAvailable property: Enables continuously available share property for smb volume. Only * applicable for SMB volume. - * + * * @return the smbContinuouslyAvailable value. */ public Boolean smbContinuouslyAvailable() { @@ -692,7 +696,7 @@ public Boolean smbContinuouslyAvailable() { /** * Set the smbContinuouslyAvailable property: Enables continuously available share property for smb volume. Only * applicable for SMB volume. - * + * * @param smbContinuouslyAvailable the smbContinuouslyAvailable value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -707,7 +711,7 @@ public VolumeGroupVolumeProperties withSmbContinuouslyAvailable(Boolean smbConti /** * Get the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume and this will * be accepted as input only for manual qosType volume. - * + * * @return the throughputMibps value. */ public Float throughputMibps() { @@ -717,7 +721,7 @@ public Float throughputMibps() { /** * Set the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume and this will * be accepted as input only for manual qosType volume. - * + * * @param throughputMibps the throughputMibps value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -732,7 +736,7 @@ public VolumeGroupVolumeProperties withThroughputMibps(Float throughputMibps) { /** * Get the actualThroughputMibps property: Actual throughput in MiB/s for auto qosType volumes calculated based on * size and serviceLevel. - * + * * @return the actualThroughputMibps value. */ public Float actualThroughputMibps() { @@ -743,7 +747,7 @@ public Float actualThroughputMibps() { * Get the encryptionKeySource property: Source of key used to encrypt data in volume. Applicable if NetApp account * has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, * Microsoft.KeyVault'. - * + * * @return the encryptionKeySource value. */ public EncryptionKeySource encryptionKeySource() { @@ -754,7 +758,7 @@ public EncryptionKeySource encryptionKeySource() { * Set the encryptionKeySource property: Source of key used to encrypt data in volume. Applicable if NetApp account * has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, * Microsoft.KeyVault'. - * + * * @param encryptionKeySource the encryptionKeySource value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -769,7 +773,7 @@ public VolumeGroupVolumeProperties withEncryptionKeySource(EncryptionKeySource e /** * Get the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for KeyVault. It must * reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - * + * * @return the keyVaultPrivateEndpointResourceId value. */ public String keyVaultPrivateEndpointResourceId() { @@ -779,7 +783,7 @@ public String keyVaultPrivateEndpointResourceId() { /** * Set the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for KeyVault. It must * reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - * + * * @param keyVaultPrivateEndpointResourceId the keyVaultPrivateEndpointResourceId value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -793,7 +797,7 @@ public VolumeGroupVolumeProperties withKeyVaultPrivateEndpointResourceId(String /** * Get the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume. - * + * * @return the ldapEnabled value. */ public Boolean ldapEnabled() { @@ -802,7 +806,7 @@ public Boolean ldapEnabled() { /** * Set the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume. - * + * * @param ldapEnabled the ldapEnabled value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -816,7 +820,7 @@ public VolumeGroupVolumeProperties withLdapEnabled(Boolean ldapEnabled) { /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * + * * @return the coolAccess value. */ public Boolean coolAccess() { @@ -825,7 +829,7 @@ public Boolean coolAccess() { /** * Set the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * + * * @param coolAccess the coolAccess value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -840,7 +844,7 @@ public VolumeGroupVolumeProperties withCoolAccess(Boolean coolAccess) { /** * Get the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients * will be tiered. - * + * * @return the coolnessPeriod value. */ public Integer coolnessPeriod() { @@ -850,7 +854,7 @@ public Integer coolnessPeriod() { /** * Set the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients * will be tiered. - * + * * @param coolnessPeriod the coolnessPeriod value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -863,12 +867,14 @@ public VolumeGroupVolumeProperties withCoolnessPeriod(Integer coolnessPeriod) { } /** - * Get the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values - * for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy - * is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both - * sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage. - * + * Get the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior + * from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + * * @return the coolAccessRetrievalPolicy value. */ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { @@ -876,17 +882,19 @@ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { } /** - * Set the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values - * for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy - * is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both - * sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage. - * + * Set the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior + * from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + * * @param coolAccessRetrievalPolicy the coolAccessRetrievalPolicy value to set. * @return the VolumeGroupVolumeProperties object itself. */ - public VolumeGroupVolumeProperties withCoolAccessRetrievalPolicy( - CoolAccessRetrievalPolicy coolAccessRetrievalPolicy) { + public VolumeGroupVolumeProperties + withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy coolAccessRetrievalPolicy) { if (this.innerProperties() == null) { this.innerProperties = new VolumeProperties(); } @@ -900,7 +908,7 @@ public VolumeGroupVolumeProperties withCoolAccessRetrievalPolicy( * 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. - * + * * @return the unixPermissions value. */ public String unixPermissions() { @@ -913,7 +921,7 @@ public String unixPermissions() { * 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. - * + * * @param unixPermissions the unixPermissions value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -929,7 +937,7 @@ public VolumeGroupVolumeProperties withUnixPermissions(String unixPermissions) { * Get the cloneProgress property: When a volume is being restored from another volume's snapshot, will show the * percentage completion of this cloning process. When this value is empty/null there is no cloning process * currently happening on this volume. This value will update every 5 minutes during cloning. - * + * * @return the cloneProgress value. */ public Integer cloneProgress() { @@ -939,7 +947,7 @@ public Integer cloneProgress() { /** * Get the fileAccessLogs property: Flag indicating whether file access logs are enabled for the volume, based on * active diagnostic settings present on the volume. - * + * * @return the fileAccessLogs value. */ public FileAccessLogs fileAccessLogs() { @@ -948,9 +956,9 @@ public FileAccessLogs fileAccessLogs() { /** * Get the avsDataStore property: avsDataStore - * - *

Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - * + * + * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + * * @return the avsDataStore value. */ public AvsDataStore avsDataStore() { @@ -959,9 +967,9 @@ public AvsDataStore avsDataStore() { /** * Set the avsDataStore property: avsDataStore - * - *

Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. - * + * + * Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. + * * @param avsDataStore the avsDataStore value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -975,9 +983,9 @@ public VolumeGroupVolumeProperties withAvsDataStore(AvsDataStore avsDataStore) { /** * Get the dataStoreResourceId property: dataStoreResourceId - * - *

Data store resource unique identifier. - * + * + * Data store resource unique identifier. + * * @return the dataStoreResourceId value. */ public List dataStoreResourceId() { @@ -986,7 +994,7 @@ public List dataStoreResourceId() { /** * Get the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. - * + * * @return the isDefaultQuotaEnabled value. */ public Boolean isDefaultQuotaEnabled() { @@ -995,7 +1003,7 @@ public Boolean isDefaultQuotaEnabled() { /** * Set the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. - * + * * @param isDefaultQuotaEnabled the isDefaultQuotaEnabled value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -1010,7 +1018,7 @@ public VolumeGroupVolumeProperties withIsDefaultQuotaEnabled(Boolean isDefaultQu /** * Get the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, * the minimum value of 4 KiBs applies . - * + * * @return the defaultUserQuotaInKiBs value. */ public Long defaultUserQuotaInKiBs() { @@ -1020,7 +1028,7 @@ public Long defaultUserQuotaInKiBs() { /** * Set the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, * the minimum value of 4 KiBs applies . - * + * * @param defaultUserQuotaInKiBs the defaultUserQuotaInKiBs value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -1035,7 +1043,7 @@ public VolumeGroupVolumeProperties withDefaultUserQuotaInKiBs(Long defaultUserQu /** * Get the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is * set, the minimum value of 4 KiBs applies. - * + * * @return the defaultGroupQuotaInKiBs value. */ public Long defaultGroupQuotaInKiBs() { @@ -1045,7 +1053,7 @@ public Long defaultGroupQuotaInKiBs() { /** * Set the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is * set, the minimum value of 4 KiBs applies. - * + * * @param defaultGroupQuotaInKiBs the defaultGroupQuotaInKiBs value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -1060,7 +1068,7 @@ public VolumeGroupVolumeProperties withDefaultGroupQuotaInKiBs(Long defaultGroup /** * Get the maximumNumberOfFiles property: Maximum number of files allowed. Needs a service request in order to be * changed. Only allowed to be changed if volume quota is more than 4TiB. - * + * * @return the maximumNumberOfFiles value. */ public Long maximumNumberOfFiles() { @@ -1069,7 +1077,7 @@ public Long maximumNumberOfFiles() { /** * Get the volumeGroupName property: Volume Group Name. - * + * * @return the volumeGroupName value. */ public String volumeGroupName() { @@ -1077,8 +1085,9 @@ public String volumeGroupName() { } /** - * Get the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. - * + * Get the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume + * group. + * * @return the capacityPoolResourceId value. */ public String capacityPoolResourceId() { @@ -1086,8 +1095,9 @@ public String capacityPoolResourceId() { } /** - * Set the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume group. - * + * Set the capacityPoolResourceId property: Pool Resource Id used in case of creating a volume through volume + * group. + * * @param capacityPoolResourceId the capacityPoolResourceId value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -1101,7 +1111,7 @@ public VolumeGroupVolumeProperties withCapacityPoolResourceId(String capacityPoo /** * Get the proximityPlacementGroup property: Proximity placement group associated with the volume. - * + * * @return the proximityPlacementGroup value. */ public String proximityPlacementGroup() { @@ -1110,7 +1120,7 @@ public String proximityPlacementGroup() { /** * Set the proximityPlacementGroup property: Proximity placement group associated with the volume. - * + * * @param proximityPlacementGroup the proximityPlacementGroup value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -1124,7 +1134,7 @@ public VolumeGroupVolumeProperties withProximityPlacementGroup(String proximityP /** * Get the t2Network property: T2 network information. - * + * * @return the t2Network value. */ public String t2Network() { @@ -1134,7 +1144,7 @@ public String t2Network() { /** * Get the volumeSpecName property: Volume spec name is the application specific designation or identifier for the * particular volume in a volume group for e.g. data, log. - * + * * @return the volumeSpecName value. */ public String volumeSpecName() { @@ -1144,7 +1154,7 @@ public String volumeSpecName() { /** * Set the volumeSpecName property: Volume spec name is the application specific designation or identifier for the * particular volume in a volume group for e.g. data, log. - * + * * @param volumeSpecName the volumeSpecName value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -1159,7 +1169,7 @@ public VolumeGroupVolumeProperties withVolumeSpecName(String volumeSpecName) { /** * Get the encrypted property: Specifies if the volume is encrypted or not. Only available on volumes created or * updated after 2022-01-01. - * + * * @return the encrypted value. */ public Boolean encrypted() { @@ -1168,9 +1178,9 @@ public Boolean encrypted() { /** * Get the placementRules property: Volume placement rules - * - *

Application specific placement rules for the particular volume. - * + * + * Application specific placement rules for the particular volume. + * * @return the placementRules value. */ public List placementRules() { @@ -1179,9 +1189,9 @@ public List placementRules() { /** * Set the placementRules property: Volume placement rules - * - *

Application specific placement rules for the particular volume. - * + * + * Application specific placement rules for the particular volume. + * * @param placementRules the placementRules value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -1195,7 +1205,7 @@ public VolumeGroupVolumeProperties withPlacementRules(ListThe availability zone where the volume is provisioned. This refers to the logical availability zone where the + * + * The availability zone where the volume is provisioned. This refers to the logical availability zone where the * volume resides. - * + * * @return the provisionedAvailabilityZone value. */ public String provisionedAvailabilityZone() { @@ -1230,9 +1240,9 @@ public String provisionedAvailabilityZone() { /** * Get the isLargeVolume property: Is Large Volume - * - *

Specifies whether volume is a Large Volume or Regular Volume. - * + * + * Specifies whether volume is a Large Volume or Regular Volume. + * * @return the isLargeVolume value. */ public Boolean isLargeVolume() { @@ -1241,9 +1251,9 @@ public Boolean isLargeVolume() { /** * Set the isLargeVolume property: Is Large Volume - * - *

Specifies whether volume is a Large Volume or Regular Volume. - * + * + * Specifies whether volume is a Large Volume or Regular Volume. + * * @param isLargeVolume the isLargeVolume value to set. * @return the VolumeGroupVolumeProperties object itself. */ @@ -1257,9 +1267,9 @@ public VolumeGroupVolumeProperties withIsLargeVolume(Boolean isLargeVolume) { /** * Get the originatingResourceId property: Originating Resource Id - * - *

Id of the snapshot or backup that the volume is restored from. - * + * + * Id of the snapshot or backup that the volume is restored from. + * * @return the originatingResourceId value. */ public String originatingResourceId() { @@ -1268,15 +1278,13 @@ public String originatingResourceId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model VolumeGroupVolumeProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property innerProperties in model VolumeGroupVolumeProperties")); } else { innerProperties().validate(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java index 89e704e52f7c..325c676be9a6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of VolumeGroups. */ +/** + * Resource collection API of VolumeGroups. + */ public interface VolumeGroups { /** * Describe all volume groups - * - *

List all volume groups for given account. - * + * + * List all volume groups for given account. + * * @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. @@ -26,9 +28,9 @@ public interface VolumeGroups { /** * Describe all volume groups - * - *

List all volume groups for given account. - * + * + * List all volume groups for given account. + * * @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. @@ -41,9 +43,9 @@ public interface VolumeGroups { /** * Describe a Volume Group - * - *

Get details of the specified volume group. - * + * + * Get details of the specified volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -53,14 +55,14 @@ public interface VolumeGroups { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return details of the specified volume group along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String accountName, String volumeGroupName, Context context); + Response getWithResponse(String resourceGroupName, String accountName, String volumeGroupName, + Context context); /** * Describe a Volume Group - * - *

Get details of the specified volume group. - * + * + * Get details of the specified volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -73,9 +75,9 @@ Response getWithResponse( /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -87,9 +89,9 @@ Response getWithResponse( /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account. * @param volumeGroupName The name of the volumeGroup. @@ -102,9 +104,9 @@ Response getWithResponse( /** * Describe a Volume Group - * - *

Get details of the specified volume group. - * + * + * Get details of the specified volume group. + * * @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. @@ -115,9 +117,9 @@ Response getWithResponse( /** * Describe a Volume Group - * - *

Get details of the specified volume group. - * + * + * Get details of the specified volume group. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -129,9 +131,9 @@ Response getWithResponse( /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @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. @@ -141,9 +143,9 @@ Response getWithResponse( /** * Delete a volume group - * - *

Delete the specified volume group only if there are no volumes under volume group. - * + * + * Delete the specified volume group only if there are no volumes under volume group. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -154,7 +156,7 @@ Response getWithResponse( /** * Begins definition for a new VolumeGroupDetails resource. - * + * * @param name resource name. * @return the first stage of the new VolumeGroupDetails definition. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java index cac47ebab0c5..b7b7c56f2584 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of volume resources. */ +/** + * List of volume resources. + */ @Fluent public final class VolumeList { /* @@ -24,13 +26,15 @@ public final class VolumeList { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of VolumeList class. */ + /** + * Creates an instance of VolumeList class. + */ public VolumeList() { } /** * Get the value property: List of volumes. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Set the value property: List of volumes. - * + * * @param value the value value to set. * @return the VolumeList object itself. */ @@ -50,7 +54,7 @@ public VolumeList withValue(List value) { /** * Get the nextLink property: URL to get the next set of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -59,7 +63,7 @@ public String nextLink() { /** * Set the nextLink property: URL to get the next set of results. - * + * * @param nextLink the nextLink value to set. * @return the VolumeList object itself. */ @@ -70,7 +74,7 @@ public VolumeList withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java index 6bd18e8eb488..48209e674095 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Volume patch resource. */ +/** + * Volume patch resource. + */ @Fluent public final class VolumePatch extends Resource { /* @@ -19,27 +21,33 @@ public final class VolumePatch extends Resource { @JsonProperty(value = "properties") private VolumePatchProperties innerProperties; - /** Creates an instance of VolumePatch class. */ + /** + * Creates an instance of VolumePatch class. + */ public VolumePatch() { } /** * Get the innerProperties property: Patchable volume properties. - * + * * @return the innerProperties value. */ private VolumePatchProperties innerProperties() { return this.innerProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public VolumePatch withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public VolumePatch withTags(Map tags) { super.withTags(tags); @@ -48,9 +56,9 @@ public VolumePatch withTags(Map tags) { /** * Get the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @return the serviceLevel value. */ public ServiceLevel serviceLevel() { @@ -59,9 +67,9 @@ public ServiceLevel serviceLevel() { /** * Set the serviceLevel property: serviceLevel - * - *

The service level of the file system. - * + * + * The service level of the file system. + * * @param serviceLevel the serviceLevel value to set. * @return the VolumePatch object itself. */ @@ -75,11 +83,11 @@ public VolumePatch withServiceLevel(ServiceLevel serviceLevel) { /** * Get the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. - * + * * @return the usageThreshold value. */ public Long usageThreshold() { @@ -88,11 +96,11 @@ public Long usageThreshold() { /** * Set the usageThreshold property: usageThreshold - * - *

Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum + * + * Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum * size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. * Specified in bytes. - * + * * @param usageThreshold the usageThreshold value to set. * @return the VolumePatch object itself. */ @@ -106,9 +114,9 @@ public VolumePatch withUsageThreshold(Long usageThreshold) { /** * Get the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @return the exportPolicy value. */ public VolumePatchPropertiesExportPolicy exportPolicy() { @@ -117,9 +125,9 @@ public VolumePatchPropertiesExportPolicy exportPolicy() { /** * Set the exportPolicy property: exportPolicy - * - *

Set of export policy rules. - * + * + * Set of export policy rules. + * * @param exportPolicy the exportPolicy value to set. * @return the VolumePatch object itself. */ @@ -134,7 +142,7 @@ public VolumePatch withExportPolicy(VolumePatchPropertiesExportPolicy exportPoli /** * Get the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume and this will * be accepted as input only for manual qosType volume. - * + * * @return the throughputMibps value. */ public Float throughputMibps() { @@ -144,7 +152,7 @@ public Float throughputMibps() { /** * Set the throughputMibps property: Maximum throughput in MiB/s that can be achieved by this volume and this will * be accepted as input only for manual qosType volume. - * + * * @param throughputMibps the throughputMibps value to set. * @return the VolumePatch object itself. */ @@ -158,9 +166,9 @@ public VolumePatch withThroughputMibps(Float throughputMibps) { /** * Get the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @return the dataProtection value. */ public VolumePatchPropertiesDataProtection dataProtection() { @@ -169,9 +177,9 @@ public VolumePatchPropertiesDataProtection dataProtection() { /** * Set the dataProtection property: DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. - * + * + * DataProtection type volumes include an object containing details of the replication. + * * @param dataProtection the dataProtection value to set. * @return the VolumePatch object itself. */ @@ -185,7 +193,7 @@ public VolumePatch withDataProtection(VolumePatchPropertiesDataProtection dataPr /** * Get the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. - * + * * @return the isDefaultQuotaEnabled value. */ public Boolean isDefaultQuotaEnabled() { @@ -194,7 +202,7 @@ public Boolean isDefaultQuotaEnabled() { /** * Set the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume. - * + * * @param isDefaultQuotaEnabled the isDefaultQuotaEnabled value to set. * @return the VolumePatch object itself. */ @@ -209,7 +217,7 @@ public VolumePatch withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled) { /** * Get the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, * the minimum value of 4 KiBs applies . - * + * * @return the defaultUserQuotaInKiBs value. */ public Long defaultUserQuotaInKiBs() { @@ -219,7 +227,7 @@ public Long defaultUserQuotaInKiBs() { /** * Set the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, * the minimum value of 4 KiBs applies . - * + * * @param defaultUserQuotaInKiBs the defaultUserQuotaInKiBs value to set. * @return the VolumePatch object itself. */ @@ -234,7 +242,7 @@ public VolumePatch withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs) { /** * Get the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is * set, the minimum value of 4 KiBs applies. - * + * * @return the defaultGroupQuotaInKiBs value. */ public Long defaultGroupQuotaInKiBs() { @@ -244,7 +252,7 @@ public Long defaultGroupQuotaInKiBs() { /** * Set the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is * set, the minimum value of 4 KiBs applies. - * + * * @param defaultGroupQuotaInKiBs the defaultGroupQuotaInKiBs value to set. * @return the VolumePatch object itself. */ @@ -262,7 +270,7 @@ public VolumePatch withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs) { * 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. - * + * * @return the unixPermissions value. */ public String unixPermissions() { @@ -275,7 +283,7 @@ public String unixPermissions() { * 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. - * + * * @param unixPermissions the unixPermissions value to set. * @return the VolumePatch object itself. */ @@ -289,7 +297,7 @@ public VolumePatch withUnixPermissions(String unixPermissions) { /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * + * * @return the coolAccess value. */ public Boolean coolAccess() { @@ -298,7 +306,7 @@ public Boolean coolAccess() { /** * Set the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. - * + * * @param coolAccess the coolAccess value to set. * @return the VolumePatch object itself. */ @@ -313,7 +321,7 @@ public VolumePatch withCoolAccess(Boolean coolAccess) { /** * Get the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients * will be tiered. - * + * * @return the coolnessPeriod value. */ public Integer coolnessPeriod() { @@ -323,7 +331,7 @@ public Integer coolnessPeriod() { /** * Set the coolnessPeriod property: Specifies the number of days after which data that is not accessed by clients * will be tiered. - * + * * @param coolnessPeriod the coolnessPeriod value to set. * @return the VolumePatch object itself. */ @@ -336,12 +344,14 @@ public VolumePatch withCoolnessPeriod(Integer coolnessPeriod) { } /** - * Get the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values - * for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy - * is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both - * sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage. - * + * Get the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior + * from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + * * @return the coolAccessRetrievalPolicy value. */ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { @@ -349,12 +359,14 @@ public CoolAccessRetrievalPolicy coolAccessRetrievalPolicy() { } /** - * Set the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior from - * the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values - * for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy - * is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both - * sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage. - * + * Set the coolAccessRetrievalPolicy property: coolAccessRetrievalPolicy determines the data retrieval behavior + * from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible + * values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random + * reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + * * @param coolAccessRetrievalPolicy the coolAccessRetrievalPolicy value to set. * @return the VolumePatch object itself. */ @@ -369,7 +381,7 @@ public VolumePatch withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy coolA /** * 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. - * + * * @return the snapshotDirectoryVisible value. */ public Boolean snapshotDirectoryVisible() { @@ -379,7 +391,7 @@ public Boolean snapshotDirectoryVisible() { /** * Set 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. - * + * * @param snapshotDirectoryVisible the snapshotDirectoryVisible value to set. * @return the VolumePatch object itself. */ @@ -393,9 +405,9 @@ public VolumePatch withSnapshotDirectoryVisible(Boolean snapshotDirectoryVisible /** * Get the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbAccessBasedEnumeration value. */ public SmbAccessBasedEnumeration smbAccessBasedEnumeration() { @@ -404,9 +416,9 @@ public SmbAccessBasedEnumeration smbAccessBasedEnumeration() { /** * Set the smbAccessBasedEnumeration property: smbAccessBasedEnumeration - * - *

Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbAccessBasedEnumeration the smbAccessBasedEnumeration value to set. * @return the VolumePatch object itself. */ @@ -420,9 +432,9 @@ public VolumePatch withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration smbAc /** * Get the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @return the smbNonBrowsable value. */ public SmbNonBrowsable smbNonBrowsable() { @@ -431,9 +443,9 @@ public SmbNonBrowsable smbNonBrowsable() { /** * Set the smbNonBrowsable property: smbNonBrowsable - * - *

Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. - * + * + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. + * * @param smbNonBrowsable the smbNonBrowsable value to set. * @return the VolumePatch object itself. */ @@ -447,7 +459,7 @@ public VolumePatch withSmbNonBrowsable(SmbNonBrowsable smbNonBrowsable) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java index 2e74b26ae606..4c88558e735d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java @@ -9,8 +9,8 @@ /** * DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. + * + * DataProtection type volumes include an object containing details of the replication. */ @Fluent public final class VolumePatchPropertiesDataProtection { @@ -20,13 +20,15 @@ public final class VolumePatchPropertiesDataProtection { @JsonProperty(value = "snapshot") private VolumeSnapshotProperties snapshot; - /** Creates an instance of VolumePatchPropertiesDataProtection class. */ + /** + * Creates an instance of VolumePatchPropertiesDataProtection class. + */ public VolumePatchPropertiesDataProtection() { } /** * Get the snapshot property: Snapshot properties. - * + * * @return the snapshot value. */ public VolumeSnapshotProperties snapshot() { @@ -35,7 +37,7 @@ public VolumeSnapshotProperties snapshot() { /** * Set the snapshot property: Snapshot properties. - * + * * @param snapshot the snapshot value to set. * @return the VolumePatchPropertiesDataProtection object itself. */ @@ -46,7 +48,7 @@ public VolumePatchPropertiesDataProtection withSnapshot(VolumeSnapshotProperties /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java index 066fc45c5bb0..80f7fab15fde 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java @@ -10,8 +10,8 @@ /** * exportPolicy - * - *

Set of export policy rules. + * + * Set of export policy rules. */ @Fluent public final class VolumePatchPropertiesExportPolicy { @@ -21,13 +21,15 @@ public final class VolumePatchPropertiesExportPolicy { @JsonProperty(value = "rules") private List rules; - /** Creates an instance of VolumePatchPropertiesExportPolicy class. */ + /** + * Creates an instance of VolumePatchPropertiesExportPolicy class. + */ public VolumePatchPropertiesExportPolicy() { } /** * Get the rules property: Export policy rule. - * + * * @return the rules value. */ public List rules() { @@ -36,7 +38,7 @@ public List rules() { /** * Set the rules property: Export policy rule. - * + * * @param rules the rules value to set. * @return the VolumePatchPropertiesExportPolicy object itself. */ @@ -47,7 +49,7 @@ public VolumePatchPropertiesExportPolicy withRules(List rules) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java index f0fd9a2c54d4..81555a292610 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java @@ -9,8 +9,8 @@ /** * DataProtection - * - *

DataProtection type volumes include an object containing details of the replication. + * + * DataProtection type volumes include an object containing details of the replication. */ @Fluent public final class VolumePropertiesDataProtection { @@ -32,13 +32,15 @@ public final class VolumePropertiesDataProtection { @JsonProperty(value = "volumeRelocation") private VolumeRelocationProperties volumeRelocation; - /** Creates an instance of VolumePropertiesDataProtection class. */ + /** + * Creates an instance of VolumePropertiesDataProtection class. + */ public VolumePropertiesDataProtection() { } /** * Get the replication property: Replication properties. - * + * * @return the replication value. */ public ReplicationObject replication() { @@ -47,7 +49,7 @@ public ReplicationObject replication() { /** * Set the replication property: Replication properties. - * + * * @param replication the replication value to set. * @return the VolumePropertiesDataProtection object itself. */ @@ -58,7 +60,7 @@ public VolumePropertiesDataProtection withReplication(ReplicationObject replicat /** * Get the snapshot property: Snapshot properties. - * + * * @return the snapshot value. */ public VolumeSnapshotProperties snapshot() { @@ -67,7 +69,7 @@ public VolumeSnapshotProperties snapshot() { /** * Set the snapshot property: Snapshot properties. - * + * * @param snapshot the snapshot value to set. * @return the VolumePropertiesDataProtection object itself. */ @@ -78,7 +80,7 @@ public VolumePropertiesDataProtection withSnapshot(VolumeSnapshotProperties snap /** * Get the volumeRelocation property: VolumeRelocation properties. - * + * * @return the volumeRelocation value. */ public VolumeRelocationProperties volumeRelocation() { @@ -87,7 +89,7 @@ public VolumeRelocationProperties volumeRelocation() { /** * Set the volumeRelocation property: VolumeRelocation properties. - * + * * @param volumeRelocation the volumeRelocation value to set. * @return the VolumePropertiesDataProtection object itself. */ @@ -98,7 +100,7 @@ public VolumePropertiesDataProtection withVolumeRelocation(VolumeRelocationPrope /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java index 66a5bddad049..21fc368fd3e7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java @@ -10,8 +10,8 @@ /** * exportPolicy - * - *

Set of export policy rules. + * + * Set of export policy rules. */ @Fluent public final class VolumePropertiesExportPolicy { @@ -21,13 +21,15 @@ public final class VolumePropertiesExportPolicy { @JsonProperty(value = "rules") private List rules; - /** Creates an instance of VolumePropertiesExportPolicy class. */ + /** + * Creates an instance of VolumePropertiesExportPolicy class. + */ public VolumePropertiesExportPolicy() { } /** * Get the rules property: Export policy rule. - * + * * @return the rules value. */ public List rules() { @@ -36,7 +38,7 @@ public List rules() { /** * Set the rules property: Export policy rule. - * + * * @param rules the rules value to set. * @return the VolumePropertiesExportPolicy object itself. */ @@ -47,7 +49,7 @@ public VolumePropertiesExportPolicy withRules(List rules) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java index b8a2d832f44f..ea6cb4128305 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java @@ -10,69 +10,71 @@ import com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner; import java.util.Map; -/** An immutable client-side representation of VolumeQuotaRule. */ +/** + * An immutable client-side representation of VolumeQuotaRule. + */ public interface VolumeQuotaRule { /** * 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 location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called. - * + * * @return the provisioningState value. */ ProvisioningState provisioningState(); /** * Gets the quotaSizeInKiBs property: Size of quota. - * + * * @return the quotaSizeInKiBs value. */ Long quotaSizeInKiBs(); /** * Gets the quotaType property: quotaType - * - *

Type of quota. - * + * + * Type of quota. + * * @return the quotaType value. */ Type quotaType(); @@ -81,58 +83,63 @@ public interface VolumeQuotaRule { * Gets 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. */ String quotaTarget(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * 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.VolumeQuotaRuleInner object. - * + * * @return the inner object. */ VolumeQuotaRuleInner innerModel(); - /** The entirety of the VolumeQuotaRule definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithCreate { + /** + * The entirety of the VolumeQuotaRule definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The VolumeQuotaRule definition stages. */ + /** + * The VolumeQuotaRule definition stages. + */ interface DefinitionStages { - /** The first stage of the VolumeQuotaRule definition. */ + /** + * The first stage of the VolumeQuotaRule definition. + */ interface Blank extends WithLocation { } - /** The stage of the VolumeQuotaRule definition allowing to specify location. */ + /** + * The stage of the VolumeQuotaRule definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -140,99 +147,107 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the VolumeQuotaRule definition allowing to specify parent resource. */ + /** + * The stage of the VolumeQuotaRule 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); + WithCreate withExistingVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); } /** * The stage of the VolumeQuotaRule 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.WithQuotaSizeInKiBs, - DefinitionStages.WithQuotaType, - DefinitionStages.WithQuotaTarget { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithQuotaSizeInKiBs, + DefinitionStages.WithQuotaType, DefinitionStages.WithQuotaTarget { /** * Executes the create request. - * + * * @return the created resource. */ VolumeQuotaRule create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ VolumeQuotaRule create(Context context); } - /** The stage of the VolumeQuotaRule definition allowing to specify tags. */ + /** + * The stage of the VolumeQuotaRule definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the VolumeQuotaRule definition allowing to specify quotaSizeInKiBs. */ + /** + * The stage of the VolumeQuotaRule definition allowing to specify quotaSizeInKiBs. + */ interface WithQuotaSizeInKiBs { /** * Specifies the quotaSizeInKiBs property: Size of quota. - * + * * @param quotaSizeInKiBs Size of quota. * @return the next definition stage. */ WithCreate withQuotaSizeInKiBs(Long quotaSizeInKiBs); } - /** The stage of the VolumeQuotaRule definition allowing to specify quotaType. */ + /** + * The stage of the VolumeQuotaRule definition allowing to specify quotaType. + */ interface WithQuotaType { /** * Specifies the quotaType property: quotaType - * - *

Type of quota. - * + * + * Type of quota. + * * @param quotaType quotaType - *

Type of quota. + * + * Type of quota. * @return the next definition stage. */ WithCreate withQuotaType(Type quotaType); } - /** The stage of the VolumeQuotaRule definition allowing to specify quotaTarget. */ + /** + * The stage of the VolumeQuotaRule definition allowing to specify quotaTarget. + */ interface WithQuotaTarget { /** * Specifies 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 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>. + * 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 next definition stage. */ WithCreate withQuotaTarget(String quotaTarget); @@ -241,47 +256,55 @@ interface WithQuotaTarget { /** * Begins update for the VolumeQuotaRule resource. - * + * * @return the stage of resource update. */ VolumeQuotaRule.Update update(); - /** The template for VolumeQuotaRule update. */ + /** + * The template for VolumeQuotaRule update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithQuotaSizeInKiBs { /** * Executes the update request. - * + * * @return the updated resource. */ VolumeQuotaRule apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ VolumeQuotaRule apply(Context context); } - /** The VolumeQuotaRule update stages. */ + /** + * The VolumeQuotaRule update stages. + */ interface UpdateStages { - /** The stage of the VolumeQuotaRule update allowing to specify tags. */ + /** + * The stage of the VolumeQuotaRule update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags. - * + * * @param tags Resource tags. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the VolumeQuotaRule update allowing to specify quotaSizeInKiBs. */ + /** + * The stage of the VolumeQuotaRule update allowing to specify quotaSizeInKiBs. + */ interface WithQuotaSizeInKiBs { /** * Specifies the quotaSizeInKiBs property: Size of quota. - * + * * @param quotaSizeInKiBs Size of quota. * @return the next definition stage. */ @@ -291,14 +314,14 @@ interface WithQuotaSizeInKiBs { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ VolumeQuotaRule refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java index fe86c74ffbdd..da5c81e146a8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Patchable Quota Rule of a Volume. */ +/** + * Patchable Quota Rule of a Volume. + */ @Fluent public final class VolumeQuotaRulePatch { /* @@ -26,13 +28,15 @@ public final class VolumeQuotaRulePatch { @JsonProperty(value = "properties") private VolumeQuotaRulesProperties innerProperties; - /** Creates an instance of VolumeQuotaRulePatch class. */ + /** + * Creates an instance of VolumeQuotaRulePatch class. + */ public VolumeQuotaRulePatch() { } /** * Get the tags property: Resource tags. - * + * * @return the tags value. */ public Map tags() { @@ -41,7 +45,7 @@ public Map tags() { /** * Set the tags property: Resource tags. - * + * * @param tags the tags value to set. * @return the VolumeQuotaRulePatch object itself. */ @@ -52,7 +56,7 @@ public VolumeQuotaRulePatch withTags(Map tags) { /** * Get the innerProperties property: Volume Quota Rule Properties. - * + * * @return the innerProperties value. */ private VolumeQuotaRulesProperties innerProperties() { @@ -61,7 +65,7 @@ private VolumeQuotaRulesProperties innerProperties() { /** * Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -70,7 +74,7 @@ public ProvisioningState provisioningState() { /** * Get the quotaSizeInKiBs property: Size of quota. - * + * * @return the quotaSizeInKiBs value. */ public Long quotaSizeInKiBs() { @@ -79,7 +83,7 @@ public Long quotaSizeInKiBs() { /** * Set the quotaSizeInKiBs property: Size of quota. - * + * * @param quotaSizeInKiBs the quotaSizeInKiBs value to set. * @return the VolumeQuotaRulePatch object itself. */ @@ -93,9 +97,9 @@ public VolumeQuotaRulePatch withQuotaSizeInKiBs(Long quotaSizeInKiBs) { /** * Get the quotaType property: quotaType - * - *

Type of quota. - * + * + * Type of quota. + * * @return the quotaType value. */ public Type quotaType() { @@ -104,9 +108,9 @@ public Type quotaType() { /** * Set the quotaType property: quotaType - * - *

Type of quota. - * + * + * Type of quota. + * * @param quotaType the quotaType value to set. * @return the VolumeQuotaRulePatch object itself. */ @@ -122,7 +126,7 @@ public VolumeQuotaRulePatch withQuotaType(Type quotaType) { * 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() { @@ -133,7 +137,7 @@ public String 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 VolumeQuotaRulePatch object itself. */ @@ -147,7 +151,7 @@ public VolumeQuotaRulePatch withQuotaTarget(String quotaTarget) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java index 0df22eca75c7..e3cd572f19fb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of VolumeQuotaRules. */ +/** + * Resource collection API of VolumeQuotaRules. + */ public interface VolumeQuotaRules { /** * Get all quota rules for a volume - * - *

List all quota rules associated with the volume. - * + * + * List all quota rules associated with 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. @@ -24,14 +26,14 @@ public interface VolumeQuotaRules { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}. */ - PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName); /** * Get all quota rules for a volume - * - *

List all quota rules associated with the volume. - * + * + * List all quota rules associated with 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. @@ -42,14 +44,14 @@ PagedIterable listByVolume( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of Volume Quota Rules as paginated response with {@link PagedIterable}. */ - PagedIterable listByVolume( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + PagedIterable listByVolume(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); /** * Describe a quota rule - * - *

Get details of the specified quota rule. - * + * + * Get details of the specified quota rule. + * * @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. @@ -61,19 +63,14 @@ PagedIterable listByVolume( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return details of the specified quota rule along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - String volumeQuotaRuleName, - Context context); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, + String volumeName, String volumeQuotaRuleName, Context context); /** * Describe a quota rule - * - *

Get details of the specified quota rule. - * + * + * Get details of the specified quota rule. + * * @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. @@ -84,14 +81,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return details of the specified quota rule. */ - VolumeQuotaRule get( - String resourceGroupName, String accountName, String poolName, String volumeName, String volumeQuotaRuleName); + VolumeQuotaRule get(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName); /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -101,14 +98,14 @@ VolumeQuotaRule get( * @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 volumeQuotaRuleName); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName); /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -119,19 +116,14 @@ void delete( * @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 volumeQuotaRuleName, - Context context); + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, + String volumeQuotaRuleName, Context context); /** * Describe a quota rule - * - *

Get details of the specified quota rule. - * + * + * Get details of the specified quota rule. + * * @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. @@ -142,9 +134,9 @@ void delete( /** * Describe a quota rule - * - *

Get details of the specified quota rule. - * + * + * Get details of the specified quota rule. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -156,9 +148,9 @@ void delete( /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @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. @@ -168,9 +160,9 @@ void delete( /** * Delete a quota rule - * - *

Delete quota rule. - * + * + * Delete quota rule. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -181,7 +173,7 @@ void delete( /** * Begins definition for a new VolumeQuotaRule resource. - * + * * @param name resource name. * @return the first stage of the new VolumeQuotaRule definition. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulesList.java index 81431815717e..9d936e759001 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulesList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of Volume Quota Rules. */ +/** + * List of Volume Quota Rules. + */ @Fluent public final class VolumeQuotaRulesList { /* @@ -18,13 +20,15 @@ public final class VolumeQuotaRulesList { @JsonProperty(value = "value") private List value; - /** Creates an instance of VolumeQuotaRulesList class. */ + /** + * Creates an instance of VolumeQuotaRulesList class. + */ public VolumeQuotaRulesList() { } /** * Get the value property: A list of Volume Quota Rules. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: A list of Volume Quota Rules. - * + * * @param value the value value to set. * @return the VolumeQuotaRulesList object itself. */ @@ -44,7 +48,7 @@ public VolumeQuotaRulesList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java index a1f227fb7e5b..7593772c9e66 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Volume relocation properties. */ +/** + * Volume relocation properties. + */ @Fluent public final class VolumeRelocationProperties { /* @@ -22,13 +24,15 @@ public final class VolumeRelocationProperties { @JsonProperty(value = "readyToBeFinalized", access = JsonProperty.Access.WRITE_ONLY) private Boolean readyToBeFinalized; - /** Creates an instance of VolumeRelocationProperties class. */ + /** + * Creates an instance of VolumeRelocationProperties class. + */ public VolumeRelocationProperties() { } /** * Get the relocationRequested property: Has relocation been requested for this volume. - * + * * @return the relocationRequested value. */ public Boolean relocationRequested() { @@ -37,7 +41,7 @@ public Boolean relocationRequested() { /** * Set the relocationRequested property: Has relocation been requested for this volume. - * + * * @param relocationRequested the relocationRequested value to set. * @return the VolumeRelocationProperties object itself. */ @@ -48,7 +52,7 @@ public VolumeRelocationProperties withRelocationRequested(Boolean relocationRequ /** * Get the readyToBeFinalized property: Has relocation finished and is ready to be cleaned up. - * + * * @return the readyToBeFinalized value. */ public Boolean readyToBeFinalized() { @@ -57,7 +61,7 @@ public Boolean readyToBeFinalized() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java index fa07ea975020..4add05dcd9dd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** revert a volume to the snapshot. */ +/** + * revert a volume to the snapshot. + */ @Fluent public final class VolumeRevert { /* @@ -16,13 +18,15 @@ public final class VolumeRevert { @JsonProperty(value = "snapshotId") private String snapshotId; - /** Creates an instance of VolumeRevert class. */ + /** + * Creates an instance of VolumeRevert class. + */ public VolumeRevert() { } /** * Get the snapshotId property: Resource id of the snapshot. - * + * * @return the snapshotId value. */ public String snapshotId() { @@ -31,7 +35,7 @@ public String snapshotId() { /** * Set the snapshotId property: Resource id of the snapshot. - * + * * @param snapshotId the snapshotId value to set. * @return the VolumeRevert object itself. */ @@ -42,7 +46,7 @@ public VolumeRevert withSnapshotId(String snapshotId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java index f2c646e31dd2..058963bc3561 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Volume Snapshot Properties. */ +/** + * Volume Snapshot Properties. + */ @Fluent public final class VolumeSnapshotProperties { /* @@ -16,13 +18,15 @@ public final class VolumeSnapshotProperties { @JsonProperty(value = "snapshotPolicyId") private String snapshotPolicyId; - /** Creates an instance of VolumeSnapshotProperties class. */ + /** + * Creates an instance of VolumeSnapshotProperties class. + */ public VolumeSnapshotProperties() { } /** * Get the snapshotPolicyId property: Snapshot Policy ResourceId. - * + * * @return the snapshotPolicyId value. */ public String snapshotPolicyId() { @@ -31,7 +35,7 @@ public String snapshotPolicyId() { /** * Set the snapshotPolicyId property: Snapshot Policy ResourceId. - * + * * @param snapshotPolicyId the snapshotPolicyId value to set. * @return the VolumeSnapshotProperties object itself. */ @@ -42,7 +46,7 @@ public VolumeSnapshotProperties withSnapshotPolicyId(String snapshotPolicyId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java index 23f1ef5764d7..fd5b15f1c059 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java @@ -10,25 +10,33 @@ /** * Storage to Network Proximity - * - *

Provides storage to network proximity information for the volume. + * + * Provides storage to network proximity information for the volume. */ public final class VolumeStorageToNetworkProximity extends ExpandableStringEnum { - /** Static value Default for VolumeStorageToNetworkProximity. */ + /** + * Static value Default for VolumeStorageToNetworkProximity. + */ public static final VolumeStorageToNetworkProximity DEFAULT = fromString("Default"); - /** Static value T1 for VolumeStorageToNetworkProximity. */ + /** + * Static value T1 for VolumeStorageToNetworkProximity. + */ public static final VolumeStorageToNetworkProximity T1 = fromString("T1"); - /** Static value T2 for VolumeStorageToNetworkProximity. */ + /** + * Static value T2 for VolumeStorageToNetworkProximity. + */ public static final VolumeStorageToNetworkProximity T2 = fromString("T2"); - /** Static value AcrossT2 for VolumeStorageToNetworkProximity. */ + /** + * Static value AcrossT2 for VolumeStorageToNetworkProximity. + */ public static final VolumeStorageToNetworkProximity ACROSS_T2 = fromString("AcrossT2"); /** * Creates a new instance of VolumeStorageToNetworkProximity value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -37,7 +45,7 @@ public VolumeStorageToNetworkProximity() { /** * Creates or finds a VolumeStorageToNetworkProximity from its string representation. - * + * * @param name a name to look for. * @return the corresponding VolumeStorageToNetworkProximity. */ @@ -48,7 +56,7 @@ public static VolumeStorageToNetworkProximity fromString(String name) { /** * Gets known VolumeStorageToNetworkProximity values. - * + * * @return known VolumeStorageToNetworkProximity values. */ public static Collection values() { 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 19e28260ec24..94599e770d46 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 @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Volumes. */ +/** + * Resource collection API of Volumes. + */ public interface Volumes { /** * Describe all volumes - * - *

List all volumes within the capacity pool. - * + * + * List all volumes within the capacity pool. + * * @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. @@ -27,9 +29,9 @@ public interface Volumes { /** * Describe all volumes - * - *

List all volumes within the capacity pool. - * + * + * List all volumes within the capacity pool. + * * @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. @@ -43,9 +45,9 @@ public interface Volumes { /** * Describe a volume - * - *

Get the details of the specified volume. - * + * + * Get the details of the specified 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. @@ -56,14 +58,14 @@ public interface Volumes { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the details of the specified volume along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + Response getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Describe a volume - * - *

Get the details of the specified volume. - * + * + * Get the details of the specified 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. @@ -77,9 +79,9 @@ Response getWithResponse( /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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. @@ -92,33 +94,28 @@ Response getWithResponse( /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified 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 forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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 delete( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - Boolean forceDelete, + void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Boolean forceDelete, Context context); /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -132,9 +129,9 @@ void delete( /** * Populate Availability Zone - * - *

This operation will populate availability zone information for a volume. - * + * + * This operation will populate availability zone information for a 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. @@ -145,14 +142,14 @@ void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume resource. */ - Volume populateAvailabilityZone( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + Volume populateAvailabilityZone(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -166,9 +163,9 @@ Volume populateAvailabilityZone( /** * Revert a volume to one of its snapshots - * - *

Revert a volume to the snapshot specified in the body. - * + * + * Revert a volume to the snapshot specified in the body. + * * @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. @@ -179,19 +176,14 @@ Volume populateAvailabilityZone( * @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 revert( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - VolumeRevert body, + void revert(String resourceGroupName, String accountName, String poolName, String volumeName, VolumeRevert body, Context context); /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -204,9 +196,9 @@ void revert( /** * Reset cifs password - * - *

Reset cifs password from volume. - * + * + * Reset cifs password from 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. @@ -216,14 +208,14 @@ void revert( * @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 resetCifsPassword( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void resetCifsPassword(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -236,9 +228,9 @@ void resetCifsPassword( /** * Break file locks - * - *

Break all the file locks on a volume. - * + * + * Break all the file locks on a 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. @@ -249,19 +241,14 @@ void resetCifsPassword( * @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 breakFileLocks( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakFileLocksRequest body, - Context context); + void breakFileLocks(String resourceGroupName, String accountName, String poolName, String volumeName, + BreakFileLocksRequest body, Context context); /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -272,18 +259,14 @@ void breakFileLocks( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return group Id list for Ldap user. */ - GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body); + GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, + String poolName, String volumeName, GetGroupIdListForLdapUserRequest body); /** * Get Group Id List for LDAP User - * - *

Returns the list of group Ids for a specific LDAP User. - * + * + * Returns the list of group Ids for a specific LDAP User. + * * @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. @@ -295,19 +278,14 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return group Id list for Ldap user. */ - GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - GetGroupIdListForLdapUserRequest body, - Context context); + GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser(String resourceGroupName, String accountName, + String poolName, String volumeName, GetGroupIdListForLdapUserRequest body, Context context); /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -320,9 +298,9 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( /** * Break volume replication - * - *

Break the replication connection on the destination volume. - * + * + * Break the replication connection on the destination 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. @@ -333,20 +311,15 @@ GetGroupIdListForLdapUserResponse listGetGroupIdListForLdapUser( * @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 breakReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - BreakReplicationRequest body, - Context context); + void breakReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + BreakReplicationRequest body, Context context); /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -356,19 +329,15 @@ void breakReplication( * @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 reestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, + void reestablishReplication(String resourceGroupName, String accountName, String poolName, String volumeName, ReestablishReplicationRequest body); /** * Re-establish volume replication - * - *

Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based + * + * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based * snapshots. - * + * * @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. @@ -379,19 +348,14 @@ void reestablishReplication( * @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 reestablishReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - ReestablishReplicationRequest body, - Context context); + void reestablishReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + ReestablishReplicationRequest body, Context context); /** * Get volume replication status - * - *

Get the status of the replication. - * + * + * Get the status of the replication. + * * @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. @@ -402,14 +366,14 @@ void reestablishReplication( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of the replication along with {@link Response}. */ - Response replicationStatusWithResponse( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + Response replicationStatusWithResponse(String resourceGroupName, String accountName, + String poolName, String volumeName, Context context); /** * Get volume replication status - * - *

Get the status of the replication. - * + * + * Get the status of the replication. + * * @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. @@ -419,14 +383,14 @@ Response replicationStatusWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of the replication. */ - ReplicationStatus replicationStatus( - String resourceGroupName, String accountName, String poolName, String volumeName); + ReplicationStatus replicationStatus(String resourceGroupName, String accountName, String poolName, + String volumeName); /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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. @@ -436,14 +400,14 @@ ReplicationStatus replicationStatus( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list Replications as paginated response with {@link PagedIterable}. */ - PagedIterable listReplications( - String resourceGroupName, String accountName, String poolName, String volumeName); + PagedIterable listReplications(String resourceGroupName, String accountName, String poolName, + String volumeName); /** * List replications for volume - * - *

List all replications for a specified volume. - * + * + * List all replications for a specified 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. @@ -454,15 +418,15 @@ PagedIterable listReplications( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list Replications as paginated response with {@link PagedIterable}. */ - PagedIterable listReplications( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + PagedIterable listReplications(String resourceGroupName, String accountName, String poolName, + String volumeName, Context context); /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -475,10 +439,10 @@ PagedIterable listReplications( /** * Resync volume replication - * - *

Resync the connection on the destination volume. If the operation is ran on the source volume it will + * + * Resync the connection on the destination volume. If the operation is ran on the source volume it will * reverse-resync the connection and sync from destination to source. - * + * * @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. @@ -488,14 +452,14 @@ PagedIterable listReplications( * @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 resyncReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void resyncReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -508,9 +472,9 @@ void resyncReplication( /** * Delete volume replication - * - *

Delete the replication connection on the destination volume, and send release to the source replication. - * + * + * Delete the replication connection on the destination volume, and send release to the source replication. + * * @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. @@ -520,14 +484,14 @@ void resyncReplication( * @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 deleteReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void deleteReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -537,14 +501,14 @@ void deleteReplication( * @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 authorizeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, AuthorizeRequest body); + void authorizeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + AuthorizeRequest body); /** * Authorize source volume replication - * - *

Authorize the replication connection on the source volume. - * + * + * Authorize the replication connection on the source 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. @@ -555,19 +519,14 @@ void authorizeReplication( * @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 authorizeReplication( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - AuthorizeRequest body, - Context context); + void authorizeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + AuthorizeRequest body, Context context); /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -580,9 +539,9 @@ void authorizeReplication( /** * ReInitialize volume replication - * - *

Re-Initializes the replication connection on the destination volume. - * + * + * Re-Initializes the replication connection on the destination 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. @@ -592,14 +551,14 @@ void authorizeReplication( * @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 reInitializeReplication( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void reInitializeReplication(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -609,14 +568,14 @@ void reInitializeReplication( * @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 poolChange( - String resourceGroupName, String accountName, String poolName, String volumeName, PoolChangeRequest body); + void poolChange(String resourceGroupName, String accountName, String poolName, String volumeName, + PoolChangeRequest body); /** * Change pool for volume - * - *

Moves volume to another pool. - * + * + * Moves volume to another pool. + * * @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. @@ -627,19 +586,14 @@ void poolChange( * @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 poolChange( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - PoolChangeRequest body, - Context context); + void poolChange(String resourceGroupName, String accountName, String poolName, String volumeName, + PoolChangeRequest body, Context context); /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -652,9 +606,9 @@ void poolChange( /** * Relocate volume - * - *

Relocates volume to a new stamp. - * + * + * Relocates volume to a new stamp. + * * @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. @@ -665,19 +619,14 @@ void poolChange( * @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 relocate( - String resourceGroupName, - String accountName, - String poolName, - String volumeName, - RelocateVolumeRequest body, - Context context); + void relocate(String resourceGroupName, String accountName, String poolName, String volumeName, + RelocateVolumeRequest body, Context context); /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -690,9 +639,9 @@ void relocate( /** * Finalize volume relocation - * - *

Finalizes the relocation of the volume and cleans up the old volume. - * + * + * Finalizes the relocation of the volume and cleans up the old 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. @@ -702,14 +651,14 @@ void relocate( * @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 finalizeRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void finalizeRelocation(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -722,9 +671,9 @@ void finalizeRelocation( /** * Revert volume relocation - * - *

Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * + * + * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing 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. @@ -734,14 +683,14 @@ void finalizeRelocation( * @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 revertRelocation( - String resourceGroupName, String accountName, String poolName, String volumeName, Context context); + void revertRelocation(String resourceGroupName, String accountName, String poolName, String volumeName, + Context context); /** * Describe a volume - * - *

Get the details of the specified volume. - * + * + * Get the details of the specified volume. + * * @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. @@ -752,9 +701,9 @@ void revertRelocation( /** * Describe a volume - * - *

Get the details of the specified volume. - * + * + * Get the details of the specified volume. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -766,9 +715,9 @@ void revertRelocation( /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified volume. + * * @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. @@ -778,12 +727,12 @@ void revertRelocation( /** * Delete a volume - * - *

Delete the specified volume. - * + * + * Delete the specified volume. + * * @param id the resource ID. * @param forceDelete An option to force delete the volume. Will cleanup resources connected to the particular - * volume. + * 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. @@ -793,7 +742,7 @@ void revertRelocation( /** * Begins definition for a new Volume resource. - * + * * @param name resource name. * @return the first stage of the new Volume definition. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java index 6cda9b83eda0..08439f582ebf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Weekly Schedule properties, make a snapshot every week at a specific day or days. */ +/** + * Weekly Schedule properties, make a snapshot every week at a specific day or days. + */ @Fluent public final class WeeklySchedule { /* @@ -40,13 +42,15 @@ public final class WeeklySchedule { @JsonProperty(value = "usedBytes") private Long usedBytes; - /** Creates an instance of WeeklySchedule class. */ + /** + * Creates an instance of WeeklySchedule class. + */ public WeeklySchedule() { } /** * Get the snapshotsToKeep property: Weekly snapshot count to keep. - * + * * @return the snapshotsToKeep value. */ public Integer snapshotsToKeep() { @@ -55,7 +59,7 @@ public Integer snapshotsToKeep() { /** * Set the snapshotsToKeep property: Weekly snapshot count to keep. - * + * * @param snapshotsToKeep the snapshotsToKeep value to set. * @return the WeeklySchedule object itself. */ @@ -67,7 +71,7 @@ public WeeklySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { /** * Get the day property: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week * day names in english. - * + * * @return the day value. */ public String day() { @@ -77,7 +81,7 @@ public String day() { /** * Set the day property: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week * day names in english. - * + * * @param day the day value to set. * @return the WeeklySchedule object itself. */ @@ -88,7 +92,7 @@ public WeeklySchedule withDay(String day) { /** * Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * + * * @return the hour value. */ public Integer hour() { @@ -97,7 +101,7 @@ public Integer hour() { /** * Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * + * * @param hour the hour value to set. * @return the WeeklySchedule object itself. */ @@ -108,7 +112,7 @@ public WeeklySchedule withHour(Integer hour) { /** * Get the minute property: Indicates which minute snapshot should be taken. - * + * * @return the minute value. */ public Integer minute() { @@ -117,7 +121,7 @@ public Integer minute() { /** * Set the minute property: Indicates which minute snapshot should be taken. - * + * * @param minute the minute value to set. * @return the WeeklySchedule object itself. */ @@ -128,7 +132,7 @@ public WeeklySchedule withMinute(Integer minute) { /** * Get the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes. - * + * * @return the usedBytes value. */ public Long usedBytes() { @@ -137,7 +141,7 @@ public Long usedBytes() { /** * Set the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes. - * + * * @param usedBytes the usedBytes value to set. * @return the WeeklySchedule object itself. */ @@ -148,7 +152,7 @@ public WeeklySchedule withUsedBytes(Long usedBytes) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/package-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/package-info.java index ce446560e928..12553875b2e2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/package-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the data models for NetAppManagementClient. Microsoft NetApp Files Azure Resource Provider - * specification. + * Package containing the data models for NetAppManagementClient. + * Microsoft NetApp Files Azure Resource Provider specification. */ package com.azure.resourcemanager.netapp.models; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/package-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/package-info.java index a2a30daf37ee..993c03d81992 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/package-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the classes for NetAppManagementClient. Microsoft NetApp Files Azure Resource Provider - * specification. + * Package containing the classes for NetAppManagementClient. + * Microsoft NetApp Files Azure Resource Provider specification. */ package com.azure.resourcemanager.netapp; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/module-info.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/module-info.java index ea44febf1e8c..58a55bf7c72c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/module-info.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/module-info.java @@ -10,10 +10,6 @@ exports com.azure.resourcemanager.netapp.fluent.models; exports com.azure.resourcemanager.netapp.models; - opens com.azure.resourcemanager.netapp.fluent.models to - com.azure.core, - com.fasterxml.jackson.databind; - opens com.azure.resourcemanager.netapp.models to - com.azure.core, - com.fasterxml.jackson.databind; + opens com.azure.resourcemanager.netapp.fluent.models to com.azure.core, com.fasterxml.jackson.databind; + opens com.azure.resourcemanager.netapp.models to com.azure.core, com.fasterxml.jackson.databind; } 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 c48b7e61f088..d0abcc62e33d 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 @@ -7,14 +7,17 @@ import com.azure.resourcemanager.netapp.models.ActiveDirectory; import java.util.Arrays; -/** Samples for Accounts CreateOrUpdate. */ +/** + * Samples for Accounts CreateOrUpdate. + */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -22,34 +25,21 @@ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json */ /** * Sample code: Accounts_CreateOrUpdateWithActiveDirectory. - * + * * @param manager Entry point to NetAppFilesManager. */ - public static void accountsCreateOrUpdateWithActiveDirectory( - com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .accounts() - .define("account1") - .withRegion("eastus") - .withExistingResourceGroup("myRG") - .withActiveDirectories( - Arrays - .asList( - new ActiveDirectory() - .withUsername("ad_user_name") - .withPassword("fakeTokenPlaceholder") - .withDomain("10.10.10.3") - .withDns("10.10.10.3, 10.10.10.4") - .withSmbServerName("SMBServer") - .withOrganizationalUnit("OU=Engineering") - .withSite("SiteName") - .withAesEncryption(true) - .withLdapSigning(false) - .withLdapOverTls(false))) + public static void + accountsCreateOrUpdateWithActiveDirectory(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { + manager.accounts().define("account1").withRegion("eastus").withExistingResourceGroup("myRG") + .withActiveDirectories(Arrays.asList(new ActiveDirectory().withUsername("ad_user_name") + .withPassword("fakeTokenPlaceholder").withDomain("10.10.10.3").withDns("10.10.10.3, 10.10.10.4") + .withSmbServerName("SMBServer").withOrganizationalUnit("OU=Engineering").withSite("SiteName") + .withAesEncryption(true).withLdapSigning(false).withLdapOverTls(false))) .create(); } } 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 ff6489010bdd..314009375bc1 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Accounts Delete. */ +/** + * Samples for Accounts Delete. + */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 7acf8f4f42bd..fc0ddefcd358 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Accounts GetByResourceGroup. */ +/** + * Samples for Accounts GetByResourceGroup. + */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Get.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json */ /** * Sample code: Accounts_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 87606eb3b1f1..32c14bc32e1a 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Accounts ListByResourceGroup. */ +/** + * Samples for Accounts ListByResourceGroup. + */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 3539905bc249..0e90cb3b1570 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Accounts List. */ +/** + * Samples for Accounts List. + */ public final class AccountsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ /** * Sample code: Accounts_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 0f88916e1d02..5bbc4d6b5de0 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Accounts RenewCredentials. */ +/** + * Samples for Accounts RenewCredentials. + */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_RenewCredentials.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json */ /** * Sample code: Accounts_RenewCredentials. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsRenewCredentials(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 ec84f29dabec..d3037295a9df 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 @@ -8,22 +8,22 @@ import java.util.HashMap; import java.util.Map; -/** Samples for Accounts Update. */ +/** + * Samples for Accounts Update. + */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json */ /** * Sample code: Accounts_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void accountsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - NetAppAccount resource = - manager - .accounts() - .getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE) - .getValue(); + NetAppAccount resource = manager.accounts() + .getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE).getValue(); resource.update().withTags(mapOf("Tag1", "Value1")).apply(); } 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 400bcaeac05f..33918be3b79d 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 @@ -4,26 +4,22 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for BackupPolicies Create. */ +/** + * Samples for BackupPolicies Create. + */ public final class BackupPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Create.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void backupPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .backupPolicies() - .define("backupPolicyName") - .withRegion("westus") - .withExistingNetAppAccount("myRG", "account1") - .withDailyBackupsToKeep(10) - .withWeeklyBackupsToKeep(10) - .withMonthlyBackupsToKeep(10) - .withEnabled(true) - .create(); + manager.backupPolicies().define("backupPolicyName").withRegion("westus") + .withExistingNetAppAccount("myRG", "account1").withDailyBackupsToKeep(10).withWeeklyBackupsToKeep(10) + .withMonthlyBackupsToKeep(10).withEnabled(true).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 19360dcd2cbd..a1a3cc2cbd0a 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for BackupPolicies Delete. */ +/** + * Samples for BackupPolicies Delete. + */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json */ /** * Sample code: Backups_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void backupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .backupPolicies() - .delete("resourceGroup", "accountName", "backupPolicyName", com.azure.core.util.Context.NONE); + manager.backupPolicies().delete("resourceGroup", "accountName", "backupPolicyName", + com.azure.core.util.Context.NONE); } } 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 281cec2fd144..b9500598b171 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for BackupPolicies Get. */ +/** + * Samples for BackupPolicies Get. + */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Get.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json */ /** * Sample code: Backups_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void backupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .backupPolicies() - .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE); + manager.backupPolicies().getWithResponse("myRG", "account1", "backupPolicyName", + com.azure.core.util.Context.NONE); } } 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 4e4439a79e4d..80526eeaeac3 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for BackupPolicies List. */ +/** + * Samples for BackupPolicies List. + */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json */ /** * Sample code: Backups_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void backupsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 ca69261d5925..ad1240f60d2f 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 @@ -6,28 +6,23 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy; -/** Samples for BackupPolicies Update. */ +/** + * Samples for BackupPolicies Update. + */ public final class BackupPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void backupPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - BackupPolicy resource = - manager - .backupPolicies() - .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withDailyBackupsToKeep(5) - .withWeeklyBackupsToKeep(10) - .withMonthlyBackupsToKeep(10) - .withEnabled(false) - .apply(); + BackupPolicy resource = manager.backupPolicies() + .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE).getValue(); + resource.update().withDailyBackupsToKeep(5).withWeeklyBackupsToKeep(10).withMonthlyBackupsToKeep(10) + .withEnabled(false).apply(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusSamples.java index fa21a6546d78..5fb2dc0dc12e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Backups GetVolumeRestoreStatus. */ +/** + * Samples for Backups GetVolumeRestoreStatus. + */ public final class BackupsGetVolumeRestoreStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RestoreStatus.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesRestoreStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .backups() - .getVolumeRestoreStatusWithResponse( - "myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + manager.backups().getVolumeRestoreStatusWithResponse("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/NetAppResourceCheckFilePathAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java index bd3b232bb0f4..35969ed3f9b1 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 @@ -6,25 +6,23 @@ import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; -/** Samples for NetAppResource CheckFilePathAvailability. */ +/** + * Samples for NetAppResource CheckFilePathAvailability. + */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void checkFilePathAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .checkFilePathAvailabilityWithResponse( - "eastus", - new FilePathAvailabilityRequest() - .withName("my-exact-filepth") - .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), - com.azure.core.util.Context.NONE); + manager.netAppResources().checkFilePathAvailabilityWithResponse("eastus", + new FilePathAvailabilityRequest().withName("my-exact-filepth").withSubnetId( + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), + com.azure.core.util.Context.NONE); } } 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 2e797c2c0b5f..9ace546ccd1c 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 @@ -7,25 +7,23 @@ import com.azure.resourcemanager.netapp.models.CheckNameResourceTypes; import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; -/** Samples for NetAppResource CheckNameAvailability. */ +/** + * Samples for NetAppResource CheckNameAvailability. + */ public final class NetAppResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckNameAvailability.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void checkNameAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .checkNameAvailabilityWithResponse( - "eastus", - new ResourceNameAvailabilityRequest() - .withName("accName") - .withType(CheckNameResourceTypes.fromString("netAppAccount")) - .withResourceGroup("myRG"), - com.azure.core.util.Context.NONE); + manager.netAppResources().checkNameAvailabilityWithResponse("eastus", + new ResourceNameAvailabilityRequest().withName("accName") + .withType(CheckNameResourceTypes.fromString("netAppAccount")).withResourceGroup("myRG"), + com.azure.core.util.Context.NONE); } } 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 701c12a82eec..147594cf2499 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 @@ -7,25 +7,23 @@ import com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes; import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; -/** Samples for NetAppResource CheckQuotaAvailability. */ +/** + * Samples for NetAppResource CheckQuotaAvailability. + */ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckQuotaAvailability.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void checkQuotaAvailability(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .checkQuotaAvailabilityWithResponse( - "eastus", - new QuotaAvailabilityRequest() - .withName("resource1") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS) - .withResourceGroup("myRG"), - com.azure.core.util.Context.NONE); + manager.netAppResources().checkQuotaAvailabilityWithResponse("eastus", + new QuotaAvailabilityRequest().withName("resource1") + .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS).withResourceGroup("myRG"), + com.azure.core.util.Context.NONE); } } 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 58ee3a94280b..9e51c370a3a1 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 @@ -6,25 +6,23 @@ import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest; -/** Samples for NetAppResource QueryNetworkSiblingSet. */ +/** + * Samples for NetAppResource QueryNetworkSiblingSet. + */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void networkSiblingSetQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .queryNetworkSiblingSetWithResponse( - "eastus", - new QueryNetworkSiblingSetRequest() - .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333") - .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), - com.azure.core.util.Context.NONE); + manager.netAppResources().queryNetworkSiblingSetWithResponse("eastus", new QueryNetworkSiblingSetRequest() + .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333").withSubnetId( + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"), + com.azure.core.util.Context.NONE); } } 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 4d1a5f0c430a..5500bab67fbf 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for NetAppResource QueryRegionInfo. */ +/** + * Samples for NetAppResource QueryRegionInfo. + */ public final class NetAppResourceQueryRegionInfoSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/RegionInfo.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json */ /** * Sample code: RegionInfo_Query. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void regionInfoQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 fefd92956bee..dca31426845d 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for NetAppResourceQuotaLimits Get. */ +/** + * Samples for NetAppResourceQuotaLimits Get. + */ public final class NetAppResourceQuotaLimitsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_Get.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json */ /** * Sample code: QuotaLimits. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResourceQuotaLimits() - .getWithResponse("eastus", "totalCoolAccessVolumesPerSubscription", com.azure.core.util.Context.NONE); + manager.netAppResourceQuotaLimits().getWithResponse("eastus", "totalCoolAccessVolumesPerSubscription", + com.azure.core.util.Context.NONE); } } 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 704bda9f944c..66d896611a26 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for NetAppResourceQuotaLimits List. */ +/** + * Samples for NetAppResourceQuotaLimits List. + */ public final class NetAppResourceQuotaLimitsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json */ /** * Sample code: QuotaLimits. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void quotaLimits(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 75bdcb16ff41..ed275fe11d65 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 @@ -7,27 +7,25 @@ import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; -/** Samples for NetAppResource UpdateNetworkSiblingSet. */ +/** + * Samples for NetAppResource UpdateNetworkSiblingSet. + */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void networkFeaturesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .netAppResources() - .updateNetworkSiblingSet( - "eastus", - new UpdateNetworkSiblingSetRequest() - .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333") - .withSubnetId( - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet") - .withNetworkSiblingSetStateId("12345_44420.8001578125") - .withNetworkFeatures(NetworkFeatures.STANDARD), - com.azure.core.util.Context.NONE); + manager.netAppResources().updateNetworkSiblingSet("eastus", new UpdateNetworkSiblingSetRequest() + .withNetworkSiblingSetId("9760acf5-4638-11e7-9bdb-020073ca3333") + .withSubnetId( + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet") + .withNetworkSiblingSetStateId("12345_44420.8001578125").withNetworkFeatures(NetworkFeatures.STANDARD), + com.azure.core.util.Context.NONE); } } 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 3be3c0cb8d8e..5bd1d4668479 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Operations List. */ +/** + * Samples for Operations List. + */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/OperationList.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json */ /** * Sample code: OperationList. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void operationList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 ba5ec13a8f07..a524db14bee7 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 @@ -7,25 +7,21 @@ import com.azure.resourcemanager.netapp.models.QosType; import com.azure.resourcemanager.netapp.models.ServiceLevel; -/** Samples for Pools CreateOrUpdate. */ +/** + * Samples for Pools CreateOrUpdate. + */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .pools() - .define("pool1") - .withRegion("eastus") - .withExistingNetAppAccount("myRG", "account1") - .withSize(4398046511104L) - .withServiceLevel(ServiceLevel.PREMIUM) - .withQosType(QosType.AUTO) - .create(); + manager.pools().define("pool1").withRegion("eastus").withExistingNetAppAccount("myRG", "account1") + .withSize(4398046511104L).withServiceLevel(ServiceLevel.PREMIUM).withQosType(QosType.AUTO).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 621f93d92891..0e594238ac41 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Pools Delete. */ +/** + * Samples for Pools Delete. + */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json */ /** * Sample code: Pools_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void poolsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 7f956ed0e42a..2c51519f16ea 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Pools Get. */ +/** + * Samples for Pools Get. + */ public final class PoolsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Get.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json */ /** * Sample code: Pools_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void poolsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 090b1b1593eb..8aa1eee3675f 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Pools List. */ +/** + * Samples for Pools List. + */ public final class PoolsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json */ /** * Sample code: Pools_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void poolsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 d7347ce7febe..470901425c2c 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 @@ -6,19 +6,22 @@ import com.azure.resourcemanager.netapp.models.CapacityPool; -/** Samples for Pools Update. */ +/** + * Samples for Pools Update. + */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json */ /** * Sample code: Pools_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - CapacityPool resource = - manager.pools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE).getValue(); + CapacityPool resource + = manager.pools().getWithResponse("myRG", "account1", "pool1", 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 1ff95eebb706..e5c66125722e 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 @@ -9,21 +9,21 @@ import com.azure.resourcemanager.netapp.models.MonthlySchedule; import com.azure.resourcemanager.netapp.models.WeeklySchedule; -/** Samples for SnapshotPolicies Create. */ +/** + * Samples for SnapshotPolicies Create. + */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshotPolicies() - .define("snapshotPolicyName") - .withRegion("eastus") + manager.snapshotPolicies().define("snapshotPolicyName").withRegion("eastus") .withExistingNetAppAccount("myRG", "account1") .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50)) .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)) @@ -31,7 +31,6 @@ public static void snapshotPoliciesCreate(com.azure.resourcemanager.netapp.NetAp new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45)) .withMonthlySchedule( new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15)) - .withEnabled(true) - .create(); + .withEnabled(true).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 a92fc94eb6c6..5f2a1d87cbd1 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for SnapshotPolicies Delete. */ +/** + * Samples for SnapshotPolicies Delete. + */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshotPolicies() - .delete("resourceGroup", "accountName", "snapshotPolicyName", com.azure.core.util.Context.NONE); + manager.snapshotPolicies().delete("resourceGroup", "accountName", "snapshotPolicyName", + com.azure.core.util.Context.NONE); } } 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 ec57341491d3..72db9de82920 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for SnapshotPolicies Get. */ +/** + * Samples for SnapshotPolicies Get. + */ public final class SnapshotPoliciesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Get.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshotPolicies() - .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE); + manager.snapshotPolicies().getWithResponse("myRG", "account1", "snapshotPolicyName", + com.azure.core.util.Context.NONE); } } 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 f87fdbca857d..21b5ed43e2a4 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for SnapshotPolicies List. */ +/** + * Samples for SnapshotPolicies List. + */ public final class SnapshotPoliciesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 8cb2ad34b153..a5bb38141df2 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 @@ -4,19 +4,22 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for SnapshotPolicies ListVolumes. */ +/** + * Samples for SnapshotPolicies ListVolumes. + */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes. + * json */ /** * Sample code: SnapshotPolicies_ListVolumes. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesListVolumes(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshotPolicies() - .listVolumesWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE); + manager.snapshotPolicies().listVolumesWithResponse("myRG", "account1", "snapshotPolicyName", + com.azure.core.util.Context.NONE); } } 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 720947b346fa..812ce45e685e 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 @@ -10,31 +10,28 @@ import com.azure.resourcemanager.netapp.models.SnapshotPolicy; import com.azure.resourcemanager.netapp.models.WeeklySchedule; -/** Samples for SnapshotPolicies Update. */ +/** + * Samples for SnapshotPolicies Update. + */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - SnapshotPolicy resource = - manager - .snapshotPolicies() - .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50)) + SnapshotPolicy resource = manager.snapshotPolicies() + .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE).getValue(); + resource.update().withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(2).withMinute(50)) .withDailySchedule(new DailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)) .withWeeklySchedule( new WeeklySchedule().withSnapshotsToKeep(3).withDay("Wednesday").withHour(14).withMinute(45)) .withMonthlySchedule( new MonthlySchedule().withSnapshotsToKeep(5).withDaysOfMonth("10,11,12").withHour(14).withMinute(15)) - .withEnabled(true) - .apply(); + .withEnabled(true).apply(); } } 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 ec5ca8ccc9b1..cc17606d91af 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 @@ -4,22 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Snapshots Create. */ +/** + * Samples for Snapshots Create. + */ public final class SnapshotsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Create.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshots() - .define("snapshot1") - .withRegion("eastus") - .withExistingVolume("myRG", "account1", "pool1", "volume1") - .create(); + manager.snapshots().define("snapshot1").withRegion("eastus") + .withExistingVolume("myRG", "account1", "pool1", "volume1").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 d8fd7c462faa..223702dfc220 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Snapshots Delete. */ +/** + * Samples for Snapshots Delete. + */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshots() - .delete("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); + manager.snapshots().delete("myRG", "account1", "pool1", "volume1", "snapshot1", + com.azure.core.util.Context.NONE); } } 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 247a213d8824..e0675850165c 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Snapshots Get. */ +/** + * Samples for Snapshots Get. + */ public final class SnapshotsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Get.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshots() - .getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); + manager.snapshots().getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", + com.azure.core.util.Context.NONE); } } 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 270e8b45c95c..8fa136e6cbb7 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Snapshots List. */ +/** + * Samples for Snapshots List. + */ public final class SnapshotsListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json */ /** * Sample code: Snapshots_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 a5ab11d74f53..c671af1d2dd9 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 @@ -7,26 +7,23 @@ import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; import java.util.Arrays; -/** Samples for Snapshots RestoreFiles. */ +/** + * Samples for Snapshots RestoreFiles. + */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore. + * json */ /** * Sample code: Snapshots_SingleFileRestore. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsSingleFileRestore(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .snapshots() - .restoreFiles( - "myRG", - "account1", - "pool1", - "volume1", - "snapshot1", - new SnapshotRestoreFiles().withFilePaths(Arrays.asList("/dir1/customer1.db", "/dir1/customer2.db")), - com.azure.core.util.Context.NONE); + manager.snapshots().restoreFiles("myRG", "account1", "pool1", "volume1", "snapshot1", + new SnapshotRestoreFiles().withFilePaths(Arrays.asList("/dir1/customer1.db", "/dir1/customer2.db")), + com.azure.core.util.Context.NONE); } } 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 9bd178ae54db..07b0fe485056 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 @@ -8,28 +8,23 @@ import com.azure.core.util.serializer.SerializerEncoding; import java.io.IOException; -/** Samples for Snapshots Update. */ +/** + * Samples for Snapshots Update. + */ public final class SnapshotsUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json */ /** * Sample code: Snapshots_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void snapshotsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) throws IOException { - manager - .snapshots() - .update( - "myRG", - "account1", - "pool1", - "volume1", - "snapshot1", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize("{}", Object.class, SerializerEncoding.JSON), + manager.snapshots() + .update("myRG", "account1", "pool1", "volume1", "snapshot1", SerializerFactory + .createDefaultManagementSerializerAdapter().deserialize("{}", Object.class, SerializerEncoding.JSON), com.azure.core.util.Context.NONE); } } 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 a09ce1c6fe0f..cd4df6a721e7 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 @@ -4,22 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Subvolumes Create. */ +/** + * Samples for Subvolumes Create. + */ public final class SubvolumesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Create.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json */ /** * Sample code: Subvolumes_Create. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .subvolumes() - .define("subvolume1") - .withExistingVolume("myRG", "account1", "pool1", "volume1") - .withPath("/subvolumePath") - .create(); + manager.subvolumes().define("subvolume1").withExistingVolume("myRG", "account1", "pool1", "volume1") + .withPath("/subvolumePath").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 da2b4939a8c7..2898e37d8cd2 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Subvolumes Delete. */ +/** + * Samples for Subvolumes Delete. + */ public final class SubvolumesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json */ /** * Sample code: Subvolumes_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .subvolumes() - .delete("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE); + manager.subvolumes().delete("myRG", "account1", "pool1", "volume1", "subvolume1", + com.azure.core.util.Context.NONE); } } 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 4f4f8e18f432..a71abbde2928 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Subvolumes GetMetadata. */ +/** + * Samples for Subvolumes GetMetadata. + */ public final class SubvolumesGetMetadataSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Metadata.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json */ /** * Sample code: Subvolumes_Metadata. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesMetadata(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .subvolumes() - .getMetadata("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE); + manager.subvolumes().getMetadata("myRG", "account1", "pool1", "volume1", "subvolume1", + com.azure.core.util.Context.NONE); } } 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 6c7ccfcd17ba..cf955d1f9485 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Subvolumes Get. */ +/** + * Samples for Subvolumes Get. + */ public final class SubvolumesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Get.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json */ /** * Sample code: Subvolumes_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .subvolumes() - .getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE); + manager.subvolumes().getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", + com.azure.core.util.Context.NONE); } } 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 aab99606d8ef..cdce6f7702e8 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Subvolumes ListByVolume. */ +/** + * Samples for Subvolumes ListByVolume. + */ public final class SubvolumesListByVolumeSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json */ /** * Sample code: Subvolumes_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 47f3295401d1..afbf8247f862 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 @@ -6,22 +6,23 @@ import com.azure.resourcemanager.netapp.models.SubvolumeInfo; -/** Samples for Subvolumes Update. */ +/** + * Samples for Subvolumes Update. + */ public final class SubvolumesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json */ /** * Sample code: Subvolumes_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void subvolumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - SubvolumeInfo resource = - manager - .subvolumes() - .getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE) - .getValue(); + SubvolumeInfo resource = manager.subvolumes() + .getWithResponse("myRG", "account1", "pool1", "volume1", "subvolume1", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withPath("/subvolumePath").apply(); } } 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 fae342b8dbba..28accab19bf4 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 @@ -12,621 +12,312 @@ import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; import java.util.Arrays; -/** Samples for VolumeGroups Create. */ +/** + * Samples for VolumeGroups Create. + */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana. + * json */ /** * Sample code: VolumeGroups_Create_SapHana. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager - .volumeGroups() - .define("group1") - .withExistingNetAppAccount("myRG", "account1") - .withRegion("westus") + .volumeGroups().define("group1").withExistingNetAppAccount("myRG", "account1").withRegion( + "westus") .withGroupMetadata( new VolumeGroupMetadata() - .withGroupDescription("Volume group") - .withApplicationType(ApplicationType.SAP_HANA) + .withGroupDescription("Volume group").withApplicationType( + ApplicationType.SAP_HANA) .withApplicationIdentifier("SH9")) - .withVolumes( - Arrays - .asList( - new VolumeGroupVolumeProperties() - .withName("test-data-mnt00001") - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") - .withVolumeSpecName("data"), - new VolumeGroupVolumeProperties() - .withName("test-log-mnt00001") - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") - .withVolumeSpecName("log"), - new VolumeGroupVolumeProperties() - .withName("test-shared") - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") - .withVolumeSpecName("shared"), - new VolumeGroupVolumeProperties() - .withName("test-data-backup") - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") - .withVolumeSpecName("data-backup"), - new VolumeGroupVolumeProperties() - .withName("test-log-backup") - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withProximityPlacementGroup( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") - .withVolumeSpecName("log-backup"))) + .withVolumes(Arrays.asList(new VolumeGroupVolumeProperties().withName("test-data-mnt00001") + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withProximityPlacementGroup( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + .withVolumeSpecName("data"), + new VolumeGroupVolumeProperties().withName("test-log-mnt00001") + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withProximityPlacementGroup( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + .withVolumeSpecName("log"), + new VolumeGroupVolumeProperties().withName("test-shared").withCreationToken("fakeTokenPlaceholder") + .withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withProximityPlacementGroup( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + .withVolumeSpecName("shared"), + new VolumeGroupVolumeProperties().withName("test-data-backup").withCreationToken("fakeTokenPlaceholder") + .withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withProximityPlacementGroup( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg") + .withVolumeSpecName("data-backup"), + new VolumeGroupVolumeProperties().withName("test-log-backup").withCreationToken("fakeTokenPlaceholder") + .withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withProximityPlacementGroup( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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/2023-05-01/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json */ /** * Sample code: VolumeGroups_Create_Oracle. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { manager - .volumeGroups() - .define("group1") - .withExistingNetAppAccount("myRG", "account1") - .withRegion("westus") + .volumeGroups().define("group1").withExistingNetAppAccount("myRG", "account1").withRegion( + "westus") .withGroupMetadata( new VolumeGroupMetadata() - .withGroupDescription("Volume group") - .withApplicationType(ApplicationType.ORACLE) + .withGroupDescription("Volume group").withApplicationType( + ApplicationType.ORACLE) .withApplicationIdentifier("OR2")) - .withVolumes( - Arrays - .asList( - new VolumeGroupVolumeProperties() - .withName("test-ora-data1") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data1"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data2") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data2"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data3") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data3"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data4") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data4"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data5") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data5"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data6") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data6"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data7") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data7"), - new VolumeGroupVolumeProperties() - .withName("test-ora-data8") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-data8"), - new VolumeGroupVolumeProperties() - .withName("test-ora-log") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-log"), - new VolumeGroupVolumeProperties() - .withName("test-ora-log-mirror") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-log-mirror"), - new VolumeGroupVolumeProperties() - .withName("test-ora-binary") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-binary"), - new VolumeGroupVolumeProperties() - .withName("test-ora-backup") - .withZones(Arrays.asList("1")) - .withCreationToken("fakeTokenPlaceholder") - .withServiceLevel(ServiceLevel.PREMIUM) - .withUsageThreshold(107374182400L) - .withExportPolicy( - new VolumePropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("0.0.0.0/0") - .withHasRootAccess(true)))) - .withProtocolTypes(Arrays.asList("NFSv4.1")) - .withSubnetId( - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") - .withVolumeSpecName("ora-backup"))) + .withVolumes(Arrays.asList(new VolumeGroupVolumeProperties().withName("test-ora-data1") + .withZones(Arrays.asList("1")).withCreationToken("fakeTokenPlaceholder") + .withServiceLevel(ServiceLevel.PREMIUM).withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withVolumeSpecName("ora-data1"), + new VolumeGroupVolumeProperties().withName("test-ora-data2").withZones(Arrays.asList("1")) + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withVolumeSpecName("ora-data2"), + new VolumeGroupVolumeProperties().withName("test-ora-data3").withZones(Arrays.asList("1")) + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withVolumeSpecName("ora-data3"), + new VolumeGroupVolumeProperties().withName("test-ora-data4").withZones(Arrays.asList("1")) + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withVolumeSpecName("ora-data4"), + new VolumeGroupVolumeProperties().withName("test-ora-data5").withZones(Arrays.asList("1")) + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withVolumeSpecName("ora-data5"), + new VolumeGroupVolumeProperties().withName("test-ora-data6").withZones(Arrays.asList("1")) + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withVolumeSpecName("ora-data6"), + new VolumeGroupVolumeProperties().withName("test-ora-data7").withZones(Arrays.asList("1")) + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withVolumeSpecName("ora-data7"), + new VolumeGroupVolumeProperties().withName("test-ora-data8").withZones(Arrays.asList("1")) + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withVolumeSpecName("ora-data8"), + new VolumeGroupVolumeProperties().withName("test-ora-log").withZones(Arrays.asList("1")) + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withVolumeSpecName("ora-log"), + new VolumeGroupVolumeProperties().withName("test-ora-log-mirror").withZones(Arrays.asList("1")) + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withVolumeSpecName("ora-log-mirror"), + new VolumeGroupVolumeProperties().withName("test-ora-binary").withZones(Arrays.asList("1")) + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .withVolumeSpecName("ora-binary"), + new VolumeGroupVolumeProperties().withName("test-ora-backup").withZones(Arrays.asList("1")) + .withCreationToken("fakeTokenPlaceholder").withServiceLevel(ServiceLevel.PREMIUM) + .withUsageThreshold(107374182400L) + .withExportPolicy(new VolumePropertiesExportPolicy().withRules(Arrays.asList(new ExportPolicyRule() + .withRuleIndex(1).withUnixReadOnly(true).withUnixReadWrite(true).withKerberos5ReadOnly(false) + .withKerberos5ReadWrite(false).withKerberos5IReadOnly(false).withKerberos5IReadWrite(false) + .withKerberos5PReadOnly(false).withKerberos5PReadWrite(false).withCifs(false).withNfsv3(false) + .withNfsv41(true).withAllowedClients("0.0.0.0/0").withHasRootAccess(true)))) + .withProtocolTypes(Arrays.asList("NFSv4.1")) + .withSubnetId( + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/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") + .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 1c0fca438434..9759150243f7 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for VolumeGroups Delete. */ +/** + * Samples for VolumeGroups Delete. + */ public final class VolumeGroupsDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json */ /** * Sample code: VolumeGroups_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 9c27895307f8..fc4c499282df 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for VolumeGroups Get. */ +/** + * Samples for VolumeGroups Get. + */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsGetSapHana(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -19,11 +22,12 @@ public static void volumeGroupsGetSapHana(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json */ /** * Sample code: VolumeGroups_Get_Oracle. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsGetOracle(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 e4581fcf5385..38a07faf613e 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for VolumeGroups ListByNetAppAccount. */ +/** + * Samples for VolumeGroups ListByNetAppAccount. + */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsListOracle(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { @@ -19,11 +22,12 @@ public static void volumeGroupsListOracle(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json */ /** * Sample code: VolumeGroups_List_SapHana. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeGroupsListSapHana(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 28819fb2674b..c706c6c0ea11 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 @@ -6,25 +6,22 @@ import com.azure.resourcemanager.netapp.models.Type; -/** Samples for VolumeQuotaRules Create. */ +/** + * Samples for VolumeQuotaRules Create. + */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json */ /** * Sample code: VolumeQuotaRules_Create. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeQuotaRulesCreate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumeQuotaRules() - .define("rule-0004") - .withRegion("westus") - .withExistingVolume("myRG", "account-9957", "pool-5210", "volume-6387") - .withQuotaSizeInKiBs(100005L) - .withQuotaType(Type.INDIVIDUAL_USER_QUOTA) - .withQuotaTarget("1821") - .create(); + manager.volumeQuotaRules().define("rule-0004").withRegion("westus") + .withExistingVolume("myRG", "account-9957", "pool-5210", "volume-6387").withQuotaSizeInKiBs(100005L) + .withQuotaType(Type.INDIVIDUAL_USER_QUOTA).withQuotaTarget("1821").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 21eb8c5e68c5..015739da7292 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for VolumeQuotaRules Delete. */ +/** + * Samples for VolumeQuotaRules Delete. + */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json */ /** * Sample code: VolumeQuotaRules_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeQuotaRulesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumeQuotaRules() - .delete("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", com.azure.core.util.Context.NONE); + manager.volumeQuotaRules().delete("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", + com.azure.core.util.Context.NONE); } } 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 eb5420a5aea5..032e47636a29 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 @@ -4,20 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for VolumeQuotaRules Get. */ +/** + * Samples for VolumeQuotaRules Get. + */ public final class VolumeQuotaRulesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json */ /** * Sample code: VolumeQuotaRules_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeQuotaRulesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumeQuotaRules() - .getWithResponse( - "myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", com.azure.core.util.Context.NONE); + manager.volumeQuotaRules().getWithResponse("myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", + com.azure.core.util.Context.NONE); } } 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 494107747416..ebb99927e062 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for VolumeQuotaRules ListByVolume. */ +/** + * Samples for VolumeQuotaRules ListByVolume. + */ public final class VolumeQuotaRulesListByVolumeSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json */ /** * Sample code: VolumeQuotaRules_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeQuotaRulesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumeQuotaRules() - .listByVolume("myRG", "account-9957", "pool-5210", "volume-6387", com.azure.core.util.Context.NONE); + manager.volumeQuotaRules().listByVolume("myRG", "account-9957", "pool-5210", "volume-6387", + com.azure.core.util.Context.NONE); } } 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 dba66eb22b43..b74bcd3d0e09 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 @@ -6,23 +6,22 @@ import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; -/** Samples for VolumeQuotaRules Update. */ +/** + * Samples for VolumeQuotaRules Update. + */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json */ /** * Sample code: VolumeQuotaRules_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumeQuotaRulesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - VolumeQuotaRule resource = - manager - .volumeQuotaRules() - .getWithResponse( - "myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", com.azure.core.util.Context.NONE) - .getValue(); + VolumeQuotaRule resource = manager.volumeQuotaRules().getWithResponse("myRG", "account-9957", "pool-5210", + "volume-6387", "rule-0004", com.azure.core.util.Context.NONE).getValue(); resource.update().withQuotaSizeInKiBs(100009L).apply(); } } 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 85663a51ec07..359f224e4d5c 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 @@ -6,27 +6,24 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest; -/** Samples for Volumes AuthorizeReplication. */ +/** + * Samples for Volumes AuthorizeReplication. + */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication. + * json */ /** * Sample code: Volumes_AuthorizeReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesAuthorizeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - 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"), - com.azure.core.util.Context.NONE); + 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"), + 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 822a33d62e48..52c7cdebd077 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 @@ -6,25 +6,22 @@ import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; -/** Samples for Volumes BreakFileLocks. */ +/** + * Samples for Volumes BreakFileLocks. + */ public final class VolumesBreakFileLocksSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json */ /** * Sample code: Volumes_BreakFileLocks. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesBreakFileLocks(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .breakFileLocks( - "myRG", - "account1", - "pool1", - "volume1", - new BreakFileLocksRequest().withClientIp("101.102.103.104").withConfirmRunningDisruptiveOperation(true), - com.azure.core.util.Context.NONE); + manager.volumes().breakFileLocks("myRG", "account1", "pool1", "volume1", + new BreakFileLocksRequest().withClientIp("101.102.103.104").withConfirmRunningDisruptiveOperation(true), + com.azure.core.util.Context.NONE); } } 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 45d700b4a40c..5444220d7e55 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 @@ -6,25 +6,21 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; -/** Samples for Volumes BreakReplication. */ +/** + * Samples for Volumes BreakReplication. + */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesBreakReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .breakReplication( - "myRG", - "account1", - "pool1", - "volume1", - new BreakReplicationRequest().withForceBreakReplication(false), - com.azure.core.util.Context.NONE); + manager.volumes().breakReplication("myRG", "account1", "pool1", "volume1", + new BreakReplicationRequest().withForceBreakReplication(false), com.azure.core.util.Context.NONE); } } 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 305de4eaa0bc..cf4551de252c 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 @@ -6,27 +6,24 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; -/** Samples for Volumes CreateOrUpdate. */ +/** + * Samples for Volumes CreateOrUpdate. + */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .define("volume1") - .withRegion("eastus") - .withExistingCapacityPool("myRG", "account1", "pool1") - .withCreationToken("my-unique-file-path") - .withUsageThreshold(107374182400L) + manager.volumes().define("volume1").withRegion("eastus").withExistingCapacityPool("myRG", "account1", "pool1") + .withCreationToken("my-unique-file-path").withUsageThreshold(107374182400L) .withSubnetId( "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") - .withServiceLevel(ServiceLevel.PREMIUM) - .create(); + .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 276c1a9c9b12..d9ef057ff7a2 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes DeleteReplication. */ +/** + * Samples for Volumes DeleteReplication. + */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesDeleteReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 b9e6865915a9..2a2bf178654c 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes Delete. */ +/** + * Samples for Volumes Delete. + */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Delete.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 1603fca850eb..dc27858c7e32 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes FinalizeRelocation. */ +/** + * Samples for Volumes FinalizeRelocation. + */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json */ /** * Sample code: Volumes_FinalizeRelocation. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesFinalizeRelocation(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 0ddc02cc9c04..d4a1c3b11904 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes Get. */ +/** + * Samples for Volumes Get. + */ public final class VolumesGetSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Get.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json */ /** * Sample code: Volumes_Get. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 9556f253f5cc..0f738243fb30 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 @@ -6,25 +6,21 @@ import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; -/** Samples for Volumes ListGetGroupIdListForLdapUser. */ +/** + * Samples for Volumes ListGetGroupIdListForLdapUser. + */ public final class VolumesListGetGroupIdListForLdapUserSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json */ /** * Sample code: GetGroupIdListForUser. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void getGroupIdListForUser(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .listGetGroupIdListForLdapUser( - "myRG", - "account1", - "pool1", - "volume1", - new GetGroupIdListForLdapUserRequest().withUsername("user1"), - com.azure.core.util.Context.NONE); + manager.volumes().listGetGroupIdListForLdapUser("myRG", "account1", "pool1", "volume1", + new GetGroupIdListForLdapUserRequest().withUsername("user1"), 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 171288e42859..24c115d0498e 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes ListReplications. */ +/** + * Samples for Volumes ListReplications. + */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ListReplications.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json */ /** * Sample code: Volumes_ListReplications. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesListReplications(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 fe61f415cd59..41acf4cf9917 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes List. */ +/** + * Samples for Volumes List. + */ public final class VolumesListSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_List.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json */ /** * Sample code: Volumes_List. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesList(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 5e7e46c336f2..3cb52baf8bca 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 @@ -6,27 +6,23 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest; -/** Samples for Volumes PoolChange. */ +/** + * Samples for Volumes PoolChange. + */ public final class VolumesPoolChangeSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PoolChange.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json */ /** * Sample code: Volumes_AuthorizeReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ 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"), - com.azure.core.util.Context.NONE); + 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"), + 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 b6f77e2b272c..359a692c9dc1 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes PopulateAvailabilityZone. */ +/** + * Samples for Volumes PopulateAvailabilityZone. + */ public final class VolumesPopulateAvailabilityZoneSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/ + * Volumes_PopulateAvailabilityZones.json */ /** * Sample code: Volumes_PopulateAvailabilityZones. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesPopulateAvailabilityZones(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .populateAvailabilityZone("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + manager.volumes().populateAvailabilityZone("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/VolumesReInitializeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java index a9b2f479760a..6055a1836278 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 @@ -4,19 +4,22 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes ReInitializeReplication. */ +/** + * Samples for Volumes ReInitializeReplication. + */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication + * .json */ /** * Sample code: Volumes_ReInitializeReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesReInitializeReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .reInitializeReplication("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + manager.volumes().reInitializeReplication("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/VolumesReestablishReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java index 4615159313a6..bf0f9b94b0cd 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 @@ -6,27 +6,24 @@ import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; -/** Samples for Volumes ReestablishReplication. */ +/** + * Samples for Volumes ReestablishReplication. + */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication. + * json */ /** * Sample code: Volumes_ReestablishReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesReestablishReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - 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"), - com.azure.core.util.Context.NONE); + 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"), + 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 fd27f995f065..c789c755272e 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 @@ -6,20 +6,21 @@ import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest; -/** Samples for Volumes Relocate. */ +/** + * Samples for Volumes Relocate. + */ public final class VolumesRelocateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Relocate.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json */ /** * Sample code: Volumes_Relocate. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesRelocate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .relocate( - "myRG", "account1", "pool1", "volume1", new RelocateVolumeRequest(), com.azure.core.util.Context.NONE); + manager.volumes().relocate("myRG", "account1", "pool1", "volume1", new RelocateVolumeRequest(), + com.azure.core.util.Context.NONE); } } 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 788bc07f8b62..d1c4567ff94f 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 @@ -4,19 +4,21 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes ReplicationStatus. */ +/** + * Samples for Volumes ReplicationStatus. + */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesReplicationStatus(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager - .volumes() - .replicationStatusWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); + manager.volumes().replicationStatusWithResponse("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/VolumesResetCifsPasswordSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java index 7eb9727967f0..978e96cba49e 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes ResetCifsPassword. */ +/** + * Samples for Volumes ResetCifsPassword. + */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json */ /** * Sample code: Volumes_ResetCifsPassword. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesResetCifsPassword(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 838c791836f5..e02ae435b63a 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes ResyncReplication. */ +/** + * Samples for Volumes ResyncReplication. + */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesResyncReplication(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 3c573426dd83..c8780fbe2f06 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 @@ -4,14 +4,17 @@ package com.azure.resourcemanager.netapp.generated; -/** Samples for Volumes RevertRelocation. */ +/** + * Samples for Volumes RevertRelocation. + */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RevertRelocation.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json */ /** * Sample code: Volumes_RevertRelocation. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesRevertRelocation(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { 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 e2b6881dc1d7..671610d9595d 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 @@ -6,27 +6,22 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert; -/** Samples for Volumes Revert. */ +/** + * Samples for Volumes Revert. + */ public final class VolumesRevertSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Revert.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. - * + * * @param manager Entry point to NetAppFilesManager. */ 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"), - com.azure.core.util.Context.NONE); + 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"), + 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 7ea34276ca65..7184d5dd6a5b 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 @@ -6,22 +6,22 @@ import com.azure.resourcemanager.netapp.models.Volume; -/** Samples for Volumes Update. */ +/** + * Samples for Volumes Update. + */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Update.json + * x-ms-original-file: + * specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json */ /** * Sample code: Volumes_Update. - * + * * @param manager Entry point to NetAppFilesManager. */ public static void volumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - Volume resource = - manager - .volumes() - .getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE) - .getValue(); + Volume resource = manager.volumes() + .getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE).getValue(); resource.update().apply(); } } 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 dc45465a942b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class AccountsRenewCredentialsMockTests { - @Test - public void testRenewCredentials() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.accounts().renewCredentials("fgcviz", "zdwlvwlyoupfgfb", 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 c58e83251197..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\":\"koievseo\"}").toObject(AuthorizeRequest.class); - Assertions.assertEquals("koievseo", model.remoteVolumeResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AuthorizeRequest model = new AuthorizeRequest().withRemoteVolumeResourceId("koievseo"); - model = BinaryData.fromObject(model).toObject(AuthorizeRequest.class); - Assertions.assertEquals("koievseo", model.remoteVolumeResourceId()); - } -} 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 e87d9b67e66f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java +++ /dev/null @@ -1,96 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupPolicy; -import java.nio.ByteBuffer; -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 org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BackupPoliciesCreateMockTests { - @Test - public void testCreate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"etag\":\"zinkfkbgbzbowxeq\",\"properties\":{\"backupPolicyId\":\"ljmygvkzqkjjeokb\",\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":1829804009,\"weeklyBackupsToKeep\":1049990644,\"monthlyBackupsToKeep\":1442604370,\"volumesAssigned\":1208921361,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"wvz\",\"backupsCount\":765217570,\"policyEnabled\":true},{\"volumeName\":\"bzdixzmq\",\"backupsCount\":1928163279,\"policyEnabled\":false}]},\"location\":\"opqhewjptmc\",\"tags\":{\"mzlbiojlvfhrb\":\"ostzelndlatu\",\"qvcww\":\"pn\"},\"id\":\"yurmochpprprs\",\"name\":\"mo\",\"type\":\"ayzejnhlbkpbz\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - BackupPolicy response = - manager - .backupPolicies() - .define("asiibmiybnnust") - .withRegion("nzcyjtotp") - .withExistingNetAppAccount("ciqdsme", "iitdfuxt") - .withTags(mapOf("ihed", "vpbdbzqgq", "mkyi", "vqwt", "qcwdhoh", "cysihs", "sufco", "dtmcd")) - .withDailyBackupsToKeep(677853893) - .withWeeklyBackupsToKeep(915134983) - .withMonthlyBackupsToKeep(1400929714) - .withEnabled(true) - .create(); - - Assertions.assertEquals("opqhewjptmc", response.location()); - Assertions.assertEquals("ostzelndlatu", response.tags().get("mzlbiojlvfhrb")); - Assertions.assertEquals(1829804009, response.dailyBackupsToKeep()); - Assertions.assertEquals(1049990644, response.weeklyBackupsToKeep()); - Assertions.assertEquals(1442604370, response.monthlyBackupsToKeep()); - 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/BackupPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java deleted file mode 100644 index 49d9eb08f8bb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BackupPoliciesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.backupPolicies().delete("gv", "irpghriypoqeyh", "qhykprlpyzn", 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 0fe8b4d5bb83..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,75 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupPolicy; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BackupPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"etag\":\"pctf\",\"properties\":{\"backupPolicyId\":\"dxotng\",\"provisioningState\":\"gugey\",\"dailyBackupsToKeep\":1242659668,\"weeklyBackupsToKeep\":1204887332,\"monthlyBackupsToKeep\":692345701,\"volumesAssigned\":249369524,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"mfp\",\"backupsCount\":1515954350,\"policyEnabled\":false},{\"volumeName\":\"vyhyhsgzfc\",\"backupsCount\":396816762,\"policyEnabled\":false},{\"volumeName\":\"gbeglqgleo\",\"backupsCount\":1725930797,\"policyEnabled\":true},{\"volumeName\":\"luan\",\"backupsCount\":416708927,\"policyEnabled\":true}]},\"location\":\"eebtijvacvb\",\"tags\":{\"nw\":\"bqqxlaj\"},\"id\":\"acevehjkuyx\",\"name\":\"afgaoqlt\",\"type\":\"aeylinm\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - BackupPolicy response = - manager - .backupPolicies() - .getWithResponse("dfqwmkyoq", "fdvruz", "lzo", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("eebtijvacvb", response.location()); - Assertions.assertEquals("bqqxlaj", response.tags().get("nw")); - Assertions.assertEquals(1242659668, response.dailyBackupsToKeep()); - Assertions.assertEquals(1204887332, response.weeklyBackupsToKeep()); - Assertions.assertEquals(692345701, response.monthlyBackupsToKeep()); - Assertions.assertEquals(false, 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 864786d3b2b8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java +++ /dev/null @@ -1,73 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BackupPolicy; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BackupPoliciesListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"etag\":\"q\",\"properties\":{\"backupPolicyId\":\"kcxk\",\"provisioningState\":\"bn\",\"dailyBackupsToKeep\":866421840,\"weeklyBackupsToKeep\":490406344,\"monthlyBackupsToKeep\":928926099,\"volumesAssigned\":1250131057,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"wijpsttexoqqpwc\",\"backupsCount\":2114285001,\"policyEnabled\":true}]},\"location\":\"runcuwmqspkcd\",\"tags\":{\"qbnj\":\"lctddunqndyfpch\",\"qqoli\":\"rcgegydcwboxjum\",\"aiouaubrjt\":\"r\"},\"id\":\"oq\",\"name\":\"fuojrngif\",\"type\":\"rzpasccbiuimzdly\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.backupPolicies().list("gdakchz", "vl", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("runcuwmqspkcd", response.iterator().next().location()); - Assertions.assertEquals("lctddunqndyfpch", response.iterator().next().tags().get("qbnj")); - Assertions.assertEquals(866421840, response.iterator().next().dailyBackupsToKeep()); - Assertions.assertEquals(490406344, response.iterator().next().weeklyBackupsToKeep()); - Assertions.assertEquals(928926099, response.iterator().next().monthlyBackupsToKeep()); - Assertions.assertEquals(true, 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 e2fcbe2eb796..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListTests.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.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\":\"ofncckwyfzqwhxxb\",\"properties\":{\"backupPolicyId\":\"qa\",\"provisioningState\":\"feqztppriol\",\"dailyBackupsToKeep\":621148688,\"weeklyBackupsToKeep\":1270431726,\"monthlyBackupsToKeep\":929982715,\"volumesAssigned\":1321856720,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"obqwcsdbnwdcfh\",\"backupsCount\":1589501712,\"policyEnabled\":true},{\"volumeName\":\"uvglsbjjcanvx\",\"backupsCount\":235845887,\"policyEnabled\":false},{\"volumeName\":\"utncorm\",\"backupsCount\":1945766703,\"policyEnabled\":false}]},\"location\":\"cofudflvkgjub\",\"tags\":{\"nqntorudsgsahm\":\"nnqvsa\",\"rauwjuetaebu\":\"yc\",\"dmovsm\":\"u\"},\"id\":\"l\",\"name\":\"wabm\",\"type\":\"oefki\"}]}") - .toObject(BackupPoliciesList.class); - Assertions.assertEquals("cofudflvkgjub", model.value().get(0).location()); - Assertions.assertEquals("nnqvsa", model.value().get(0).tags().get("nqntorudsgsahm")); - Assertions.assertEquals(621148688, model.value().get(0).dailyBackupsToKeep()); - Assertions.assertEquals(1270431726, model.value().get(0).weeklyBackupsToKeep()); - Assertions.assertEquals(929982715, model.value().get(0).monthlyBackupsToKeep()); - Assertions.assertEquals(false, 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("cofudflvkgjub") - .withTags(mapOf("nqntorudsgsahm", "nnqvsa", "rauwjuetaebu", "yc", "dmovsm", "u")) - .withDailyBackupsToKeep(621148688) - .withWeeklyBackupsToKeep(1270431726) - .withMonthlyBackupsToKeep(929982715) - .withEnabled(false))); - model = BinaryData.fromObject(model).toObject(BackupPoliciesList.class); - Assertions.assertEquals("cofudflvkgjub", model.value().get(0).location()); - Assertions.assertEquals("nnqvsa", model.value().get(0).tags().get("nqntorudsgsahm")); - Assertions.assertEquals(621148688, model.value().get(0).dailyBackupsToKeep()); - Assertions.assertEquals(1270431726, model.value().get(0).weeklyBackupsToKeep()); - Assertions.assertEquals(929982715, model.value().get(0).monthlyBackupsToKeep()); - Assertions.assertEquals(false, 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 e0dcae9f392d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyInnerTests.java +++ /dev/null @@ -1,59 +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\":\"vtpuqujmqlgk\",\"properties\":{\"backupPolicyId\":\"tndoaongbjc\",\"provisioningState\":\"ujitcjedftww\",\"dailyBackupsToKeep\":1066178212,\"weeklyBackupsToKeep\":565058049,\"monthlyBackupsToKeep\":229411798,\"volumesAssigned\":242462331,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"ouicybxarzgszu\",\"backupsCount\":37759464,\"policyEnabled\":true},{\"volumeName\":\"opidoamciodh\",\"backupsCount\":1741139859,\"policyEnabled\":true},{\"volumeName\":\"hnzbonl\",\"backupsCount\":1184830478,\"policyEnabled\":true},{\"volumeName\":\"okdwb\",\"backupsCount\":1161774579,\"policyEnabled\":false}]},\"location\":\"cmrvexzt\",\"tags\":{\"lmnguxaw\":\"qgsfraoyzkoow\"},\"id\":\"aldsy\",\"name\":\"uximerqfobw\",\"type\":\"znkbykutwpfhpagm\"}") - .toObject(BackupPolicyInner.class); - Assertions.assertEquals("cmrvexzt", model.location()); - Assertions.assertEquals("qgsfraoyzkoow", model.tags().get("lmnguxaw")); - Assertions.assertEquals(1066178212, model.dailyBackupsToKeep()); - Assertions.assertEquals(565058049, model.weeklyBackupsToKeep()); - Assertions.assertEquals(229411798, model.monthlyBackupsToKeep()); - Assertions.assertEquals(true, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPolicyInner model = - new BackupPolicyInner() - .withLocation("cmrvexzt") - .withTags(mapOf("lmnguxaw", "qgsfraoyzkoow")) - .withDailyBackupsToKeep(1066178212) - .withWeeklyBackupsToKeep(565058049) - .withMonthlyBackupsToKeep(229411798) - .withEnabled(true); - model = BinaryData.fromObject(model).toObject(BackupPolicyInner.class); - Assertions.assertEquals("cmrvexzt", model.location()); - Assertions.assertEquals("qgsfraoyzkoow", model.tags().get("lmnguxaw")); - Assertions.assertEquals(1066178212, model.dailyBackupsToKeep()); - Assertions.assertEquals(565058049, model.weeklyBackupsToKeep()); - Assertions.assertEquals(229411798, model.monthlyBackupsToKeep()); - 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/BackupPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java deleted file mode 100644 index 63c384dcea7c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPatchTests.java +++ /dev/null @@ -1,59 +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\":\"bminrfdwoyuhhzi\",\"provisioningState\":\"efozbhdms\",\"dailyBackupsToKeep\":1531171615,\"weeklyBackupsToKeep\":1354395459,\"monthlyBackupsToKeep\":572432734,\"volumesAssigned\":1916559931,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"u\",\"backupsCount\":674060065,\"policyEnabled\":false}]},\"location\":\"cslfaoqzpiyylha\",\"tags\":{\"hka\":\"whccs\",\"ggwoluhczb\":\"vwitqscyw\",\"i\":\"emh\"},\"id\":\"sbrgz\",\"name\":\"wmsweypqwd\",\"type\":\"ggicccnxqhue\"}") - .toObject(BackupPolicyPatch.class); - Assertions.assertEquals("cslfaoqzpiyylha", model.location()); - Assertions.assertEquals("whccs", model.tags().get("hka")); - Assertions.assertEquals(1531171615, model.dailyBackupsToKeep()); - Assertions.assertEquals(1354395459, model.weeklyBackupsToKeep()); - Assertions.assertEquals(572432734, model.monthlyBackupsToKeep()); - Assertions.assertEquals(true, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPolicyPatch model = - new BackupPolicyPatch() - .withLocation("cslfaoqzpiyylha") - .withTags(mapOf("hka", "whccs", "ggwoluhczb", "vwitqscyw", "i", "emh")) - .withDailyBackupsToKeep(1531171615) - .withWeeklyBackupsToKeep(1354395459) - .withMonthlyBackupsToKeep(572432734) - .withEnabled(true); - model = BinaryData.fromObject(model).toObject(BackupPolicyPatch.class); - Assertions.assertEquals("cslfaoqzpiyylha", model.location()); - Assertions.assertEquals("whccs", model.tags().get("hka")); - Assertions.assertEquals(1531171615, model.dailyBackupsToKeep()); - Assertions.assertEquals(1354395459, model.weeklyBackupsToKeep()); - Assertions.assertEquals(572432734, model.monthlyBackupsToKeep()); - 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/BackupPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.java deleted file mode 100644 index 2218fe4f71f7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPolicyPropertiesTests.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.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\":\"skdsnfdsdoakg\",\"provisioningState\":\"lmkk\",\"dailyBackupsToKeep\":1673981436,\"weeklyBackupsToKeep\":246193278,\"monthlyBackupsToKeep\":1837577186,\"volumesAssigned\":1686383029,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"twvogvbbe\",\"backupsCount\":1690092543,\"policyEnabled\":true},{\"volumeName\":\"qmoa\",\"backupsCount\":840228808,\"policyEnabled\":false},{\"volumeName\":\"zr\",\"backupsCount\":1964426059,\"policyEnabled\":true}]}") - .toObject(BackupPolicyProperties.class); - Assertions.assertEquals(1673981436, model.dailyBackupsToKeep()); - Assertions.assertEquals(246193278, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1837577186, model.monthlyBackupsToKeep()); - Assertions.assertEquals(true, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPolicyProperties model = - new BackupPolicyProperties() - .withDailyBackupsToKeep(1673981436) - .withWeeklyBackupsToKeep(246193278) - .withMonthlyBackupsToKeep(1837577186) - .withEnabled(true); - model = BinaryData.fromObject(model).toObject(BackupPolicyProperties.class); - Assertions.assertEquals(1673981436, model.dailyBackupsToKeep()); - Assertions.assertEquals(246193278, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1837577186, model.monthlyBackupsToKeep()); - Assertions.assertEquals(true, model.enabled()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusWithResponseMockTests.java deleted file mode 100644 index aedb7d8e8ffb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeRestoreStatusWithResponseMockTests.java +++ /dev/null @@ -1,68 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.RestoreStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BackupsGetVolumeRestoreStatusWithResponseMockTests { - @Test - public void testGetVolumeRestoreStatusWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"healthy\":true,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"rzpgep\",\"errorMessage\":\"yb\",\"totalTransferBytes\":6730843668651593065}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RestoreStatus response = - manager - .backups() - .getVolumeRestoreStatusWithResponse( - "slzkwrrwoycqu", "wyh", "hnomdrkywuh", "svfuurutlwexxwl", com.azure.core.util.Context.NONE) - .getValue(); - } -} 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 8e333df6aa55..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BreakFileLocksRequestTests.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.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\":\"adbzmnvdfznud\",\"confirmRunningDisruptiveOperation\":true}") - .toObject(BreakFileLocksRequest.class); - Assertions.assertEquals("adbzmnvdfznud", model.clientIp()); - Assertions.assertEquals(true, model.confirmRunningDisruptiveOperation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BreakFileLocksRequest model = - new BreakFileLocksRequest().withClientIp("adbzmnvdfznud").withConfirmRunningDisruptiveOperation(true); - model = BinaryData.fromObject(model).toObject(BreakFileLocksRequest.class); - Assertions.assertEquals("adbzmnvdfznud", 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 1fcd352b89c6..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 0304833e0c77..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.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.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\":\"fqkquj\",\"properties\":{\"poolId\":\"suyonobglaocq\",\"size\":3198824190275494463,\"serviceLevel\":\"Premium\",\"provisioningState\":\"g\",\"totalThroughputMibps\":24.563444,\"utilizedThroughputMibps\":78.17242,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"location\":\"vwfudwpzntxhd\",\"tags\":{\"rxsbkyvp\":\"rqjbhckfrl\",\"uzbpzkafku\":\"ca\",\"rnwb\":\"b\"},\"id\":\"ehhseyvjusrts\",\"name\":\"hspkdeemao\",\"type\":\"mx\"}") - .toObject(CapacityPoolInner.class); - Assertions.assertEquals("vwfudwpzntxhd", model.location()); - Assertions.assertEquals("rqjbhckfrl", model.tags().get("rxsbkyvp")); - Assertions.assertEquals(3198824190275494463L, model.size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CapacityPoolInner model = - new CapacityPoolInner() - .withLocation("vwfudwpzntxhd") - .withTags(mapOf("rxsbkyvp", "rqjbhckfrl", "uzbpzkafku", "ca", "rnwb", "b")) - .withSize(3198824190275494463L) - .withServiceLevel(ServiceLevel.PREMIUM) - .withQosType(QosType.AUTO) - .withCoolAccess(true) - .withEncryptionType(EncryptionType.SINGLE); - model = BinaryData.fromObject(model).toObject(CapacityPoolInner.class); - Assertions.assertEquals("vwfudwpzntxhd", model.location()); - Assertions.assertEquals("rqjbhckfrl", model.tags().get("rxsbkyvp")); - Assertions.assertEquals(3198824190275494463L, model.size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, 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 4b79ba4c9cbe..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java +++ /dev/null @@ -1,90 +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\":\"eaxib\",\"properties\":{\"poolId\":\"jwbhqwalmuz\",\"size\":6168274838392071541,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"pdkzjancuxr\",\"totalThroughputMibps\":66.62854,\"utilizedThroughputMibps\":93.76715,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"location\":\"jswztsdbpg\",\"tags\":{\"xbzpfzab\":\"txhp\",\"ovplw\":\"lcuhxwtctyqiklb\"},\"id\":\"bhvgy\",\"name\":\"gu\",\"type\":\"svmkfssxquk\"},{\"etag\":\"plgmgsxnk\",\"properties\":{\"poolId\":\"kde\",\"size\":7084872588122570574,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"opwi\",\"totalThroughputMibps\":41.176914,\"utilizedThroughputMibps\":20.48598,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"location\":\"iuebbaumny\",\"tags\":{\"hsmtxpsiebtfhvp\":\"edeojnabc\"},\"id\":\"sapskr\",\"name\":\"qmhjjdhtld\",\"type\":\"kyzxuutk\"},{\"etag\":\"ws\",\"properties\":{\"poolId\":\"svlxotogtwrup\",\"size\":1377433518907384393,\"serviceLevel\":\"Standard\",\"provisioningState\":\"micykvceoveilo\",\"totalThroughputMibps\":15.381831,\"utilizedThroughputMibps\":64.81392,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"location\":\"k\",\"tags\":{\"kphywpnvjto\":\"dhbt\"},\"id\":\"nermcl\",\"name\":\"plpho\",\"type\":\"uscrpabgyepsb\"}],\"nextLink\":\"azqugxywpmueefj\"}") - .toObject(CapacityPoolList.class); - Assertions.assertEquals("jswztsdbpg", model.value().get(0).location()); - Assertions.assertEquals("txhp", model.value().get(0).tags().get("xbzpfzab")); - Assertions.assertEquals(6168274838392071541L, model.value().get(0).size()); - Assertions.assertEquals(ServiceLevel.ULTRA, 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.SINGLE, model.value().get(0).encryptionType()); - Assertions.assertEquals("azqugxywpmueefj", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CapacityPoolList model = - new CapacityPoolList() - .withValue( - Arrays - .asList( - new CapacityPoolInner() - .withLocation("jswztsdbpg") - .withTags(mapOf("xbzpfzab", "txhp", "ovplw", "lcuhxwtctyqiklb")) - .withSize(6168274838392071541L) - .withServiceLevel(ServiceLevel.ULTRA) - .withQosType(QosType.AUTO) - .withCoolAccess(false) - .withEncryptionType(EncryptionType.SINGLE), - new CapacityPoolInner() - .withLocation("iuebbaumny") - .withTags(mapOf("hsmtxpsiebtfhvp", "edeojnabc")) - .withSize(7084872588122570574L) - .withServiceLevel(ServiceLevel.ULTRA) - .withQosType(QosType.MANUAL) - .withCoolAccess(false) - .withEncryptionType(EncryptionType.DOUBLE), - new CapacityPoolInner() - .withLocation("k") - .withTags(mapOf("kphywpnvjto", "dhbt")) - .withSize(1377433518907384393L) - .withServiceLevel(ServiceLevel.STANDARD) - .withQosType(QosType.AUTO) - .withCoolAccess(true) - .withEncryptionType(EncryptionType.DOUBLE))) - .withNextLink("azqugxywpmueefj"); - model = BinaryData.fromObject(model).toObject(CapacityPoolList.class); - Assertions.assertEquals("jswztsdbpg", model.value().get(0).location()); - Assertions.assertEquals("txhp", model.value().get(0).tags().get("xbzpfzab")); - Assertions.assertEquals(6168274838392071541L, model.value().get(0).size()); - Assertions.assertEquals(ServiceLevel.ULTRA, 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.SINGLE, model.value().get(0).encryptionType()); - Assertions.assertEquals("azqugxywpmueefj", 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 47ec1f6301cf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.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.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\":2542526403950408941,\"qosType\":\"Auto\",\"coolAccess\":false},\"location\":\"fadmws\",\"tags\":{\"gomz\":\"gvxp\"},\"id\":\"fmisg\",\"name\":\"bnbbeldawkz\",\"type\":\"ali\"}") - .toObject(CapacityPoolPatch.class); - Assertions.assertEquals("fadmws", model.location()); - Assertions.assertEquals("gvxp", model.tags().get("gomz")); - Assertions.assertEquals(2542526403950408941L, model.size()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(false, model.coolAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CapacityPoolPatch model = - new CapacityPoolPatch() - .withLocation("fadmws") - .withTags(mapOf("gomz", "gvxp")) - .withSize(2542526403950408941L) - .withQosType(QosType.AUTO) - .withCoolAccess(false); - model = BinaryData.fromObject(model).toObject(CapacityPoolPatch.class); - Assertions.assertEquals("fadmws", model.location()); - Assertions.assertEquals("gvxp", model.tags().get("gomz")); - Assertions.assertEquals(2542526403950408941L, model.size()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(false, 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 472e730246d8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.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.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/DailyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.java deleted file mode 100644 index dbc6998bf72a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DailyScheduleTests.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.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\":1081662268,\"hour\":535447173,\"minute\":88116741,\"usedBytes\":4291870996342138092}") - .toObject(DailySchedule.class); - Assertions.assertEquals(1081662268, model.snapshotsToKeep()); - Assertions.assertEquals(535447173, model.hour()); - Assertions.assertEquals(88116741, model.minute()); - Assertions.assertEquals(4291870996342138092L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DailySchedule model = - new DailySchedule() - .withSnapshotsToKeep(1081662268) - .withHour(535447173) - .withMinute(88116741) - .withUsedBytes(4291870996342138092L); - model = BinaryData.fromObject(model).toObject(DailySchedule.class); - Assertions.assertEquals(1081662268, model.snapshotsToKeep()); - Assertions.assertEquals(535447173, model.hour()); - Assertions.assertEquals(88116741, model.minute()); - Assertions.assertEquals(4291870996342138092L, 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 60bcc660886e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/DimensionTests.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.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 0938774281fc..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.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.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\":\"pnazzm\",\"userAssignedIdentity\":\"runmp\"}") - .toObject(EncryptionIdentity.class); - Assertions.assertEquals("runmp", model.userAssignedIdentity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EncryptionIdentity model = new EncryptionIdentity().withUserAssignedIdentity("runmp"); - model = BinaryData.fromObject(model).toObject(EncryptionIdentity.class); - Assertions.assertEquals("runmp", model.userAssignedIdentity()); - } -} 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 cfdd6d735ac2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ExportPolicyRuleTests.java +++ /dev/null @@ -1,73 +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\":1115460475,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"srknftguv\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"}") - .toObject(ExportPolicyRule.class); - Assertions.assertEquals(1115460475, model.ruleIndex()); - Assertions.assertEquals(false, model.unixReadOnly()); - Assertions.assertEquals(true, model.unixReadWrite()); - Assertions.assertEquals(false, model.kerberos5ReadOnly()); - Assertions.assertEquals(false, model.kerberos5ReadWrite()); - Assertions.assertEquals(true, model.kerberos5IReadOnly()); - Assertions.assertEquals(false, model.kerberos5IReadWrite()); - Assertions.assertEquals(false, model.kerberos5PReadOnly()); - Assertions.assertEquals(true, model.kerberos5PReadWrite()); - Assertions.assertEquals(false, model.cifs()); - Assertions.assertEquals(true, model.nfsv3()); - Assertions.assertEquals(true, model.nfsv41()); - Assertions.assertEquals("srknftguv", model.allowedClients()); - Assertions.assertEquals(true, model.hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.chownMode()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExportPolicyRule model = - new ExportPolicyRule() - .withRuleIndex(1115460475) - .withUnixReadOnly(false) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(true) - .withCifs(false) - .withNfsv3(true) - .withNfsv41(true) - .withAllowedClients("srknftguv") - .withHasRootAccess(true) - .withChownMode(ChownMode.UNRESTRICTED); - model = BinaryData.fromObject(model).toObject(ExportPolicyRule.class); - Assertions.assertEquals(1115460475, model.ruleIndex()); - Assertions.assertEquals(false, model.unixReadOnly()); - Assertions.assertEquals(true, model.unixReadWrite()); - Assertions.assertEquals(false, model.kerberos5ReadOnly()); - Assertions.assertEquals(false, model.kerberos5ReadWrite()); - Assertions.assertEquals(true, model.kerberos5IReadOnly()); - Assertions.assertEquals(false, model.kerberos5IReadWrite()); - Assertions.assertEquals(false, model.kerberos5PReadOnly()); - Assertions.assertEquals(true, model.kerberos5PReadWrite()); - Assertions.assertEquals(false, model.cifs()); - Assertions.assertEquals(true, model.nfsv3()); - Assertions.assertEquals(true, model.nfsv41()); - Assertions.assertEquals("srknftguv", model.allowedClients()); - Assertions.assertEquals(true, model.hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, 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 2968646aff8f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.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.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\"}") - .toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("ovm", model.name()); - Assertions.assertEquals("okacspk", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FilePathAvailabilityRequest model = new FilePathAvailabilityRequest().withName("ovm").withSubnetId("okacspk"); - model = BinaryData.fromObject(model).toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("ovm", model.name()); - Assertions.assertEquals("okacspk", model.subnetId()); - } -} 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 b9f1aaa97e9a..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\":\"vxzbncb\"}").toObject(GetGroupIdListForLdapUserRequest.class); - Assertions.assertEquals("vxzbncb", model.username()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetGroupIdListForLdapUserRequest model = new GetGroupIdListForLdapUserRequest().withUsername("vxzbncb"); - model = BinaryData.fromObject(model).toObject(GetGroupIdListForLdapUserRequest.class); - Assertions.assertEquals("vxzbncb", 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 e9e35bd98503..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/GetGroupIdListForLdapUserResponseInnerTests.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.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\":[\"pstdbhhxsrzd\",\"ucerscdntnevfi\",\"jmygtdsslswtmwer\",\"ofz\"]}") - .toObject(GetGroupIdListForLdapUserResponseInner.class); - Assertions.assertEquals("pstdbhhxsrzd", model.groupIdsForLdapUser().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetGroupIdListForLdapUserResponseInner model = - new GetGroupIdListForLdapUserResponseInner() - .withGroupIdsForLdapUser(Arrays.asList("pstdbhhxsrzd", "ucerscdntnevfi", "jmygtdsslswtmwer", "ofz")); - model = BinaryData.fromObject(model).toObject(GetGroupIdListForLdapUserResponseInner.class); - Assertions.assertEquals("pstdbhhxsrzd", 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 698ad85dab3a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/HourlyScheduleTests.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.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\":381030924,\"minute\":1017473450,\"usedBytes\":6968746441071799209}") - .toObject(HourlySchedule.class); - Assertions.assertEquals(381030924, model.snapshotsToKeep()); - Assertions.assertEquals(1017473450, model.minute()); - Assertions.assertEquals(6968746441071799209L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HourlySchedule model = - new HourlySchedule() - .withSnapshotsToKeep(381030924) - .withMinute(1017473450) - .withUsedBytes(6968746441071799209L); - model = BinaryData.fromObject(model).toObject(HourlySchedule.class); - Assertions.assertEquals(381030924, model.snapshotsToKeep()); - Assertions.assertEquals(1017473450, model.minute()); - Assertions.assertEquals(6968746441071799209L, model.usedBytes()); - } -} 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 4cb6247b9f59..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\":\"rgvtqag\",\"groupDN\":\"uynhijg\",\"groupMembershipFilter\":\"ebf\"}") - .toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("rgvtqag", model.userDN()); - Assertions.assertEquals("uynhijg", model.groupDN()); - Assertions.assertEquals("ebf", model.groupMembershipFilter()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LdapSearchScopeOpt model = - new LdapSearchScopeOpt().withUserDN("rgvtqag").withGroupDN("uynhijg").withGroupMembershipFilter("ebf"); - model = BinaryData.fromObject(model).toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("rgvtqag", model.userDN()); - Assertions.assertEquals("uynhijg", model.groupDN()); - Assertions.assertEquals("ebf", 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 7f0bf6528e82..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ListReplicationsTests.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.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\":[{\"endpointType\":\"src\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"xogaokonzmnsikv\",\"remoteVolumeRegion\":\"qzeqqkdltfzxm\"},{\"endpointType\":\"src\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"ur\",\"remoteVolumeRegion\":\"dkwobdagx\"},{\"endpointType\":\"src\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"xbxwa\",\"remoteVolumeRegion\":\"ogqxndlkzgxhuri\"}]}") - .toObject(ListReplications.class); - Assertions.assertEquals(EndpointType.SRC, model.value().get(0).endpointType()); - Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.value().get(0).replicationSchedule()); - Assertions.assertEquals("xogaokonzmnsikv", model.value().get(0).remoteVolumeResourceId()); - Assertions.assertEquals("qzeqqkdltfzxm", 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.SRC) - .withReplicationSchedule(ReplicationSchedule.ONE_ZEROMINUTELY) - .withRemoteVolumeResourceId("xogaokonzmnsikv") - .withRemoteVolumeRegion("qzeqqkdltfzxm"), - new ReplicationInner() - .withEndpointType(EndpointType.SRC) - .withReplicationSchedule(ReplicationSchedule.DAILY) - .withRemoteVolumeResourceId("ur") - .withRemoteVolumeRegion("dkwobdagx"), - new ReplicationInner() - .withEndpointType(EndpointType.SRC) - .withReplicationSchedule(ReplicationSchedule.ONE_ZEROMINUTELY) - .withRemoteVolumeResourceId("xbxwa") - .withRemoteVolumeRegion("ogqxndlkzgxhuri"))); - model = BinaryData.fromObject(model).toObject(ListReplications.class); - Assertions.assertEquals(EndpointType.SRC, model.value().get(0).endpointType()); - Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.value().get(0).replicationSchedule()); - Assertions.assertEquals("xogaokonzmnsikv", model.value().get(0).remoteVolumeResourceId()); - Assertions.assertEquals("qzeqqkdltfzxm", 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 89a4e39ad962..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LogSpecificationTests.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.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 16ce48251bbe..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.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.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\":\"d5f74266-3576-4a12-81d6-ff02b2e89ff3\",\"tenantId\":\"5977122d-8f92-4b21-a571-178b2f396f04\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"nlankxmyskpb\":{\"principalId\":\"9ae0881c-6aaf-44ba-8722-f13351e26773\",\"clientId\":\"9165b432-b66a-4398-9ca5-839611aaf6db\"},\"btkcxywnytnrsyn\":{\"principalId\":\"2f668827-5c8c-460e-9de2-a63a9fb2a250\",\"clientId\":\"43eb2372-ef41-46f9-acf4-b9b6f0f3c5d6\"},\"dybyxczfclhaa\":{\"principalId\":\"9f6c3000-212a-406d-8533-a95ff9918fc0\",\"clientId\":\"b4840252-4edc-475b-86f7-1277fd95ad17\"},\"abphlw\":{\"principalId\":\"24869444-5618-456e-811e-78f750ba34eb\",\"clientId\":\"04c2d95c-5312-4e99-af9a-e62c7a350dcb\"}}}") - .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedServiceIdentity model = - new ManagedServiceIdentity() - .withType(ManagedServiceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "nlankxmyskpb", - new UserAssignedIdentity(), - "btkcxywnytnrsyn", - new UserAssignedIdentity(), - "dybyxczfclhaa", - new UserAssignedIdentity(), - "abphlw", - new UserAssignedIdentity())); - model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.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 b918bd8ac235..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MetricSpecificationTests.java +++ /dev/null @@ -1,92 +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 28249e8724ba..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MonthlyScheduleTests.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.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\":1521931041,\"daysOfMonth\":\"krmnjijpxacqqud\",\"hour\":402319478,\"minute\":217779301,\"usedBytes\":3011567239664455561}") - .toObject(MonthlySchedule.class); - Assertions.assertEquals(1521931041, model.snapshotsToKeep()); - Assertions.assertEquals("krmnjijpxacqqud", model.daysOfMonth()); - Assertions.assertEquals(402319478, model.hour()); - Assertions.assertEquals(217779301, model.minute()); - Assertions.assertEquals(3011567239664455561L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MonthlySchedule model = - new MonthlySchedule() - .withSnapshotsToKeep(1521931041) - .withDaysOfMonth("krmnjijpxacqqud") - .withHour(402319478) - .withMinute(217779301) - .withUsedBytes(3011567239664455561L); - model = BinaryData.fromObject(model).toObject(MonthlySchedule.class); - Assertions.assertEquals(1521931041, model.snapshotsToKeep()); - Assertions.assertEquals("krmnjijpxacqqud", model.daysOfMonth()); - Assertions.assertEquals(402319478, model.hour()); - Assertions.assertEquals(217779301, model.minute()); - Assertions.assertEquals(3011567239664455561L, 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 0f2467638b32..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/MountTargetPropertiesTests.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.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\":\"wmdyvxqtay\",\"fileSystemId\":\"iwwroyqbexrmc\",\"ipAddress\":\"bycnojvkn\",\"smbServerFqdn\":\"fqsgzvahapjy\"}") - .toObject(MountTargetProperties.class); - Assertions.assertEquals("iwwroyqbexrmc", model.fileSystemId()); - Assertions.assertEquals("fqsgzvahapjy", model.smbServerFqdn()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MountTargetProperties model = - new MountTargetProperties().withFileSystemId("iwwroyqbexrmc").withSmbServerFqdn("fqsgzvahapjy"); - model = BinaryData.fromObject(model).toObject(MountTargetProperties.class); - Assertions.assertEquals("iwwroyqbexrmc", model.fileSystemId()); - Assertions.assertEquals("fqsgzvahapjy", 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 2b9a3dab7f53..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class NetAppResourceQuotaLimitsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"current\":1272047729,\"default\":923595041},\"id\":\"bqplh\",\"name\":\"vnuuepzl\",\"type\":\"phwzsoldweyuqdu\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SubscriptionQuotaItem response = - manager - .netAppResourceQuotaLimits() - .getWithResponse("crxgibb", "axconfozauo", 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 90b76b52d9d2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.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.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class NetAppResourceQuotaLimitsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"current\":937766926,\"default\":689066944},\"id\":\"gdxpg\",\"name\":\"qchiszep\",\"type\":\"nb\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.netAppResourceQuotaLimits().list("inyflnorwmduvwp", com.azure.core.util.Context.NONE); - } -} 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 c66788e73014..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests { - @Test - public void testCheckFilePathAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"isAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"iv\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckAvailabilityResponse response = - manager - .netAppResources() - .checkFilePathAvailabilityWithResponse( - "gaifmvik", - new FilePathAvailabilityRequest().withName("bydvkhbejdz").withSubnetId("xcv"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("iv", 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 6d194696b5eb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"isAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"qnrnrpxehuwryk\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckAvailabilityResponse response = - manager - .netAppResources() - .checkNameAvailabilityWithResponse( - "xvydfceacvlhvygd", - new ResourceNameAvailabilityRequest() - .withName("ftumrtwnawjslbiw") - .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS) - .withResourceGroup("jgcyztsfmznba"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("qnrnrpxehuwryk", 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 a70c54a777da..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests { - @Test - public void testCheckQuotaAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"isAvailable\":false,\"reason\":\"Invalid\",\"message\":\"ejwcwwqiok\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckAvailabilityResponse response = - manager - .netAppResources() - .checkQuotaAvailabilityWithResponse( - "lvtno", - new QuotaAvailabilityRequest() - .withName("qfzgemjdftul") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS) - .withResourceGroup("tduceamt"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason()); - Assertions.assertEquals("ejwcwwqiok", 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 f01accef05b8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java +++ /dev/null @@ -1,79 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests { - @Test - public void testQueryNetworkSiblingSetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"networkSiblingSetId\":\"odpvruudlgzib\",\"subnetId\":\"ostgkts\",\"networkSiblingSetStateId\":\"dxeclzedqbcvh\",\"networkFeatures\":\"Basic\",\"provisioningState\":\"Updating\",\"nicInfoList\":[{\"ipAddress\":\"kdl\",\"volumeResourceIds\":[\"fbumlkx\",\"rqjfsmlm\",\"txhwgfws\",\"tawc\"]},{\"ipAddress\":\"zbrhubskhudyg\",\"volumeResourceIds\":[\"kkqfqjbvle\",\"rfmluiqtq\",\"fa\"]},{\"ipAddress\":\"vnqqybaryeua\",\"volumeResourceIds\":[\"qabqgzslesjcb\"]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - NetworkSiblingSet response = - manager - .netAppResources() - .queryNetworkSiblingSetWithResponse( - "htba", - new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("kgxywr").withSubnetId("kpyklyhp"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("odpvruudlgzib", response.networkSiblingSetId()); - Assertions.assertEquals("ostgkts", response.subnetId()); - Assertions.assertEquals("dxeclzedqbcvh", response.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC, response.networkFeatures()); - Assertions.assertEquals("fbumlkx", 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 00d1be73d7e1..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java +++ /dev/null @@ -1,73 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.RegionInfo; -import com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesQueryRegionInfoWithResponseMockTests { - @Test - public void testQueryRegionInfoWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"storageToNetworkProximity\":\"T2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"vk\",\"isAvailable\":false},{\"availabilityZone\":\"ql\",\"isAvailable\":false},{\"availabilityZone\":\"tczheydbsdshmkx\",\"isAvailable\":true},{\"availabilityZone\":\"vbbxuripl\",\"isAvailable\":false}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RegionInfo response = - manager - .netAppResources() - .queryRegionInfoWithResponse("ssxmojms", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(RegionStorageToNetworkProximity.T2, response.storageToNetworkProximity()); - Assertions.assertEquals("vk", 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 2f37383d3e52..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class NetAppResourcesUpdateNetworkSiblingSetMockTests { - @Test - public void testUpdateNetworkSiblingSet() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"networkSiblingSetId\":\"vvhmxtdrj\",\"subnetId\":\"tac\",\"networkSiblingSetStateId\":\"bj\",\"networkFeatures\":\"Standard_Basic\",\"provisioningState\":\"Canceled\",\"nicInfoList\":[{\"ipAddress\":\"m\",\"volumeResourceIds\":[\"mguaadraufa\",\"tkahzo\",\"ajjziuxxpshne\",\"kulfg\"]},{\"ipAddress\":\"qubkw\",\"volumeResourceIds\":[\"nrdsutujbazpjuoh\"]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - NetworkSiblingSet response = - manager - .netAppResources() - .updateNetworkSiblingSet( - "ernntiewdjcvbquw", - new UpdateNetworkSiblingSetRequest() - .withNetworkSiblingSetId("behwagohb") - .withSubnetId("f") - .withNetworkSiblingSetStateId("kmr") - .withNetworkFeatures(NetworkFeatures.STANDARD), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("vvhmxtdrj", response.networkSiblingSetId()); - Assertions.assertEquals("tac", response.subnetId()); - Assertions.assertEquals("bj", response.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, response.networkFeatures()); - Assertions.assertEquals("mguaadraufa", 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 41b6331437b9..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\":\"pwhonowkg\",\"subnetId\":\"wankixzbi\",\"networkSiblingSetStateId\":\"eputtmrywnuzoqf\",\"networkFeatures\":\"Standard_Basic\",\"provisioningState\":\"Canceled\",\"nicInfoList\":[{\"ipAddress\":\"cqvyxlwhzlsico\",\"volumeResourceIds\":[\"qnwvlrya\"]}]}") - .toObject(NetworkSiblingSetInner.class); - Assertions.assertEquals("pwhonowkg", model.networkSiblingSetId()); - Assertions.assertEquals("wankixzbi", model.subnetId()); - Assertions.assertEquals("eputtmrywnuzoqf", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); - Assertions.assertEquals("qnwvlrya", model.nicInfoList().get(0).volumeResourceIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkSiblingSetInner model = - new NetworkSiblingSetInner() - .withNetworkSiblingSetId("pwhonowkg") - .withSubnetId("wankixzbi") - .withNetworkSiblingSetStateId("eputtmrywnuzoqf") - .withNetworkFeatures(NetworkFeatures.STANDARD_BASIC) - .withNicInfoList(Arrays.asList(new NicInfo().withVolumeResourceIds(Arrays.asList("qnwvlrya")))); - model = BinaryData.fromObject(model).toObject(NetworkSiblingSetInner.class); - Assertions.assertEquals("pwhonowkg", model.networkSiblingSetId()); - Assertions.assertEquals("wankixzbi", model.subnetId()); - Assertions.assertEquals("eputtmrywnuzoqf", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); - Assertions.assertEquals("qnwvlrya", 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 37b2f8477ed8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.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.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\":\"hheunmmqhgyx\",\"volumeResourceIds\":[\"noc\",\"koklya\"]}") - .toObject(NicInfo.class); - Assertions.assertEquals("noc", model.volumeResourceIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NicInfo model = new NicInfo().withVolumeResourceIds(Arrays.asList("noc", "koklya")); - model = BinaryData.fromObject(model).toObject(NicInfo.class); - Assertions.assertEquals("noc", 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 6d033c009b93..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationDisplayTests.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.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 e709460fba5f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationInnerTests.java +++ /dev/null @@ -1,218 +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 dd04d321a16e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationListResultTests.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.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 aacdf59defa0..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationPropertiesTests.java +++ /dev/null @@ -1,197 +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 bfa04e04e7b6..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java +++ /dev/null @@ -1,160 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.MetricAggregationType; -import com.azure.resourcemanager.netapp.models.Operation; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"name\":\"hixbjxyfwnyl\",\"display\":{\"provider\":\"o\",\"resource\":\"ttpkiwkkbnujrywv\",\"operation\":\"lbfpncurd\",\"description\":\"wiithtywub\"},\"origin\":\"bihwqknfdnt\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"goihx\",\"displayName\":\"wct\",\"displayDescription\":\"dzjlu\",\"unit\":\"fdlwg\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"vvt\",\"seinqfiuf\",\"qknp\",\"rgnepttwqmsniffc\"],\"internalMetricName\":\"qnrojlpijnkrxfrd\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"atiz\",\"sourceMdmNamespace\":\"onasxifto\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"hftwesgog\",\"fillGapWithZero\":true,\"category\":\"nnxk\",\"resourceIdDimensionNameOverride\":\"gnyhmossxkkg\",\"isInternal\":true},{\"name\":\"gh\",\"displayName\":\"bdhqxvcxgf\",\"displayDescription\":\"dsofbshrns\",\"unit\":\"uswdv\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"nvjsrtkfa\",\"nopqgikyzirtx\",\"yuxzejntpsewgi\",\"ilqu\"],\"internalMetricName\":\"ydxtqm\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"orgguf\",\"sourceMdmNamespace\":\"aomtbghhavgrvkff\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"hpjbib\",\"fillGapWithZero\":true,\"category\":\"xumvfcluyovw\",\"resourceIdDimensionNameOverride\":\"bkfezzxscyhwzdgi\",\"isInternal\":true},{\"name\":\"zbomvzzbtdcqvpni\",\"displayName\":\"jviylwdshfs\",\"displayDescription\":\"rbgyefry\",\"unit\":\"gaojf\",\"supportedAggregationTypes\":[\"Average\"],\"supportedTimeGrainTypes\":[\"mrfhirctymox\"],\"internalMetricName\":\"tpipiwyczuhx\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"jlihhyus\",\"sourceMdmNamespace\":\"kasdvlm\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"zxulucvpamrsreu\",\"fillGapWithZero\":true,\"category\":\"risjnhnytxifqjz\",\"resourceIdDimensionNameOverride\":\"mrhublwpc\",\"isInternal\":false}],\"logSpecifications\":[{\"name\":\"jupauut\",\"displayName\":\"oqh\"},{\"name\":\"ejqgw\",\"displayName\":\"nfqn\"},{\"name\":\"ypsxjvfoim\",\"displayName\":\"slirciz\"}]}}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hixbjxyfwnyl", response.iterator().next().name()); - Assertions.assertEquals("o", response.iterator().next().display().provider()); - Assertions.assertEquals("ttpkiwkkbnujrywv", response.iterator().next().display().resource()); - Assertions.assertEquals("lbfpncurd", response.iterator().next().display().operation()); - Assertions.assertEquals("wiithtywub", response.iterator().next().display().description()); - Assertions.assertEquals("bihwqknfdnt", response.iterator().next().origin()); - Assertions - .assertEquals( - "goihx", response.iterator().next().serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals( - "wct", response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals( - "dzjlu", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions - .assertEquals( - "fdlwg", response.iterator().next().serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals( - MetricAggregationType.AVERAGE, - response - .iterator() - .next() - .serviceSpecification() - .metricSpecifications() - .get(0) - .supportedAggregationTypes() - .get(0)); - Assertions - .assertEquals( - "vvt", - response - .iterator() - .next() - .serviceSpecification() - .metricSpecifications() - .get(0) - .supportedTimeGrainTypes() - .get(0)); - Assertions - .assertEquals( - "qnrojlpijnkrxfrd", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions - .assertEquals( - false, - response - .iterator() - .next() - .serviceSpecification() - .metricSpecifications() - .get(0) - .enableRegionalMdmAccount()); - Assertions - .assertEquals( - "atiz", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions - .assertEquals( - "onasxifto", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions - .assertEquals( - "hftwesgog", - response.iterator().next().serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals( - true, - response.iterator().next().serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions - .assertEquals( - "nnxk", response.iterator().next().serviceSpecification().metricSpecifications().get(0).category()); - Assertions - .assertEquals( - "gnyhmossxkkg", - response - .iterator() - .next() - .serviceSpecification() - .metricSpecifications() - .get(0) - .resourceIdDimensionNameOverride()); - Assertions - .assertEquals( - true, response.iterator().next().serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions - .assertEquals( - "jupauut", response.iterator().next().serviceSpecification().logSpecifications().get(0).name()); - Assertions - .assertEquals( - "oqh", response.iterator().next().serviceSpecification().logSpecifications().get(0).displayName()); - } -} 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 241a4e3f9283..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\":\"gqrlltmuwla\"}").toObject(PoolChangeRequest.class); - Assertions.assertEquals("gqrlltmuwla", model.newPoolResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PoolChangeRequest model = new PoolChangeRequest().withNewPoolResourceId("gqrlltmuwla"); - model = BinaryData.fromObject(model).toObject(PoolChangeRequest.class); - Assertions.assertEquals("gqrlltmuwla", 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 90d3769c0b5d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.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.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\":54169882983487255,\"qosType\":\"Auto\",\"coolAccess\":true}") - .toObject(PoolPatchProperties.class); - Assertions.assertEquals(54169882983487255L, model.size()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(true, model.coolAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PoolPatchProperties model = - new PoolPatchProperties().withSize(54169882983487255L).withQosType(QosType.AUTO).withCoolAccess(true); - model = BinaryData.fromObject(model).toObject(PoolPatchProperties.class); - Assertions.assertEquals(54169882983487255L, model.size()); - Assertions.assertEquals(QosType.AUTO, 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 e8da0cf059ac..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.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.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\":\"kv\",\"size\":989086550960883148,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"qkrhahvljua\",\"totalThroughputMibps\":69.46674,\"utilizedThroughputMibps\":50.34383,\"qosType\":\"Auto\",\"coolAccess\":false,\"encryptionType\":\"Double\"}") - .toObject(PoolProperties.class); - Assertions.assertEquals(989086550960883148L, model.size()); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PoolProperties model = - new PoolProperties() - .withSize(989086550960883148L) - .withServiceLevel(ServiceLevel.ULTRA) - .withQosType(QosType.AUTO) - .withCoolAccess(false) - .withEncryptionType(EncryptionType.DOUBLE); - model = BinaryData.fromObject(model).toObject(PoolProperties.class); - Assertions.assertEquals(989086550960883148L, model.size()); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(QosType.AUTO, model.qosType()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, 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 129e88c0643a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.ByteBuffer; -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 org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PoolsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"etag\":\"ajlyjtlvofqzhv\",\"properties\":{\"poolId\":\"ibyfmo\",\"size\":6727856303003361360,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"Succeeded\",\"totalThroughputMibps\":78.12518,\"utilizedThroughputMibps\":77.284424,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"location\":\"hyzsxjrkamb\",\"tags\":{\"nvuqeqvldspa\":\"egv\",\"kdmflvestmjlx\":\"tjb\",\"zapeewchpx\":\"ril\"},\"id\":\"ktwkuziyc\",\"name\":\"levufuztcktyhj\",\"type\":\"qedcgzulwm\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CapacityPool response = - manager - .pools() - .define("evwrdnhfuk") - .withRegion("oqcaaewdaomdj") - .withExistingNetAppAccount("chp", "db") - .withSize(3770519572473050056L) - .withServiceLevel(ServiceLevel.STANDARD) - .withTags(mapOf("siykzkdncjdxonbz", "jxxkzbrmsgei", "z", "ggcula")) - .withQosType(QosType.AUTO) - .withCoolAccess(false) - .withEncryptionType(EncryptionType.SINGLE) - .create(); - - Assertions.assertEquals("hyzsxjrkamb", response.location()); - Assertions.assertEquals("egv", response.tags().get("nvuqeqvldspa")); - Assertions.assertEquals(6727856303003361360L, response.size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, response.serviceLevel()); - Assertions.assertEquals(QosType.MANUAL, response.qosType()); - Assertions.assertEquals(false, response.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, 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 ad5982bf722a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java +++ /dev/null @@ -1,79 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PoolsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"etag\":\"yakk\",\"properties\":{\"poolId\":\"zp\",\"size\":8657579168665991549,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"lma\",\"totalThroughputMibps\":64.56741,\"utilizedThroughputMibps\":98.82529,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"location\":\"kdbdgiogsj\",\"tags\":{\"iyhddvi\":\"wqjnob\",\"vm\":\"cegfnmntfp\"},\"id\":\"mfnczd\",\"name\":\"vvbalx\",\"type\":\"l\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CapacityPool response = - manager - .pools() - .getWithResponse("dabg", "vudtjuewbcihx", "uwhcjyxccybv", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("kdbdgiogsj", response.location()); - Assertions.assertEquals("wqjnob", response.tags().get("iyhddvi")); - Assertions.assertEquals(8657579168665991549L, response.size()); - Assertions.assertEquals(ServiceLevel.ULTRA, response.serviceLevel()); - Assertions.assertEquals(QosType.MANUAL, 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 d41f2841eac2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java +++ /dev/null @@ -1,77 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PoolsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"etag\":\"uisavokq\",\"properties\":{\"poolId\":\"fvazivjlfrqttba\",\"size\":8474916357734436058,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"nwxyiop\",\"totalThroughputMibps\":28.38924,\"utilizedThroughputMibps\":76.790695,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"location\":\"kdmligovi\",\"tags\":{\"uruocbgo\":\"kpmloa\"},\"id\":\"rb\",\"name\":\"eoybfhjxakvvjgs\",\"type\":\"ordilmywwtkgkxny\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.pools().list("mmqtgqqqxhr", "xrxc", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kdmligovi", response.iterator().next().location()); - Assertions.assertEquals("kpmloa", response.iterator().next().tags().get("uruocbgo")); - Assertions.assertEquals(8474916357734436058L, 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 9a648853bf3b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.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.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\":\"yeamdphagalpb\",\"subnetId\":\"xw\"}") - .toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("yeamdphagalpb", model.networkSiblingSetId()); - Assertions.assertEquals("xw", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QueryNetworkSiblingSetRequest model = - new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("yeamdphagalpb").withSubnetId("xw"); - model = BinaryData.fromObject(model).toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("yeamdphagalpb", model.networkSiblingSetId()); - Assertions.assertEquals("xw", 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 ec2d073fed4a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.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.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\":\"lhzdobp\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools/volumes\",\"resourceGroup\":\"mflbv\"}") - .toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("lhzdobp", model.name()); - Assertions - .assertEquals( - CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES, model.type()); - Assertions.assertEquals("mflbv", model.resourceGroup()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuotaAvailabilityRequest model = - new QuotaAvailabilityRequest() - .withName("lhzdobp") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES) - .withResourceGroup("mflbv"); - model = BinaryData.fromObject(model).toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("lhzdobp", model.name()); - Assertions - .assertEquals( - CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES, model.type()); - Assertions.assertEquals("mflbv", 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 d11a5f0b81bc..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\":\"emwabnet\"}").toObject(ReestablishReplicationRequest.class); - Assertions.assertEquals("emwabnet", model.sourceVolumeId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReestablishReplicationRequest model = new ReestablishReplicationRequest().withSourceVolumeId("emwabnet"); - model = BinaryData.fromObject(model).toObject(ReestablishReplicationRequest.class); - Assertions.assertEquals("emwabnet", 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 f69879d24eed..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.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.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 fe7a45060313..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java +++ /dev/null @@ -1,51 +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/ReplicationInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.java deleted file mode 100644 index 9c8f53be42aa..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationInnerTests.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.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( - "{\"endpointType\":\"dst\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"dxunkbebxmubyyn\",\"remoteVolumeRegion\":\"lrb\"}") - .toObject(ReplicationInner.class); - Assertions.assertEquals(EndpointType.DST, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule()); - Assertions.assertEquals("dxunkbebxmubyyn", model.remoteVolumeResourceId()); - Assertions.assertEquals("lrb", model.remoteVolumeRegion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationInner model = - new ReplicationInner() - .withEndpointType(EndpointType.DST) - .withReplicationSchedule(ReplicationSchedule.HOURLY) - .withRemoteVolumeResourceId("dxunkbebxmubyyn") - .withRemoteVolumeRegion("lrb"); - model = BinaryData.fromObject(model).toObject(ReplicationInner.class); - Assertions.assertEquals(EndpointType.DST, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, model.replicationSchedule()); - Assertions.assertEquals("dxunkbebxmubyyn", model.remoteVolumeResourceId()); - Assertions.assertEquals("lrb", 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 7b3875db760a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationObjectTests.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.models.EndpointType; -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\":\"xdult\",\"endpointType\":\"dst\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"tdzumveekgpw\",\"remoteVolumeRegion\":\"uh\"}") - .toObject(ReplicationObject.class); - Assertions.assertEquals(EndpointType.DST, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.DAILY, model.replicationSchedule()); - Assertions.assertEquals("tdzumveekgpw", model.remoteVolumeResourceId()); - Assertions.assertEquals("uh", model.remoteVolumeRegion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationObject model = - new ReplicationObject() - .withEndpointType(EndpointType.DST) - .withReplicationSchedule(ReplicationSchedule.DAILY) - .withRemoteVolumeResourceId("tdzumveekgpw") - .withRemoteVolumeRegion("uh"); - model = BinaryData.fromObject(model).toObject(ReplicationObject.class); - Assertions.assertEquals(EndpointType.DST, model.endpointType()); - Assertions.assertEquals(ReplicationSchedule.DAILY, model.replicationSchedule()); - Assertions.assertEquals("tdzumveekgpw", model.remoteVolumeResourceId()); - Assertions.assertEquals("uh", 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 ad87f3af8857..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ReplicationStatusInnerTests.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.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\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Broken\",\"totalProgress\":\"plvwiwubmwmbes\",\"errorMessage\":\"nkww\"}") - .toObject(ReplicationStatusInner.class); - Assertions.assertEquals(true, model.healthy()); - Assertions.assertEquals(RelationshipStatus.TRANSFERRING, model.relationshipStatus()); - Assertions.assertEquals(MirrorState.BROKEN, model.mirrorState()); - Assertions.assertEquals("plvwiwubmwmbes", model.totalProgress()); - Assertions.assertEquals("nkww", model.errorMessage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationStatusInner model = - new ReplicationStatusInner() - .withHealthy(true) - .withRelationshipStatus(RelationshipStatus.TRANSFERRING) - .withMirrorState(MirrorState.BROKEN) - .withTotalProgress("plvwiwubmwmbes") - .withErrorMessage("nkww"); - model = BinaryData.fromObject(model).toObject(ReplicationStatusInner.class); - Assertions.assertEquals(true, model.healthy()); - Assertions.assertEquals(RelationshipStatus.TRANSFERRING, model.relationshipStatus()); - Assertions.assertEquals(MirrorState.BROKEN, model.mirrorState()); - Assertions.assertEquals("plvwiwubmwmbes", model.totalProgress()); - Assertions.assertEquals("nkww", 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 5e475d80721a..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.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.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 572f682ae9f2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RestoreStatusInnerTests.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.RestoreStatusInner; - -public final class RestoreStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestoreStatusInner model = - BinaryData - .fromString( - "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"jjxd\",\"errorMessage\":\"buukzclewyhml\",\"totalTransferBytes\":4136836492530491965}") - .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 bd1466ad04bf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ServiceSpecificationTests.java +++ /dev/null @@ -1,137 +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 8e4377d6c638..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotInnerTests.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.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\":\"sg\",\"properties\":{\"snapshotId\":\"c\",\"created\":\"2021-08-29T01:48:19Z\",\"provisioningState\":\"dsjnka\"},\"id\":\"utiiswacf\",\"name\":\"gdkz\",\"type\":\"ewkfvhqcrai\"}") - .toObject(SnapshotInner.class); - Assertions.assertEquals("sg", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotInner model = new SnapshotInner().withLocation("sg"); - model = BinaryData.fromObject(model).toObject(SnapshotInner.class); - Assertions.assertEquals("sg", 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 9a0974f80fa8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java +++ /dev/null @@ -1,136 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.ByteBuffer; -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 org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SnapshotPoliciesCreateWithResponseMockTests { - @Test - public void testCreateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"etag\":\"vreljea\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1671689667,\"minute\":1202304870,\"usedBytes\":1705297672247999328},\"dailySchedule\":{\"snapshotsToKeep\":2073795724,\"hour\":1291910908,\"minute\":264997502,\"usedBytes\":7353815266805175635},\"weeklySchedule\":{\"snapshotsToKeep\":1178556723,\"day\":\"bdkelvidizo\",\"hour\":344121425,\"minute\":1181700002,\"usedBytes\":6191416292355922762},\"monthlySchedule\":{\"snapshotsToKeep\":1331407717,\"daysOfMonth\":\"dgnwncypuuwwlt\",\"hour\":740306752,\"minute\":1798680046,\"usedBytes\":5288027656858110726},\"enabled\":true,\"provisioningState\":\"if\"},\"location\":\"hmkdasvfl\",\"tags\":{\"oldforobw\":\"xcudchxgsr\",\"hfovvacqpbtu\":\"lvizb\"},\"id\":\"dxe\",\"name\":\"zab\",\"type\":\"elawumu\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SnapshotPolicy response = - manager - .snapshotPolicies() - .define("ieekpndzaa") - .withRegion("czexrxzbujrtrhqv") - .withExistingNetAppAccount("ttadijae", "kmr") - .withTags(mapOf("gnl", "vk")) - .withHourlySchedule( - new HourlySchedule() - .withSnapshotsToKeep(517735759) - .withMinute(161734406) - .withUsedBytes(5927921282145979607L)) - .withDailySchedule( - new DailySchedule() - .withSnapshotsToKeep(606462246) - .withHour(619135714) - .withMinute(310350754) - .withUsedBytes(8944608160105267933L)) - .withWeeklySchedule( - new WeeklySchedule() - .withSnapshotsToKeep(203387229) - .withDay("hheioqaqhvseuf") - .withHour(695023637) - .withMinute(703231006) - .withUsedBytes(6853300792215489751L)) - .withMonthlySchedule( - new MonthlySchedule() - .withSnapshotsToKeep(1303034345) - .withDaysOfMonth("sismjqfrddga") - .withHour(15155929) - .withMinute(1363527870) - .withUsedBytes(490169068933879788L)) - .withEnabled(false) - .create(); - - Assertions.assertEquals("hmkdasvfl", response.location()); - Assertions.assertEquals("xcudchxgsr", response.tags().get("oldforobw")); - Assertions.assertEquals(1671689667, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1202304870, response.hourlySchedule().minute()); - Assertions.assertEquals(1705297672247999328L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(2073795724, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1291910908, response.dailySchedule().hour()); - Assertions.assertEquals(264997502, response.dailySchedule().minute()); - Assertions.assertEquals(7353815266805175635L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(1178556723, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("bdkelvidizo", response.weeklySchedule().day()); - Assertions.assertEquals(344121425, response.weeklySchedule().hour()); - Assertions.assertEquals(1181700002, response.weeklySchedule().minute()); - Assertions.assertEquals(6191416292355922762L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(1331407717, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("dgnwncypuuwwlt", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(740306752, response.monthlySchedule().hour()); - Assertions.assertEquals(1798680046, response.monthlySchedule().minute()); - Assertions.assertEquals(5288027656858110726L, response.monthlySchedule().usedBytes()); - 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/SnapshotPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java deleted file mode 100644 index 4a0011833c84..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SnapshotPoliciesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.snapshotPolicies().delete("jpdn", "zhajoylhjlmuo", "xprimrsop", 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 cbe917549481..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,89 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SnapshotPolicy; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SnapshotPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"etag\":\"edxihchrphkmcrj\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":589779398,\"minute\":531525679,\"usedBytes\":5888369763357785786},\"dailySchedule\":{\"snapshotsToKeep\":95470507,\"hour\":259124213,\"minute\":1290363462,\"usedBytes\":217902170113592881},\"weeklySchedule\":{\"snapshotsToKeep\":810731058,\"day\":\"utlwxezwzhok\",\"hour\":1775135679,\"minute\":278626218,\"usedBytes\":1768563471315587827},\"monthlySchedule\":{\"snapshotsToKeep\":1214606185,\"daysOfMonth\":\"gppipifh\",\"hour\":248320498,\"minute\":1885635288,\"usedBytes\":6741191716385680342},\"enabled\":false,\"provisioningState\":\"xjcsheafidltu\"},\"location\":\"resmkssjhoiftxfk\",\"tags\":{\"ptil\":\"gpr\",\"qtgdqohmcwsl\":\"ucb\",\"tpwb\":\"riz\"},\"id\":\"a\",\"name\":\"llibphbqzmizak\",\"type\":\"kan\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SnapshotPolicy response = - manager - .snapshotPolicies() - .getWithResponse("nwm", "tmvpdvjdhtt", "a", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("resmkssjhoiftxfk", response.location()); - Assertions.assertEquals("gpr", response.tags().get("ptil")); - Assertions.assertEquals(589779398, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(531525679, response.hourlySchedule().minute()); - Assertions.assertEquals(5888369763357785786L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(95470507, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(259124213, response.dailySchedule().hour()); - Assertions.assertEquals(1290363462, response.dailySchedule().minute()); - Assertions.assertEquals(217902170113592881L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(810731058, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("utlwxezwzhok", response.weeklySchedule().day()); - Assertions.assertEquals(1775135679, response.weeklySchedule().hour()); - Assertions.assertEquals(278626218, response.weeklySchedule().minute()); - Assertions.assertEquals(1768563471315587827L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(1214606185, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("gppipifh", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(248320498, response.monthlySchedule().hour()); - Assertions.assertEquals(1885635288, response.monthlySchedule().minute()); - Assertions.assertEquals(6741191716385680342L, 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 00bdc99216bf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java +++ /dev/null @@ -1,87 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SnapshotPolicy; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SnapshotPoliciesListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"etag\":\"prtujwsawdd\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1148238938,\"minute\":149022358,\"usedBytes\":6958305132617717680},\"dailySchedule\":{\"snapshotsToKeep\":177247655,\"hour\":1297733750,\"minute\":1671083084,\"usedBytes\":8033750853148480276},\"weeklySchedule\":{\"snapshotsToKeep\":1119410287,\"day\":\"glecdmdqbwpypq\",\"hour\":543854908,\"minute\":1969231562,\"usedBytes\":7692078568165207428},\"monthlySchedule\":{\"snapshotsToKeep\":1318047091,\"daysOfMonth\":\"xudb\",\"hour\":1229147679,\"minute\":1337444270,\"usedBytes\":5506706101384890254},\"enabled\":true,\"provisioningState\":\"dhzmmesckdlp\"},\"location\":\"zrcxfailcfxwmdbo\",\"tags\":{\"ckknhxkizvy\":\"gsftufqobrjlnacg\",\"nok\":\"nrzvuljraaer\",\"a\":\"gukkjqnvbroy\"},\"id\":\"xulcdisdos\",\"name\":\"jbjsvgjrwh\",\"type\":\"yvycytdclxgcckn\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.snapshotPolicies().list("vecuijpx", "xs", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("zrcxfailcfxwmdbo", response.iterator().next().location()); - Assertions.assertEquals("gsftufqobrjlnacg", response.iterator().next().tags().get("ckknhxkizvy")); - Assertions.assertEquals(1148238938, response.iterator().next().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(149022358, response.iterator().next().hourlySchedule().minute()); - Assertions.assertEquals(6958305132617717680L, response.iterator().next().hourlySchedule().usedBytes()); - Assertions.assertEquals(177247655, response.iterator().next().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1297733750, response.iterator().next().dailySchedule().hour()); - Assertions.assertEquals(1671083084, response.iterator().next().dailySchedule().minute()); - Assertions.assertEquals(8033750853148480276L, response.iterator().next().dailySchedule().usedBytes()); - Assertions.assertEquals(1119410287, response.iterator().next().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("glecdmdqbwpypq", response.iterator().next().weeklySchedule().day()); - Assertions.assertEquals(543854908, response.iterator().next().weeklySchedule().hour()); - Assertions.assertEquals(1969231562, response.iterator().next().weeklySchedule().minute()); - Assertions.assertEquals(7692078568165207428L, response.iterator().next().weeklySchedule().usedBytes()); - Assertions.assertEquals(1318047091, response.iterator().next().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("xudb", response.iterator().next().monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1229147679, response.iterator().next().monthlySchedule().hour()); - Assertions.assertEquals(1337444270, response.iterator().next().monthlySchedule().minute()); - Assertions.assertEquals(5506706101384890254L, response.iterator().next().monthlySchedule().usedBytes()); - Assertions.assertEquals(true, 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 75d5ba9bece9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListTests.java +++ /dev/null @@ -1,222 +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\":\"qdcvdrhvoo\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1193557953,\"minute\":1582782062,\"usedBytes\":2322318888299695987},\"dailySchedule\":{\"snapshotsToKeep\":1146790818,\"hour\":542490098,\"minute\":546984067,\"usedBytes\":8637599636999601474},\"weeklySchedule\":{\"snapshotsToKeep\":363113472,\"day\":\"xcxrsl\",\"hour\":1073132708,\"minute\":2107317095,\"usedBytes\":1317249364545510720},\"monthlySchedule\":{\"snapshotsToKeep\":1828084006,\"daysOfMonth\":\"hjwniyqsluic\",\"hour\":1043474675,\"minute\":1810528552,\"usedBytes\":2246531138644222618},\"enabled\":true,\"provisioningState\":\"mpaxmodfvuefywsb\"},\"location\":\"vmwy\",\"tags\":{\"wiyzvqtmnubexkp\":\"ouyftaakc\",\"mquxvypo\":\"ksmond\"},\"id\":\"gkopkwhojvpajqgx\",\"name\":\"smocmbq\",\"type\":\"qvmkcxo\"},{\"etag\":\"pvhelxprg\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1689859600,\"minute\":1462356590,\"usedBytes\":6814865152361254049},\"dailySchedule\":{\"snapshotsToKeep\":2028979165,\"hour\":1827810592,\"minute\":465544934,\"usedBytes\":8371977725942992913},\"weeklySchedule\":{\"snapshotsToKeep\":785036468,\"day\":\"rhos\",\"hour\":341443712,\"minute\":992326017,\"usedBytes\":7744101608598421858},\"monthlySchedule\":{\"snapshotsToKeep\":5318116,\"daysOfMonth\":\"m\",\"hour\":812505700,\"minute\":1391684752,\"usedBytes\":5425852562349977071},\"enabled\":true,\"provisioningState\":\"szdtmhrkwof\"},\"location\":\"voqacpiexpbt\",\"tags\":{\"tkcnqxwb\":\"bwoenwashrt\"},\"id\":\"okulpiujwa\",\"name\":\"sipqii\",\"type\":\"byuqerpqlp\"},{\"etag\":\"cciuqgbdbutau\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1305719459,\"minute\":1787121852,\"usedBytes\":3230556425991226007},\"dailySchedule\":{\"snapshotsToKeep\":1745648414,\"hour\":537605324,\"minute\":1183832331,\"usedBytes\":3465382466938026517},\"weeklySchedule\":{\"snapshotsToKeep\":2073837951,\"day\":\"pichkoymkcdy\",\"hour\":1322696494,\"minute\":556339960,\"usedBytes\":6135641576986595049},\"monthlySchedule\":{\"snapshotsToKeep\":88319304,\"daysOfMonth\":\"ovvqfovljxywsu\",\"hour\":678747249,\"minute\":188945883,\"usedBytes\":1595532838454650942},\"enabled\":true,\"provisioningState\":\"adgvraeaene\"},\"location\":\"zar\",\"tags\":{\"uijfqk\":\"q\",\"ibwwiftohqkv\":\"cewiipfpub\",\"ljphuopxodl\":\"uvksgplsaknynfsy\",\"sjswsrms\":\"iyntorzihle\"},\"id\":\"yzrpzbchckqqzq\",\"name\":\"ox\",\"type\":\"ysuiizynkedya\"},{\"etag\":\"wyhqmibzyhwits\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1679951474,\"minute\":740699984,\"usedBytes\":4085302065865673737},\"dailySchedule\":{\"snapshotsToKeep\":846796617,\"hour\":1107344942,\"minute\":998287381,\"usedBytes\":359022541227333751},\"weeklySchedule\":{\"snapshotsToKeep\":1572322989,\"day\":\"knso\",\"hour\":1498450316,\"minute\":1807799282,\"usedBytes\":7538220819901034139},\"monthlySchedule\":{\"snapshotsToKeep\":706339919,\"daysOfMonth\":\"rlkdmtncvokotl\",\"hour\":44844899,\"minute\":11976377,\"usedBytes\":8627603791684452412},\"enabled\":true,\"provisioningState\":\"gjltdtbnnhado\"},\"location\":\"rkvcikhnvpa\",\"tags\":{\"queziky\":\"x\",\"ccjzkzivgvv\":\"ggxkallatmelwuip\",\"rdvstkwqqtch\":\"nayrhyrnxxmueedn\"},\"id\":\"alm\",\"name\":\"mtdaa\",\"type\":\"gdv\"}]}") - .toObject(SnapshotPoliciesList.class); - Assertions.assertEquals("vmwy", model.value().get(0).location()); - Assertions.assertEquals("ouyftaakc", model.value().get(0).tags().get("wiyzvqtmnubexkp")); - Assertions.assertEquals(1193557953, model.value().get(0).hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1582782062, model.value().get(0).hourlySchedule().minute()); - Assertions.assertEquals(2322318888299695987L, model.value().get(0).hourlySchedule().usedBytes()); - Assertions.assertEquals(1146790818, model.value().get(0).dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(542490098, model.value().get(0).dailySchedule().hour()); - Assertions.assertEquals(546984067, model.value().get(0).dailySchedule().minute()); - Assertions.assertEquals(8637599636999601474L, model.value().get(0).dailySchedule().usedBytes()); - Assertions.assertEquals(363113472, model.value().get(0).weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("xcxrsl", model.value().get(0).weeklySchedule().day()); - Assertions.assertEquals(1073132708, model.value().get(0).weeklySchedule().hour()); - Assertions.assertEquals(2107317095, model.value().get(0).weeklySchedule().minute()); - Assertions.assertEquals(1317249364545510720L, model.value().get(0).weeklySchedule().usedBytes()); - Assertions.assertEquals(1828084006, model.value().get(0).monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("hjwniyqsluic", model.value().get(0).monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1043474675, model.value().get(0).monthlySchedule().hour()); - Assertions.assertEquals(1810528552, model.value().get(0).monthlySchedule().minute()); - Assertions.assertEquals(2246531138644222618L, 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("vmwy") - .withTags(mapOf("wiyzvqtmnubexkp", "ouyftaakc", "mquxvypo", "ksmond")) - .withHourlySchedule( - new HourlySchedule() - .withSnapshotsToKeep(1193557953) - .withMinute(1582782062) - .withUsedBytes(2322318888299695987L)) - .withDailySchedule( - new DailySchedule() - .withSnapshotsToKeep(1146790818) - .withHour(542490098) - .withMinute(546984067) - .withUsedBytes(8637599636999601474L)) - .withWeeklySchedule( - new WeeklySchedule() - .withSnapshotsToKeep(363113472) - .withDay("xcxrsl") - .withHour(1073132708) - .withMinute(2107317095) - .withUsedBytes(1317249364545510720L)) - .withMonthlySchedule( - new MonthlySchedule() - .withSnapshotsToKeep(1828084006) - .withDaysOfMonth("hjwniyqsluic") - .withHour(1043474675) - .withMinute(1810528552) - .withUsedBytes(2246531138644222618L)) - .withEnabled(true), - new SnapshotPolicyInner() - .withLocation("voqacpiexpbt") - .withTags(mapOf("tkcnqxwb", "bwoenwashrt")) - .withHourlySchedule( - new HourlySchedule() - .withSnapshotsToKeep(1689859600) - .withMinute(1462356590) - .withUsedBytes(6814865152361254049L)) - .withDailySchedule( - new DailySchedule() - .withSnapshotsToKeep(2028979165) - .withHour(1827810592) - .withMinute(465544934) - .withUsedBytes(8371977725942992913L)) - .withWeeklySchedule( - new WeeklySchedule() - .withSnapshotsToKeep(785036468) - .withDay("rhos") - .withHour(341443712) - .withMinute(992326017) - .withUsedBytes(7744101608598421858L)) - .withMonthlySchedule( - new MonthlySchedule() - .withSnapshotsToKeep(5318116) - .withDaysOfMonth("m") - .withHour(812505700) - .withMinute(1391684752) - .withUsedBytes(5425852562349977071L)) - .withEnabled(true), - new SnapshotPolicyInner() - .withLocation("zar") - .withTags( - mapOf( - "uijfqk", - "q", - "ibwwiftohqkv", - "cewiipfpub", - "ljphuopxodl", - "uvksgplsaknynfsy", - "sjswsrms", - "iyntorzihle")) - .withHourlySchedule( - new HourlySchedule() - .withSnapshotsToKeep(1305719459) - .withMinute(1787121852) - .withUsedBytes(3230556425991226007L)) - .withDailySchedule( - new DailySchedule() - .withSnapshotsToKeep(1745648414) - .withHour(537605324) - .withMinute(1183832331) - .withUsedBytes(3465382466938026517L)) - .withWeeklySchedule( - new WeeklySchedule() - .withSnapshotsToKeep(2073837951) - .withDay("pichkoymkcdy") - .withHour(1322696494) - .withMinute(556339960) - .withUsedBytes(6135641576986595049L)) - .withMonthlySchedule( - new MonthlySchedule() - .withSnapshotsToKeep(88319304) - .withDaysOfMonth("ovvqfovljxywsu") - .withHour(678747249) - .withMinute(188945883) - .withUsedBytes(1595532838454650942L)) - .withEnabled(true), - new SnapshotPolicyInner() - .withLocation("rkvcikhnvpa") - .withTags( - mapOf( - "queziky", - "x", - "ccjzkzivgvv", - "ggxkallatmelwuip", - "rdvstkwqqtch", - "nayrhyrnxxmueedn")) - .withHourlySchedule( - new HourlySchedule() - .withSnapshotsToKeep(1679951474) - .withMinute(740699984) - .withUsedBytes(4085302065865673737L)) - .withDailySchedule( - new DailySchedule() - .withSnapshotsToKeep(846796617) - .withHour(1107344942) - .withMinute(998287381) - .withUsedBytes(359022541227333751L)) - .withWeeklySchedule( - new WeeklySchedule() - .withSnapshotsToKeep(1572322989) - .withDay("knso") - .withHour(1498450316) - .withMinute(1807799282) - .withUsedBytes(7538220819901034139L)) - .withMonthlySchedule( - new MonthlySchedule() - .withSnapshotsToKeep(706339919) - .withDaysOfMonth("rlkdmtncvokotl") - .withHour(44844899) - .withMinute(11976377) - .withUsedBytes(8627603791684452412L)) - .withEnabled(true))); - model = BinaryData.fromObject(model).toObject(SnapshotPoliciesList.class); - Assertions.assertEquals("vmwy", model.value().get(0).location()); - Assertions.assertEquals("ouyftaakc", model.value().get(0).tags().get("wiyzvqtmnubexkp")); - Assertions.assertEquals(1193557953, model.value().get(0).hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1582782062, model.value().get(0).hourlySchedule().minute()); - Assertions.assertEquals(2322318888299695987L, model.value().get(0).hourlySchedule().usedBytes()); - Assertions.assertEquals(1146790818, model.value().get(0).dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(542490098, model.value().get(0).dailySchedule().hour()); - Assertions.assertEquals(546984067, model.value().get(0).dailySchedule().minute()); - Assertions.assertEquals(8637599636999601474L, model.value().get(0).dailySchedule().usedBytes()); - Assertions.assertEquals(363113472, model.value().get(0).weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("xcxrsl", model.value().get(0).weeklySchedule().day()); - Assertions.assertEquals(1073132708, model.value().get(0).weeklySchedule().hour()); - Assertions.assertEquals(2107317095, model.value().get(0).weeklySchedule().minute()); - Assertions.assertEquals(1317249364545510720L, model.value().get(0).weeklySchedule().usedBytes()); - Assertions.assertEquals(1828084006, model.value().get(0).monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("hjwniyqsluic", model.value().get(0).monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1043474675, model.value().get(0).monthlySchedule().hour()); - Assertions.assertEquals(1810528552, model.value().get(0).monthlySchedule().minute()); - Assertions.assertEquals(2246531138644222618L, 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 f62811e96f9c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyInnerTests.java +++ /dev/null @@ -1,113 +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\":\"gpiohgwxrtfudxe\",\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1902888428,\"minute\":682770513,\"usedBytes\":5596269908877645907},\"dailySchedule\":{\"snapshotsToKeep\":1104557585,\"hour\":128514806,\"minute\":1947559864,\"usedBytes\":6566741920348285642},\"weeklySchedule\":{\"snapshotsToKeep\":2068705398,\"day\":\"xgwim\",\"hour\":1697714955,\"minute\":1799565782,\"usedBytes\":2192828191882361978},\"monthlySchedule\":{\"snapshotsToKeep\":279128548,\"daysOfMonth\":\"kfoqreyfkzikfj\",\"hour\":195683064,\"minute\":113630721,\"usedBytes\":3613181819399504746},\"enabled\":true,\"provisioningState\":\"elpcirelsfeaenwa\"},\"location\":\"atklddxbjhwuaa\",\"tags\":{\"hyoulpjr\":\"jos\",\"vimjwos\":\"xagl\"},\"id\":\"tx\",\"name\":\"tcs\",\"type\":\"fcktqumiekke\"}") - .toObject(SnapshotPolicyInner.class); - Assertions.assertEquals("atklddxbjhwuaa", model.location()); - Assertions.assertEquals("jos", model.tags().get("hyoulpjr")); - Assertions.assertEquals(1902888428, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(682770513, model.hourlySchedule().minute()); - Assertions.assertEquals(5596269908877645907L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1104557585, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(128514806, model.dailySchedule().hour()); - Assertions.assertEquals(1947559864, model.dailySchedule().minute()); - Assertions.assertEquals(6566741920348285642L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(2068705398, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("xgwim", model.weeklySchedule().day()); - Assertions.assertEquals(1697714955, model.weeklySchedule().hour()); - Assertions.assertEquals(1799565782, model.weeklySchedule().minute()); - Assertions.assertEquals(2192828191882361978L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(279128548, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("kfoqreyfkzikfj", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(195683064, model.monthlySchedule().hour()); - Assertions.assertEquals(113630721, model.monthlySchedule().minute()); - Assertions.assertEquals(3613181819399504746L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(true, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotPolicyInner model = - new SnapshotPolicyInner() - .withLocation("atklddxbjhwuaa") - .withTags(mapOf("hyoulpjr", "jos", "vimjwos", "xagl")) - .withHourlySchedule( - new HourlySchedule() - .withSnapshotsToKeep(1902888428) - .withMinute(682770513) - .withUsedBytes(5596269908877645907L)) - .withDailySchedule( - new DailySchedule() - .withSnapshotsToKeep(1104557585) - .withHour(128514806) - .withMinute(1947559864) - .withUsedBytes(6566741920348285642L)) - .withWeeklySchedule( - new WeeklySchedule() - .withSnapshotsToKeep(2068705398) - .withDay("xgwim") - .withHour(1697714955) - .withMinute(1799565782) - .withUsedBytes(2192828191882361978L)) - .withMonthlySchedule( - new MonthlySchedule() - .withSnapshotsToKeep(279128548) - .withDaysOfMonth("kfoqreyfkzikfj") - .withHour(195683064) - .withMinute(113630721) - .withUsedBytes(3613181819399504746L)) - .withEnabled(true); - model = BinaryData.fromObject(model).toObject(SnapshotPolicyInner.class); - Assertions.assertEquals("atklddxbjhwuaa", model.location()); - Assertions.assertEquals("jos", model.tags().get("hyoulpjr")); - Assertions.assertEquals(1902888428, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(682770513, model.hourlySchedule().minute()); - Assertions.assertEquals(5596269908877645907L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1104557585, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(128514806, model.dailySchedule().hour()); - Assertions.assertEquals(1947559864, model.dailySchedule().minute()); - Assertions.assertEquals(6566741920348285642L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(2068705398, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("xgwim", model.weeklySchedule().day()); - Assertions.assertEquals(1697714955, model.weeklySchedule().hour()); - Assertions.assertEquals(1799565782, model.weeklySchedule().minute()); - Assertions.assertEquals(2192828191882361978L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(279128548, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("kfoqreyfkzikfj", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(195683064, model.monthlySchedule().hour()); - Assertions.assertEquals(113630721, model.monthlySchedule().minute()); - Assertions.assertEquals(3613181819399504746L, 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/SnapshotPolicyPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java deleted file mode 100644 index 3ba528e515ce..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPatchTests.java +++ /dev/null @@ -1,122 +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\":\"bjyvay\",\"id\":\"imrzrtuzqog\",\"name\":\"xnevfdnwn\",\"type\":\"ewzsyyceuzsoib\",\"tags\":{\"dwkqbrq\":\"pfrxtrthzvay\",\"irqtdqoa\":\"bpaxhexiilivpdt\",\"eptra\":\"oruzfgsquyfxrxx\",\"wlwnwxuqlcv\":\"xje\"},\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1148696906,\"minute\":1248229075,\"usedBytes\":1507224315581735893},\"dailySchedule\":{\"snapshotsToKeep\":1080524607,\"hour\":1614496522,\"minute\":77495916,\"usedBytes\":1911538746456059968},\"weeklySchedule\":{\"snapshotsToKeep\":1225956555,\"day\":\"ujhemmsbvdkcrodt\",\"hour\":1997229408,\"minute\":291950475,\"usedBytes\":6410034847924566454},\"monthlySchedule\":{\"snapshotsToKeep\":896449803,\"daysOfMonth\":\"cjvefkdlfo\",\"hour\":1252976241,\"minute\":1706699033,\"usedBytes\":5309095811404897814},\"enabled\":false,\"provisioningState\":\"wpu\"}}") - .toObject(SnapshotPolicyPatch.class); - Assertions.assertEquals("bjyvay", model.location()); - Assertions.assertEquals("pfrxtrthzvay", model.tags().get("dwkqbrq")); - Assertions.assertEquals(1148696906, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1248229075, model.hourlySchedule().minute()); - Assertions.assertEquals(1507224315581735893L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1080524607, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1614496522, model.dailySchedule().hour()); - Assertions.assertEquals(77495916, model.dailySchedule().minute()); - Assertions.assertEquals(1911538746456059968L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(1225956555, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("ujhemmsbvdkcrodt", model.weeklySchedule().day()); - Assertions.assertEquals(1997229408, model.weeklySchedule().hour()); - Assertions.assertEquals(291950475, model.weeklySchedule().minute()); - Assertions.assertEquals(6410034847924566454L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(896449803, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("cjvefkdlfo", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1252976241, model.monthlySchedule().hour()); - Assertions.assertEquals(1706699033, model.monthlySchedule().minute()); - Assertions.assertEquals(5309095811404897814L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotPolicyPatch model = - new SnapshotPolicyPatch() - .withLocation("bjyvay") - .withTags( - mapOf( - "dwkqbrq", - "pfrxtrthzvay", - "irqtdqoa", - "bpaxhexiilivpdt", - "eptra", - "oruzfgsquyfxrxx", - "wlwnwxuqlcv", - "xje")) - .withHourlySchedule( - new HourlySchedule() - .withSnapshotsToKeep(1148696906) - .withMinute(1248229075) - .withUsedBytes(1507224315581735893L)) - .withDailySchedule( - new DailySchedule() - .withSnapshotsToKeep(1080524607) - .withHour(1614496522) - .withMinute(77495916) - .withUsedBytes(1911538746456059968L)) - .withWeeklySchedule( - new WeeklySchedule() - .withSnapshotsToKeep(1225956555) - .withDay("ujhemmsbvdkcrodt") - .withHour(1997229408) - .withMinute(291950475) - .withUsedBytes(6410034847924566454L)) - .withMonthlySchedule( - new MonthlySchedule() - .withSnapshotsToKeep(896449803) - .withDaysOfMonth("cjvefkdlfo") - .withHour(1252976241) - .withMinute(1706699033) - .withUsedBytes(5309095811404897814L)) - .withEnabled(false); - model = BinaryData.fromObject(model).toObject(SnapshotPolicyPatch.class); - Assertions.assertEquals("bjyvay", model.location()); - Assertions.assertEquals("pfrxtrthzvay", model.tags().get("dwkqbrq")); - Assertions.assertEquals(1148696906, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1248229075, model.hourlySchedule().minute()); - Assertions.assertEquals(1507224315581735893L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1080524607, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1614496522, model.dailySchedule().hour()); - Assertions.assertEquals(77495916, model.dailySchedule().minute()); - Assertions.assertEquals(1911538746456059968L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(1225956555, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("ujhemmsbvdkcrodt", model.weeklySchedule().day()); - Assertions.assertEquals(1997229408, model.weeklySchedule().hour()); - Assertions.assertEquals(291950475, model.weeklySchedule().minute()); - Assertions.assertEquals(6410034847924566454L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(896449803, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("cjvefkdlfo", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1252976241, model.monthlySchedule().hour()); - Assertions.assertEquals(1706699033, model.monthlySchedule().minute()); - Assertions.assertEquals(5309095811404897814L, 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/SnapshotPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java deleted file mode 100644 index bf1e15e76b07..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPolicyPropertiesTests.java +++ /dev/null @@ -1,93 +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\":885439585,\"minute\":270423154,\"usedBytes\":5614257163136424427},\"dailySchedule\":{\"snapshotsToKeep\":1081755723,\"hour\":564076169,\"minute\":1794228240,\"usedBytes\":5489756358952396230},\"weeklySchedule\":{\"snapshotsToKeep\":253317009,\"day\":\"eqidbqfatpx\",\"hour\":48002498,\"minute\":1459715111,\"usedBytes\":8864644598647393386},\"monthlySchedule\":{\"snapshotsToKeep\":2040504053,\"daysOfMonth\":\"uvarmywdmjsjq\",\"hour\":1756269391,\"minute\":1027618115,\"usedBytes\":6679760626312548131},\"enabled\":false,\"provisioningState\":\"co\"}") - .toObject(SnapshotPolicyProperties.class); - Assertions.assertEquals(885439585, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(270423154, model.hourlySchedule().minute()); - Assertions.assertEquals(5614257163136424427L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1081755723, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(564076169, model.dailySchedule().hour()); - Assertions.assertEquals(1794228240, model.dailySchedule().minute()); - Assertions.assertEquals(5489756358952396230L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(253317009, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("eqidbqfatpx", model.weeklySchedule().day()); - Assertions.assertEquals(48002498, model.weeklySchedule().hour()); - Assertions.assertEquals(1459715111, model.weeklySchedule().minute()); - Assertions.assertEquals(8864644598647393386L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(2040504053, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("uvarmywdmjsjq", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1756269391, model.monthlySchedule().hour()); - Assertions.assertEquals(1027618115, model.monthlySchedule().minute()); - Assertions.assertEquals(6679760626312548131L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotPolicyProperties model = - new SnapshotPolicyProperties() - .withHourlySchedule( - new HourlySchedule() - .withSnapshotsToKeep(885439585) - .withMinute(270423154) - .withUsedBytes(5614257163136424427L)) - .withDailySchedule( - new DailySchedule() - .withSnapshotsToKeep(1081755723) - .withHour(564076169) - .withMinute(1794228240) - .withUsedBytes(5489756358952396230L)) - .withWeeklySchedule( - new WeeklySchedule() - .withSnapshotsToKeep(253317009) - .withDay("eqidbqfatpx") - .withHour(48002498) - .withMinute(1459715111) - .withUsedBytes(8864644598647393386L)) - .withMonthlySchedule( - new MonthlySchedule() - .withSnapshotsToKeep(2040504053) - .withDaysOfMonth("uvarmywdmjsjq") - .withHour(1756269391) - .withMinute(1027618115) - .withUsedBytes(6679760626312548131L)) - .withEnabled(false); - model = BinaryData.fromObject(model).toObject(SnapshotPolicyProperties.class); - Assertions.assertEquals(885439585, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(270423154, model.hourlySchedule().minute()); - Assertions.assertEquals(5614257163136424427L, model.hourlySchedule().usedBytes()); - Assertions.assertEquals(1081755723, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(564076169, model.dailySchedule().hour()); - Assertions.assertEquals(1794228240, model.dailySchedule().minute()); - Assertions.assertEquals(5489756358952396230L, model.dailySchedule().usedBytes()); - Assertions.assertEquals(253317009, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("eqidbqfatpx", model.weeklySchedule().day()); - Assertions.assertEquals(48002498, model.weeklySchedule().hour()); - Assertions.assertEquals(1459715111, model.weeklySchedule().minute()); - Assertions.assertEquals(8864644598647393386L, model.weeklySchedule().usedBytes()); - Assertions.assertEquals(2040504053, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("uvarmywdmjsjq", model.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1756269391, model.monthlySchedule().hour()); - Assertions.assertEquals(1027618115, model.monthlySchedule().minute()); - Assertions.assertEquals(6679760626312548131L, model.monthlySchedule().usedBytes()); - Assertions.assertEquals(false, 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 d79066d29458..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPropertiesTests.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.SnapshotProperties; - -public final class SnapshotPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SnapshotProperties model = - BinaryData - .fromString( - "{\"snapshotId\":\"pnppfuf\",\"created\":\"2021-04-27T03:55:43Z\",\"provisioningState\":\"mh\"}") - .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 633d373411f9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotRestoreFilesTests.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.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\":[\"xyjrxsagafcnih\",\"wqapnedgfbcvk\"],\"destinationPath\":\"q\"}") - .toObject(SnapshotRestoreFiles.class); - Assertions.assertEquals("xyjrxsagafcnih", model.filePaths().get(0)); - Assertions.assertEquals("q", model.destinationPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotRestoreFiles model = - new SnapshotRestoreFiles() - .withFilePaths(Arrays.asList("xyjrxsagafcnih", "wqapnedgfbcvk")) - .withDestinationPath("q"); - model = BinaryData.fromObject(model).toObject(SnapshotRestoreFiles.class); - Assertions.assertEquals("xyjrxsagafcnih", model.filePaths().get(0)); - Assertions.assertEquals("q", 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 023a42a59564..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.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.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SnapshotsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .snapshots() - .delete( - "kzyb", "jjidjk", "yxkyxvx", "vblbjednljlageua", "lxunsmjbnkppxy", 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 ea1da0257d6f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.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.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Snapshot; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SnapshotsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"ti\",\"properties\":{\"snapshotId\":\"pwpgclrci\",\"created\":\"2021-07-05T16:33:25Z\",\"provisioningState\":\"xfrk\"},\"id\":\"xpmyyefrpmpdnq\",\"name\":\"skawaoqvmmb\",\"type\":\"pqfrtqlkz\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Snapshot response = - manager - .snapshots() - .getWithResponse( - "nygq", "nfwqzdzgtilaxhn", "hqlyvijo", "wivkxo", "zunbixx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ti", 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 c1e57d020d27..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java +++ /dev/null @@ -1,68 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Snapshot; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SnapshotsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"location\":\"undxgketw\",\"properties\":{\"snapshotId\":\"zjhfjmhvv\",\"created\":\"2021-07-01T02:20:36Z\",\"provisioningState\":\"pmuneqsx\"},\"id\":\"hfbuzjyihsasbhud\",\"name\":\"pohyuemslynsqyr\",\"type\":\"foobrlttyms\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.snapshots().list("vuzhyr", "ewipm", "ekdxuku", "gsjj", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("undxgketw", 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 8620a1377918..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListTests.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.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\":\"zmuvpbttdumorppx\",\"properties\":{\"snapshotId\":\"nzbtbhj\",\"created\":\"2021-10-23T02:17:02Z\",\"provisioningState\":\"fgohdneuelfphs\"},\"id\":\"htozfikdow\",\"name\":\"quuvxzxcl\",\"type\":\"ithhqzon\"}]}") - .toObject(SnapshotsList.class); - Assertions.assertEquals("zmuvpbttdumorppx", 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("zmuvpbttdumorppx"))); - model = BinaryData.fromObject(model).toObject(SnapshotsList.class); - Assertions.assertEquals("zmuvpbttdumorppx", 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 a6c3dfa1a70d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java +++ /dev/null @@ -1,74 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SnapshotsRestoreFilesMockTests { - @Test - public void testRestoreFiles() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .snapshots() - .restoreFiles( - "enlsvxeizzgwkln", - "rmffeyc", - "ckt", - "iymerteeammxqi", - "kk", - new SnapshotRestoreFiles() - .withFilePaths(Arrays.asList("ddrtkgdojb", "xv")) - .withDestinationPath("refdee"), - 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 f5a3a95a2e09..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsUpdateMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Snapshot; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SnapshotsUpdateMockTests { - @Test - public void testUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"xakjsqzhzb\",\"properties\":{\"snapshotId\":\"gims\",\"created\":\"2021-03-21T09:55:03Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"kgfmocwahpq\",\"name\":\"atjeaahh\",\"type\":\"jhhn\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Snapshot response = - manager - .snapshots() - .update( - "egnitg", - "kxlzyqdrfeg", - "ealzxwhcansymoyq", - "lwigdivbkbx", - "omfaj", - "datawasqvdaeyyg", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("xakjsqzhzb", 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 aa6232640e47..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemInnerTests.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.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 26baa80ad7b8..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemListTests.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.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\":1201119723,\"default\":682758161},\"id\":\"wwzjuqkhrsajiwku\",\"name\":\"foskghsauuimj\",\"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 e686f021e87c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubscriptionQuotaItemPropertiesTests.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.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 2bdbe219ef63..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.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 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\":\"owvrvmtgjqppyos\",\"size\":1997162688114762581,\"parentPath\":\"myhgfipnsxkmc\",\"provisioningState\":\"ekrrjr\"},\"id\":\"fxtsgum\",\"name\":\"jglikkxwslolb\",\"type\":\"pvuzlmv\"}") - .toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("owvrvmtgjqppyos", model.path()); - Assertions.assertEquals(1997162688114762581L, model.size()); - Assertions.assertEquals("myhgfipnsxkmc", model.parentPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeInfoInner model = - new SubvolumeInfoInner() - .withPath("owvrvmtgjqppyos") - .withSize(1997162688114762581L) - .withParentPath("myhgfipnsxkmc"); - model = BinaryData.fromObject(model).toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("owvrvmtgjqppyos", model.path()); - Assertions.assertEquals(1997162688114762581L, model.size()); - Assertions.assertEquals("myhgfipnsxkmc", 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 439c6108c51c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.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.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\":\"wuenvr\",\"name\":\"yo\",\"type\":\"ibreb\",\"properties\":{\"path\":\"ysjkixqtnqttez\",\"parentPath\":\"fffiak\",\"size\":7989893119356760730,\"bytesUsed\":167842444741645493,\"permissions\":\"d\",\"creationTimeStamp\":\"2021-09-01T21:15:43Z\",\"accessedTimeStamp\":\"2021-03-09T02:32:12Z\",\"modifiedTimeStamp\":\"2021-08-03T11:39:14Z\",\"changedTimeStamp\":\"2021-01-23T06:09:40Z\",\"provisioningState\":\"zphv\"}}") - .toObject(SubvolumeModelInner.class); - Assertions.assertEquals("ysjkixqtnqttez", model.path()); - Assertions.assertEquals("fffiak", model.parentPath()); - Assertions.assertEquals(7989893119356760730L, model.size()); - Assertions.assertEquals(167842444741645493L, model.bytesUsed()); - Assertions.assertEquals("d", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-01T21:15:43Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-09T02:32:12Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-03T11:39:14Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-23T06:09:40Z"), model.changedTimestamp()); - Assertions.assertEquals("zphv", model.provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeModelInner model = - new SubvolumeModelInner() - .withPath("ysjkixqtnqttez") - .withParentPath("fffiak") - .withSize(7989893119356760730L) - .withBytesUsed(167842444741645493L) - .withPermissions("d") - .withCreationTimestamp(OffsetDateTime.parse("2021-09-01T21:15:43Z")) - .withAccessedTimestamp(OffsetDateTime.parse("2021-03-09T02:32:12Z")) - .withModifiedTimestamp(OffsetDateTime.parse("2021-08-03T11:39:14Z")) - .withChangedTimestamp(OffsetDateTime.parse("2021-01-23T06:09:40Z")) - .withProvisioningState("zphv"); - model = BinaryData.fromObject(model).toObject(SubvolumeModelInner.class); - Assertions.assertEquals("ysjkixqtnqttez", model.path()); - Assertions.assertEquals("fffiak", model.parentPath()); - Assertions.assertEquals(7989893119356760730L, model.size()); - Assertions.assertEquals(167842444741645493L, model.bytesUsed()); - Assertions.assertEquals("d", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-01T21:15:43Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-09T02:32:12Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-03T11:39:14Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-23T06:09:40Z"), model.changedTimestamp()); - Assertions.assertEquals("zphv", 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 f581c4276749..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.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.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\":\"uyqncygupkvipmd\",\"parentPath\":\"wx\",\"size\":9152224123184023671,\"bytesUsed\":7138744715268482510,\"permissions\":\"stotxh\",\"creationTimeStamp\":\"2021-02-09T01:55:57Z\",\"accessedTimeStamp\":\"2021-12-08T17:06:05Z\",\"modifiedTimeStamp\":\"2021-04-25T15:36:32Z\",\"changedTimeStamp\":\"2021-06-17T22:54:10Z\",\"provisioningState\":\"c\"}") - .toObject(SubvolumeModelProperties.class); - Assertions.assertEquals("uyqncygupkvipmd", model.path()); - Assertions.assertEquals("wx", model.parentPath()); - Assertions.assertEquals(9152224123184023671L, model.size()); - Assertions.assertEquals(7138744715268482510L, model.bytesUsed()); - Assertions.assertEquals("stotxh", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-09T01:55:57Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T17:06:05Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-25T15:36:32Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-17T22:54:10Z"), model.changedTimestamp()); - Assertions.assertEquals("c", model.provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeModelProperties model = - new SubvolumeModelProperties() - .withPath("uyqncygupkvipmd") - .withParentPath("wx") - .withSize(9152224123184023671L) - .withBytesUsed(7138744715268482510L) - .withPermissions("stotxh") - .withCreationTimestamp(OffsetDateTime.parse("2021-02-09T01:55:57Z")) - .withAccessedTimestamp(OffsetDateTime.parse("2021-12-08T17:06:05Z")) - .withModifiedTimestamp(OffsetDateTime.parse("2021-04-25T15:36:32Z")) - .withChangedTimestamp(OffsetDateTime.parse("2021-06-17T22:54:10Z")) - .withProvisioningState("c"); - model = BinaryData.fromObject(model).toObject(SubvolumeModelProperties.class); - Assertions.assertEquals("uyqncygupkvipmd", model.path()); - Assertions.assertEquals("wx", model.parentPath()); - Assertions.assertEquals(9152224123184023671L, model.size()); - Assertions.assertEquals(7138744715268482510L, model.bytesUsed()); - Assertions.assertEquals("stotxh", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-09T01:55:57Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T17:06:05Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-25T15:36:32Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-17T22:54:10Z"), model.changedTimestamp()); - Assertions.assertEquals("c", 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 0b46ea506060..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.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.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\":5455709346617083840,\"path\":\"j\"}").toObject(SubvolumePatchParams.class); - Assertions.assertEquals(5455709346617083840L, model.size()); - Assertions.assertEquals("j", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumePatchParams model = new SubvolumePatchParams().withSize(5455709346617083840L).withPath("j"); - model = BinaryData.fromObject(model).toObject(SubvolumePatchParams.class); - Assertions.assertEquals(5455709346617083840L, model.size()); - Assertions.assertEquals("j", 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 710abd80d571..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.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.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\":4992993506097111219,\"path\":\"augzxnfaazpxdtn\"}}") - .toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(4992993506097111219L, model.size()); - Assertions.assertEquals("augzxnfaazpxdtn", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumePatchRequest model = - new SubvolumePatchRequest().withSize(4992993506097111219L).withPath("augzxnfaazpxdtn"); - model = BinaryData.fromObject(model).toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(4992993506097111219L, model.size()); - Assertions.assertEquals("augzxnfaazpxdtn", 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 3f80f9bb34b3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.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.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\":\"lfktgplcrpwjxe\",\"size\":1213023006676271308,\"parentPath\":\"brnjwmw\",\"provisioningState\":\"nbsazejjoqkag\"}") - .toObject(SubvolumeProperties.class); - Assertions.assertEquals("lfktgplcrpwjxe", model.path()); - Assertions.assertEquals(1213023006676271308L, model.size()); - Assertions.assertEquals("brnjwmw", model.parentPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumeProperties model = - new SubvolumeProperties() - .withPath("lfktgplcrpwjxe") - .withSize(1213023006676271308L) - .withParentPath("brnjwmw"); - model = BinaryData.fromObject(model).toObject(SubvolumeProperties.class); - Assertions.assertEquals("lfktgplcrpwjxe", model.path()); - Assertions.assertEquals(1213023006676271308L, model.size()); - Assertions.assertEquals("brnjwmw", 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 122e56c1bcef..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SubvolumesCreateMockTests { - @Test - public void testCreate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"path\":\"oweyirdhlis\",\"size\":2577921237781944905,\"parentPath\":\"qqmpizruwnpqx\",\"provisioningState\":\"Succeeded\"},\"id\":\"iixtmkzj\",\"name\":\"kv\",\"type\":\"irhgfgrwsdp\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SubvolumeInfo response = - manager - .subvolumes() - .define("nlb") - .withExistingVolume("ebwlnbmhyreeudzq", "vbpdqmjxlyyzglgo", "wtlmjjyuo", "qtobaxkjeyt") - .withPath("wrus") - .withSize(7003868836255706377L) - .withParentPath("syrq") - .create(); - - Assertions.assertEquals("oweyirdhlis", response.path()); - Assertions.assertEquals(2577921237781944905L, response.size()); - Assertions.assertEquals("qqmpizruwnpqx", 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 b8dcf701e269..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SubvolumesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.subvolumes().delete("g", "pnpbswveflocc", "rmozihmipgawt", "xp", "y", 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 5e5b6e856dfb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java +++ /dev/null @@ -1,78 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeModel; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SubvolumesGetMetadataMockTests { - @Test - public void testGetMetadata() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"id\":\"pfnznthjtwkj\",\"name\":\"srxuzvoam\",\"type\":\"cqiosmgbza\",\"properties\":{\"path\":\"qdlyrtl\",\"parentPath\":\"ap\",\"size\":1522364843172111954,\"bytesUsed\":773093768865892885,\"permissions\":\"hjm\",\"creationTimeStamp\":\"2021-01-20T21:27:07Z\",\"accessedTimeStamp\":\"2021-04-06T21:21:13Z\",\"modifiedTimeStamp\":\"2021-07-25T22:28:32Z\",\"changedTimeStamp\":\"2021-06-18T22:17:48Z\",\"provisioningState\":\"Succeeded\"}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SubvolumeModel response = - manager - .subvolumes() - .getMetadata("cxcjxgry", "fmpcycilrmca", "kggnoxu", "t", "ksxwpnd", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qdlyrtl", response.path()); - Assertions.assertEquals("ap", response.parentPath()); - Assertions.assertEquals(1522364843172111954L, response.size()); - Assertions.assertEquals(773093768865892885L, response.bytesUsed()); - Assertions.assertEquals("hjm", response.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-20T21:27:07Z"), response.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-06T21:21:13Z"), response.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-25T22:28:32Z"), response.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-18T22:17:48Z"), 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 6db2c2c8363b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java +++ /dev/null @@ -1,72 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SubvolumesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"path\":\"i\",\"size\":8841673596868858874,\"parentPath\":\"wmxqhndvnoamlds\",\"provisioningState\":\"aohdjh\"},\"id\":\"lzok\",\"name\":\"coxpelnjeta\",\"type\":\"ltsxoatf\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SubvolumeInfo response = - manager - .subvolumes() - .getWithResponse("qbsms", "ziqgfuh", "kzruswh", "hczznvf", "ycjsx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("i", response.path()); - Assertions.assertEquals(8841673596868858874L, response.size()); - Assertions.assertEquals("wmxqhndvnoamlds", 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 9c8c966cdd30..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java +++ /dev/null @@ -1,72 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.SubvolumeInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SubvolumesListByVolumeMockTests { - @Test - public void testListByVolume() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"path\":\"xgvelfclduccbird\",\"size\":3261437061903336605,\"parentPath\":\"o\",\"provisioningState\":\"egstmninwjizci\"},\"id\":\"ghgshejjtbxqmu\",\"name\":\"uxlxqzvners\",\"type\":\"ycucrwnamikzeb\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .subvolumes() - .listByVolume("rtixokff", "yinljqe", "qwhix", "onsts", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("xgvelfclduccbird", response.iterator().next().path()); - Assertions.assertEquals(3261437061903336605L, response.iterator().next().size()); - Assertions.assertEquals("o", 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 22d5a766b1f5..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.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.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\":\"nhlmctlpdng\",\"size\":5842965141303303723,\"parentPath\":\"mhrixkwmyijejve\",\"provisioningState\":\"hbpnaixexccbd\"},\"id\":\"ax\",\"name\":\"cexdrrvqa\",\"type\":\"qkghtpwijnhy\"}],\"nextLink\":\"vfycxzb\"}") - .toObject(SubvolumesList.class); - Assertions.assertEquals("nhlmctlpdng", model.value().get(0).path()); - Assertions.assertEquals(5842965141303303723L, model.value().get(0).size()); - Assertions.assertEquals("mhrixkwmyijejve", model.value().get(0).parentPath()); - Assertions.assertEquals("vfycxzb", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SubvolumesList model = - new SubvolumesList() - .withValue( - Arrays - .asList( - new SubvolumeInfoInner() - .withPath("nhlmctlpdng") - .withSize(5842965141303303723L) - .withParentPath("mhrixkwmyijejve"))) - .withNextLink("vfycxzb"); - model = BinaryData.fromObject(model).toObject(SubvolumesList.class); - Assertions.assertEquals("nhlmctlpdng", model.value().get(0).path()); - Assertions.assertEquals(5842965141303303723L, model.value().get(0).size()); - Assertions.assertEquals("mhrixkwmyijejve", model.value().get(0).parentPath()); - Assertions.assertEquals("vfycxzb", model.nextLink()); - } -} 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 93c228412949..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.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.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\":\"uconuqszfkbey\",\"subnetId\":\"ewrmjmwvvjektc\",\"networkSiblingSetStateId\":\"senhwlrs\",\"networkFeatures\":\"Basic_Standard\"}") - .toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("uconuqszfkbey", model.networkSiblingSetId()); - Assertions.assertEquals("ewrmjmwvvjektc", model.subnetId()); - Assertions.assertEquals("senhwlrs", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateNetworkSiblingSetRequest model = - new UpdateNetworkSiblingSetRequest() - .withNetworkSiblingSetId("uconuqszfkbey") - .withSubnetId("ewrmjmwvvjektc") - .withNetworkSiblingSetStateId("senhwlrs") - .withNetworkFeatures(NetworkFeatures.BASIC_STANDARD); - model = BinaryData.fromObject(model).toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("uconuqszfkbey", model.networkSiblingSetId()); - Assertions.assertEquals("ewrmjmwvvjektc", model.subnetId()); - Assertions.assertEquals("senhwlrs", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, 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 e6e7d82bfd1b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.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.UserAssignedIdentity; - -public final class UserAssignedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedIdentity model = - BinaryData - .fromString( - "{\"principalId\":\"50c233ce-27c0-43e5-ac1d-667a3956ee60\",\"clientId\":\"81add358-e4d5-4baf-86e5-fff290f26f80\"}") - .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/VolumeBackupsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.java deleted file mode 100644 index 2d596c3f5c41..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeBackupsTests.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.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\":\"wae\",\"backupsCount\":809360205,\"policyEnabled\":true}") - .toObject(VolumeBackups.class); - Assertions.assertEquals("wae", model.volumeName()); - Assertions.assertEquals(809360205, model.backupsCount()); - Assertions.assertEquals(true, model.policyEnabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeBackups model = - new VolumeBackups().withVolumeName("wae").withBackupsCount(809360205).withPolicyEnabled(true); - model = BinaryData.fromObject(model).toObject(VolumeBackups.class); - Assertions.assertEquals("wae", model.volumeName()); - Assertions.assertEquals(809360205, 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 004d544eb2ea..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java +++ /dev/null @@ -1,63 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumeGroupsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumeGroups() - .delete("ptfujgicgaaoept", "aqutdewemxswvruu", "zzjgehkfki", 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 d3aa01693326..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesDataProtectionTests.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.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("{\"snapshot\":{\"snapshotPolicyId\":\"d\"}}") - .toObject(VolumePatchPropertiesDataProtection.class); - Assertions.assertEquals("d", model.snapshot().snapshotPolicyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePatchPropertiesDataProtection model = - new VolumePatchPropertiesDataProtection() - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("d")); - model = BinaryData.fromObject(model).toObject(VolumePatchPropertiesDataProtection.class); - Assertions.assertEquals("d", 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 9360c7b7a33d..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesExportPolicyTests.java +++ /dev/null @@ -1,111 +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\":1757000388,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"naenqpehindo\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"},{\"ruleIndex\":1448466618,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"lkthu\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"},{\"ruleIndex\":1315398087,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"fmmdnbbg\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"}]}") - .toObject(VolumePatchPropertiesExportPolicy.class); - Assertions.assertEquals(1757000388, 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(true, model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).cifs()); - Assertions.assertEquals(true, model.rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.rules().get(0).nfsv41()); - Assertions.assertEquals("naenqpehindo", model.rules().get(0).allowedClients()); - Assertions.assertEquals(true, 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(1757000388) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(true) - .withNfsv3(true) - .withNfsv41(true) - .withAllowedClients("naenqpehindo") - .withHasRootAccess(true) - .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule() - .withRuleIndex(1448466618) - .withUnixReadOnly(false) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(true) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("lkthu") - .withHasRootAccess(false) - .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule() - .withRuleIndex(1315398087) - .withUnixReadOnly(false) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(true) - .withNfsv3(true) - .withNfsv41(true) - .withAllowedClients("fmmdnbbg") - .withHasRootAccess(true) - .withChownMode(ChownMode.UNRESTRICTED))); - model = BinaryData.fromObject(model).toObject(VolumePatchPropertiesExportPolicy.class); - Assertions.assertEquals(1757000388, 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(true, model.rules().get(0).kerberos5ReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadOnly()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5IReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(true, model.rules().get(0).cifs()); - Assertions.assertEquals(true, model.rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.rules().get(0).nfsv41()); - Assertions.assertEquals("naenqpehindo", model.rules().get(0).allowedClients()); - Assertions.assertEquals(true, 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 0566fed5f3ef..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchPropertiesTests.java +++ /dev/null @@ -1,132 +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.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.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\":\"Ultra\",\"usageThreshold\":6774114395187736753,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":309197108,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"sqfsubcgjbirxb\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"}]},\"throughputMibps\":16.671253,\"dataProtection\":{\"snapshot\":{\"snapshotPolicyId\":\"twss\"}},\"isDefaultQuotaEnabled\":true,\"defaultUserQuotaInKiBs\":6673655197593346070,\"defaultGroupQuotaInKiBs\":6942246112545525154,\"unixPermissions\":\"xilzznf\",\"coolAccess\":true,\"coolnessPeriod\":1331345486,\"coolAccessRetrievalPolicy\":\"OnRead\",\"snapshotDirectoryVisible\":true,\"smbAccessBasedEnumeration\":\"Disabled\",\"smbNonBrowsable\":\"Enabled\"}") - .toObject(VolumePatchProperties.class); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(6774114395187736753L, model.usageThreshold()); - Assertions.assertEquals(309197108, 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(true, 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(true, model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(false, 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("sqfsubcgjbirxb", 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(16.671253F, model.throughputMibps()); - Assertions.assertEquals("twss", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(true, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(6673655197593346070L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(6942246112545525154L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("xilzznf", model.unixPermissions()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(1331345486, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.ON_READ, model.coolAccessRetrievalPolicy()); - 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 { - VolumePatchProperties model = - new VolumePatchProperties() - .withServiceLevel(ServiceLevel.ULTRA) - .withUsageThreshold(6774114395187736753L) - .withExportPolicy( - new VolumePatchPropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(309197108) - .withUnixReadOnly(true) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("sqfsubcgjbirxb") - .withHasRootAccess(false) - .withChownMode(ChownMode.RESTRICTED)))) - .withThroughputMibps(16.671253F) - .withDataProtection( - new VolumePatchPropertiesDataProtection() - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("twss"))) - .withIsDefaultQuotaEnabled(true) - .withDefaultUserQuotaInKiBs(6673655197593346070L) - .withDefaultGroupQuotaInKiBs(6942246112545525154L) - .withUnixPermissions("xilzznf") - .withCoolAccess(true) - .withCoolnessPeriod(1331345486) - .withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy.ON_READ) - .withSnapshotDirectoryVisible(true) - .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED) - .withSmbNonBrowsable(SmbNonBrowsable.ENABLED); - model = BinaryData.fromObject(model).toObject(VolumePatchProperties.class); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(6774114395187736753L, model.usageThreshold()); - Assertions.assertEquals(309197108, 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(true, 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(true, model.exportPolicy().rules().get(0).kerberos5PReadOnly()); - Assertions.assertEquals(true, model.exportPolicy().rules().get(0).kerberos5PReadWrite()); - Assertions.assertEquals(false, 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("sqfsubcgjbirxb", 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(16.671253F, model.throughputMibps()); - Assertions.assertEquals("twss", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(true, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(6673655197593346070L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(6942246112545525154L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("xilzznf", model.unixPermissions()); - Assertions.assertEquals(true, model.coolAccess()); - Assertions.assertEquals(1331345486, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.ON_READ, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(true, model.snapshotDirectoryVisible()); - Assertions.assertEquals(SmbAccessBasedEnumeration.DISABLED, 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 e2e2b5f08416..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePatchTests.java +++ /dev/null @@ -1,200 +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.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.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\":\"Ultra\",\"usageThreshold\":2245300278286998069,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1252528512,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":false,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"hcaalnjix\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":939698337,\"unixReadOnly\":true,\"unixReadWrite\":true,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"xhnrztfolhb\",\"hasRootAccess\":true,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":1904300707,\"unixReadOnly\":false,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":false,\"nfsv3\":false,\"nfsv41\":false,\"allowedClients\":\"vpgylgqgitxmed\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"},{\"ruleIndex\":73392328,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":false,\"allowedClients\":\"eoellwptfdygp\",\"hasRootAccess\":false,\"chownMode\":\"Restricted\"}]},\"throughputMibps\":82.87768,\"dataProtection\":{\"snapshot\":{\"snapshotPolicyId\":\"fqrhhuaopppc\"}},\"isDefaultQuotaEnabled\":true,\"defaultUserQuotaInKiBs\":2031358735864920909,\"defaultGroupQuotaInKiBs\":1205860539886844150,\"unixPermissions\":\"zxctobgb\",\"coolAccess\":false,\"coolnessPeriod\":1356840761,\"coolAccessRetrievalPolicy\":\"Default\",\"snapshotDirectoryVisible\":true,\"smbAccessBasedEnumeration\":\"Disabled\",\"smbNonBrowsable\":\"Disabled\"},\"location\":\"cfbu\",\"tags\":{\"xxjyngudivkrtsw\":\"fqjhhkxbpvjymj\",\"vjfdx\":\"xqzvszjfa\",\"qtdo\":\"ivetvtcq\"},\"id\":\"mcbxvwvxysl\",\"name\":\"bhsfxob\",\"type\":\"ytkblmpew\"}") - .toObject(VolumePatch.class); - Assertions.assertEquals("cfbu", model.location()); - Assertions.assertEquals("fqjhhkxbpvjymj", model.tags().get("xxjyngudivkrtsw")); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(2245300278286998069L, model.usageThreshold()); - Assertions.assertEquals(1252528512, 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(true, 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(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(false, model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("hcaalnjix", model.exportPolicy().rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals(82.87768F, model.throughputMibps()); - Assertions.assertEquals("fqrhhuaopppc", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(true, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(2031358735864920909L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(1205860539886844150L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("zxctobgb", model.unixPermissions()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(1356840761, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.DEFAULT, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(true, model.snapshotDirectoryVisible()); - Assertions.assertEquals(SmbAccessBasedEnumeration.DISABLED, model.smbAccessBasedEnumeration()); - Assertions.assertEquals(SmbNonBrowsable.DISABLED, model.smbNonBrowsable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePatch model = - new VolumePatch() - .withLocation("cfbu") - .withTags(mapOf("xxjyngudivkrtsw", "fqjhhkxbpvjymj", "vjfdx", "xqzvszjfa", "qtdo", "ivetvtcq")) - .withServiceLevel(ServiceLevel.ULTRA) - .withUsageThreshold(2245300278286998069L) - .withExportPolicy( - new VolumePatchPropertiesExportPolicy() - .withRules( - Arrays - .asList( - new ExportPolicyRule() - .withRuleIndex(1252528512) - .withUnixReadOnly(true) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(false) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(true) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("hcaalnjix") - .withHasRootAccess(false) - .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule() - .withRuleIndex(939698337) - .withUnixReadOnly(true) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(false) - .withCifs(true) - .withNfsv3(true) - .withNfsv41(true) - .withAllowedClients("xhnrztfolhb") - .withHasRootAccess(true) - .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule() - .withRuleIndex(1904300707) - .withUnixReadOnly(false) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(true) - .withCifs(false) - .withNfsv3(false) - .withNfsv41(false) - .withAllowedClients("vpgylgqgitxmed") - .withHasRootAccess(false) - .withChownMode(ChownMode.UNRESTRICTED), - new ExportPolicyRule() - .withRuleIndex(73392328) - .withUnixReadOnly(true) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(true) - .withCifs(true) - .withNfsv3(true) - .withNfsv41(false) - .withAllowedClients("eoellwptfdygp") - .withHasRootAccess(false) - .withChownMode(ChownMode.RESTRICTED)))) - .withThroughputMibps(82.87768F) - .withDataProtection( - new VolumePatchPropertiesDataProtection() - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("fqrhhuaopppc"))) - .withIsDefaultQuotaEnabled(true) - .withDefaultUserQuotaInKiBs(2031358735864920909L) - .withDefaultGroupQuotaInKiBs(1205860539886844150L) - .withUnixPermissions("zxctobgb") - .withCoolAccess(false) - .withCoolnessPeriod(1356840761) - .withCoolAccessRetrievalPolicy(CoolAccessRetrievalPolicy.DEFAULT) - .withSnapshotDirectoryVisible(true) - .withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration.DISABLED) - .withSmbNonBrowsable(SmbNonBrowsable.DISABLED); - model = BinaryData.fromObject(model).toObject(VolumePatch.class); - Assertions.assertEquals("cfbu", model.location()); - Assertions.assertEquals("fqjhhkxbpvjymj", model.tags().get("xxjyngudivkrtsw")); - Assertions.assertEquals(ServiceLevel.ULTRA, model.serviceLevel()); - Assertions.assertEquals(2245300278286998069L, model.usageThreshold()); - Assertions.assertEquals(1252528512, 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(true, 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(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(false, model.exportPolicy().rules().get(0).nfsv41()); - Assertions.assertEquals("hcaalnjix", model.exportPolicy().rules().get(0).allowedClients()); - Assertions.assertEquals(false, model.exportPolicy().rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.UNRESTRICTED, model.exportPolicy().rules().get(0).chownMode()); - Assertions.assertEquals(82.87768F, model.throughputMibps()); - Assertions.assertEquals("fqrhhuaopppc", model.dataProtection().snapshot().snapshotPolicyId()); - Assertions.assertEquals(true, model.isDefaultQuotaEnabled()); - Assertions.assertEquals(2031358735864920909L, model.defaultUserQuotaInKiBs()); - Assertions.assertEquals(1205860539886844150L, model.defaultGroupQuotaInKiBs()); - Assertions.assertEquals("zxctobgb", model.unixPermissions()); - Assertions.assertEquals(false, model.coolAccess()); - Assertions.assertEquals(1356840761, model.coolnessPeriod()); - Assertions.assertEquals(CoolAccessRetrievalPolicy.DEFAULT, model.coolAccessRetrievalPolicy()); - Assertions.assertEquals(true, model.snapshotDirectoryVisible()); - Assertions.assertEquals(SmbAccessBasedEnumeration.DISABLED, model.smbAccessBasedEnumeration()); - Assertions.assertEquals(SmbNonBrowsable.DISABLED, 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 6db04e012599..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesDataProtectionTests.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.EndpointType; -import com.azure.resourcemanager.netapp.models.ReplicationObject; -import com.azure.resourcemanager.netapp.models.ReplicationSchedule; -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( - "{\"replication\":{\"replicationId\":\"vgqzcjrvxd\",\"endpointType\":\"dst\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"lxkvu\",\"remoteVolumeRegion\":\"hzovawjvzunlut\"},\"snapshot\":{\"snapshotPolicyId\":\"prnxipeil\"},\"volumeRelocation\":{\"relocationRequested\":true,\"readyToBeFinalized\":false}}") - .toObject(VolumePropertiesDataProtection.class); - Assertions.assertEquals(EndpointType.DST, model.replication().endpointType()); - Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.replication().replicationSchedule()); - Assertions.assertEquals("lxkvu", model.replication().remoteVolumeResourceId()); - Assertions.assertEquals("hzovawjvzunlut", model.replication().remoteVolumeRegion()); - Assertions.assertEquals("prnxipeil", model.snapshot().snapshotPolicyId()); - Assertions.assertEquals(true, model.volumeRelocation().relocationRequested()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePropertiesDataProtection model = - new VolumePropertiesDataProtection() - .withReplication( - new ReplicationObject() - .withEndpointType(EndpointType.DST) - .withReplicationSchedule(ReplicationSchedule.ONE_ZEROMINUTELY) - .withRemoteVolumeResourceId("lxkvu") - .withRemoteVolumeRegion("hzovawjvzunlut")) - .withSnapshot(new VolumeSnapshotProperties().withSnapshotPolicyId("prnxipeil")) - .withVolumeRelocation(new VolumeRelocationProperties().withRelocationRequested(true)); - model = BinaryData.fromObject(model).toObject(VolumePropertiesDataProtection.class); - Assertions.assertEquals(EndpointType.DST, model.replication().endpointType()); - Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, model.replication().replicationSchedule()); - Assertions.assertEquals("lxkvu", model.replication().remoteVolumeResourceId()); - Assertions.assertEquals("hzovawjvzunlut", model.replication().remoteVolumeRegion()); - Assertions.assertEquals("prnxipeil", 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 293ac8787f46..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumePropertiesExportPolicyTests.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.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\":1149825898,\"unixReadOnly\":false,\"unixReadWrite\":true,\"kerberos5ReadOnly\":false,\"kerberos5ReadWrite\":true,\"kerberos5iReadOnly\":false,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":true,\"kerberos5pReadWrite\":true,\"cifs\":true,\"nfsv3\":true,\"nfsv41\":true,\"allowedClients\":\"jriplrbpbewtghf\",\"hasRootAccess\":true,\"chownMode\":\"Restricted\"},{\"ruleIndex\":1553365340,\"unixReadOnly\":true,\"unixReadWrite\":false,\"kerberos5ReadOnly\":true,\"kerberos5ReadWrite\":false,\"kerberos5iReadOnly\":true,\"kerberos5iReadWrite\":true,\"kerberos5pReadOnly\":false,\"kerberos5pReadWrite\":false,\"cifs\":true,\"nfsv3\":false,\"nfsv41\":true,\"allowedClients\":\"loayqcgw\",\"hasRootAccess\":false,\"chownMode\":\"Unrestricted\"}]}") - .toObject(VolumePropertiesExportPolicy.class); - Assertions.assertEquals(1149825898, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(false, model.rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).unixReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(true, 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(true, model.rules().get(0).cifs()); - Assertions.assertEquals(true, model.rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.rules().get(0).nfsv41()); - Assertions.assertEquals("jriplrbpbewtghf", model.rules().get(0).allowedClients()); - Assertions.assertEquals(true, model.rules().get(0).hasRootAccess()); - Assertions.assertEquals(ChownMode.RESTRICTED, 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(1149825898) - .withUnixReadOnly(false) - .withUnixReadWrite(true) - .withKerberos5ReadOnly(false) - .withKerberos5ReadWrite(true) - .withKerberos5IReadOnly(false) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(true) - .withKerberos5PReadWrite(true) - .withCifs(true) - .withNfsv3(true) - .withNfsv41(true) - .withAllowedClients("jriplrbpbewtghf") - .withHasRootAccess(true) - .withChownMode(ChownMode.RESTRICTED), - new ExportPolicyRule() - .withRuleIndex(1553365340) - .withUnixReadOnly(true) - .withUnixReadWrite(false) - .withKerberos5ReadOnly(true) - .withKerberos5ReadWrite(false) - .withKerberos5IReadOnly(true) - .withKerberos5IReadWrite(true) - .withKerberos5PReadOnly(false) - .withKerberos5PReadWrite(false) - .withCifs(true) - .withNfsv3(false) - .withNfsv41(true) - .withAllowedClients("loayqcgw") - .withHasRootAccess(false) - .withChownMode(ChownMode.UNRESTRICTED))); - model = BinaryData.fromObject(model).toObject(VolumePropertiesExportPolicy.class); - Assertions.assertEquals(1149825898, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(false, model.rules().get(0).unixReadOnly()); - Assertions.assertEquals(true, model.rules().get(0).unixReadWrite()); - Assertions.assertEquals(false, model.rules().get(0).kerberos5ReadOnly()); - Assertions.assertEquals(true, 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(true, model.rules().get(0).cifs()); - Assertions.assertEquals(true, model.rules().get(0).nfsv3()); - Assertions.assertEquals(true, model.rules().get(0).nfsv41()); - Assertions.assertEquals("jriplrbpbewtghf", model.rules().get(0).allowedClients()); - Assertions.assertEquals(true, 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/VolumeQuotaRuleInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java deleted file mode 100644 index 4b4ccfcbceb2..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.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 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\":\"Patching\",\"quotaSizeInKiBs\":6449918274697799558,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"xqi\"},\"location\":\"qunyowxwlmdjr\",\"tags\":{\"vfvpdbodaciz\":\"g\",\"lhkrribdeibqipqk\":\"j\",\"rwkq\":\"hvxndzwmkrefajpj\"},\"id\":\"yhgbijtjivfx\",\"name\":\"sjabibs\",\"type\":\"stawfsdjpvkv\"}") - .toObject(VolumeQuotaRuleInner.class); - Assertions.assertEquals("qunyowxwlmdjr", model.location()); - Assertions.assertEquals("g", model.tags().get("vfvpdbodaciz")); - Assertions.assertEquals(6449918274697799558L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("xqi", model.quotaTarget()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeQuotaRuleInner model = - new VolumeQuotaRuleInner() - .withLocation("qunyowxwlmdjr") - .withTags(mapOf("vfvpdbodaciz", "g", "lhkrribdeibqipqk", "j", "rwkq", "hvxndzwmkrefajpj")) - .withQuotaSizeInKiBs(6449918274697799558L) - .withQuotaType(Type.INDIVIDUAL_USER_QUOTA) - .withQuotaTarget("xqi"); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRuleInner.class); - Assertions.assertEquals("qunyowxwlmdjr", model.location()); - Assertions.assertEquals("g", model.tags().get("vfvpdbodaciz")); - Assertions.assertEquals(6449918274697799558L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_USER_QUOTA, model.quotaType()); - Assertions.assertEquals("xqi", 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 4d5e9714f715..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulePatchTests.java +++ /dev/null @@ -1,63 +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\":{\"zhjjklffhmouwq\":\"jabudurgkakmo\",\"eeyebi\":\"gzrf\",\"wrv\":\"ikayuhqlbjbsybb\",\"slthaq\":\"ldgmfpgvmpip\"},\"properties\":{\"provisioningState\":\"Accepted\",\"quotaSizeInKiBs\":152886456423473805,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"dsrezpdrhneuyow\"}}") - .toObject(VolumeQuotaRulePatch.class); - Assertions.assertEquals("jabudurgkakmo", model.tags().get("zhjjklffhmouwq")); - Assertions.assertEquals(152886456423473805L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("dsrezpdrhneuyow", model.quotaTarget()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeQuotaRulePatch model = - new VolumeQuotaRulePatch() - .withTags( - mapOf( - "zhjjklffhmouwq", - "jabudurgkakmo", - "eeyebi", - "gzrf", - "wrv", - "ikayuhqlbjbsybb", - "slthaq", - "ldgmfpgvmpip")) - .withQuotaSizeInKiBs(152886456423473805L) - .withQuotaType(Type.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("dsrezpdrhneuyow"); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRulePatch.class); - Assertions.assertEquals("jabudurgkakmo", model.tags().get("zhjjklffhmouwq")); - Assertions.assertEquals(152886456423473805L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("dsrezpdrhneuyow", 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 f840c3a54b29..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java +++ /dev/null @@ -1,104 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; -import java.nio.ByteBuffer; -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 org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumeQuotaRulesCreateMockTests { - @Test - public void testCreate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":1851749746038265021,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"hfqpofv\"},\"location\":\"cblembnkbwv\",\"tags\":{\"qihebw\":\"kdi\"},\"id\":\"swbzuwfmdurage\",\"name\":\"izvcjfe\",\"type\":\"isdju\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - VolumeQuotaRule response = - manager - .volumeQuotaRules() - .define("kqscazuawxtzx") - .withRegion("sflvgsgzwywakoih") - .withExistingVolume("cpopmxel", "wcltyjede", "xm", "f") - .withTags( - mapOf( - "zotqyryuzcb", - "mjblmljhlny", - "peujlzqn", - "qqvxmvwfgtayxons", - "nzoibgsxgnx", - "cvsql", - "mpqoxw", - "yqo")) - .withQuotaSizeInKiBs(5532317119730945052L) - .withQuotaType(Type.INDIVIDUAL_GROUP_QUOTA) - .withQuotaTarget("vxcushsphaivmx") - .create(); - - Assertions.assertEquals("cblembnkbwv", response.location()); - Assertions.assertEquals("kdi", response.tags().get("qihebw")); - Assertions.assertEquals(1851749746038265021L, response.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, response.quotaType()); - Assertions.assertEquals("hfqpofv", 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 faee5e4713c9..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java +++ /dev/null @@ -1,63 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumeQuotaRulesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumeQuotaRules() - .delete("awjutifd", "fmvigorqjbttzh", "aglkafhon", "juj", "ickpz", 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 56d8eede7ab3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumeQuotaRulesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"Creating\",\"quotaSizeInKiBs\":3265340554220962405,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"ajqglcf\"},\"location\":\"l\",\"tags\":{\"zrdpsovwxznptgoe\":\"yxynq\",\"vntjlrigjk\":\"ybbabpfhvfsl\",\"xwaabzmifrygznmm\":\"kyrioovzid\"},\"id\":\"xrizkzobgop\",\"name\":\"lhslnelxieixyn\",\"type\":\"lxecwcrojphslh\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - VolumeQuotaRule response = - manager - .volumeQuotaRules() - .getWithResponse( - "ids", "ault", "ijjumfq", "azlnqnmcjngzqdqx", "bjwgnyfus", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("l", response.location()); - Assertions.assertEquals("yxynq", response.tags().get("zrdpsovwxznptgoe")); - Assertions.assertEquals(3265340554220962405L, response.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, response.quotaType()); - Assertions.assertEquals("ajqglcf", 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 df172d773555..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java +++ /dev/null @@ -1,73 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.Type; -import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumeQuotaRulesListByVolumeMockTests { - @Test - public void testListByVolume() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":8351814854754932643,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"bwefqsfapaqtfer\"},\"location\":\"wexjkmfxapjwogq\",\"tags\":{\"qwpwyawbzasqbuc\":\"bpudcdab\"},\"id\":\"jg\",\"name\":\"yexaoguy\",\"type\":\"i\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.volumeQuotaRules().listByVolume("cpilj", "a", "zv", "chndbnwie", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wexjkmfxapjwogq", response.iterator().next().location()); - Assertions.assertEquals("bpudcdab", response.iterator().next().tags().get("qwpwyawbzasqbuc")); - Assertions.assertEquals(8351814854754932643L, response.iterator().next().quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_USER_QUOTA, response.iterator().next().quotaType()); - Assertions.assertEquals("bwefqsfapaqtfer", 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 8ce735f87689..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java +++ /dev/null @@ -1,72 +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\":4528392326800353907,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"wem\"},\"location\":\"rncsdtclu\",\"tags\":{\"lfeadcygq\":\"pbsfgytgu\",\"elolppvksrpqvuj\":\"kyhejhzisxgf\",\"wib\":\"raehtwdwrft\",\"cstwity\":\"rcdlbhshfwpr\"},\"id\":\"hevxcced\",\"name\":\"pnmdyodnwzxltjcv\",\"type\":\"hlt\"}]}") - .toObject(VolumeQuotaRulesList.class); - Assertions.assertEquals("rncsdtclu", model.value().get(0).location()); - Assertions.assertEquals("pbsfgytgu", model.value().get(0).tags().get("lfeadcygq")); - Assertions.assertEquals(4528392326800353907L, model.value().get(0).quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("wem", 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("rncsdtclu") - .withTags( - mapOf( - "lfeadcygq", - "pbsfgytgu", - "elolppvksrpqvuj", - "kyhejhzisxgf", - "wib", - "raehtwdwrft", - "cstwity", - "rcdlbhshfwpr")) - .withQuotaSizeInKiBs(4528392326800353907L) - .withQuotaType(Type.INDIVIDUAL_GROUP_QUOTA) - .withQuotaTarget("wem"))); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRulesList.class); - Assertions.assertEquals("rncsdtclu", model.value().get(0).location()); - Assertions.assertEquals("pbsfgytgu", model.value().get(0).tags().get("lfeadcygq")); - Assertions.assertEquals(4528392326800353907L, model.value().get(0).quotaSizeInKiBs()); - Assertions.assertEquals(Type.INDIVIDUAL_GROUP_QUOTA, model.value().get(0).quotaType()); - Assertions.assertEquals("wem", 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 3b2861a48ed3..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.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.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\":\"Creating\",\"quotaSizeInKiBs\":7435265632351903503,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"kd\"}") - .toObject(VolumeQuotaRulesProperties.class); - Assertions.assertEquals(7435265632351903503L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("kd", model.quotaTarget()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeQuotaRulesProperties model = - new VolumeQuotaRulesProperties() - .withQuotaSizeInKiBs(7435265632351903503L) - .withQuotaType(Type.DEFAULT_GROUP_QUOTA) - .withQuotaTarget("kd"); - model = BinaryData.fromObject(model).toObject(VolumeQuotaRulesProperties.class); - Assertions.assertEquals(7435265632351903503L, model.quotaSizeInKiBs()); - Assertions.assertEquals(Type.DEFAULT_GROUP_QUOTA, model.quotaType()); - Assertions.assertEquals("kd", 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 6407a95d0074..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeRelocationPropertiesTests.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.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\":true,\"readyToBeFinalized\":false}") - .toObject(VolumeRelocationProperties.class); - Assertions.assertEquals(true, model.relocationRequested()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeRelocationProperties model = new VolumeRelocationProperties().withRelocationRequested(true); - model = BinaryData.fromObject(model).toObject(VolumeRelocationProperties.class); - Assertions.assertEquals(true, 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 5cf8be1577f4..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\":\"wyhzdx\"}").toObject(VolumeRevert.class); - Assertions.assertEquals("wyhzdx", model.snapshotId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeRevert model = new VolumeRevert().withSnapshotId("wyhzdx"); - model = BinaryData.fromObject(model).toObject(VolumeRevert.class); - Assertions.assertEquals("wyhzdx", 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 2b6d84af7dee..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\":\"p\"}").toObject(VolumeSnapshotProperties.class); - Assertions.assertEquals("p", model.snapshotPolicyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeSnapshotProperties model = new VolumeSnapshotProperties().withSnapshotPolicyId("p"); - model = BinaryData.fromObject(model).toObject(VolumeSnapshotProperties.class); - Assertions.assertEquals("p", model.snapshotPolicyId()); - } -} 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 ac1378d52a80..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java +++ /dev/null @@ -1,70 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.AuthorizeRequest; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesAuthorizeReplicationMockTests { - @Test - public void testAuthorizeReplication() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumes() - .authorizeReplication( - "kkzjcjbtrga", - "hvv", - "brxjjsto", - "beitpkx", - new AuthorizeRequest().withRemoteVolumeResourceId("moob"), - 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 5565d9d09308..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java +++ /dev/null @@ -1,72 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesBreakFileLocksMockTests { - @Test - public void testBreakFileLocks() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumes() - .breakFileLocks( - "f", - "fcjnaeoisrvhmgor", - "fukiscvwmzhw", - "lefaxvxilcbtgn", - new BreakFileLocksRequest() - .withClientIp("zeyqxtjjfzqlqhyc") - .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 c21cc14dc4a7..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java +++ /dev/null @@ -1,70 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesBreakReplicationMockTests { - @Test - public void testBreakReplication() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumes() - .breakReplication( - "s", - "wn", - "tgkbugrjqctojc", - "isofieypefojyqd", - 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 cae708d48db4..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesDeleteReplicationMockTests { - @Test - public void testDeleteReplication() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.volumes().deleteReplication("y", "petogebjox", "lhvnhlab", "q", 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 07d342e7a65f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java +++ /dev/null @@ -1,63 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesFinalizeRelocationMockTests { - @Test - public void testFinalizeRelocation() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumes() - .finalizeRelocation("xgncxyk", "hdjhlimmbcx", "h", "cporxvxcjz", 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 c41fbf72f691..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java +++ /dev/null @@ -1,75 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; -import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesListGetGroupIdListForLdapUserMockTests { - @Test - public void testListGetGroupIdListForLdapUser() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"groupIdsForLdapUser\":[\"ylfsbtk\",\"dp\"]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - GetGroupIdListForLdapUserResponse response = - manager - .volumes() - .listGetGroupIdListForLdapUser( - "dggxdbeesmi", - "knlrariaawiuagy", - "wqfbylyrfgiagt", - "ojocqwogf", - new GetGroupIdListForLdapUserRequest().withUsername("zjvusfzldmo"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ylfsbtk", 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 4f3e6c9bdbcf..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.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.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesListReplicationsMockTests { - @Test - public void testListReplications() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"endpointType\":\"dst\",\"replicationSchedule\":\"daily\",\"remoteVolumeResourceId\":\"cuubgq\",\"remoteVolumeRegion\":\"rtalmet\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .volumes() - .listReplications( - "f", "cvhrfsp", "uagrttikteusqc", "kvyklxubyjaffmm", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(EndpointType.DST, response.iterator().next().endpointType()); - Assertions.assertEquals(ReplicationSchedule.DAILY, response.iterator().next().replicationSchedule()); - Assertions.assertEquals("cuubgq", response.iterator().next().remoteVolumeResourceId()); - Assertions.assertEquals("rtalmet", response.iterator().next().remoteVolumeRegion()); - } -} 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 1784d2d9406f..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java +++ /dev/null @@ -1,70 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.PoolChangeRequest; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesPoolChangeMockTests { - @Test - public void testPoolChange() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumes() - .poolChange( - "wpfaj", - "jwltlwtjjgu", - "talhsnvkcdmxzr", - "oaimlnw", - new PoolChangeRequest().withNewPoolResourceId("aaomylweazu"), - 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 29ba1e872434..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.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.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesReInitializeReplicationMockTests { - @Test - public void testReInitializeReplication() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumes() - .reInitializeReplication( - "lftidgfcwqmpim", "qxzhem", "yhohujswtwkozzwc", "lkb", 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 28820637c595..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java +++ /dev/null @@ -1,77 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesReplicationStatusWithResponseMockTests { - @Test - public void testReplicationStatusWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"healthy\":false,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Uninitialized\",\"totalProgress\":\"cluqovekqvgqo\",\"errorMessage\":\"ifzmpjwyivqi\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReplicationStatus response = - manager - .volumes() - .replicationStatusWithResponse( - "plcplcwkhi", "ihlhzdsqtzb", "rgnowcjhfgm", "ecactx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.healthy()); - Assertions.assertEquals(RelationshipStatus.IDLE, response.relationshipStatus()); - Assertions.assertEquals(MirrorState.UNINITIALIZED, response.mirrorState()); - Assertions.assertEquals("cluqovekqvgqo", response.totalProgress()); - Assertions.assertEquals("ifzmpjwyivqi", response.errorMessage()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordMockTests.java deleted file mode 100644 index cf21a8063b52..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordMockTests.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.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesResetCifsPasswordMockTests { - @Test - public void testResetCifsPassword() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumes() - .resetCifsPassword( - "aspavehhr", "kbunzoz", "dhcxgkmoy", "cdyuibhmfdnbzyd", com.azure.core.util.Context.NONE); - } -} 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 157ca727eaeb..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java +++ /dev/null @@ -1,63 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesResyncReplicationMockTests { - @Test - public void testResyncReplication() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumes() - .resyncReplication("t", "gdslqxihhrmoo", "z", "seypxiutcxapz", 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 12c3ac86c52e..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java +++ /dev/null @@ -1,70 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.VolumeRevert; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesRevertMockTests { - @Test - public void testRevert() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumes() - .revert( - "hlfkqojpy", - "vgtrdcnifmzzs", - "ymbrnysuxmpraf", - "g", - new VolumeRevert().withSnapshotId("hocxvdfffwafqrou"), - 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 164d8ce2f64c..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java +++ /dev/null @@ -1,63 +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.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesRevertRelocationMockTests { - @Test - public void testRevertRelocation() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetAppFilesManager manager = - NetAppFilesManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .volumes() - .revertRelocation("qizxfpxtgqscjavf", "juhdqazkmtgguwpi", "r", "jcivmmg", 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 e17b5e44fd2b..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/WeeklyScheduleTests.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.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\":672785070,\"day\":\"gjhkycubeddg\",\"hour\":947899145,\"minute\":583924547,\"usedBytes\":3778047541183075264}") - .toObject(WeeklySchedule.class); - Assertions.assertEquals(672785070, model.snapshotsToKeep()); - Assertions.assertEquals("gjhkycubeddg", model.day()); - Assertions.assertEquals(947899145, model.hour()); - Assertions.assertEquals(583924547, model.minute()); - Assertions.assertEquals(3778047541183075264L, model.usedBytes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WeeklySchedule model = - new WeeklySchedule() - .withSnapshotsToKeep(672785070) - .withDay("gjhkycubeddg") - .withHour(947899145) - .withMinute(583924547) - .withUsedBytes(3778047541183075264L); - model = BinaryData.fromObject(model).toObject(WeeklySchedule.class); - Assertions.assertEquals(672785070, model.snapshotsToKeep()); - Assertions.assertEquals("gjhkycubeddg", model.day()); - Assertions.assertEquals(947899145, model.hour()); - Assertions.assertEquals(583924547, model.minute()); - Assertions.assertEquals(3778047541183075264L, model.usedBytes()); - } -}