@azure/arm-storsimple8000series 2.1.1-alpha.20250619.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.api.md → arm-storsimple8000series-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupPolicies.js","sourceRoot":"","sources":["../../../src/operations/backupPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAaxC,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,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;Y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AM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,iLAAiL;IACnL,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;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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAaxC,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAuC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,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,iLAAiL;IACnL,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;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"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
@@ -14,6 +13,7 @@ import { LroImpl } from "../lroImpl.js";
|
|
|
14
13
|
/// <reference lib="esnext.asynciterable" />
|
|
15
14
|
/** Class containing BackupSchedules operations. */
|
|
16
15
|
export class BackupSchedulesImpl {
|
|
16
|
+
client;
|
|
17
17
|
/**
|
|
18
18
|
* Initialize a new instance of the class BackupSchedules class.
|
|
19
19
|
* @param client Reference to the service client
|
|
@@ -39,39 +39,22 @@ export class BackupSchedulesImpl {
|
|
|
39
39
|
return this;
|
|
40
40
|
},
|
|
41
41
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
44
|
}
|
|
45
45
|
return this.listByBackupPolicyPagingPage(deviceName, backupPolicyName, resourceGroupName, managerName, options, settings);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
listByBackupPolicyPagingPage(deviceName, backupPolicyName, resourceGroupName, managerName, options, _settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
yield yield __await(result.value || []);
|
|
54
|
-
});
|
|
49
|
+
async *listByBackupPolicyPagingPage(deviceName, backupPolicyName, resourceGroupName, managerName, options, _settings) {
|
|
50
|
+
let result;
|
|
51
|
+
result = await this._listByBackupPolicy(deviceName, backupPolicyName, resourceGroupName, managerName, options);
|
|
52
|
+
yield result.value || [];
|
|
55
53
|
}
|
|
56
|
-
listByBackupPolicyPagingAll(deviceName, backupPolicyName, resourceGroupName, managerName, options) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
for (var _d = true, _e = __asyncValues(this.listByBackupPolicyPagingPage(deviceName, backupPolicyName, resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
61
|
-
_c = _f.value;
|
|
62
|
-
_d = false;
|
|
63
|
-
const page = _c;
|
|
64
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
68
|
-
finally {
|
|
69
|
-
try {
|
|
70
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
71
|
-
}
|
|
72
|
-
finally { if (e_1) throw e_1.error; }
|
|
73
|
-
}
|
|
74
|
-
});
|
|
54
|
+
async *listByBackupPolicyPagingAll(deviceName, backupPolicyName, resourceGroupName, managerName, options) {
|
|
55
|
+
for await (const page of this.listByBackupPolicyPagingPage(deviceName, backupPolicyName, resourceGroupName, managerName, options)) {
|
|
56
|
+
yield* page;
|
|
57
|
+
}
|
|
75
58
|
}
|
|
76
59
|
/**
|
|
77
60
|
* Gets all the backup schedules in a backup policy.
|
|
@@ -118,14 +101,19 @@ export class BackupSchedulesImpl {
|
|
|
118
101
|
return this.client.sendOperationRequest(args, spec);
|
|
119
102
|
};
|
|
120
103
|
const sendOperation = async (args, spec) => {
|
|
121
|
-
var _a;
|
|
122
104
|
let currentRawResponse = undefined;
|
|
123
|
-
const providedCallback =
|
|
105
|
+
const providedCallback = args.options?.onResponse;
|
|
124
106
|
const callback = (rawResponse, flatResponse) => {
|
|
125
107
|
currentRawResponse = rawResponse;
|
|
126
|
-
providedCallback
|
|
108
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
109
|
+
};
|
|
110
|
+
const updatedArgs = {
|
|
111
|
+
...args,
|
|
112
|
+
options: {
|
|
113
|
+
...args.options,
|
|
114
|
+
onResponse: callback
|
|
115
|
+
}
|
|
127
116
|
};
|
|
128
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
129
117
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
130
118
|
return {
|
|
131
119
|
flatResponse,
|
|
@@ -146,8 +134,8 @@ export class BackupSchedulesImpl {
|
|
|
146
134
|
options
|
|
147
135
|
}, createOrUpdateOperationSpec);
|
|
148
136
|
const poller = new LroEngine(lro, {
|
|
149
|
-
resumeFrom: options
|
|
150
|
-
intervalInMs: options
|
|
137
|
+
resumeFrom: options?.resumeFrom,
|
|
138
|
+
intervalInMs: options?.updateIntervalInMs
|
|
151
139
|
});
|
|
152
140
|
await poller.poll();
|
|
153
141
|
return poller;
|
|
@@ -180,14 +168,19 @@ export class BackupSchedulesImpl {
|
|
|
180
168
|
return this.client.sendOperationRequest(args, spec);
|
|
181
169
|
};
|
|
182
170
|
const sendOperation = async (args, spec) => {
|
|
183
|
-
var _a;
|
|
184
171
|
let currentRawResponse = undefined;
|
|
185
|
-
const providedCallback =
|
|
172
|
+
const providedCallback = args.options?.onResponse;
|
|
186
173
|
const callback = (rawResponse, flatResponse) => {
|
|
187
174
|
currentRawResponse = rawResponse;
|
|
188
|
-
providedCallback
|
|
175
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
176
|
+
};
|
|
177
|
+
const updatedArgs = {
|
|
178
|
+
...args,
|
|
179
|
+
options: {
|
|
180
|
+
...args.options,
|
|
181
|
+
onResponse: callback
|
|
182
|
+
}
|
|
189
183
|
};
|
|
190
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
191
184
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
192
185
|
return {
|
|
193
186
|
flatResponse,
|
|
@@ -207,8 +200,8 @@ export class BackupSchedulesImpl {
|
|
|
207
200
|
options
|
|
208
201
|
}, deleteOperationSpec);
|
|
209
202
|
const poller = new LroEngine(lro, {
|
|
210
|
-
resumeFrom: options
|
|
211
|
-
intervalInMs: options
|
|
203
|
+
resumeFrom: options?.resumeFrom,
|
|
204
|
+
intervalInMs: options?.updateIntervalInMs
|
|
212
205
|
});
|
|
213
206
|
await poller.poll();
|
|
214
207
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupSchedules.js","sourceRoot":"","sources":["../../../src/operations/backupSchedules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,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;IACD,WAAW,EAAE,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"]}
|
|
1
|
+
{"version":3,"file":"backupSchedules.js","sourceRoot":"","sources":["../../../src/operations/backupSchedules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAYxC,4CAA4C;AAC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AI,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"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { LroImpl } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Backups operations. */
|
|
17
16
|
export class BackupsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Backups class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -39,52 +39,35 @@ export class BackupsImpl {
|
|
|
39
39
|
return this;
|
|
40
40
|
},
|
|
41
41
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
44
|
}
|
|
45
45
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
49
|
+
async *listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._listByDevice(deviceName, resourceGroupName, managerName, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
setContinuationToken(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listByDeviceNext(deviceName, resourceGroupName, managerName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
68
66
|
}
|
|
69
|
-
listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = __asyncValues(this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
67
|
+
async *listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
68
|
+
for await (const page of this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
88
71
|
}
|
|
89
72
|
/**
|
|
90
73
|
* Retrieves all the backups in a device.
|
|
@@ -109,14 +92,19 @@ export class BackupsImpl {
|
|
|
109
92
|
return this.client.sendOperationRequest(args, spec);
|
|
110
93
|
};
|
|
111
94
|
const sendOperation = async (args, spec) => {
|
|
112
|
-
var _a;
|
|
113
95
|
let currentRawResponse = undefined;
|
|
114
|
-
const providedCallback =
|
|
96
|
+
const providedCallback = args.options?.onResponse;
|
|
115
97
|
const callback = (rawResponse, flatResponse) => {
|
|
116
98
|
currentRawResponse = rawResponse;
|
|
117
|
-
providedCallback
|
|
99
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
100
|
+
};
|
|
101
|
+
const updatedArgs = {
|
|
102
|
+
...args,
|
|
103
|
+
options: {
|
|
104
|
+
...args.options,
|
|
105
|
+
onResponse: callback
|
|
106
|
+
}
|
|
118
107
|
};
|
|
119
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
120
108
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
121
109
|
return {
|
|
122
110
|
flatResponse,
|
|
@@ -129,8 +117,8 @@ export class BackupsImpl {
|
|
|
129
117
|
};
|
|
130
118
|
const lro = new LroImpl(sendOperation, { deviceName, backupName, resourceGroupName, managerName, options }, deleteOperationSpec);
|
|
131
119
|
const poller = new LroEngine(lro, {
|
|
132
|
-
resumeFrom: options
|
|
133
|
-
intervalInMs: options
|
|
120
|
+
resumeFrom: options?.resumeFrom,
|
|
121
|
+
intervalInMs: options?.updateIntervalInMs
|
|
134
122
|
});
|
|
135
123
|
await poller.poll();
|
|
136
124
|
return poller;
|
|
@@ -162,14 +150,19 @@ export class BackupsImpl {
|
|
|
162
150
|
return this.client.sendOperationRequest(args, spec);
|
|
163
151
|
};
|
|
164
152
|
const sendOperation = async (args, spec) => {
|
|
165
|
-
var _a;
|
|
166
153
|
let currentRawResponse = undefined;
|
|
167
|
-
const providedCallback =
|
|
154
|
+
const providedCallback = args.options?.onResponse;
|
|
168
155
|
const callback = (rawResponse, flatResponse) => {
|
|
169
156
|
currentRawResponse = rawResponse;
|
|
170
|
-
providedCallback
|
|
157
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
158
|
+
};
|
|
159
|
+
const updatedArgs = {
|
|
160
|
+
...args,
|
|
161
|
+
options: {
|
|
162
|
+
...args.options,
|
|
163
|
+
onResponse: callback
|
|
164
|
+
}
|
|
171
165
|
};
|
|
172
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
173
166
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
174
167
|
return {
|
|
175
168
|
flatResponse,
|
|
@@ -190,8 +183,8 @@ export class BackupsImpl {
|
|
|
190
183
|
options
|
|
191
184
|
}, cloneOperationSpec);
|
|
192
185
|
const poller = new LroEngine(lro, {
|
|
193
|
-
resumeFrom: options
|
|
194
|
-
intervalInMs: options
|
|
186
|
+
resumeFrom: options?.resumeFrom,
|
|
187
|
+
intervalInMs: options?.updateIntervalInMs
|
|
195
188
|
});
|
|
196
189
|
await poller.poll();
|
|
197
190
|
return poller;
|
|
@@ -223,14 +216,19 @@ export class BackupsImpl {
|
|
|
223
216
|
return this.client.sendOperationRequest(args, spec);
|
|
224
217
|
};
|
|
225
218
|
const sendOperation = async (args, spec) => {
|
|
226
|
-
var _a;
|
|
227
219
|
let currentRawResponse = undefined;
|
|
228
|
-
const providedCallback =
|
|
220
|
+
const providedCallback = args.options?.onResponse;
|
|
229
221
|
const callback = (rawResponse, flatResponse) => {
|
|
230
222
|
currentRawResponse = rawResponse;
|
|
231
|
-
providedCallback
|
|
223
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
224
|
+
};
|
|
225
|
+
const updatedArgs = {
|
|
226
|
+
...args,
|
|
227
|
+
options: {
|
|
228
|
+
...args.options,
|
|
229
|
+
onResponse: callback
|
|
230
|
+
}
|
|
232
231
|
};
|
|
233
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
234
232
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
235
233
|
return {
|
|
236
234
|
flatResponse,
|
|
@@ -243,8 +241,8 @@ export class BackupsImpl {
|
|
|
243
241
|
};
|
|
244
242
|
const lro = new LroImpl(sendOperation, { deviceName, backupName, resourceGroupName, managerName, options }, restoreOperationSpec);
|
|
245
243
|
const poller = new LroEngine(lro, {
|
|
246
|
-
resumeFrom: options
|
|
247
|
-
intervalInMs: options
|
|
244
|
+
resumeFrom: options?.resumeFrom,
|
|
245
|
+
intervalInMs: options?.updateIntervalInMs
|
|
248
246
|
});
|
|
249
247
|
await poller.poll();
|
|
250
248
|
return poller;
|