@azure/arm-storsimple8000series 2.1.1-alpha.20250717.1 → 2.1.1-alpha.20250718.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +367 -172
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/accessControlRecords.js +32 -39
- package/dist/browser/operations/accessControlRecords.js.map +1 -1
- package/dist/browser/operations/alerts.js +23 -40
- package/dist/browser/operations/alerts.js.map +1 -1
- package/dist/browser/operations/backupPolicies.js +43 -45
- package/dist/browser/operations/backupPolicies.js.map +1 -1
- package/dist/browser/operations/backupSchedules.js +32 -39
- package/dist/browser/operations/backupSchedules.js.map +1 -1
- package/dist/browser/operations/backups.js +56 -58
- package/dist/browser/operations/backups.js.map +1 -1
- package/dist/browser/operations/bandwidthSettings.js +32 -39
- package/dist/browser/operations/bandwidthSettings.js.map +1 -1
- package/dist/browser/operations/cloudAppliances.js +21 -33
- package/dist/browser/operations/cloudAppliances.js.map +1 -1
- package/dist/browser/operations/deviceSettings.js +56 -30
- package/dist/browser/operations/deviceSettings.js.map +1 -1
- package/dist/browser/operations/devices.js +112 -167
- package/dist/browser/operations/devices.js.map +1 -1
- package/dist/browser/operations/hardwareComponentGroups.js +21 -33
- package/dist/browser/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/browser/operations/jobs.js +56 -85
- package/dist/browser/operations/jobs.js.map +1 -1
- package/dist/browser/operations/managers.js +51 -136
- package/dist/browser/operations/managers.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/storageAccountCredentials.js +32 -39
- package/dist/browser/operations/storageAccountCredentials.js.map +1 -1
- package/dist/browser/operations/volumeContainers.js +50 -91
- package/dist/browser/operations/volumeContainers.js.map +1 -1
- package/dist/browser/operations/volumes.js +59 -117
- package/dist/browser/operations/volumes.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/browser/storSimple8000SeriesManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +367 -172
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/accessControlRecords.js +32 -38
- package/dist/commonjs/operations/accessControlRecords.js.map +1 -1
- package/dist/commonjs/operations/alerts.js +23 -39
- package/dist/commonjs/operations/alerts.js.map +1 -1
- package/dist/commonjs/operations/backupPolicies.js +43 -44
- package/dist/commonjs/operations/backupPolicies.js.map +1 -1
- package/dist/commonjs/operations/backupSchedules.js +32 -38
- package/dist/commonjs/operations/backupSchedules.js.map +1 -1
- package/dist/commonjs/operations/backups.js +56 -57
- package/dist/commonjs/operations/backups.js.map +1 -1
- package/dist/commonjs/operations/bandwidthSettings.js +32 -38
- package/dist/commonjs/operations/bandwidthSettings.js.map +1 -1
- package/dist/commonjs/operations/cloudAppliances.js +21 -32
- package/dist/commonjs/operations/cloudAppliances.js.map +1 -1
- package/dist/commonjs/operations/deviceSettings.js +56 -30
- package/dist/commonjs/operations/deviceSettings.js.map +1 -1
- package/dist/commonjs/operations/devices.js +112 -166
- package/dist/commonjs/operations/devices.js.map +1 -1
- package/dist/commonjs/operations/hardwareComponentGroups.js +21 -32
- package/dist/commonjs/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/commonjs/operations/jobs.js +56 -84
- package/dist/commonjs/operations/jobs.js.map +1 -1
- package/dist/commonjs/operations/managers.js +51 -135
- package/dist/commonjs/operations/managers.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/storageAccountCredentials.js +32 -38
- package/dist/commonjs/operations/storageAccountCredentials.js.map +1 -1
- package/dist/commonjs/operations/volumeContainers.js +50 -90
- package/dist/commonjs/operations/volumeContainers.js.map +1 -1
- package/dist/commonjs/operations/volumes.js +59 -116
- package/dist/commonjs/operations/volumes.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/commonjs/storSimple8000SeriesManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +367 -172
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/accessControlRecords.js +32 -39
- package/dist/esm/operations/accessControlRecords.js.map +1 -1
- package/dist/esm/operations/alerts.js +23 -40
- package/dist/esm/operations/alerts.js.map +1 -1
- package/dist/esm/operations/backupPolicies.js +43 -45
- package/dist/esm/operations/backupPolicies.js.map +1 -1
- package/dist/esm/operations/backupSchedules.js +32 -39
- package/dist/esm/operations/backupSchedules.js.map +1 -1
- package/dist/esm/operations/backups.js +56 -58
- package/dist/esm/operations/backups.js.map +1 -1
- package/dist/esm/operations/bandwidthSettings.js +32 -39
- package/dist/esm/operations/bandwidthSettings.js.map +1 -1
- package/dist/esm/operations/cloudAppliances.js +21 -33
- package/dist/esm/operations/cloudAppliances.js.map +1 -1
- package/dist/esm/operations/deviceSettings.js +56 -30
- package/dist/esm/operations/deviceSettings.js.map +1 -1
- package/dist/esm/operations/devices.js +112 -167
- package/dist/esm/operations/devices.js.map +1 -1
- package/dist/esm/operations/hardwareComponentGroups.js +21 -33
- package/dist/esm/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/esm/operations/jobs.js +56 -85
- package/dist/esm/operations/jobs.js.map +1 -1
- package/dist/esm/operations/managers.js +51 -136
- package/dist/esm/operations/managers.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/storageAccountCredentials.js +32 -39
- package/dist/esm/operations/storageAccountCredentials.js.map +1 -1
- package/dist/esm/operations/volumeContainers.js +50 -91
- package/dist/esm/operations/volumeContainers.js.map +1 -1
- package/dist/esm/operations/volumes.js +59 -117
- package/dist/esm/operations/volumes.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/esm/storSimple8000SeriesManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +367 -172
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/accessControlRecords.js +32 -39
- package/dist/react-native/operations/accessControlRecords.js.map +1 -1
- package/dist/react-native/operations/alerts.js +23 -40
- package/dist/react-native/operations/alerts.js.map +1 -1
- package/dist/react-native/operations/backupPolicies.js +43 -45
- package/dist/react-native/operations/backupPolicies.js.map +1 -1
- package/dist/react-native/operations/backupSchedules.js +32 -39
- package/dist/react-native/operations/backupSchedules.js.map +1 -1
- package/dist/react-native/operations/backups.js +56 -58
- package/dist/react-native/operations/backups.js.map +1 -1
- package/dist/react-native/operations/bandwidthSettings.js +32 -39
- package/dist/react-native/operations/bandwidthSettings.js.map +1 -1
- package/dist/react-native/operations/cloudAppliances.js +21 -33
- package/dist/react-native/operations/cloudAppliances.js.map +1 -1
- package/dist/react-native/operations/deviceSettings.js +56 -30
- package/dist/react-native/operations/deviceSettings.js.map +1 -1
- package/dist/react-native/operations/devices.js +112 -167
- package/dist/react-native/operations/devices.js.map +1 -1
- package/dist/react-native/operations/hardwareComponentGroups.js +21 -33
- package/dist/react-native/operations/hardwareComponentGroups.js.map +1 -1
- package/dist/react-native/operations/jobs.js +56 -85
- package/dist/react-native/operations/jobs.js.map +1 -1
- package/dist/react-native/operations/managers.js +51 -136
- package/dist/react-native/operations/managers.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/storageAccountCredentials.js +32 -39
- package/dist/react-native/operations/storageAccountCredentials.js.map +1 -1
- package/dist/react-native/operations/volumeContainers.js +50 -91
- package/dist/react-native/operations/volumeContainers.js.map +1 -1
- package/dist/react-native/operations/volumes.js +59 -117
- package/dist/react-native/operations/volumes.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/storSimple8000SeriesManagementClient.js +29 -5
- package/dist/react-native/storSimple8000SeriesManagementClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-storsimple8000series-node.api.md +1923 -1923
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupPolicies.js","sourceRoot":"","sources":["../../../src/operations/backupPolicies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAaxC,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAA4C;QACtD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CACjB,UAAkB,EAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CACrC,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,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,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACjD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;KAC5B;IACD,UAAU;CACX,CAAC;AACF,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EACF,wLAAwL;IAC1L,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACjD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAC/D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;KAC5B;IACD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { BackupPolicies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorSimple8000SeriesManagementClient } from \"../storSimple8000SeriesManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n BackupPolicy,\n BackupPoliciesListByDeviceOptionalParams,\n BackupPoliciesListByDeviceResponse,\n BackupPoliciesGetOptionalParams,\n BackupPoliciesGetResponse,\n BackupPoliciesCreateOrUpdateOptionalParams,\n BackupPoliciesCreateOrUpdateResponse,\n BackupPoliciesDeleteOptionalParams,\n BackupPoliciesBackupNowOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupPolicies operations. */\nexport class BackupPoliciesImpl implements BackupPolicies {\n private readonly client: StorSimple8000SeriesManagementClient;\n\n /**\n * Initialize a new instance of the class BackupPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimple8000SeriesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the backup policies in a device.\n * @param deviceName The device name\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n public listByDevice(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<BackupPolicy> {\n const iter = this.listByDevicePagingAll(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDevicePagingPage(\n deviceName,\n resourceGroupName,\n managerName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByDevicePagingPage(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesListByDeviceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<BackupPolicy[]> {\n let result: BackupPoliciesListByDeviceResponse;\n result = await this._listByDevice(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByDevicePagingAll(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesListByDeviceOptionalParams\n ): AsyncIterableIterator<BackupPolicy> {\n for await (const page of this.listByDevicePagingPage(\n deviceName,\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the backup policies in a device.\n * @param deviceName The device name\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n private _listByDevice(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesListByDeviceOptionalParams\n ): Promise<BackupPoliciesListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Gets the properties of the specified backup policy name.\n * @param deviceName The device name\n * @param backupPolicyName The name of backup policy to be fetched.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n get(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesGetOptionalParams\n ): Promise<BackupPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { deviceName, backupPolicyName, resourceGroupName, managerName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates the backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The name of the backup policy to be created/updated.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param parameters The backup policy.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n parameters: BackupPolicy,\n options?: BackupPoliciesCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<BackupPoliciesCreateOrUpdateResponse>,\n BackupPoliciesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<BackupPoliciesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates the backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The name of the backup policy to be created/updated.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param parameters The backup policy.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n parameters: BackupPolicy,\n options?: BackupPoliciesCreateOrUpdateOptionalParams\n ): Promise<BackupPoliciesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The name of the backup policy.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDelete(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { deviceName, backupPolicyName, resourceGroupName, managerName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The name of the backup policy.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Backup the backup policy now.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupType The backup Type. This can be cloudSnapshot or localSnapshot.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginBackupNow(\n deviceName: string,\n backupPolicyName: string,\n backupType: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesBackupNowOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n deviceName,\n backupPolicyName,\n backupType,\n resourceGroupName,\n managerName,\n options\n },\n backupNowOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Backup the backup policy now.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupType The backup Type. This can be cloudSnapshot or localSnapshot.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginBackupNowAndWait(\n deviceName: string,\n backupPolicyName: string,\n backupType: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesBackupNowOptionalParams\n ): Promise<void> {\n const poller = await this.beginBackupNow(\n deviceName,\n backupPolicyName,\n backupType,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByDeviceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupPolicyList\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupPolicy\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupPolicy\n },\n 201: {\n bodyMapper: Mappers.BackupPolicy\n },\n 202: {\n bodyMapper: Mappers.BackupPolicy\n },\n 204: {\n bodyMapper: Mappers.BackupPolicy\n }\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName\n ],\n serializer\n};\nconst backupNowOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/backup\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion, Parameters.backupType],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName\n ],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"backupPolicies.js","sourceRoot":"","sources":["../../../src/operations/backupPolicies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAaxC,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAAuC;IAE9D;;;OAGG;IACH,YAAY,MAA4C;QACtD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CACjB,UAAkB,EAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CACrC,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,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AC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;KAC5B;IACD,UAAU;CACX,CAAC;AACF,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EACF,wLAAwL;IAC1L,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACjD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAC/D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;KAC5B;IACD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { BackupPolicies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorSimple8000SeriesManagementClient } from \"../storSimple8000SeriesManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n BackupPolicy,\n BackupPoliciesListByDeviceOptionalParams,\n BackupPoliciesListByDeviceResponse,\n BackupPoliciesGetOptionalParams,\n BackupPoliciesGetResponse,\n BackupPoliciesCreateOrUpdateOptionalParams,\n BackupPoliciesCreateOrUpdateResponse,\n BackupPoliciesDeleteOptionalParams,\n BackupPoliciesBackupNowOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupPolicies operations. */\nexport class BackupPoliciesImpl implements BackupPolicies {\n private readonly client: StorSimple8000SeriesManagementClient;\n\n /**\n * Initialize a new instance of the class BackupPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimple8000SeriesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the backup policies in a device.\n * @param deviceName The device name\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n public listByDevice(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<BackupPolicy> {\n const iter = this.listByDevicePagingAll(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDevicePagingPage(\n deviceName,\n resourceGroupName,\n managerName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByDevicePagingPage(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesListByDeviceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<BackupPolicy[]> {\n let result: BackupPoliciesListByDeviceResponse;\n result = await this._listByDevice(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByDevicePagingAll(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesListByDeviceOptionalParams\n ): AsyncIterableIterator<BackupPolicy> {\n for await (const page of this.listByDevicePagingPage(\n deviceName,\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the backup policies in a device.\n * @param deviceName The device name\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n private _listByDevice(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesListByDeviceOptionalParams\n ): Promise<BackupPoliciesListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Gets the properties of the specified backup policy name.\n * @param deviceName The device name\n * @param backupPolicyName The name of backup policy to be fetched.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n get(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesGetOptionalParams\n ): Promise<BackupPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { deviceName, backupPolicyName, resourceGroupName, managerName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates the backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The name of the backup policy to be created/updated.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param parameters The backup policy.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n parameters: BackupPolicy,\n options?: BackupPoliciesCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<BackupPoliciesCreateOrUpdateResponse>,\n BackupPoliciesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<BackupPoliciesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates the backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The name of the backup policy to be created/updated.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param parameters The backup policy.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n parameters: BackupPolicy,\n options?: BackupPoliciesCreateOrUpdateOptionalParams\n ): Promise<BackupPoliciesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The name of the backup policy.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDelete(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { deviceName, backupPolicyName, resourceGroupName, managerName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The name of the backup policy.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Backup the backup policy now.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupType The backup Type. This can be cloudSnapshot or localSnapshot.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginBackupNow(\n deviceName: string,\n backupPolicyName: string,\n backupType: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesBackupNowOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n deviceName,\n backupPolicyName,\n backupType,\n resourceGroupName,\n managerName,\n options\n },\n backupNowOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Backup the backup policy now.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupType The backup Type. This can be cloudSnapshot or localSnapshot.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginBackupNowAndWait(\n deviceName: string,\n backupPolicyName: string,\n backupType: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupPoliciesBackupNowOptionalParams\n ): Promise<void> {\n const poller = await this.beginBackupNow(\n deviceName,\n backupPolicyName,\n backupType,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByDeviceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupPolicyList\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupPolicy\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupPolicy\n },\n 201: {\n bodyMapper: Mappers.BackupPolicy\n },\n 202: {\n bodyMapper: Mappers.BackupPolicy\n },\n 204: {\n bodyMapper: Mappers.BackupPolicy\n }\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName\n ],\n serializer\n};\nconst backupNowOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/backup\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion, Parameters.backupType],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName\n ],\n serializer\n};\n"]}
|
|
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
17
17
|
/// <reference lib="esnext.asynciterable" />
|
|
18
18
|
/** Class containing BackupSchedules operations. */
|
|
19
19
|
class BackupSchedulesImpl {
|
|
20
|
+
client;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize a new instance of the class BackupSchedules class.
|
|
22
23
|
* @param client Reference to the service client
|
|
@@ -42,39 +43,22 @@ class BackupSchedulesImpl {
|
|
|
42
43
|
return this;
|
|
43
44
|
},
|
|
44
45
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
46
|
+
if (settings?.maxPageSize) {
|
|
46
47
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
48
|
}
|
|
48
49
|
return this.listByBackupPolicyPagingPage(deviceName, backupPolicyName, resourceGroupName, managerName, options, settings);
|
|
49
50
|
}
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
listByBackupPolicyPagingPage(deviceName, backupPolicyName, resourceGroupName, managerName, options, _settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
yield yield tslib_1.__await(result.value || []);
|
|
57
|
-
});
|
|
53
|
+
async *listByBackupPolicyPagingPage(deviceName, backupPolicyName, resourceGroupName, managerName, options, _settings) {
|
|
54
|
+
let result;
|
|
55
|
+
result = await this._listByBackupPolicy(deviceName, backupPolicyName, resourceGroupName, managerName, options);
|
|
56
|
+
yield result.value || [];
|
|
58
57
|
}
|
|
59
|
-
listByBackupPolicyPagingAll(deviceName, backupPolicyName, resourceGroupName, managerName, options) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByBackupPolicyPagingPage(deviceName, backupPolicyName, resourceGroupName, managerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
64
|
-
_c = _f.value;
|
|
65
|
-
_d = false;
|
|
66
|
-
const page = _c;
|
|
67
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
71
|
-
finally {
|
|
72
|
-
try {
|
|
73
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
74
|
-
}
|
|
75
|
-
finally { if (e_1) throw e_1.error; }
|
|
76
|
-
}
|
|
77
|
-
});
|
|
58
|
+
async *listByBackupPolicyPagingAll(deviceName, backupPolicyName, resourceGroupName, managerName, options) {
|
|
59
|
+
for await (const page of this.listByBackupPolicyPagingPage(deviceName, backupPolicyName, resourceGroupName, managerName, options)) {
|
|
60
|
+
yield* page;
|
|
61
|
+
}
|
|
78
62
|
}
|
|
79
63
|
/**
|
|
80
64
|
* Gets all the backup schedules in a backup policy.
|
|
@@ -121,14 +105,19 @@ class BackupSchedulesImpl {
|
|
|
121
105
|
return this.client.sendOperationRequest(args, spec);
|
|
122
106
|
};
|
|
123
107
|
const sendOperation = async (args, spec) => {
|
|
124
|
-
var _a;
|
|
125
108
|
let currentRawResponse = undefined;
|
|
126
|
-
const providedCallback =
|
|
109
|
+
const providedCallback = args.options?.onResponse;
|
|
127
110
|
const callback = (rawResponse, flatResponse) => {
|
|
128
111
|
currentRawResponse = rawResponse;
|
|
129
|
-
providedCallback
|
|
112
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
113
|
+
};
|
|
114
|
+
const updatedArgs = {
|
|
115
|
+
...args,
|
|
116
|
+
options: {
|
|
117
|
+
...args.options,
|
|
118
|
+
onResponse: callback
|
|
119
|
+
}
|
|
130
120
|
};
|
|
131
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
132
121
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
133
122
|
return {
|
|
134
123
|
flatResponse,
|
|
@@ -149,8 +138,8 @@ class BackupSchedulesImpl {
|
|
|
149
138
|
options
|
|
150
139
|
}, createOrUpdateOperationSpec);
|
|
151
140
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
152
|
-
resumeFrom: options
|
|
153
|
-
intervalInMs: options
|
|
141
|
+
resumeFrom: options?.resumeFrom,
|
|
142
|
+
intervalInMs: options?.updateIntervalInMs
|
|
154
143
|
});
|
|
155
144
|
await poller.poll();
|
|
156
145
|
return poller;
|
|
@@ -183,14 +172,19 @@ class BackupSchedulesImpl {
|
|
|
183
172
|
return this.client.sendOperationRequest(args, spec);
|
|
184
173
|
};
|
|
185
174
|
const sendOperation = async (args, spec) => {
|
|
186
|
-
var _a;
|
|
187
175
|
let currentRawResponse = undefined;
|
|
188
|
-
const providedCallback =
|
|
176
|
+
const providedCallback = args.options?.onResponse;
|
|
189
177
|
const callback = (rawResponse, flatResponse) => {
|
|
190
178
|
currentRawResponse = rawResponse;
|
|
191
|
-
providedCallback
|
|
179
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
180
|
+
};
|
|
181
|
+
const updatedArgs = {
|
|
182
|
+
...args,
|
|
183
|
+
options: {
|
|
184
|
+
...args.options,
|
|
185
|
+
onResponse: callback
|
|
186
|
+
}
|
|
192
187
|
};
|
|
193
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
194
188
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
195
189
|
return {
|
|
196
190
|
flatResponse,
|
|
@@ -210,8 +204,8 @@ class BackupSchedulesImpl {
|
|
|
210
204
|
options
|
|
211
205
|
}, deleteOperationSpec);
|
|
212
206
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
213
|
-
resumeFrom: options
|
|
214
|
-
intervalInMs: options
|
|
207
|
+
resumeFrom: options?.resumeFrom,
|
|
208
|
+
intervalInMs: options?.updateIntervalInMs
|
|
215
209
|
});
|
|
216
210
|
await poller.poll();
|
|
217
211
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupSchedules.js","sourceRoot":"","sources":["../../../src/operations/backupSchedules.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAYxC,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAA4C;QACtD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,kBAAkB,CACvB,UAAkB,EAClB,gBAAwB,EACxB,iBAAyB,EACzB,WAAmB,EACnB,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAC3C,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IA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,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,kBAAkB;KAC9B;IACD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { BackupSchedules } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorSimple8000SeriesManagementClient } from \"../storSimple8000SeriesManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n BackupSchedule,\n BackupSchedulesListByBackupPolicyOptionalParams,\n BackupSchedulesListByBackupPolicyResponse,\n BackupSchedulesGetOptionalParams,\n BackupSchedulesGetResponse,\n BackupSchedulesCreateOrUpdateOptionalParams,\n BackupSchedulesCreateOrUpdateResponse,\n BackupSchedulesDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupSchedules operations. */\nexport class BackupSchedulesImpl implements BackupSchedules {\n private readonly client: StorSimple8000SeriesManagementClient;\n\n /**\n * Initialize a new instance of the class BackupSchedules class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimple8000SeriesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the backup schedules in a backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n public listByBackupPolicy(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesListByBackupPolicyOptionalParams\n ): PagedAsyncIterableIterator<BackupSchedule> {\n const iter = this.listByBackupPolicyPagingAll(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByBackupPolicyPagingPage(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByBackupPolicyPagingPage(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesListByBackupPolicyOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<BackupSchedule[]> {\n let result: BackupSchedulesListByBackupPolicyResponse;\n result = await this._listByBackupPolicy(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByBackupPolicyPagingAll(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesListByBackupPolicyOptionalParams\n ): AsyncIterableIterator<BackupSchedule> {\n for await (const page of this.listByBackupPolicyPagingPage(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the backup schedules in a backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n private _listByBackupPolicy(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesListByBackupPolicyOptionalParams\n ): Promise<BackupSchedulesListByBackupPolicyResponse> {\n return this.client.sendOperationRequest(\n { deviceName, backupPolicyName, resourceGroupName, managerName, options },\n listByBackupPolicyOperationSpec\n );\n }\n\n /**\n * Gets the properties of the specified backup schedule name.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupScheduleName The name of the backup schedule to be fetched\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n get(\n deviceName: string,\n backupPolicyName: string,\n backupScheduleName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesGetOptionalParams\n ): Promise<BackupSchedulesGetResponse> {\n return this.client.sendOperationRequest(\n {\n deviceName,\n backupPolicyName,\n backupScheduleName,\n resourceGroupName,\n managerName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates the backup schedule.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupScheduleName The backup schedule name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param parameters The backup schedule.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n deviceName: string,\n backupPolicyName: string,\n backupScheduleName: string,\n resourceGroupName: string,\n managerName: string,\n parameters: BackupSchedule,\n options?: BackupSchedulesCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<BackupSchedulesCreateOrUpdateResponse>,\n BackupSchedulesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<BackupSchedulesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n deviceName,\n backupPolicyName,\n backupScheduleName,\n resourceGroupName,\n managerName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates the backup schedule.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupScheduleName The backup schedule name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param parameters The backup schedule.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n deviceName: string,\n backupPolicyName: string,\n backupScheduleName: string,\n resourceGroupName: string,\n managerName: string,\n parameters: BackupSchedule,\n options?: BackupSchedulesCreateOrUpdateOptionalParams\n ): Promise<BackupSchedulesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n deviceName,\n backupPolicyName,\n backupScheduleName,\n resourceGroupName,\n managerName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the backup schedule.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupScheduleName The name the backup schedule.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDelete(\n deviceName: string,\n backupPolicyName: string,\n backupScheduleName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n deviceName,\n backupPolicyName,\n backupScheduleName,\n resourceGroupName,\n managerName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the backup schedule.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupScheduleName The name the backup schedule.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n deviceName: string,\n backupPolicyName: string,\n backupScheduleName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n backupPolicyName,\n backupScheduleName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByBackupPolicyOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/schedules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleList\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/schedules/{backupScheduleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupSchedule\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName,\n Parameters.backupScheduleName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/schedules/{backupScheduleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupSchedule\n },\n 201: {\n bodyMapper: Mappers.BackupSchedule\n },\n 202: {\n bodyMapper: Mappers.BackupSchedule\n },\n 204: {\n bodyMapper: Mappers.BackupSchedule\n }\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName,\n Parameters.backupScheduleName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/schedules/{backupScheduleName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName,\n Parameters.backupScheduleName\n ],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"backupSchedules.js","sourceRoot":"","sources":["../../../src/operations/backupSchedules.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAYxC,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IACb,MAAM,CAAuC;IAE9D;;;OAGG;IACH,YAAY,MAA4C;QACtD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,kBAAkB,CACvB,UAAkB,EAClB,gBAAwB,EACxB,iBAAyB,EACzB,WAAmB,EACnB,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAC3C,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CACtC,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK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UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,gNAAgN;IAClN,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACjD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,kBAAkB;KAC9B;IACD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { BackupSchedules } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorSimple8000SeriesManagementClient } from \"../storSimple8000SeriesManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n BackupSchedule,\n BackupSchedulesListByBackupPolicyOptionalParams,\n BackupSchedulesListByBackupPolicyResponse,\n BackupSchedulesGetOptionalParams,\n BackupSchedulesGetResponse,\n BackupSchedulesCreateOrUpdateOptionalParams,\n BackupSchedulesCreateOrUpdateResponse,\n BackupSchedulesDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupSchedules operations. */\nexport class BackupSchedulesImpl implements BackupSchedules {\n private readonly client: StorSimple8000SeriesManagementClient;\n\n /**\n * Initialize a new instance of the class BackupSchedules class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimple8000SeriesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the backup schedules in a backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n public listByBackupPolicy(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesListByBackupPolicyOptionalParams\n ): PagedAsyncIterableIterator<BackupSchedule> {\n const iter = this.listByBackupPolicyPagingAll(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByBackupPolicyPagingPage(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByBackupPolicyPagingPage(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesListByBackupPolicyOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<BackupSchedule[]> {\n let result: BackupSchedulesListByBackupPolicyResponse;\n result = await this._listByBackupPolicy(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByBackupPolicyPagingAll(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesListByBackupPolicyOptionalParams\n ): AsyncIterableIterator<BackupSchedule> {\n for await (const page of this.listByBackupPolicyPagingPage(\n deviceName,\n backupPolicyName,\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the backup schedules in a backup policy.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n private _listByBackupPolicy(\n deviceName: string,\n backupPolicyName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesListByBackupPolicyOptionalParams\n ): Promise<BackupSchedulesListByBackupPolicyResponse> {\n return this.client.sendOperationRequest(\n { deviceName, backupPolicyName, resourceGroupName, managerName, options },\n listByBackupPolicyOperationSpec\n );\n }\n\n /**\n * Gets the properties of the specified backup schedule name.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupScheduleName The name of the backup schedule to be fetched\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n get(\n deviceName: string,\n backupPolicyName: string,\n backupScheduleName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesGetOptionalParams\n ): Promise<BackupSchedulesGetResponse> {\n return this.client.sendOperationRequest(\n {\n deviceName,\n backupPolicyName,\n backupScheduleName,\n resourceGroupName,\n managerName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates the backup schedule.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupScheduleName The backup schedule name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param parameters The backup schedule.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n deviceName: string,\n backupPolicyName: string,\n backupScheduleName: string,\n resourceGroupName: string,\n managerName: string,\n parameters: BackupSchedule,\n options?: BackupSchedulesCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<BackupSchedulesCreateOrUpdateResponse>,\n BackupSchedulesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<BackupSchedulesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n deviceName,\n backupPolicyName,\n backupScheduleName,\n resourceGroupName,\n managerName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates the backup schedule.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupScheduleName The backup schedule name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param parameters The backup schedule.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n deviceName: string,\n backupPolicyName: string,\n backupScheduleName: string,\n resourceGroupName: string,\n managerName: string,\n parameters: BackupSchedule,\n options?: BackupSchedulesCreateOrUpdateOptionalParams\n ): Promise<BackupSchedulesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n deviceName,\n backupPolicyName,\n backupScheduleName,\n resourceGroupName,\n managerName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the backup schedule.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupScheduleName The name the backup schedule.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDelete(\n deviceName: string,\n backupPolicyName: string,\n backupScheduleName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n deviceName,\n backupPolicyName,\n backupScheduleName,\n resourceGroupName,\n managerName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the backup schedule.\n * @param deviceName The device name\n * @param backupPolicyName The backup policy name.\n * @param backupScheduleName The name the backup schedule.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n deviceName: string,\n backupPolicyName: string,\n backupScheduleName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupSchedulesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n backupPolicyName,\n backupScheduleName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByBackupPolicyOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/schedules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleList\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/schedules/{backupScheduleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupSchedule\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName,\n Parameters.backupScheduleName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/schedules/{backupScheduleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupSchedule\n },\n 201: {\n bodyMapper: Mappers.BackupSchedule\n },\n 202: {\n bodyMapper: Mappers.BackupSchedule\n },\n 204: {\n bodyMapper: Mappers.BackupSchedule\n }\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName,\n Parameters.backupScheduleName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backupPolicies/{backupPolicyName}/schedules/{backupScheduleName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupPolicyName,\n Parameters.backupScheduleName\n ],\n serializer\n};\n"]}
|
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Backups operations. */
|
|
20
20
|
class BackupsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Backups class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -42,52 +43,35 @@ class BackupsImpl {
|
|
|
42
43
|
return this;
|
|
43
44
|
},
|
|
44
45
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
46
|
+
if (settings?.maxPageSize) {
|
|
46
47
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
48
|
}
|
|
48
49
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
49
50
|
}
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
});
|
|
53
|
+
async *listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
54
|
+
let result;
|
|
55
|
+
let continuationToken = settings?.continuationToken;
|
|
56
|
+
if (!continuationToken) {
|
|
57
|
+
result = await this._listByDevice(deviceName, resourceGroupName, managerName, options);
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listByDeviceNext(deviceName, resourceGroupName, managerName, continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
let page = result.value || [];
|
|
67
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
68
|
+
yield page;
|
|
69
|
+
}
|
|
71
70
|
}
|
|
72
|
-
listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
71
|
+
async *listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
72
|
+
for await (const page of this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)) {
|
|
73
|
+
yield* page;
|
|
74
|
+
}
|
|
91
75
|
}
|
|
92
76
|
/**
|
|
93
77
|
* Retrieves all the backups in a device.
|
|
@@ -112,14 +96,19 @@ class BackupsImpl {
|
|
|
112
96
|
return this.client.sendOperationRequest(args, spec);
|
|
113
97
|
};
|
|
114
98
|
const sendOperation = async (args, spec) => {
|
|
115
|
-
var _a;
|
|
116
99
|
let currentRawResponse = undefined;
|
|
117
|
-
const providedCallback =
|
|
100
|
+
const providedCallback = args.options?.onResponse;
|
|
118
101
|
const callback = (rawResponse, flatResponse) => {
|
|
119
102
|
currentRawResponse = rawResponse;
|
|
120
|
-
providedCallback
|
|
103
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
104
|
+
};
|
|
105
|
+
const updatedArgs = {
|
|
106
|
+
...args,
|
|
107
|
+
options: {
|
|
108
|
+
...args.options,
|
|
109
|
+
onResponse: callback
|
|
110
|
+
}
|
|
121
111
|
};
|
|
122
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
123
112
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
124
113
|
return {
|
|
125
114
|
flatResponse,
|
|
@@ -132,8 +121,8 @@ class BackupsImpl {
|
|
|
132
121
|
};
|
|
133
122
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { deviceName, backupName, resourceGroupName, managerName, options }, deleteOperationSpec);
|
|
134
123
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
135
|
-
resumeFrom: options
|
|
136
|
-
intervalInMs: options
|
|
124
|
+
resumeFrom: options?.resumeFrom,
|
|
125
|
+
intervalInMs: options?.updateIntervalInMs
|
|
137
126
|
});
|
|
138
127
|
await poller.poll();
|
|
139
128
|
return poller;
|
|
@@ -165,14 +154,19 @@ class BackupsImpl {
|
|
|
165
154
|
return this.client.sendOperationRequest(args, spec);
|
|
166
155
|
};
|
|
167
156
|
const sendOperation = async (args, spec) => {
|
|
168
|
-
var _a;
|
|
169
157
|
let currentRawResponse = undefined;
|
|
170
|
-
const providedCallback =
|
|
158
|
+
const providedCallback = args.options?.onResponse;
|
|
171
159
|
const callback = (rawResponse, flatResponse) => {
|
|
172
160
|
currentRawResponse = rawResponse;
|
|
173
|
-
providedCallback
|
|
161
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
162
|
+
};
|
|
163
|
+
const updatedArgs = {
|
|
164
|
+
...args,
|
|
165
|
+
options: {
|
|
166
|
+
...args.options,
|
|
167
|
+
onResponse: callback
|
|
168
|
+
}
|
|
174
169
|
};
|
|
175
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
176
170
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
177
171
|
return {
|
|
178
172
|
flatResponse,
|
|
@@ -193,8 +187,8 @@ class BackupsImpl {
|
|
|
193
187
|
options
|
|
194
188
|
}, cloneOperationSpec);
|
|
195
189
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
196
|
-
resumeFrom: options
|
|
197
|
-
intervalInMs: options
|
|
190
|
+
resumeFrom: options?.resumeFrom,
|
|
191
|
+
intervalInMs: options?.updateIntervalInMs
|
|
198
192
|
});
|
|
199
193
|
await poller.poll();
|
|
200
194
|
return poller;
|
|
@@ -226,14 +220,19 @@ class BackupsImpl {
|
|
|
226
220
|
return this.client.sendOperationRequest(args, spec);
|
|
227
221
|
};
|
|
228
222
|
const sendOperation = async (args, spec) => {
|
|
229
|
-
var _a;
|
|
230
223
|
let currentRawResponse = undefined;
|
|
231
|
-
const providedCallback =
|
|
224
|
+
const providedCallback = args.options?.onResponse;
|
|
232
225
|
const callback = (rawResponse, flatResponse) => {
|
|
233
226
|
currentRawResponse = rawResponse;
|
|
234
|
-
providedCallback
|
|
227
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
228
|
+
};
|
|
229
|
+
const updatedArgs = {
|
|
230
|
+
...args,
|
|
231
|
+
options: {
|
|
232
|
+
...args.options,
|
|
233
|
+
onResponse: callback
|
|
234
|
+
}
|
|
235
235
|
};
|
|
236
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
237
236
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
238
237
|
return {
|
|
239
238
|
flatResponse,
|
|
@@ -246,8 +245,8 @@ class BackupsImpl {
|
|
|
246
245
|
};
|
|
247
246
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { deviceName, backupName, resourceGroupName, managerName, options }, restoreOperationSpec);
|
|
248
247
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
249
|
-
resumeFrom: options
|
|
250
|
-
intervalInMs: options
|
|
248
|
+
resumeFrom: options?.resumeFrom,
|
|
249
|
+
intervalInMs: options?.updateIntervalInMs
|
|
251
250
|
});
|
|
252
251
|
await poller.poll();
|
|
253
252
|
return poller;
|