diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 61cec91a5106..4257625ecd19 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3928,7 +3928,7 @@ packages: dependencies: semver: 7.3.8 shelljs: 0.8.5 - typescript: 5.0.0-dev.20230210 + typescript: 5.0.0-dev.20230213 dev: false /downlevel-dts/0.7.0: @@ -8712,8 +8712,8 @@ packages: hasBin: true dev: false - /typescript/5.0.0-dev.20230210: - resolution: {integrity: sha512-FjXPw8PFeIuT1cxouvP4LRu8J1G+FsWVEGwlJ9GcVywRNDfD3Hh6flQFUympS+3QnAIiG/+CHs9ZS2EQIT733g==} + /typescript/5.0.0-dev.20230213: + resolution: {integrity: sha512-6winpoAguZ2b0juVOseKRELa6eIx8st5j42fHikEhzBb2NcuG7tSGMAjIo748WNXVija2L8T5D7vyaDGYftaDQ==} engines: {node: '>=4.2.0'} hasBin: true dev: false @@ -13298,15 +13298,15 @@ packages: dev: false file:projects/arm-netapp.tgz: - resolution: {integrity: sha512-PwKwZBLyG03szke9q3LkDdM230xnQVYJI7sqm/AJgNn5l7kzrwc3nP6I0wZypy9XWI9oz3wdAY7jGruc0a+BfQ==, tarball: file:projects/arm-netapp.tgz} + resolution: {integrity: sha512-fyuCOI4D4QqeK2lLRxd86pDi6c79v1fnu3Cq0FtCMEWU7l8R+q0lNgFA0/J1kRoJuBVs2YTfXQf+fViHVAQiMQ==, tarball: file:projects/arm-netapp.tgz} name: '@rush-temp/arm-netapp' version: 0.0.0 dependencies: '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.34.3_@types+node@14.18.36 - '@rollup/plugin-commonjs': 24.0.1_rollup@2.79.1 - '@rollup/plugin-json': 6.0.0_rollup@2.79.1 - '@rollup/plugin-multi-entry': 6.0.0_rollup@2.79.1 + '@rollup/plugin-commonjs': 21.1.0_rollup@2.79.1 + '@rollup/plugin-json': 4.1.0_rollup@2.79.1 + '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 '@types/chai': 4.3.4 '@types/node': 14.18.36 diff --git a/sdk/netapp/arm-netapp/CHANGELOG.md b/sdk/netapp/arm-netapp/CHANGELOG.md index a3f47d81d8f8..304f775db8c7 100644 --- a/sdk/netapp/arm-netapp/CHANGELOG.md +++ b/sdk/netapp/arm-netapp/CHANGELOG.md @@ -1,15 +1,59 @@ # Release History + +## 18.0.0 (2023-02-13) + +**Features** -## 17.0.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation Backups.beginRestoreFiles + - Added operation Backups.beginRestoreFilesAndWait + - Added operation Volumes.beginBreakFileLocks + - Added operation Volumes.beginBreakFileLocksAndWait + - Added Interface BackupRestoreFiles + - Added Interface BackupsRestoreFilesHeaders + - Added Interface BackupsRestoreFilesOptionalParams + - Added Interface BreakFileLocksRequest + - Added Interface ManagedServiceIdentity + - Added Interface VolumesBreakFileLocksHeaders + - Added Interface VolumesBreakFileLocksOptionalParams + - Added Type Alias FileAccessLogs + - Added Type Alias ManagedServiceIdentityType + - Interface ActiveDirectory has a new optional parameter preferredServersForLdapClient + - Interface Volume has a new optional parameter dataStoreResourceId + - Interface Volume has a new optional parameter fileAccessLogs + - Interface Volume has a new optional parameter isLargeVolume + - Interface Volume has a new optional parameter provisionedAvailabilityZone + - Interface VolumeGroupVolumeProperties has a new optional parameter dataStoreResourceId + - Interface VolumeGroupVolumeProperties has a new optional parameter fileAccessLogs + - Interface VolumeGroupVolumeProperties has a new optional parameter isLargeVolume + - Interface VolumeGroupVolumeProperties has a new optional parameter provisionedAvailabilityZone + - Interface VolumePropertiesDataProtection has a new optional parameter volumeRelocation + - Interface VolumeQuotaRulePatch has a new optional parameter tags + - Interface VolumeRelocationProperties has a new optional parameter readyToBeFinalized + - Added Enum KnownFileAccessLogs + - Added Enum KnownManagedServiceIdentityType -### Other Changes +**Breaking Changes** + - Removed operation group Vaults + - Operation NetAppResource.checkNameAvailability has a new signature + - Operation NetAppResource.checkQuotaAvailability has a new signature + - Interface Backup no longer has parameter id + - Interface Backup no longer has parameter name + - Interface Backup no longer has parameter type + - Interface BackupPolicyDetails no longer has parameter id + - Interface BackupPolicyDetails no longer has parameter name + - Interface BackupPolicyDetails no longer has parameter type + - Interface Snapshot no longer has parameter id + - Interface Snapshot no longer has parameter name + - Interface Snapshot no longer has parameter type + - Interface VolumeBackupProperties no longer has parameter vaultId + - Interface VolumeRelocationProperties no longer has parameter oldBareMetalTenantId + - Interface VolumeRelocationProperties no longer has parameter oldVolumeId + - Type of parameter identity of interface NetAppAccount is changed from Identity to ManagedServiceIdentity + - Class NetAppManagementClient no longer has parameter vaults + - Removed Enum KnownIdentityType + + ## 17.0.1 (2023-02-01) **Features** diff --git a/sdk/netapp/arm-netapp/_meta.json b/sdk/netapp/arm-netapp/_meta.json index 0825150eae28..3613d29fc8af 100644 --- a/sdk/netapp/arm-netapp/_meta.json +++ b/sdk/netapp/arm-netapp/_meta.json @@ -1,8 +1,8 @@ { - "commit": "8ff0e3b8dc12cd793f4f2208d76f9f3a7f51176c", - "readme": "specification\\netapp\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\netapp\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.7 --generate-sample=true", + "commit": "f7a3a2f9c7b6182adfd797512099fdde285109ee", + "readme": "specification/netapp/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/netapp/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.5", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.0", - "use": "@autorest/typescript@6.0.0-rc.7" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "use": "@autorest/typescript@6.0.0-rc.5" } \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/package.json b/sdk/netapp/arm-netapp/package.json index 46cae15c4bb9..59b854ca4110 100644 --- a/sdk/netapp/arm-netapp/package.json +++ b/sdk/netapp/arm-netapp/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetAppManagementClient.", - "version": "17.0.2", + "version": "18.0.0", "engines": { "node": ">=14.0.0" }, @@ -29,9 +29,9 @@ "types": "./types/arm-netapp.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "@rollup/plugin-commonjs": "^24.0.0", - "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-multi-entry": "^6.0.0", + "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-multi-entry": "^4.1.0", "@rollup/plugin-node-resolve": "^13.1.3", "mkdirp": "^1.0.4", "rollup": "^2.66.1", @@ -39,7 +39,6 @@ "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^8.2.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -50,6 +49,7 @@ "@types/node": "^14.0.0", "@azure/dev-tool": "^1.0.0" }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -110,14 +110,5 @@ } ] }, - "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/review/arm-netapp.api.md b/sdk/netapp/arm-netapp/review/arm-netapp.api.md index 5be964f1807e..55d26e73ef5b 100644 --- a/sdk/netapp/arm-netapp/review/arm-netapp.api.md +++ b/sdk/netapp/arm-netapp/review/arm-netapp.api.md @@ -142,6 +142,7 @@ export interface ActiveDirectory { ldapSigning?: boolean; organizationalUnit?: string; password?: string; + preferredServersForLdapClient?: string; securityOperators?: string[]; serverRootCACertificate?: string; site?: string; @@ -166,18 +167,15 @@ export interface AuthorizeRequest { export type AvsDataStore = string; // @public -export interface Backup { +export interface Backup extends ProxyResource { readonly backupId?: string; readonly backupType?: BackupType; readonly creationDate?: Date; readonly failureReason?: string; - readonly id?: string; label?: string; location: string; - readonly name?: string; readonly provisioningState?: string; readonly size?: number; - readonly type?: string; useExistingSnapshot?: boolean; readonly volumeName?: string; } @@ -267,19 +265,12 @@ export interface BackupPolicy extends TrackedResource { } // @public -export interface BackupPolicyDetails { +export interface BackupPolicyDetails extends TrackedResource { readonly backupPolicyId?: string; dailyBackupsToKeep?: number; enabled?: boolean; - readonly id?: string; - location?: string; monthlyBackupsToKeep?: number; - readonly name?: string; readonly provisioningState?: string; - tags?: { - [propertyName: string]: string; - }; - readonly type?: string; readonly volumeBackups?: VolumeBackups[]; readonly volumesAssigned?: number; weeklyBackupsToKeep?: number; @@ -304,12 +295,21 @@ export interface BackupPolicyPatch { weeklyBackupsToKeep?: number; } +// @public +export interface BackupRestoreFiles { + destinationVolumeId: string; + fileList: string[]; + restoreFilePath?: string; +} + // @public export interface Backups { beginCreate(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, body: Backup, options?: BackupsCreateOptionalParams): Promise, BackupsCreateResponse>>; beginCreateAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, body: Backup, options?: BackupsCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: BackupsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: BackupsDeleteOptionalParams): Promise; + beginRestoreFiles(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, body: BackupRestoreFiles, options?: BackupsRestoreFilesOptionalParams): Promise, void>>; + beginRestoreFilesAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, body: BackupRestoreFiles, options?: BackupsRestoreFilesOptionalParams): Promise; beginUpdate(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: BackupsUpdateOptionalParams): Promise, BackupsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: BackupsUpdateOptionalParams): Promise; get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: BackupsGetOptionalParams): Promise; @@ -366,6 +366,18 @@ export interface BackupsListOptionalParams extends coreClient.OperationOptions { // @public export type BackupsListResponse = BackupsList; +// @public +export interface BackupsRestoreFilesHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface BackupsRestoreFilesOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface BackupStatus { readonly errorMessage?: string; @@ -391,6 +403,12 @@ export type BackupsUpdateResponse = Backup; // @public export type BackupType = string; +// @public +export interface BreakFileLocksRequest { + clientIp?: string; + confirmRunningDisruptiveOperation?: boolean; +} + // @public export interface BreakReplicationRequest { forceBreakReplication?: boolean; @@ -511,6 +529,9 @@ export interface ExportPolicyRule { unixReadWrite?: boolean; } +// @public +export type FileAccessLogs = string; + // @public export interface FilePathAvailabilityRequest { name: string; @@ -527,19 +548,6 @@ export interface HourlySchedule { usedBytes?: number; } -// @public -export interface Identity { - readonly principalId?: string; - readonly tenantId?: string; - type: IdentityType; - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentity; - }; -} - -// @public -export type IdentityType = string; - // @public export type InAvailabilityReasonType = string; @@ -639,11 +647,9 @@ export enum KnownEndpointType { } // @public -export enum KnownIdentityType { - None = "None", - SystemAssigned = "SystemAssigned", - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", - UserAssigned = "UserAssigned" +export enum KnownFileAccessLogs { + Disabled = "Disabled", + Enabled = "Enabled" } // @public @@ -667,6 +673,14 @@ export enum KnownKeyVaultStatus { Updating = "Updating" } +// @public +export enum KnownManagedServiceIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", + UserAssigned = "UserAssigned" +} + // @public export enum KnownMetricAggregationType { Average = "Average" @@ -771,6 +785,19 @@ export interface LogSpecification { name?: string; } +// @public +export interface ManagedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity; + }; +} + +// @public +export type ManagedServiceIdentityType = string; + // @public export type MetricAggregationType = string; @@ -835,7 +862,7 @@ export interface NetAppAccount extends TrackedResource { readonly disableShowmount?: boolean; encryption?: AccountEncryption; readonly etag?: string; - identity?: Identity; + identity?: ManagedServiceIdentity; readonly provisioningState?: string; } @@ -892,8 +919,6 @@ export class NetAppManagementClient extends coreClient.ServiceClient { // (undocumented) subvolumes: Subvolumes; // (undocumented) - vaults: Vaults; - // (undocumented) volumeGroups: VolumeGroups; // (undocumented) volumeQuotaRules: VolumeQuotaRules; @@ -911,8 +936,8 @@ export interface NetAppManagementClientOptionalParams extends coreClient.Service // @public export interface NetAppResource { checkFilePathAvailability(location: string, name: string, subnetId: string, options?: NetAppResourceCheckFilePathAvailabilityOptionalParams): Promise; - checkNameAvailability(location: string, name: string, resourceGroup: string, typeParam: CheckNameResourceTypes, options?: NetAppResourceCheckNameAvailabilityOptionalParams): Promise; - checkQuotaAvailability(location: string, name: string, resourceGroup: string, typeParam: CheckQuotaNameResourceTypes, options?: NetAppResourceCheckQuotaAvailabilityOptionalParams): Promise; + checkNameAvailability(location: string, name: string, typeParam: CheckNameResourceTypes, resourceGroup: string, options?: NetAppResourceCheckNameAvailabilityOptionalParams): Promise; + checkQuotaAvailability(location: string, name: string, typeParam: CheckQuotaNameResourceTypes, resourceGroup: string, options?: NetAppResourceCheckQuotaAvailabilityOptionalParams): Promise; queryRegionInfo(location: string, options?: NetAppResourceQueryRegionInfoOptionalParams): Promise; } @@ -1193,14 +1218,11 @@ export type SmbAccessBasedEnumeration = string; export type SmbNonBrowsable = string; // @public -export interface Snapshot { +export interface Snapshot extends ProxyResource { readonly created?: Date; - readonly id?: string; location: string; - readonly name?: string; readonly provisioningState?: string; readonly snapshotId?: string; - readonly type?: string; } // @public @@ -1525,31 +1547,6 @@ export interface UserAssignedIdentity { readonly principalId?: string; } -// @public -export interface Vault { - readonly id?: string; - readonly name?: string; - readonly type?: string; - vaultName?: string; -} - -// @public -export interface VaultList { - value?: Vault[]; -} - -// @public -export interface Vaults { - list(resourceGroupName: string, accountName: string, options?: VaultsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface VaultsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type VaultsListResponse = VaultList; - // @public export interface Volume extends TrackedResource { avsDataStore?: AvsDataStore; @@ -1561,6 +1558,7 @@ export interface Volume extends TrackedResource { coolnessPeriod?: number; creationToken: string; dataProtection?: VolumePropertiesDataProtection; + readonly dataStoreResourceId?: string[]; defaultGroupQuotaInKiBs?: number; defaultUserQuotaInKiBs?: number; deleteBaseSnapshot?: boolean; @@ -1569,8 +1567,10 @@ export interface Volume extends TrackedResource { encryptionKeySource?: EncryptionKeySource; readonly etag?: string; exportPolicy?: VolumePropertiesExportPolicy; + readonly fileAccessLogs?: FileAccessLogs; readonly fileSystemId?: string; isDefaultQuotaEnabled?: boolean; + isLargeVolume?: boolean; isRestoring?: boolean; kerberosEnabled?: boolean; keyVaultPrivateEndpointResourceId?: string; @@ -1581,6 +1581,7 @@ export interface Volume extends TrackedResource { readonly networkSiblingSetId?: string; placementRules?: PlacementKeyValuePairs[]; protocolTypes?: string[]; + readonly provisionedAvailabilityZone?: string; readonly provisioningState?: string; proximityPlacementGroup?: string; securityStyle?: SecurityStyle; @@ -1608,7 +1609,6 @@ export interface VolumeBackupProperties { backupEnabled?: boolean; backupPolicyId?: string; policyEnforced?: boolean; - vaultId?: string; } // @public @@ -1704,6 +1704,7 @@ export interface VolumeGroupVolumeProperties { coolnessPeriod?: number; creationToken: string; dataProtection?: VolumePropertiesDataProtection; + readonly dataStoreResourceId?: string[]; defaultGroupQuotaInKiBs?: number; defaultUserQuotaInKiBs?: number; deleteBaseSnapshot?: boolean; @@ -1711,9 +1712,11 @@ export interface VolumeGroupVolumeProperties { readonly encrypted?: boolean; encryptionKeySource?: EncryptionKeySource; exportPolicy?: VolumePropertiesExportPolicy; + readonly fileAccessLogs?: FileAccessLogs; readonly fileSystemId?: string; readonly id?: string; isDefaultQuotaEnabled?: boolean; + isLargeVolume?: boolean; isRestoring?: boolean; kerberosEnabled?: boolean; keyVaultPrivateEndpointResourceId?: string; @@ -1725,6 +1728,7 @@ export interface VolumeGroupVolumeProperties { readonly networkSiblingSetId?: string; placementRules?: PlacementKeyValuePairs[]; protocolTypes?: string[]; + readonly provisionedAvailabilityZone?: string; readonly provisioningState?: string; proximityPlacementGroup?: string; securityStyle?: SecurityStyle; @@ -1794,6 +1798,7 @@ export interface VolumePropertiesDataProtection { backup?: VolumeBackupProperties; replication?: ReplicationObject; snapshot?: VolumeSnapshotProperties; + volumeRelocation?: VolumeRelocationProperties; } // @public @@ -1815,6 +1820,9 @@ export interface VolumeQuotaRulePatch { quotaSizeInKiBs?: number; quotaTarget?: string; quotaType?: Type; + tags?: { + [propertyName: string]: string; + }; } // @public @@ -1874,8 +1882,7 @@ export type VolumeQuotaRulesUpdateResponse = VolumeQuotaRule; // @public export interface VolumeRelocationProperties { - oldBareMetalTenantId?: string; - oldVolumeId?: string; + readonly readyToBeFinalized?: boolean; relocationRequested?: boolean; } @@ -1888,6 +1895,8 @@ export interface VolumeRevert { export interface Volumes { beginAuthorizeReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: AuthorizeRequest, options?: VolumesAuthorizeReplicationOptionalParams): Promise, void>>; beginAuthorizeReplicationAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: AuthorizeRequest, options?: VolumesAuthorizeReplicationOptionalParams): Promise; + beginBreakFileLocks(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesBreakFileLocksOptionalParams): Promise, void>>; + beginBreakFileLocksAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesBreakFileLocksOptionalParams): Promise; beginBreakReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesBreakReplicationOptionalParams): Promise, void>>; beginBreakReplicationAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesBreakReplicationOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: Volume, options?: VolumesCreateOrUpdateOptionalParams): Promise, VolumesCreateOrUpdateResponse>>; @@ -1928,6 +1937,19 @@ export interface VolumesAuthorizeReplicationOptionalParams extends coreClient.Op updateIntervalInMs?: number; } +// @public +export interface VolumesBreakFileLocksHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VolumesBreakFileLocksOptionalParams extends coreClient.OperationOptions { + body?: BreakFileLocksRequest; + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface VolumesBreakReplicationOptionalParams extends coreClient.OperationOptions { body?: BreakReplicationRequest; diff --git a/sdk/netapp/arm-netapp/src/models/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index ef110ad9f350..e056b1a7859b 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -209,7 +209,7 @@ export interface NetAppAccountList { export interface ActiveDirectory { /** Id of the Active Directory */ activeDirectoryId?: string; - /** Username of Active Directory domain administrator */ + /** A domain user account with permission to create machine accounts */ username?: string; /** Plain text password of Active Directory domain administrator, value is masked in the response */ password?: string; @@ -257,6 +257,8 @@ export interface ActiveDirectory { encryptDCConnections?: boolean; /** LDAP Search scope options */ ldapSearchScope?: LdapSearchScopeOpt; + /** Comma separated list of IPv4 addresses of preferred servers for LDAP client. At most two comma separated IPv4 addresses can be passed. */ + preferredServersForLdapClient?: string; } /** LDAP search scope */ @@ -310,33 +312,33 @@ export interface EncryptionIdentity { userAssignedIdentity?: string; } -/** Identity for the resource. */ -export interface Identity { +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface ManagedServiceIdentity { /** - * The principal ID of resource identity. + * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalId?: string; /** - * The tenant ID of resource. + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tenantId?: string; - /** The identity type. */ - type: IdentityType; - /** Gets or sets a list of key value pairs that describe the set of User Assigned identities that will be used with this storage account. The key is the ARM resource identifier of the identity. Only 1 User Assigned identity is permitted here. */ + /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ + type: ManagedServiceIdentityType; + /** 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}. The dictionary values can be empty objects ({}) in requests. */ userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; } -/** UserAssignedIdentity for the resource. */ +/** User assigned identity properties */ export interface UserAssignedIdentity { /** - * The principal ID of the identity. + * The principal ID of the assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalId?: string; /** - * The client ID of the identity. + * The client ID of the assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly clientId?: string; @@ -504,6 +506,8 @@ export interface VolumePropertiesDataProtection { replication?: ReplicationObject; /** Snapshot properties. */ snapshot?: VolumeSnapshotProperties; + /** VolumeRelocation properties */ + volumeRelocation?: VolumeRelocationProperties; } /** Volume Backup Properties */ @@ -512,8 +516,6 @@ export interface VolumeBackupProperties { backupPolicyId?: string; /** Policy Enforced */ policyEnforced?: boolean; - /** Vault Resource ID */ - vaultId?: string; /** Backup Enabled */ backupEnabled?: boolean; } @@ -538,6 +540,17 @@ export interface VolumeSnapshotProperties { snapshotPolicyId?: string; } +/** Volume relocation properties */ +export interface VolumeRelocationProperties { + /** Has relocation been requested for this volume */ + relocationRequested?: boolean; + /** + * Has relocation finished and is ready to be cleaned up + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly readyToBeFinalized?: boolean; +} + /** Application specific parameters for the placement of volumes in the volume group */ export interface PlacementKeyValuePairs { /** Key for an application specific parameter for the placement of volumes in the volume group */ @@ -573,7 +586,7 @@ export interface VolumePatch { usageThreshold?: number; /** Set of export policy rules */ exportPolicy?: VolumePatchPropertiesExportPolicy; - /** Maximum throughput in Mibps that can be achieved by this volume and this will be accepted as input only for manual qosType volume */ + /** Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume */ throughputMibps?: number; /** DataProtection type volumes include an object containing details of the replication */ dataProtection?: VolumePatchPropertiesDataProtection; @@ -611,6 +624,14 @@ export interface VolumeRevert { snapshotId?: string; } +/** Break file locks request */ +export interface BreakFileLocksRequest { + /** To clear file locks on a volume for a particular client */ + clientIp?: string; + /** 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. */ + confirmRunningDisruptiveOperation?: boolean; +} + /** Break replication request */ export interface BreakReplicationRequest { /** If replication is in status transferring and you want to force break the replication, set to true */ @@ -679,42 +700,6 @@ export interface SnapshotsList { value?: Snapshot[]; } -/** Snapshot of a Volume */ -export interface Snapshot { - /** Resource location */ - location: string; - /** - * Resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * UUID v4 used to identify the Snapshot - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly snapshotId?: string; - /** - * The creation date of the snapshot - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly created?: Date; - /** - * Azure lifecycle management - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -} - /** Restore payload for Single File Snapshot Restore */ export interface SnapshotRestoreFiles { /** List of files to be restored */ @@ -907,66 +892,6 @@ export interface BackupsList { value?: Backup[]; } -/** Backup of a Volume */ -export interface Backup { - /** Resource location */ - location: string; - /** - * Resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * UUID v4 used to identify the Backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupId?: string; - /** - * The creation date of the backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationDate?: Date; - /** - * Azure lifecycle management - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * Size of backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly size?: number; - /** Label for backup */ - label?: string; - /** - * Type of backup Manual or Scheduled - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupType?: BackupType; - /** - * Failure reason - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly failureReason?: string; - /** - * Volume name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly volumeName?: string; - /** Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups */ - useExistingSnapshot?: boolean; -} - /** Backup patch */ export interface BackupPatch { /** Resource tags */ @@ -1087,6 +1012,8 @@ export interface VolumeQuotaRulesList { /** Patchable Quota Rule of a Volume */ export interface VolumeQuotaRulePatch { + /** Resource tags */ + tags?: { [propertyName: string]: string }; /** * Gets the status of the VolumeQuotaRule at the time the operation was called. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1100,33 +1027,6 @@ export interface VolumeQuotaRulePatch { quotaTarget?: string; } -/** List of Vaults */ -export interface VaultList { - /** A list of vaults */ - value?: Vault[]; -} - -/** Vault information */ -export interface Vault { - /** - * Resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Vault Name */ - vaultName?: string; -} - /** List of volume group resources */ export interface VolumeGroupList { /** List of volume Groups */ @@ -1235,7 +1135,7 @@ export interface VolumeGroupVolumeProperties { creationToken: string; /** The service level of the file system */ serviceLevel?: ServiceLevel; - /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 500 GiB. Upper limit is 100TiB, 500Tib for LargeVolume. 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. Specified in bytes. */ usageThreshold: number; /** Set of export policy rules */ exportPolicy?: VolumePropertiesExportPolicy; @@ -1315,8 +1215,18 @@ export interface VolumeGroupVolumeProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly cloneProgress?: number; + /** + * Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fileAccessLogs?: FileAccessLogs; /** Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose */ avsDataStore?: AvsDataStore; + /** + * Data store resource unique identifier + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataStoreResourceId?: string[]; /** Specifies if default quota is enabled for the volume. */ isDefaultQuotaEnabled?: boolean; /** Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . */ @@ -1353,6 +1263,13 @@ export interface VolumeGroupVolumeProperties { placementRules?: PlacementKeyValuePairs[]; /** Flag indicating whether subvolume operations are enabled on the volume */ enableSubvolumes?: EnableSubvolumes; + /** + * The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisionedAvailabilityZone?: string; + /** Specifies whether volume is a Large Volume or Regular Volume. */ + isLargeVolume?: boolean; } /** List of Subvolumes */ @@ -1410,6 +1327,16 @@ export interface SubvolumeModel { provisioningState?: string; } +/** Restore payload for single file backup restore */ +export interface BackupRestoreFiles { + /** List of files to be restored */ + fileList: string[]; + /** Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default */ + restoreFilePath?: string; + /** Resource Id of the destination volume on which the files need to be restored */ + destinationVolumeId: string; +} + /** Identity for the resource. */ export interface ResourceIdentity { /** @@ -1426,16 +1353,6 @@ export interface ResourceIdentity { type?: string; } -/** Volume relocation properties */ -export interface VolumeRelocationProperties { - /** The id of the old volume that is being relocated */ - oldVolumeId?: string; - /** The id of the bare metal tenant owned by the existing volume */ - oldBareMetalTenantId?: string; - /** Has relocation been requested for this volume */ - relocationRequested?: boolean; -} - /** Mount Target */ export interface MountTarget { /** Resource location */ @@ -1511,80 +1428,95 @@ export interface SnapshotPolicyDetails { readonly provisioningState?: string; } -/** Backup policy properties */ -export interface BackupPolicyDetails { +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + +/** Information regarding Subscription Quota Item. */ +export interface SubscriptionQuotaItem extends ProxyResource { + /** + * The current quota value. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly current?: number; + /** + * The default quota value. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly default?: number; +} + +/** Snapshot of a Volume */ +export interface Snapshot extends ProxyResource { /** Resource location */ - location?: string; + location: string; /** - * Resource Id + * UUID v4 used to identify the Snapshot * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly snapshotId?: string; /** - * Resource name + * The creation date of the snapshot * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly created?: Date; /** - * Resource type + * Azure lifecycle management * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; + readonly provisioningState?: string; +} + +/** Backup of a Volume */ +export interface Backup extends ProxyResource { + /** Resource location */ + location: string; /** - * Backup Policy Resource ID + * UUID v4 used to identify the Backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupPolicyId?: string; + readonly backupId?: string; + /** + * The creation date of the backup + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; /** * Azure lifecycle management * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; - /** Daily backups count to keep */ - dailyBackupsToKeep?: number; - /** Weekly backups count to keep */ - weeklyBackupsToKeep?: number; - /** Monthly backups count to keep */ - monthlyBackupsToKeep?: number; /** - * Volumes using current backup policy + * Size of backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly volumesAssigned?: number; - /** The property to decide policy is enabled or not */ - enabled?: boolean; + readonly size?: number; + /** Label for backup */ + label?: string; /** - * A list of volumes assigned to this policy + * Type of backup Manual or Scheduled * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly volumeBackups?: VolumeBackups[]; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; -} - -/** Information regarding Subscription Quota Item. */ -export interface SubscriptionQuotaItem extends ProxyResource { + readonly backupType?: BackupType; /** - * The current quota value. + * Failure reason * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly current?: number; + readonly failureReason?: string; /** - * The default quota value. + * Volume name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly default?: number; + readonly volumeName?: string; + /** Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups */ + useExistingSnapshot?: boolean; } /** Subvolume Information properties */ @@ -1609,8 +1541,8 @@ export interface NetAppAccount extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly etag?: string; - /** The identity of the resource. */ - identity?: Identity; + /** The identity used for the resource. */ + identity?: ManagedServiceIdentity; /** * Azure lifecycle management * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1684,7 +1616,7 @@ export interface Volume extends TrackedResource { creationToken: string; /** The service level of the file system */ serviceLevel?: ServiceLevel; - /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 500 GiB. Upper limit is 100TiB, 500Tib for LargeVolume. 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. Specified in bytes. */ usageThreshold: number; /** Set of export policy rules */ exportPolicy?: VolumePropertiesExportPolicy; @@ -1764,8 +1696,18 @@ export interface Volume extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly cloneProgress?: number; + /** + * Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fileAccessLogs?: FileAccessLogs; /** Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose */ avsDataStore?: AvsDataStore; + /** + * Data store resource unique identifier + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataStoreResourceId?: string[]; /** Specifies if default quota is enabled for the volume. */ isDefaultQuotaEnabled?: boolean; /** Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . */ @@ -1802,6 +1744,13 @@ export interface Volume extends TrackedResource { placementRules?: PlacementKeyValuePairs[]; /** Flag indicating whether subvolume operations are enabled on the volume */ enableSubvolumes?: EnableSubvolumes; + /** + * The availability zone where the volume is provisioned. This refers to the logical availability zone where the volume resides. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisionedAvailabilityZone?: string; + /** Specifies whether volume is a Large Volume or Regular Volume. */ + isLargeVolume?: boolean; } /** Snapshot policy information */ @@ -1880,6 +1829,48 @@ export interface VolumeQuotaRule extends TrackedResource { quotaTarget?: string; } +/** Backup policy properties */ +export interface BackupPolicyDetails extends TrackedResource { + /** + * Backup Policy Resource ID + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly backupPolicyId?: string; + /** + * Azure lifecycle management + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** Daily backups count to keep */ + dailyBackupsToKeep?: number; + /** Weekly backups count to keep */ + weeklyBackupsToKeep?: number; + /** Monthly backups count to keep */ + monthlyBackupsToKeep?: number; + /** + * Volumes using current backup policy + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly volumesAssigned?: number; + /** The property to decide policy is enabled or not */ + enabled?: boolean; + /** + * A list of volumes assigned to this policy + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly volumeBackups?: VolumeBackups[]; +} + +/** Defines headers for Volumes_breakFileLocks operation. */ +export interface VolumesBreakFileLocksHeaders { + location?: string; +} + +/** Defines headers for Backups_restoreFiles operation. */ +export interface BackupsRestoreFilesHeaders { + location?: string; +} + /** Known values of {@link MetricAggregationType} that the service accepts. */ export enum KnownMetricAggregationType { /** Average */ @@ -2081,8 +2072,8 @@ export enum KnownKeyVaultStatus { */ export type KeyVaultStatus = string; -/** Known values of {@link IdentityType} that the service accepts. */ -export enum KnownIdentityType { +/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +export enum KnownManagedServiceIdentityType { /** None */ None = "None", /** SystemAssigned */ @@ -2094,8 +2085,8 @@ export enum KnownIdentityType { } /** - * Defines values for IdentityType. \ - * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * Defines values for ManagedServiceIdentityType. \ + * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **None** \ @@ -2103,7 +2094,7 @@ export enum KnownIdentityType { * **UserAssigned** \ * **SystemAssigned,UserAssigned** */ -export type IdentityType = string; +export type ManagedServiceIdentityType = string; /** Known values of {@link ServiceLevel} that the service accepts. */ export enum KnownServiceLevel { @@ -2333,6 +2324,24 @@ export enum KnownEncryptionKeySource { */ export type EncryptionKeySource = string; +/** Known values of {@link FileAccessLogs} that the service accepts. */ +export enum KnownFileAccessLogs { + /** fileAccessLogs are enabled */ + Enabled = "Enabled", + /** fileAccessLogs are not enabled */ + Disabled = "Disabled" +} + +/** + * Defines values for FileAccessLogs. \ + * {@link KnownFileAccessLogs} can be used interchangeably with FileAccessLogs, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: fileAccessLogs are enabled \ + * **Disabled**: fileAccessLogs are not enabled + */ +export type FileAccessLogs = string; + /** Known values of {@link AvsDataStore} that the service accepts. */ export enum KnownAvsDataStore { /** avsDataStore is enabled */ @@ -2716,6 +2725,17 @@ export interface VolumesResetCifsPasswordOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface VolumesBreakFileLocksOptionalParams + extends coreClient.OperationOptions { + /** Optional body to provide the ability to clear file locks with selected options */ + body?: BreakFileLocksRequest; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + /** Optional parameters. */ export interface VolumesBreakReplicationOptionalParams extends coreClient.OperationOptions { @@ -2998,6 +3018,15 @@ export interface BackupsDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface BackupsRestoreFilesOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + /** Optional parameters. */ export interface AccountBackupsListOptionalParams extends coreClient.OperationOptions {} @@ -3115,12 +3144,6 @@ export interface VolumeQuotaRulesDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface VaultsListOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type VaultsListResponse = VaultList; - /** Optional parameters. */ export interface VolumeGroupsListByNetAppAccountOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/netapp/arm-netapp/src/models/mappers.ts b/sdk/netapp/arm-netapp/src/models/mappers.ts index 3f9e0fd73597..0b46a5923a07 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -767,6 +767,18 @@ export const ActiveDirectory: coreClient.CompositeMapper = { name: "Composite", className: "LdapSearchScopeOpt" } + }, + preferredServersForLdapClient: { + constraints: { + Pattern: new RegExp( + "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?)?$" + ), + MaxLength: 32 + }, + serializedName: "preferredServersForLdapClient", + type: { + name: "String" + } } } } @@ -911,23 +923,23 @@ export const EncryptionIdentity: coreClient.CompositeMapper = { } }; -export const Identity: coreClient.CompositeMapper = { +export const ManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Identity", + className: "ManagedServiceIdentity", modelProperties: { principalId: { serializedName: "principalId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, type: { @@ -959,14 +971,14 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" + name: "Uuid" } } } @@ -1406,6 +1418,13 @@ export const VolumePropertiesDataProtection: coreClient.CompositeMapper = { name: "Composite", className: "VolumeSnapshotProperties" } + }, + volumeRelocation: { + serializedName: "volumeRelocation", + type: { + name: "Composite", + className: "VolumeRelocationProperties" + } } } } @@ -1428,12 +1447,6 @@ export const VolumeBackupProperties: coreClient.CompositeMapper = { name: "Boolean" } }, - vaultId: { - serializedName: "vaultId", - type: { - name: "String" - } - }, backupEnabled: { serializedName: "backupEnabled", type: { @@ -1499,6 +1512,28 @@ export const VolumeSnapshotProperties: coreClient.CompositeMapper = { } }; +export const VolumeRelocationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VolumeRelocationProperties", + modelProperties: { + relocationRequested: { + serializedName: "relocationRequested", + type: { + name: "Boolean" + } + }, + readyToBeFinalized: { + serializedName: "readyToBeFinalized", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + export const PlacementKeyValuePairs: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1710,6 +1745,33 @@ export const VolumeRevert: coreClient.CompositeMapper = { } }; +export const BreakFileLocksRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BreakFileLocksRequest", + modelProperties: { + clientIp: { + constraints: { + Pattern: new RegExp( + "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" + ) + }, + serializedName: "clientIp", + type: { + name: "String" + } + }, + confirmRunningDisruptiveOperation: { + defaultValue: false, + serializedName: "confirmRunningDisruptiveOperation", + type: { + name: "Boolean" + } + } + } + } +}; + export const BreakReplicationRequest: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1901,71 +1963,6 @@ export const SnapshotsList: coreClient.CompositeMapper = { } }; -export const Snapshot: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Snapshot", - modelProperties: { - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - }, - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - snapshotId: { - constraints: { - Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" - ), - MaxLength: 36, - MinLength: 36 - }, - serializedName: "properties.snapshotId", - readOnly: true, - type: { - name: "String" - } - }, - created: { - serializedName: "properties.created", - readOnly: true, - type: { - name: "DateTime" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const SnapshotRestoreFiles: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2402,112 +2399,6 @@ export const BackupsList: coreClient.CompositeMapper = { } }; -export const Backup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Backup", - modelProperties: { - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - }, - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - backupId: { - constraints: { - Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" - ), - MaxLength: 36, - MinLength: 36 - }, - serializedName: "properties.backupId", - readOnly: true, - type: { - name: "String" - } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - size: { - serializedName: "properties.size", - readOnly: true, - type: { - name: "Number" - } - }, - label: { - serializedName: "properties.label", - type: { - name: "String" - } - }, - backupType: { - serializedName: "properties.backupType", - readOnly: true, - type: { - name: "String" - } - }, - failureReason: { - serializedName: "properties.failureReason", - readOnly: true, - type: { - name: "String" - } - }, - volumeName: { - serializedName: "properties.volumeName", - readOnly: true, - type: { - name: "String" - } - }, - useExistingSnapshot: { - defaultValue: false, - serializedName: "properties.useExistingSnapshot", - type: { - name: "Boolean" - } - } - } - } -}; - export const BackupPatch: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2768,6 +2659,13 @@ export const VolumeQuotaRulePatch: coreClient.CompositeMapper = { name: "Composite", className: "VolumeQuotaRulePatch", modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -2806,10 +2704,10 @@ export const VolumeQuotaRulePatch: coreClient.CompositeMapper = { } }; -export const VaultList: coreClient.CompositeMapper = { +export const VolumeGroupList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VaultList", + className: "VolumeGroupList", modelProperties: { value: { serializedName: "value", @@ -2818,7 +2716,7 @@ export const VaultList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Vault" + className: "VolumeGroup" } } } @@ -2827,11 +2725,17 @@ export const VaultList: coreClient.CompositeMapper = { } }; -export const Vault: coreClient.CompositeMapper = { +export const VolumeGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Vault", + className: "VolumeGroup", modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, id: { serializedName: "id", readOnly: true, @@ -2853,72 +2757,9 @@ export const Vault: coreClient.CompositeMapper = { name: "String" } }, - vaultName: { - serializedName: "properties.vaultName", - type: { - name: "String" - } - } - } - } -}; - -export const VolumeGroupList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumeGroupList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VolumeGroup" - } - } - } - } - } - } -}; - -export const VolumeGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumeGroup", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } @@ -3293,6 +3134,7 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { }, throughputMibps: { serializedName: "properties.throughputMibps", + nullable: true, type: { name: "Number" } @@ -3354,6 +3196,14 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { name: "Number" } }, + fileAccessLogs: { + defaultValue: "Disabled", + serializedName: "properties.fileAccessLogs", + readOnly: true, + type: { + name: "String" + } + }, avsDataStore: { defaultValue: "Disabled", serializedName: "properties.avsDataStore", @@ -3361,6 +3211,18 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { name: "String" } }, + dataStoreResourceId: { + serializedName: "properties.dataStoreResourceId", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, isDefaultQuotaEnabled: { defaultValue: false, serializedName: "properties.isDefaultQuotaEnabled", @@ -3446,6 +3308,21 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { type: { name: "String" } + }, + provisionedAvailabilityZone: { + serializedName: "properties.provisionedAvailabilityZone", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + isLargeVolume: { + defaultValue: false, + serializedName: "properties.isLargeVolume", + type: { + name: "Boolean" + } } } } @@ -3590,27 +3467,43 @@ export const SubvolumeModel: coreClient.CompositeMapper = { } }; -export const ResourceIdentity: coreClient.CompositeMapper = { +export const BackupRestoreFiles: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceIdentity", + className: "BackupRestoreFiles", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + fileList: { + constraints: { + MinItems: 1, + MaxItems: 8 + }, + serializedName: "fileList", + required: true, type: { - name: "String" + name: "Sequence", + element: { + constraints: { + MaxLength: 1024, + MinLength: 1 + }, + type: { + name: "String" + } + } } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + restoreFilePath: { + constraints: { + Pattern: new RegExp("^\\/.*$") + }, + serializedName: "restoreFilePath", type: { name: "String" } }, - type: { - serializedName: "type", + destinationVolumeId: { + serializedName: "destinationVolumeId", + required: true, type: { name: "String" } @@ -3619,27 +3512,29 @@ export const ResourceIdentity: coreClient.CompositeMapper = { } }; -export const VolumeRelocationProperties: coreClient.CompositeMapper = { +export const ResourceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VolumeRelocationProperties", + className: "ResourceIdentity", modelProperties: { - oldVolumeId: { - serializedName: "oldVolumeId", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - oldBareMetalTenantId: { - serializedName: "oldBareMetalTenantId", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { name: "String" } }, - relocationRequested: { - serializedName: "relocationRequested", + type: { + serializedName: "type", type: { - name: "Boolean" + name: "String" } } } @@ -3815,50 +3710,96 @@ export const SnapshotPolicyDetails: coreClient.CompositeMapper = { } }; -export const BackupPolicyDetails: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupPolicyDetails", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, location: { serializedName: "location", + required: true, type: { name: "String" } - }, - id: { - serializedName: "id", + } + } + } +}; + +export const SubscriptionQuotaItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SubscriptionQuotaItem", + modelProperties: { + ...ProxyResource.type.modelProperties, + current: { + serializedName: "properties.current", readOnly: true, type: { - name: "String" + name: "Number" } }, - name: { - serializedName: "name", + default: { + serializedName: "properties.default", readOnly: true, type: { - name: "String" + name: "Number" } - }, - type: { - serializedName: "type", - readOnly: true, + } + } + } +}; + +export const Snapshot: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Snapshot", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + required: true, type: { name: "String" } }, - tags: { - serializedName: "tags", + snapshotId: { + constraints: { + Pattern: new RegExp( + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + ), + MaxLength: 36, + MinLength: 36 + }, + serializedName: "properties.snapshotId", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - backupPolicyId: { - serializedName: "properties.backupPolicyId", + created: { + serializedName: "properties.created", readOnly: true, type: { - name: "String" + name: "DateTime" } }, provisioningState: { @@ -3867,107 +3808,91 @@ export const BackupPolicyDetails: coreClient.CompositeMapper = { type: { name: "String" } + } + } + } +}; + +export const Backup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Backup", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } }, - dailyBackupsToKeep: { - serializedName: "properties.dailyBackupsToKeep", + backupId: { + constraints: { + Pattern: new RegExp( + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + ), + MaxLength: 36, + MinLength: 36 + }, + serializedName: "properties.backupId", + readOnly: true, type: { - name: "Number" + name: "String" } }, - weeklyBackupsToKeep: { - serializedName: "properties.weeklyBackupsToKeep", + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - monthlyBackupsToKeep: { - serializedName: "properties.monthlyBackupsToKeep", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } }, - volumesAssigned: { - serializedName: "properties.volumesAssigned", + size: { + serializedName: "properties.size", readOnly: true, type: { name: "Number" } }, - enabled: { - serializedName: "properties.enabled", + label: { + serializedName: "properties.label", type: { - name: "Boolean" + name: "String" } }, - volumeBackups: { - serializedName: "properties.volumeBackups", + backupType: { + serializedName: "properties.backupType", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VolumeBackups" - } - } - } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - location: { - serializedName: "location", - required: true, + failureReason: { + serializedName: "properties.failureReason", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SubscriptionQuotaItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SubscriptionQuotaItem", - modelProperties: { - ...ProxyResource.type.modelProperties, - current: { - serializedName: "properties.current", + }, + volumeName: { + serializedName: "properties.volumeName", readOnly: true, type: { - name: "Number" + name: "String" } }, - default: { - serializedName: "properties.default", - readOnly: true, + useExistingSnapshot: { + defaultValue: false, + serializedName: "properties.useExistingSnapshot", type: { - name: "Number" + name: "Boolean" } } } @@ -4028,7 +3953,7 @@ export const NetAppAccount: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "Identity" + className: "ManagedServiceIdentity" } }, provisioningState: { @@ -4399,6 +4324,7 @@ export const Volume: coreClient.CompositeMapper = { }, throughputMibps: { serializedName: "properties.throughputMibps", + nullable: true, type: { name: "Number" } @@ -4460,6 +4386,14 @@ export const Volume: coreClient.CompositeMapper = { name: "Number" } }, + fileAccessLogs: { + defaultValue: "Disabled", + serializedName: "properties.fileAccessLogs", + readOnly: true, + type: { + name: "String" + } + }, avsDataStore: { defaultValue: "Disabled", serializedName: "properties.avsDataStore", @@ -4467,6 +4401,18 @@ export const Volume: coreClient.CompositeMapper = { name: "String" } }, + dataStoreResourceId: { + serializedName: "properties.dataStoreResourceId", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, isDefaultQuotaEnabled: { defaultValue: false, serializedName: "properties.isDefaultQuotaEnabled", @@ -4552,6 +4498,21 @@ export const Volume: coreClient.CompositeMapper = { type: { name: "String" } + }, + provisionedAvailabilityZone: { + serializedName: "properties.provisionedAvailabilityZone", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + isLargeVolume: { + defaultValue: false, + serializedName: "properties.isLargeVolume", + type: { + name: "Boolean" + } } } } @@ -4733,3 +4694,101 @@ export const VolumeQuotaRule: coreClient.CompositeMapper = { } } }; + +export const BackupPolicyDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BackupPolicyDetails", + modelProperties: { + ...TrackedResource.type.modelProperties, + backupPolicyId: { + serializedName: "properties.backupPolicyId", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + dailyBackupsToKeep: { + serializedName: "properties.dailyBackupsToKeep", + type: { + name: "Number" + } + }, + weeklyBackupsToKeep: { + serializedName: "properties.weeklyBackupsToKeep", + type: { + name: "Number" + } + }, + monthlyBackupsToKeep: { + serializedName: "properties.monthlyBackupsToKeep", + type: { + name: "Number" + } + }, + volumesAssigned: { + serializedName: "properties.volumesAssigned", + readOnly: true, + type: { + name: "Number" + } + }, + enabled: { + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + }, + volumeBackups: { + serializedName: "properties.volumeBackups", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VolumeBackups" + } + } + } + } + } + } +}; + +export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VolumesBreakFileLocksHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const BackupsRestoreFilesHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BackupsRestoreFilesHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/netapp/arm-netapp/src/models/parameters.ts b/sdk/netapp/arm-netapp/src/models/parameters.ts index d06af6ee5649..176fa5f00117 100644 --- a/sdk/netapp/arm-netapp/src/models/parameters.ts +++ b/sdk/netapp/arm-netapp/src/models/parameters.ts @@ -22,6 +22,7 @@ import { Volume as VolumeMapper, VolumePatch as VolumePatchMapper, VolumeRevert as VolumeRevertMapper, + BreakFileLocksRequest as BreakFileLocksRequestMapper, BreakReplicationRequest as BreakReplicationRequestMapper, ReestablishReplicationRequest as ReestablishReplicationRequestMapper, AuthorizeRequest as AuthorizeRequestMapper, @@ -33,6 +34,7 @@ import { SnapshotPolicyPatch as SnapshotPolicyPatchMapper, Backup as BackupMapper, BackupPatch as BackupPatchMapper, + BackupRestoreFiles as BackupRestoreFilesMapper, BackupPolicy as BackupPolicyMapper, BackupPolicyPatch as BackupPolicyPatchMapper, VolumeQuotaRule as VolumeQuotaRuleMapper, @@ -69,7 +71,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-05-01", + defaultValue: "2022-09-01", isConstant: true, serializedName: "api-version", type: { @@ -108,6 +110,9 @@ export const resourceGroup: OperationParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { + constraints: { + MinLength: 1 + }, serializedName: "subscriptionId", required: true, type: { @@ -119,6 +124,9 @@ export const subscriptionId: OperationURLParameter = { export const location: OperationURLParameter = { parameterPath: "location", mapper: { + constraints: { + MinLength: 1 + }, serializedName: "location", required: true, type: { @@ -167,7 +175,6 @@ export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { constraints: { - Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), MaxLength: 90, MinLength: 1 }, @@ -182,6 +189,9 @@ export const resourceGroupName: OperationURLParameter = { export const accountName: OperationURLParameter = { parameterPath: "accountName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$") + }, serializedName: "accountName", required: true, type: { @@ -281,25 +291,30 @@ export const body9: OperationParameter = { export const body10: OperationParameter = { parameterPath: ["options", "body"], - mapper: BreakReplicationRequestMapper + mapper: BreakFileLocksRequestMapper }; export const body11: OperationParameter = { + parameterPath: ["options", "body"], + mapper: BreakReplicationRequestMapper +}; + +export const body12: OperationParameter = { parameterPath: "body", mapper: ReestablishReplicationRequestMapper }; -export const body12: OperationParameter = { +export const body13: OperationParameter = { parameterPath: "body", mapper: AuthorizeRequestMapper }; -export const body13: OperationParameter = { +export const body14: OperationParameter = { parameterPath: "body", mapper: PoolChangeRequestMapper }; -export const body14: OperationParameter = { +export const body15: OperationParameter = { parameterPath: ["options", "body"], mapper: RelocateVolumeRequestMapper }; @@ -315,12 +330,12 @@ export const snapshotName: OperationURLParameter = { } }; -export const body15: OperationParameter = { +export const body16: OperationParameter = { parameterPath: "body", mapper: SnapshotMapper }; -export const body16: OperationParameter = { +export const body17: OperationParameter = { parameterPath: "body", mapper: { serializedName: "body", @@ -332,7 +347,7 @@ export const body16: OperationParameter = { } }; -export const body17: OperationParameter = { +export const body18: OperationParameter = { parameterPath: "body", mapper: SnapshotRestoreFilesMapper }; @@ -348,12 +363,12 @@ export const snapshotPolicyName: OperationURLParameter = { } }; -export const body18: OperationParameter = { +export const body19: OperationParameter = { parameterPath: "body", mapper: SnapshotPolicyMapper }; -export const body19: OperationParameter = { +export const body20: OperationParameter = { parameterPath: "body", mapper: SnapshotPolicyPatchMapper }; @@ -361,6 +376,9 @@ export const body19: OperationParameter = { export const backupName: OperationURLParameter = { parameterPath: "backupName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$") + }, serializedName: "backupName", required: true, type: { @@ -369,16 +387,21 @@ export const backupName: OperationURLParameter = { } }; -export const body20: OperationParameter = { +export const body21: OperationParameter = { parameterPath: "body", mapper: BackupMapper }; -export const body21: OperationParameter = { +export const body22: OperationParameter = { parameterPath: ["options", "body"], mapper: BackupPatchMapper }; +export const body23: OperationParameter = { + parameterPath: "body", + mapper: BackupRestoreFilesMapper +}; + export const backupPolicyName: OperationURLParameter = { parameterPath: "backupPolicyName", mapper: { @@ -390,12 +413,12 @@ export const backupPolicyName: OperationURLParameter = { } }; -export const body22: OperationParameter = { +export const body24: OperationParameter = { parameterPath: "body", mapper: BackupPolicyMapper }; -export const body23: OperationParameter = { +export const body25: OperationParameter = { parameterPath: "body", mapper: BackupPolicyPatchMapper }; @@ -411,12 +434,12 @@ export const volumeQuotaRuleName: OperationURLParameter = { } }; -export const body24: OperationParameter = { +export const body26: OperationParameter = { parameterPath: "body", mapper: VolumeQuotaRuleMapper }; -export const body25: OperationParameter = { +export const body27: OperationParameter = { parameterPath: "body", mapper: VolumeQuotaRulePatchMapper }; @@ -437,7 +460,7 @@ export const volumeGroupName: OperationURLParameter = { } }; -export const body26: OperationParameter = { +export const body28: OperationParameter = { parameterPath: "body", mapper: VolumeGroupDetailsMapper }; @@ -458,12 +481,12 @@ export const subvolumeName: OperationURLParameter = { } }; -export const body27: OperationParameter = { +export const body29: OperationParameter = { parameterPath: "body", mapper: SubvolumeInfoMapper }; -export const body28: OperationParameter = { +export const body30: OperationParameter = { parameterPath: "body", mapper: SubvolumePatchRequestMapper }; diff --git a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts index 5f9d47d49aef..0743abe124a7 100644 --- a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts +++ b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts @@ -27,7 +27,6 @@ import { AccountBackupsImpl, BackupPoliciesImpl, VolumeQuotaRulesImpl, - VaultsImpl, VolumeGroupsImpl, SubvolumesImpl } from "./operations"; @@ -44,7 +43,6 @@ import { AccountBackups, BackupPolicies, VolumeQuotaRules, - Vaults, VolumeGroups, Subvolumes } from "./operationsInterfaces"; @@ -58,8 +56,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the NetAppManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription. - * The subscription ID forms part of the URI for every service call. + * @param subscriptionId The ID of the target subscription. * @param options The parameter options */ constructor( @@ -83,7 +80,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-netapp/17.0.2`; + const packageDetails = `azsdk-js-arm-netapp/18.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -136,7 +133,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-05-01"; + this.apiVersion = options.apiVersion || "2022-09-01"; this.operations = new OperationsImpl(this); this.netAppResource = new NetAppResourceImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsImpl(this); @@ -149,7 +146,6 @@ export class NetAppManagementClient extends coreClient.ServiceClient { this.accountBackups = new AccountBackupsImpl(this); this.backupPolicies = new BackupPoliciesImpl(this); this.volumeQuotaRules = new VolumeQuotaRulesImpl(this); - this.vaults = new VaultsImpl(this); this.volumeGroups = new VolumeGroupsImpl(this); this.subvolumes = new SubvolumesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); @@ -195,7 +191,6 @@ export class NetAppManagementClient extends coreClient.ServiceClient { accountBackups: AccountBackups; backupPolicies: BackupPolicies; volumeQuotaRules: VolumeQuotaRules; - vaults: Vaults; volumeGroups: VolumeGroups; subvolumes: Subvolumes; } diff --git a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts b/sdk/netapp/arm-netapp/src/operations/accountBackups.ts index 0b3b8b0560d9..bf9f7ec117ae 100644 --- a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts +++ b/sdk/netapp/arm-netapp/src/operations/accountBackups.ts @@ -38,7 +38,7 @@ export class AccountBackupsImpl implements AccountBackups { /** * List all Backups for a Netapp Account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -96,7 +96,7 @@ export class AccountBackupsImpl implements AccountBackups { /** * List all Backups for a Netapp Account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -113,7 +113,7 @@ export class AccountBackupsImpl implements AccountBackups { /** * Gets the specified backup for a Netapp Account - * @param resourceGroupName The name of 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 backupName The name of the backup * @param options The options parameters. @@ -132,7 +132,7 @@ export class AccountBackupsImpl implements AccountBackups { /** * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of 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 backupName The name of the backup * @param options The options parameters. @@ -198,7 +198,7 @@ export class AccountBackupsImpl implements AccountBackups { /** * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of 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 backupName The name of the backup * @param options The options parameters. diff --git a/sdk/netapp/arm-netapp/src/operations/accounts.ts b/sdk/netapp/arm-netapp/src/operations/accounts.ts index de3a6fc96829..a3c7d79401cf 100644 --- a/sdk/netapp/arm-netapp/src/operations/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operations/accounts.ts @@ -105,7 +105,7 @@ export class AccountsImpl implements Accounts { /** * List and describe all NetApp accounts in the resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public list( @@ -180,7 +180,7 @@ export class AccountsImpl implements Accounts { /** * List and describe all NetApp accounts in the resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _list( @@ -195,7 +195,7 @@ export class AccountsImpl implements Accounts { /** * Get the NetApp account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -212,7 +212,7 @@ export class AccountsImpl implements Accounts { /** * Create or update the specified NetApp account within the resource group - * @param resourceGroupName The name of 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. * @param options The options parameters. @@ -283,7 +283,7 @@ export class AccountsImpl implements Accounts { /** * Create or update the specified NetApp account within the resource group - * @param resourceGroupName The name of 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. * @param options The options parameters. @@ -305,7 +305,7 @@ export class AccountsImpl implements Accounts { /** * Delete the specified NetApp account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -369,7 +369,7 @@ export class AccountsImpl implements Accounts { /** * Delete the specified NetApp account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -388,7 +388,7 @@ export class AccountsImpl implements Accounts { /** * Patch the specified NetApp account - * @param resourceGroupName The name of 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. * @param options The options parameters. @@ -459,7 +459,7 @@ export class AccountsImpl implements Accounts { /** * Patch the specified NetApp account - * @param resourceGroupName The name of 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. * @param options The options parameters. @@ -483,7 +483,7 @@ export class AccountsImpl implements Accounts { * 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. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account * @param options The options parameters. */ @@ -549,7 +549,7 @@ export class AccountsImpl implements Accounts { * 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. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account * @param options The options parameters. */ @@ -583,7 +583,7 @@ export class AccountsImpl implements Accounts { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ @@ -738,6 +738,7 @@ const renewCredentialsOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts index 7fe598953915..3a23df415a14 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts @@ -43,7 +43,7 @@ export class BackupPoliciesImpl implements BackupPolicies { /** * List backup policies for Netapp Account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -101,7 +101,7 @@ export class BackupPoliciesImpl implements BackupPolicies { /** * List backup policies for Netapp Account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -118,7 +118,7 @@ export class BackupPoliciesImpl implements BackupPolicies { /** * Get a particular backup Policy - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param options The options parameters. @@ -137,7 +137,7 @@ export class BackupPoliciesImpl implements BackupPolicies { /** * Create a backup policy for Netapp Account - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param body Backup policy object supplied in the body of the operation. @@ -210,7 +210,7 @@ export class BackupPoliciesImpl implements BackupPolicies { /** * Create a backup policy for Netapp Account - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param body Backup policy object supplied in the body of the operation. @@ -235,7 +235,7 @@ export class BackupPoliciesImpl implements BackupPolicies { /** * Patch a backup policy for Netapp Account - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param body Backup policy object supplied in the body of the operation. @@ -308,7 +308,7 @@ export class BackupPoliciesImpl implements BackupPolicies { /** * Patch a backup policy for Netapp Account - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param body Backup policy object supplied in the body of the operation. @@ -333,7 +333,7 @@ export class BackupPoliciesImpl implements BackupPolicies { /** * Delete backup policy - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param options The options parameters. @@ -399,7 +399,7 @@ export class BackupPoliciesImpl implements BackupPolicies { /** * Delete backup policy - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param options The options parameters. @@ -482,7 +482,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body22, + requestBody: Parameters.body24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -514,7 +514,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body23, + requestBody: Parameters.body25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/backups.ts b/sdk/netapp/arm-netapp/src/operations/backups.ts index 775125b75c94..b55f3473774e 100644 --- a/sdk/netapp/arm-netapp/src/operations/backups.ts +++ b/sdk/netapp/arm-netapp/src/operations/backups.ts @@ -28,7 +28,9 @@ import { BackupsCreateResponse, BackupsUpdateOptionalParams, BackupsUpdateResponse, - BackupsDeleteOptionalParams + BackupsDeleteOptionalParams, + BackupRestoreFiles, + BackupsRestoreFilesOptionalParams } from "../models"; /// @@ -46,7 +48,7 @@ export class BackupsImpl implements Backups { /** * List all backups for a volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -128,7 +130,7 @@ export class BackupsImpl implements Backups { /** * Get the status of the backup for a volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -149,7 +151,7 @@ export class BackupsImpl implements Backups { /** * Get the status of the restore for a volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -170,7 +172,7 @@ export class BackupsImpl implements Backups { /** * List all backups for a volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -191,7 +193,7 @@ export class BackupsImpl implements Backups { /** * Gets the specified backup of the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -221,7 +223,7 @@ export class BackupsImpl implements Backups { /** * Create a backup for the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -303,7 +305,7 @@ export class BackupsImpl implements Backups { /** * Create a backup for the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -334,7 +336,7 @@ export class BackupsImpl implements Backups { /** * Patch a backup for the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -413,7 +415,7 @@ export class BackupsImpl implements Backups { /** * Patch a backup for the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -441,7 +443,7 @@ export class BackupsImpl implements Backups { /** * Delete a backup of the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -518,7 +520,7 @@ export class BackupsImpl implements Backups { /** * Delete a backup of the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -543,6 +545,117 @@ export class BackupsImpl implements Backups { ); return poller.pollUntilDone(); } + + /** + * Restore the specified files from the specified backup 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 + * @param volumeName The name of the volume + * @param backupName The name of the backup + * @param body Restore payload supplied in the body of the operation. + * @param options The options parameters. + */ + async beginRestoreFiles( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + backupName: string, + body: BackupRestoreFiles, + options?: BackupsRestoreFilesOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + accountName, + poolName, + volumeName, + backupName, + body, + options + }, + restoreFilesOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Restore the specified files from the specified backup 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 + * @param volumeName The name of the volume + * @param backupName The name of the backup + * @param body Restore payload supplied in the body of the operation. + * @param options The options parameters. + */ + async beginRestoreFilesAndWait( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + backupName: string, + body: BackupRestoreFiles, + options?: BackupsRestoreFilesOptionalParams + ): Promise { + const poller = await this.beginRestoreFiles( + resourceGroupName, + accountName, + poolName, + volumeName, + backupName, + body, + options + ); + return poller.pollUntilDone(); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -655,7 +768,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body20, + requestBody: Parameters.body21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -689,7 +802,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body21, + requestBody: Parameters.body22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -721,3 +834,23 @@ const deleteOperationSpec: coreClient.OperationSpec = { ], serializer }; +const restoreFilesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}/restoreFiles", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + requestBody: Parameters.body23, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.poolName, + Parameters.volumeName, + Parameters.backupName + ], + headerParameters: [Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/netapp/arm-netapp/src/operations/index.ts b/sdk/netapp/arm-netapp/src/operations/index.ts index f5a72741af4e..1fdc2dbd7a93 100644 --- a/sdk/netapp/arm-netapp/src/operations/index.ts +++ b/sdk/netapp/arm-netapp/src/operations/index.ts @@ -18,6 +18,5 @@ export * from "./backups"; export * from "./accountBackups"; export * from "./backupPolicies"; export * from "./volumeQuotaRules"; -export * from "./vaults"; export * from "./volumeGroups"; export * from "./subvolumes"; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts index a871345467d4..e52545da4bc5 100644 --- a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts @@ -38,28 +38,28 @@ export class NetAppResourceImpl implements NetAppResource { /** * Check if a resource name is available. - * @param location The location + * @param location The name of Azure region. * @param name Resource name to verify. - * @param resourceGroup Resource group name. * @param typeParam Resource type used for verification. + * @param resourceGroup Resource group name. * @param options The options parameters. */ checkNameAvailability( location: string, name: string, - resourceGroup: string, typeParam: CheckNameResourceTypes, + resourceGroup: string, options?: NetAppResourceCheckNameAvailabilityOptionalParams ): Promise { return this.client.sendOperationRequest( - { location, name, resourceGroup, typeParam, options }, + { location, name, typeParam, resourceGroup, options }, checkNameAvailabilityOperationSpec ); } /** * Check if a file path is available. - * @param location The location + * @param location The name of Azure region. * @param name File path to verify. * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes @@ -79,28 +79,28 @@ export class NetAppResourceImpl implements NetAppResource { /** * Check if a quota is available. - * @param location The location + * @param location The name of Azure region. * @param name Name of the resource to verify. - * @param resourceGroup Resource group name. * @param typeParam Resource type used for verification. + * @param resourceGroup Resource group name. * @param options The options parameters. */ checkQuotaAvailability( location: string, name: string, - resourceGroup: string, typeParam: CheckQuotaNameResourceTypes, + resourceGroup: string, options?: NetAppResourceCheckQuotaAvailabilityOptionalParams ): Promise { return this.client.sendOperationRequest( - { location, name, resourceGroup, typeParam, options }, + { location, name, typeParam, resourceGroup, options }, checkQuotaAvailabilityOperationSpec ); } /** * Provides storage to network proximity and logical zone mapping information. - * @param location The location + * @param location The name of Azure region. * @param options The options parameters. */ queryRegionInfo( diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts b/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts index f4d996c04242..a4ce74b1b1d7 100644 --- a/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts +++ b/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts @@ -36,7 +36,7 @@ export class NetAppResourceQuotaLimitsImpl /** * Get the default and current limits for quotas - * @param location The location + * @param location The name of Azure region. * @param options The options parameters. */ public list( @@ -81,7 +81,7 @@ export class NetAppResourceQuotaLimitsImpl /** * Get the default and current limits for quotas - * @param location The location + * @param location The name of Azure region. * @param options The options parameters. */ private _list( @@ -96,7 +96,7 @@ export class NetAppResourceQuotaLimitsImpl /** * Get the default and current subscription quota limit - * @param location The location + * @param location The name of Azure region. * @param quotaLimitName The name of the Quota Limit * @param options The options parameters. */ diff --git a/sdk/netapp/arm-netapp/src/operations/pools.ts b/sdk/netapp/arm-netapp/src/operations/pools.ts index 57ced0487250..a7bc6c0f4ee7 100644 --- a/sdk/netapp/arm-netapp/src/operations/pools.ts +++ b/sdk/netapp/arm-netapp/src/operations/pools.ts @@ -46,7 +46,7 @@ export class PoolsImpl implements Pools { /** * List all capacity pools in the NetApp Account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -122,7 +122,7 @@ export class PoolsImpl implements Pools { /** * List all capacity pools in the NetApp Account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -139,7 +139,7 @@ export class PoolsImpl implements Pools { /** * Get details of the specified capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param options The options parameters. @@ -158,7 +158,7 @@ export class PoolsImpl implements Pools { /** * Create or Update a capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param body Capacity pool object supplied in the body of the operation. @@ -231,7 +231,7 @@ export class PoolsImpl implements Pools { /** * Create or Update a capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param body Capacity pool object supplied in the body of the operation. @@ -256,7 +256,7 @@ export class PoolsImpl implements Pools { /** * Patch the specified capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param body Capacity pool object supplied in the body of the operation. @@ -326,7 +326,7 @@ export class PoolsImpl implements Pools { /** * Patch the specified capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param body Capacity pool object supplied in the body of the operation. @@ -351,7 +351,7 @@ export class PoolsImpl implements Pools { /** * Delete the specified capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param options The options parameters. @@ -417,7 +417,7 @@ export class PoolsImpl implements Pools { /** * Delete the specified capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param options The options parameters. @@ -439,7 +439,7 @@ export class PoolsImpl implements Pools { /** * ListNext - * @param resourceGroupName The name of 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 nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. diff --git a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts index 8d0648da2557..18f9a44b49af 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts @@ -45,7 +45,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { /** * List snapshot policy - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -103,7 +103,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { /** * List snapshot policy - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -120,7 +120,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { /** * Get a snapshot Policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param options The options parameters. @@ -139,7 +139,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { /** * Create a snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param body Snapshot policy object supplied in the body of the operation. @@ -160,7 +160,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { /** * Patch a snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param body Snapshot policy object supplied in the body of the operation. @@ -233,7 +233,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { /** * Patch a snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param body Snapshot policy object supplied in the body of the operation. @@ -258,7 +258,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { /** * Delete snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param options The options parameters. @@ -324,7 +324,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { /** * Delete snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param options The options parameters. @@ -346,7 +346,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { /** * Get volumes associated with snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param options The options parameters. @@ -420,7 +420,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body18, + requestBody: Parameters.body19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -452,7 +452,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body19, + requestBody: Parameters.body20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/snapshots.ts b/sdk/netapp/arm-netapp/src/operations/snapshots.ts index 7560664fe077..95f39efbd31b 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshots.ts @@ -44,7 +44,7 @@ export class SnapshotsImpl implements Snapshots { /** * List all snapshots associated with the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -126,7 +126,7 @@ export class SnapshotsImpl implements Snapshots { /** * List all snapshots associated with the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -147,7 +147,7 @@ export class SnapshotsImpl implements Snapshots { /** * Get details of the specified snapshot - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -177,7 +177,7 @@ export class SnapshotsImpl implements Snapshots { /** * Create the specified snapshot within the given volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -262,7 +262,7 @@ export class SnapshotsImpl implements Snapshots { /** * Create the specified snapshot within the given volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -293,7 +293,7 @@ export class SnapshotsImpl implements Snapshots { /** * Patch a snapshot - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -378,7 +378,7 @@ export class SnapshotsImpl implements Snapshots { /** * Patch a snapshot - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -409,7 +409,7 @@ export class SnapshotsImpl implements Snapshots { /** * Delete snapshot - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -486,7 +486,7 @@ export class SnapshotsImpl implements Snapshots { /** * Delete snapshot - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -514,7 +514,7 @@ export class SnapshotsImpl implements Snapshots { /** * Restore the specified files from the specified snapshot to the active filesystem - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -593,7 +593,7 @@ export class SnapshotsImpl implements Snapshots { /** * Restore the specified files from the specified snapshot to the active filesystem - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -689,7 +689,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body15, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -723,7 +723,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body16, + requestBody: Parameters.body17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -760,7 +760,7 @@ const restoreFilesOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body17, + requestBody: Parameters.body18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts index 9275ffb6c213..42b7cb9a7dbc 100644 --- a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts @@ -48,7 +48,7 @@ export class SubvolumesImpl implements Subvolumes { /** * Returns a list of the subvolumes in the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -150,7 +150,7 @@ export class SubvolumesImpl implements Subvolumes { /** * Returns a list of the subvolumes in the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -171,7 +171,7 @@ export class SubvolumesImpl implements Subvolumes { /** * Returns the path associated with the subvolumeName provided - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -201,7 +201,7 @@ export class SubvolumesImpl implements Subvolumes { /** * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -286,7 +286,7 @@ export class SubvolumesImpl implements Subvolumes { /** * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -317,7 +317,7 @@ export class SubvolumesImpl implements Subvolumes { /** * Patch a subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -402,7 +402,7 @@ export class SubvolumesImpl implements Subvolumes { /** * Patch a subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -433,7 +433,7 @@ export class SubvolumesImpl implements Subvolumes { /** * Delete subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -510,7 +510,7 @@ export class SubvolumesImpl implements Subvolumes { /** * Delete subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -538,7 +538,7 @@ export class SubvolumesImpl implements Subvolumes { /** * Get details of the specified subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -620,7 +620,7 @@ export class SubvolumesImpl implements Subvolumes { /** * Get details of the specified subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -648,7 +648,7 @@ export class SubvolumesImpl implements Subvolumes { /** * ListByVolumeNext - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -743,7 +743,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body27, + requestBody: Parameters.body29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -777,7 +777,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body28, + requestBody: Parameters.body30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/vaults.ts b/sdk/netapp/arm-netapp/src/operations/vaults.ts deleted file mode 100644 index 2685d43a1d56..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/vaults.ts +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { Vaults } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { Vault, VaultsListOptionalParams, VaultsListResponse } from "../models"; - -/// -/** Class containing Vaults operations. */ -export class VaultsImpl implements Vaults { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class Vaults class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * List vaults for a Netapp Account - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - accountName: string, - options?: VaultsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, accountName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage( - resourceGroupName, - accountName, - options, - settings - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - accountName: string, - options?: VaultsListOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: VaultsListResponse; - result = await this._list(resourceGroupName, accountName, options); - yield result.value || []; - } - - private async *listPagingAll( - resourceGroupName: string, - accountName: string, - options?: VaultsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - accountName, - options - )) { - yield* page; - } - } - - /** - * List vaults for a Netapp Account - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - accountName: string, - options?: VaultsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/vaults", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VaultList - }, - default: {} - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts index 77f63052320c..d1d16b473c1f 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts @@ -41,7 +41,7 @@ export class VolumeGroupsImpl implements VolumeGroups { /** * List all volume groups for given account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -107,7 +107,7 @@ export class VolumeGroupsImpl implements VolumeGroups { /** * List all volume groups for given account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -124,7 +124,7 @@ export class VolumeGroupsImpl implements VolumeGroups { /** * Get details of the specified volume group - * @param resourceGroupName The name of 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 volumeGroupName The name of the volumeGroup * @param options The options parameters. @@ -143,7 +143,7 @@ export class VolumeGroupsImpl implements VolumeGroups { /** * Create a volume group along with specified volumes - * @param resourceGroupName The name of 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 volumeGroupName The name of the volumeGroup * @param body Volume Group object supplied in the body of the operation. @@ -215,7 +215,7 @@ export class VolumeGroupsImpl implements VolumeGroups { /** * Create a volume group along with specified volumes - * @param resourceGroupName The name of 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 volumeGroupName The name of the volumeGroup * @param body Volume Group object supplied in the body of the operation. @@ -240,7 +240,7 @@ export class VolumeGroupsImpl implements VolumeGroups { /** * Delete the specified volume group only if there are no volumes under volume group. - * @param resourceGroupName The name of 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 volumeGroupName The name of the volumeGroup * @param options The options parameters. @@ -305,7 +305,7 @@ export class VolumeGroupsImpl implements VolumeGroups { /** * Delete the specified volume group only if there are no volumes under volume group. - * @param resourceGroupName The name of 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 volumeGroupName The name of the volumeGroup * @param options The options parameters. @@ -388,7 +388,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body26, + requestBody: Parameters.body28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts index 544641b2136f..c7f5843a2db0 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts @@ -43,7 +43,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { /** * List all quota rules associated with the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -125,7 +125,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { /** * List all quota rules associated with the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -146,7 +146,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { /** * Get details of the specified quota rule - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -176,7 +176,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { /** * Create the specified quota rule within the given volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -261,7 +261,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { /** * Create the specified quota rule within the given volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -292,7 +292,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { /** * Patch a quota rule - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -377,7 +377,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { /** * Patch a quota rule - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -408,7 +408,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { /** * Delete quota rule - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -485,7 +485,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { /** * Delete quota rule - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -578,7 +578,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body24, + requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -612,7 +612,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body25, + requestBody: Parameters.body27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/volumes.ts b/sdk/netapp/arm-netapp/src/operations/volumes.ts index 8ffb79074c71..30ccca7682e7 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumes.ts @@ -34,6 +34,7 @@ import { VolumeRevert, VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, + VolumesBreakFileLocksOptionalParams, VolumesBreakReplicationOptionalParams, ReestablishReplicationRequest, VolumesReestablishReplicationOptionalParams, @@ -67,7 +68,7 @@ export class VolumesImpl implements Volumes { /** * List all volumes within the capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param options The options parameters. @@ -160,7 +161,7 @@ export class VolumesImpl implements Volumes { /** * List all replications for a specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -242,7 +243,7 @@ export class VolumesImpl implements Volumes { /** * List all volumes within the capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param options The options parameters. @@ -261,7 +262,7 @@ export class VolumesImpl implements Volumes { /** * Get the details of the specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -282,7 +283,7 @@ export class VolumesImpl implements Volumes { /** * Create or update the specified volume within the capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -357,7 +358,7 @@ export class VolumesImpl implements Volumes { /** * Create or update the specified volume within the capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -385,7 +386,7 @@ export class VolumesImpl implements Volumes { /** * Patch the specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -457,7 +458,7 @@ export class VolumesImpl implements Volumes { /** * Patch the specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -485,7 +486,7 @@ export class VolumesImpl implements Volumes { /** * Delete the specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -553,7 +554,7 @@ export class VolumesImpl implements Volumes { /** * Delete the specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -578,7 +579,7 @@ export class VolumesImpl implements Volumes { /** * Revert a volume to the snapshot specified in the body - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -648,7 +649,7 @@ export class VolumesImpl implements Volumes { /** * Revert a volume to the snapshot specified in the body - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -676,7 +677,7 @@ export class VolumesImpl implements Volumes { /** * Reset cifs password from volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -743,7 +744,7 @@ export class VolumesImpl implements Volumes { /** * Reset cifs password from volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -766,9 +767,102 @@ export class VolumesImpl implements Volumes { return poller.pollUntilDone(); } + /** + * 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 + * @param volumeName The name of the volume + * @param options The options parameters. + */ + async beginBreakFileLocks( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesBreakFileLocksOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, accountName, poolName, volumeName, options }, + breakFileLocksOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * 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 + * @param volumeName The name of the volume + * @param options The options parameters. + */ + async beginBreakFileLocksAndWait( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesBreakFileLocksOptionalParams + ): Promise { + const poller = await this.beginBreakFileLocks( + resourceGroupName, + accountName, + poolName, + volumeName, + options + ); + return poller.pollUntilDone(); + } + /** * Break the replication connection on the destination volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -836,7 +930,7 @@ export class VolumesImpl implements Volumes { /** * Break the replication connection on the destination volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -862,7 +956,7 @@ export class VolumesImpl implements Volumes { /** * 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. + * @param resourceGroupName The name of 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 @@ -933,7 +1027,7 @@ export class VolumesImpl implements Volumes { /** * 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. + * @param resourceGroupName The name of 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 @@ -961,7 +1055,7 @@ export class VolumesImpl implements Volumes { /** * Get the status of the replication - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -982,7 +1076,7 @@ export class VolumesImpl implements Volumes { /** * List all replications for a specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1004,7 +1098,7 @@ export class VolumesImpl implements Volumes { /** * 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. + * @param resourceGroupName The name of 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 @@ -1073,7 +1167,7 @@ export class VolumesImpl implements Volumes { /** * 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. + * @param resourceGroupName The name of 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 @@ -1099,7 +1193,7 @@ export class VolumesImpl implements Volumes { /** * Delete the replication connection on the destination volume, and send release to the source * replication - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1168,7 +1262,7 @@ export class VolumesImpl implements Volumes { /** * Delete the replication connection on the destination volume, and send release to the source * replication - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1193,7 +1287,7 @@ export class VolumesImpl implements Volumes { /** * Authorize the replication connection on the source volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1263,7 +1357,7 @@ export class VolumesImpl implements Volumes { /** * Authorize the replication connection on the source volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1291,7 +1385,7 @@ export class VolumesImpl implements Volumes { /** * Re-Initializes the replication connection on the destination volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1359,7 +1453,7 @@ export class VolumesImpl implements Volumes { /** * Re-Initializes the replication connection on the destination volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1384,7 +1478,7 @@ export class VolumesImpl implements Volumes { /** * Moves volume to another pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1454,7 +1548,7 @@ export class VolumesImpl implements Volumes { /** * Moves volume to another pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1482,7 +1576,7 @@ export class VolumesImpl implements Volumes { /** * Relocates volume to a new stamp - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1549,7 +1643,7 @@ export class VolumesImpl implements Volumes { /** * Relocates volume to a new stamp - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1574,7 +1668,7 @@ export class VolumesImpl implements Volumes { /** * Finalizes the relocation of the volume and cleans up the old volume. - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1641,7 +1735,7 @@ export class VolumesImpl implements Volumes { /** * Finalizes the relocation of the volume and cleans up the old volume. - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -1667,7 +1761,7 @@ export class VolumesImpl implements Volumes { /** * 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. + * @param resourceGroupName The name of 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 @@ -1735,7 +1829,7 @@ export class VolumesImpl implements Volumes { /** * 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. + * @param resourceGroupName The name of 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 @@ -1760,7 +1854,7 @@ export class VolumesImpl implements Volumes { /** * ListNext - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param nextLink The nextLink from the previous successful call to the List method. @@ -1944,12 +2038,31 @@ const resetCifsPasswordOperationSpec: coreClient.OperationSpec = { ], serializer }; +const breakFileLocksOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + requestBody: Parameters.body10, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.poolName, + Parameters.volumeName + ], + headerParameters: [Parameters.contentType], + mediaType: "json", + serializer +}; const breakReplicationOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body10, + requestBody: Parameters.body11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1968,7 +2081,7 @@ const reestablishReplicationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body11, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2063,7 +2176,7 @@ const authorizeReplicationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body12, + requestBody: Parameters.body13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2098,7 +2211,7 @@ const poolChangeOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body13, + requestBody: Parameters.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2117,7 +2230,7 @@ const relocateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body14, + requestBody: Parameters.body15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts index e1662a6c1429..39172fb774d0 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts @@ -21,7 +21,7 @@ import { export interface AccountBackups { /** * List all Backups for a Netapp Account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -32,7 +32,7 @@ export interface AccountBackups { ): PagedAsyncIterableIterator; /** * Gets the specified backup for a Netapp Account - * @param resourceGroupName The name of 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 backupName The name of the backup * @param options The options parameters. @@ -45,7 +45,7 @@ export interface AccountBackups { ): Promise; /** * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of 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 backupName The name of the backup * @param options The options parameters. @@ -58,7 +58,7 @@ export interface AccountBackups { ): Promise, void>>; /** * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of 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 backupName The name of the backup * @param options The options parameters. diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts index 3cf733e97a43..c135cd827bfe 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts @@ -35,7 +35,7 @@ export interface Accounts { ): PagedAsyncIterableIterator; /** * List and describe all NetApp accounts in the resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ list( @@ -44,7 +44,7 @@ export interface Accounts { ): PagedAsyncIterableIterator; /** * Get the NetApp account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -55,7 +55,7 @@ export interface Accounts { ): Promise; /** * Create or update the specified NetApp account within the resource group - * @param resourceGroupName The name of 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. * @param options The options parameters. @@ -73,7 +73,7 @@ export interface Accounts { >; /** * Create or update the specified NetApp account within the resource group - * @param resourceGroupName The name of 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. * @param options The options parameters. @@ -86,7 +86,7 @@ export interface Accounts { ): Promise; /** * Delete the specified NetApp account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -97,7 +97,7 @@ export interface Accounts { ): Promise, void>>; /** * Delete the specified NetApp account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -108,7 +108,7 @@ export interface Accounts { ): Promise; /** * Patch the specified NetApp account - * @param resourceGroupName The name of 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. * @param options The options parameters. @@ -126,7 +126,7 @@ export interface Accounts { >; /** * Patch the specified NetApp account - * @param resourceGroupName The name of 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. * @param options The options parameters. @@ -141,7 +141,7 @@ export interface Accounts { * 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. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account * @param options The options parameters. */ @@ -154,7 +154,7 @@ export interface Accounts { * 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. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the NetApp account * @param options The options parameters. */ diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts index d11b27b89354..840d2abe0169 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts @@ -26,7 +26,7 @@ import { export interface BackupPolicies { /** * List backup policies for Netapp Account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -37,7 +37,7 @@ export interface BackupPolicies { ): PagedAsyncIterableIterator; /** * Get a particular backup Policy - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param options The options parameters. @@ -50,7 +50,7 @@ export interface BackupPolicies { ): Promise; /** * Create a backup policy for Netapp Account - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param body Backup policy object supplied in the body of the operation. @@ -70,7 +70,7 @@ export interface BackupPolicies { >; /** * Create a backup policy for Netapp Account - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param body Backup policy object supplied in the body of the operation. @@ -85,7 +85,7 @@ export interface BackupPolicies { ): Promise; /** * Patch a backup policy for Netapp Account - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param body Backup policy object supplied in the body of the operation. @@ -105,7 +105,7 @@ export interface BackupPolicies { >; /** * Patch a backup policy for Netapp Account - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param body Backup policy object supplied in the body of the operation. @@ -120,7 +120,7 @@ export interface BackupPolicies { ): Promise; /** * Delete backup policy - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param options The options parameters. @@ -133,7 +133,7 @@ export interface BackupPolicies { ): Promise, void>>; /** * Delete backup policy - * @param resourceGroupName The name of 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 backupPolicyName Backup policy Name which uniquely identify backup policy. * @param options The options parameters. diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts index 55cbe62c9e4f..acbf9a6db6d7 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts @@ -21,7 +21,9 @@ import { BackupsCreateResponse, BackupsUpdateOptionalParams, BackupsUpdateResponse, - BackupsDeleteOptionalParams + BackupsDeleteOptionalParams, + BackupRestoreFiles, + BackupsRestoreFilesOptionalParams } from "../models"; /// @@ -29,7 +31,7 @@ import { export interface Backups { /** * List all backups for a volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -44,7 +46,7 @@ export interface Backups { ): PagedAsyncIterableIterator; /** * Get the status of the backup for a volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -59,7 +61,7 @@ export interface Backups { ): Promise; /** * Get the status of the restore for a volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -74,7 +76,7 @@ export interface Backups { ): Promise; /** * Gets the specified backup of the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -91,7 +93,7 @@ export interface Backups { ): Promise; /** * Create a backup for the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -112,7 +114,7 @@ export interface Backups { >; /** * Create a backup for the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -131,7 +133,7 @@ export interface Backups { ): Promise; /** * Patch a backup for the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -150,7 +152,7 @@ export interface Backups { >; /** * Patch a backup for the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -167,7 +169,7 @@ export interface Backups { ): Promise; /** * Delete a backup of the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -184,7 +186,7 @@ export interface Backups { ): Promise, void>>; /** * Delete a backup of the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -199,4 +201,42 @@ export interface Backups { backupName: string, options?: BackupsDeleteOptionalParams ): Promise; + /** + * Restore the specified files from the specified backup 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 + * @param volumeName The name of the volume + * @param backupName The name of the backup + * @param body Restore payload supplied in the body of the operation. + * @param options The options parameters. + */ + beginRestoreFiles( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + backupName: string, + body: BackupRestoreFiles, + options?: BackupsRestoreFilesOptionalParams + ): Promise, void>>; + /** + * Restore the specified files from the specified backup 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 + * @param volumeName The name of the volume + * @param backupName The name of the backup + * @param body Restore payload supplied in the body of the operation. + * @param options The options parameters. + */ + beginRestoreFilesAndWait( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + backupName: string, + body: BackupRestoreFiles, + options?: BackupsRestoreFilesOptionalParams + ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts index f5a72741af4e..1fdc2dbd7a93 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts @@ -18,6 +18,5 @@ export * from "./backups"; export * from "./accountBackups"; export * from "./backupPolicies"; export * from "./volumeQuotaRules"; -export * from "./vaults"; export * from "./volumeGroups"; export * from "./subvolumes"; diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts index 4bf44f7316df..9cda50f1af11 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts @@ -23,22 +23,22 @@ import { export interface NetAppResource { /** * Check if a resource name is available. - * @param location The location + * @param location The name of Azure region. * @param name Resource name to verify. - * @param resourceGroup Resource group name. * @param typeParam Resource type used for verification. + * @param resourceGroup Resource group name. * @param options The options parameters. */ checkNameAvailability( location: string, name: string, - resourceGroup: string, typeParam: CheckNameResourceTypes, + resourceGroup: string, options?: NetAppResourceCheckNameAvailabilityOptionalParams ): Promise; /** * Check if a file path is available. - * @param location The location + * @param location The name of Azure region. * @param name File path to verify. * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation * Microsoft.NetApp/volumes @@ -52,22 +52,22 @@ export interface NetAppResource { ): Promise; /** * Check if a quota is available. - * @param location The location + * @param location The name of Azure region. * @param name Name of the resource to verify. - * @param resourceGroup Resource group name. * @param typeParam Resource type used for verification. + * @param resourceGroup Resource group name. * @param options The options parameters. */ checkQuotaAvailability( location: string, name: string, - resourceGroup: string, typeParam: CheckQuotaNameResourceTypes, + resourceGroup: string, options?: NetAppResourceCheckQuotaAvailabilityOptionalParams ): Promise; /** * Provides storage to network proximity and logical zone mapping information. - * @param location The location + * @param location The name of Azure region. * @param options The options parameters. */ queryRegionInfo( diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts index 0d76ebff341f..222b68c2c8e5 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts @@ -19,7 +19,7 @@ import { export interface NetAppResourceQuotaLimits { /** * Get the default and current limits for quotas - * @param location The location + * @param location The name of Azure region. * @param options The options parameters. */ list( @@ -28,7 +28,7 @@ export interface NetAppResourceQuotaLimits { ): PagedAsyncIterableIterator; /** * Get the default and current subscription quota limit - * @param location The location + * @param location The name of Azure region. * @param quotaLimitName The name of the Quota Limit * @param options The options parameters. */ diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts index 830a155a1e54..8c94282d8aec 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts @@ -26,7 +26,7 @@ import { export interface Pools { /** * List all capacity pools in the NetApp Account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -37,7 +37,7 @@ export interface Pools { ): PagedAsyncIterableIterator; /** * Get details of the specified capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param options The options parameters. @@ -50,7 +50,7 @@ export interface Pools { ): Promise; /** * Create or Update a capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param body Capacity pool object supplied in the body of the operation. @@ -70,7 +70,7 @@ export interface Pools { >; /** * Create or Update a capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param body Capacity pool object supplied in the body of the operation. @@ -85,7 +85,7 @@ export interface Pools { ): Promise; /** * Patch the specified capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param body Capacity pool object supplied in the body of the operation. @@ -102,7 +102,7 @@ export interface Pools { >; /** * Patch the specified capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param body Capacity pool object supplied in the body of the operation. @@ -117,7 +117,7 @@ export interface Pools { ): Promise; /** * Delete the specified capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param options The options parameters. @@ -130,7 +130,7 @@ export interface Pools { ): Promise, void>>; /** * Delete the specified capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param options The options parameters. diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts index 1c10c6cae6d4..1e889c08a335 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts @@ -28,7 +28,7 @@ import { export interface SnapshotPolicies { /** * List snapshot policy - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -39,7 +39,7 @@ export interface SnapshotPolicies { ): PagedAsyncIterableIterator; /** * Get a snapshot Policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param options The options parameters. @@ -52,7 +52,7 @@ export interface SnapshotPolicies { ): Promise; /** * Create a snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param body Snapshot policy object supplied in the body of the operation. @@ -67,7 +67,7 @@ export interface SnapshotPolicies { ): Promise; /** * Patch a snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param body Snapshot policy object supplied in the body of the operation. @@ -87,7 +87,7 @@ export interface SnapshotPolicies { >; /** * Patch a snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param body Snapshot policy object supplied in the body of the operation. @@ -102,7 +102,7 @@ export interface SnapshotPolicies { ): Promise; /** * Delete snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param options The options parameters. @@ -115,7 +115,7 @@ export interface SnapshotPolicies { ): Promise, void>>; /** * Delete snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param options The options parameters. @@ -128,7 +128,7 @@ export interface SnapshotPolicies { ): Promise; /** * Get volumes associated with snapshot policy - * @param resourceGroupName The name of 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 snapshotPolicyName The name of the snapshot policy * @param options The options parameters. diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts index 636da031483e..4e5dbc148d66 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts @@ -27,7 +27,7 @@ import { export interface Snapshots { /** * List all snapshots associated with the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -42,7 +42,7 @@ export interface Snapshots { ): PagedAsyncIterableIterator; /** * Get details of the specified snapshot - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -59,7 +59,7 @@ export interface Snapshots { ): Promise; /** * Create the specified snapshot within the given volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -83,7 +83,7 @@ export interface Snapshots { >; /** * Create the specified snapshot within the given volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -102,7 +102,7 @@ export interface Snapshots { ): Promise; /** * Patch a snapshot - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -126,7 +126,7 @@ export interface Snapshots { >; /** * Patch a snapshot - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -145,7 +145,7 @@ export interface Snapshots { ): Promise; /** * Delete snapshot - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -162,7 +162,7 @@ export interface Snapshots { ): Promise, void>>; /** * Delete snapshot - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -179,7 +179,7 @@ export interface Snapshots { ): Promise; /** * Restore the specified files from the specified snapshot to the active filesystem - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -198,7 +198,7 @@ export interface Snapshots { ): Promise, void>>; /** * Restore the specified files from the specified snapshot to the active filesystem - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts index eeaa6fdc9783..18f3664d9b32 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts @@ -28,7 +28,7 @@ import { export interface Subvolumes { /** * Returns a list of the subvolumes in the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -43,7 +43,7 @@ export interface Subvolumes { ): PagedAsyncIterableIterator; /** * Returns the path associated with the subvolumeName provided - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -60,7 +60,7 @@ export interface Subvolumes { ): Promise; /** * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -84,7 +84,7 @@ export interface Subvolumes { >; /** * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -103,7 +103,7 @@ export interface Subvolumes { ): Promise; /** * Patch a subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -127,7 +127,7 @@ export interface Subvolumes { >; /** * Patch a subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -146,7 +146,7 @@ export interface Subvolumes { ): Promise; /** * Delete subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -163,7 +163,7 @@ export interface Subvolumes { ): Promise, void>>; /** * Delete subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -180,7 +180,7 @@ export interface Subvolumes { ): Promise; /** * Get details of the specified subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -202,7 +202,7 @@ export interface Subvolumes { >; /** * Get details of the specified subvolume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/vaults.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/vaults.ts deleted file mode 100644 index cc2528209ae7..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/vaults.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Vault, VaultsListOptionalParams } from "../models"; - -/// -/** Interface representing a Vaults. */ -export interface Vaults { - /** - * List vaults for a Netapp Account - * @param resourceGroupName The name of the resource group. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - list( - resourceGroupName: string, - accountName: string, - options?: VaultsListOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts index ffbc48940e0b..16523cad4b5e 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts @@ -24,7 +24,7 @@ import { export interface VolumeGroups { /** * List all volume groups for given account - * @param resourceGroupName The name of 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 options The options parameters. */ @@ -35,7 +35,7 @@ export interface VolumeGroups { ): PagedAsyncIterableIterator; /** * Get details of the specified volume group - * @param resourceGroupName The name of 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 volumeGroupName The name of the volumeGroup * @param options The options parameters. @@ -48,7 +48,7 @@ export interface VolumeGroups { ): Promise; /** * Create a volume group along with specified volumes - * @param resourceGroupName The name of 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 volumeGroupName The name of the volumeGroup * @param body Volume Group object supplied in the body of the operation. @@ -68,7 +68,7 @@ export interface VolumeGroups { >; /** * Create a volume group along with specified volumes - * @param resourceGroupName The name of 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 volumeGroupName The name of the volumeGroup * @param body Volume Group object supplied in the body of the operation. @@ -83,7 +83,7 @@ export interface VolumeGroups { ): Promise; /** * Delete the specified volume group only if there are no volumes under volume group. - * @param resourceGroupName The name of 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 volumeGroupName The name of the volumeGroup * @param options The options parameters. @@ -96,7 +96,7 @@ export interface VolumeGroups { ): Promise, void>>; /** * Delete the specified volume group only if there are no volumes under volume group. - * @param resourceGroupName The name of 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 volumeGroupName The name of the volumeGroup * @param options The options parameters. diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts index 16bb19440046..4de99505376e 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts @@ -26,7 +26,7 @@ import { export interface VolumeQuotaRules { /** * List all quota rules associated with the volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -41,7 +41,7 @@ export interface VolumeQuotaRules { ): PagedAsyncIterableIterator; /** * Get details of the specified quota rule - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -58,7 +58,7 @@ export interface VolumeQuotaRules { ): Promise; /** * Create the specified quota rule within the given volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -82,7 +82,7 @@ export interface VolumeQuotaRules { >; /** * Create the specified quota rule within the given volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -101,7 +101,7 @@ export interface VolumeQuotaRules { ): Promise; /** * Patch a quota rule - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -125,7 +125,7 @@ export interface VolumeQuotaRules { >; /** * Patch a quota rule - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -144,7 +144,7 @@ export interface VolumeQuotaRules { ): Promise; /** * Delete quota rule - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -161,7 +161,7 @@ export interface VolumeQuotaRules { ): Promise, void>>; /** * Delete quota rule - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts index fbbef237c55b..521eed0654a8 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts @@ -24,6 +24,7 @@ import { VolumeRevert, VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, + VolumesBreakFileLocksOptionalParams, VolumesBreakReplicationOptionalParams, ReestablishReplicationRequest, VolumesReestablishReplicationOptionalParams, @@ -46,7 +47,7 @@ import { export interface Volumes { /** * List all volumes within the capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param options The options parameters. @@ -59,7 +60,7 @@ export interface Volumes { ): PagedAsyncIterableIterator; /** * List all replications for a specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -74,7 +75,7 @@ export interface Volumes { ): PagedAsyncIterableIterator; /** * Get the details of the specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -89,7 +90,7 @@ export interface Volumes { ): Promise; /** * Create or update the specified volume within the capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -111,7 +112,7 @@ export interface Volumes { >; /** * Create or update the specified volume within the capacity pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -128,7 +129,7 @@ export interface Volumes { ): Promise; /** * Patch the specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -147,7 +148,7 @@ export interface Volumes { >; /** * Patch the specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -164,7 +165,7 @@ export interface Volumes { ): Promise; /** * Delete the specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -179,7 +180,7 @@ export interface Volumes { ): Promise, void>>; /** * Delete the specified volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -194,7 +195,7 @@ export interface Volumes { ): Promise; /** * Revert a volume to the snapshot specified in the body - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -211,7 +212,7 @@ export interface Volumes { ): Promise, void>>; /** * Revert a volume to the snapshot specified in the body - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -228,7 +229,7 @@ export interface Volumes { ): Promise; /** * Reset cifs password from volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -243,7 +244,7 @@ export interface Volumes { ): Promise, void>>; /** * Reset cifs password from volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -256,9 +257,39 @@ export interface Volumes { volumeName: string, options?: VolumesResetCifsPasswordOptionalParams ): Promise; + /** + * 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 + * @param volumeName The name of the volume + * @param options The options parameters. + */ + beginBreakFileLocks( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesBreakFileLocksOptionalParams + ): Promise, void>>; + /** + * 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 + * @param volumeName The name of the volume + * @param options The options parameters. + */ + beginBreakFileLocksAndWait( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesBreakFileLocksOptionalParams + ): Promise; /** * Break the replication connection on the destination volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -273,7 +304,7 @@ export interface Volumes { ): Promise, void>>; /** * Break the replication connection on the destination volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -289,7 +320,7 @@ export interface Volumes { /** * 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. + * @param resourceGroupName The name of 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 @@ -307,7 +338,7 @@ export interface Volumes { /** * 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. + * @param resourceGroupName The name of 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 @@ -324,7 +355,7 @@ export interface Volumes { ): Promise; /** * Get the status of the replication - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -340,7 +371,7 @@ export interface Volumes { /** * 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. + * @param resourceGroupName The name of 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 @@ -356,7 +387,7 @@ export interface Volumes { /** * 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. + * @param resourceGroupName The name of 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 @@ -372,7 +403,7 @@ export interface Volumes { /** * Delete the replication connection on the destination volume, and send release to the source * replication - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -388,7 +419,7 @@ export interface Volumes { /** * Delete the replication connection on the destination volume, and send release to the source * replication - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -403,7 +434,7 @@ export interface Volumes { ): Promise; /** * Authorize the replication connection on the source volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -420,7 +451,7 @@ export interface Volumes { ): Promise, void>>; /** * Authorize the replication connection on the source volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -437,7 +468,7 @@ export interface Volumes { ): Promise; /** * Re-Initializes the replication connection on the destination volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -452,7 +483,7 @@ export interface Volumes { ): Promise, void>>; /** * Re-Initializes the replication connection on the destination volume - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -467,7 +498,7 @@ export interface Volumes { ): Promise; /** * Moves volume to another pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -484,7 +515,7 @@ export interface Volumes { ): Promise, void>>; /** * Moves volume to another pool - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -501,7 +532,7 @@ export interface Volumes { ): Promise; /** * Relocates volume to a new stamp - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -516,7 +547,7 @@ export interface Volumes { ): Promise, void>>; /** * Relocates volume to a new stamp - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -531,7 +562,7 @@ export interface Volumes { ): Promise; /** * Finalizes the relocation of the volume and cleans up the old volume. - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -546,7 +577,7 @@ export interface Volumes { ): Promise, void>>; /** * Finalizes the relocation of the volume and cleans up the old volume. - * @param resourceGroupName The name of 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 poolName The name of the capacity pool * @param volumeName The name of the volume @@ -562,7 +593,7 @@ export interface Volumes { /** * 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. + * @param resourceGroupName The name of 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 @@ -578,7 +609,7 @@ export interface Volumes { /** * 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. + * @param resourceGroupName The name of 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 diff --git a/sdk/netapp/arm-netapp/test/sampleTest.ts b/sdk/netapp/arm-netapp/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/netapp/arm-netapp/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/netapp/arm-netapp/tsconfig.json b/sdk/netapp/arm-netapp/tsconfig.json index 1772b5822344..3e6ae96443f3 100644 --- a/sdk/netapp/arm-netapp/tsconfig.json +++ b/sdk/netapp/arm-netapp/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-netapp": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"