@azure/arm-storsimple1200series 2.1.1-alpha.20250718.1 → 2.1.1-alpha.20250721.1
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 +361 -169
- 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/availableProviderOperationsOperations.js +23 -40
- package/dist/browser/operations/availableProviderOperationsOperations.js.map +1 -1
- package/dist/browser/operations/backupScheduleGroups.js +32 -39
- package/dist/browser/operations/backupScheduleGroups.js.map +1 -1
- package/dist/browser/operations/backups.js +67 -91
- package/dist/browser/operations/backups.js.map +1 -1
- package/dist/browser/operations/chapSettingsOperations.js +32 -39
- package/dist/browser/operations/chapSettingsOperations.js.map +1 -1
- package/dist/browser/operations/devices.js +136 -159
- package/dist/browser/operations/devices.js.map +1 -1
- package/dist/browser/operations/fileServers.js +70 -123
- package/dist/browser/operations/fileServers.js.map +1 -1
- package/dist/browser/operations/fileShares.js +59 -117
- package/dist/browser/operations/fileShares.js.map +1 -1
- package/dist/browser/operations/iscsiDisks.js +59 -117
- package/dist/browser/operations/iscsiDisks.js.map +1 -1
- package/dist/browser/operations/iscsiServers.js +70 -123
- package/dist/browser/operations/iscsiServers.js.map +1 -1
- package/dist/browser/operations/jobs.js +45 -79
- package/dist/browser/operations/jobs.js.map +1 -1
- package/dist/browser/operations/managers.js +37 -105
- package/dist/browser/operations/managers.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/storageDomains.js +32 -39
- package/dist/browser/operations/storageDomains.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/storSimpleManagementClient.js +28 -5
- package/dist/browser/storSimpleManagementClient.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 +361 -169
- 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/availableProviderOperationsOperations.js +23 -39
- package/dist/commonjs/operations/availableProviderOperationsOperations.js.map +1 -1
- package/dist/commonjs/operations/backupScheduleGroups.js +32 -38
- package/dist/commonjs/operations/backupScheduleGroups.js.map +1 -1
- package/dist/commonjs/operations/backups.js +67 -90
- package/dist/commonjs/operations/backups.js.map +1 -1
- package/dist/commonjs/operations/chapSettingsOperations.js +32 -38
- package/dist/commonjs/operations/chapSettingsOperations.js.map +1 -1
- package/dist/commonjs/operations/devices.js +136 -158
- package/dist/commonjs/operations/devices.js.map +1 -1
- package/dist/commonjs/operations/fileServers.js +70 -122
- package/dist/commonjs/operations/fileServers.js.map +1 -1
- package/dist/commonjs/operations/fileShares.js +59 -116
- package/dist/commonjs/operations/fileShares.js.map +1 -1
- package/dist/commonjs/operations/iscsiDisks.js +59 -116
- package/dist/commonjs/operations/iscsiDisks.js.map +1 -1
- package/dist/commonjs/operations/iscsiServers.js +70 -122
- package/dist/commonjs/operations/iscsiServers.js.map +1 -1
- package/dist/commonjs/operations/jobs.js +45 -78
- package/dist/commonjs/operations/jobs.js.map +1 -1
- package/dist/commonjs/operations/managers.js +37 -104
- package/dist/commonjs/operations/managers.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/storageDomains.js +32 -38
- package/dist/commonjs/operations/storageDomains.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/storSimpleManagementClient.js +28 -5
- package/dist/commonjs/storSimpleManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +361 -169
- 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/availableProviderOperationsOperations.js +23 -40
- package/dist/esm/operations/availableProviderOperationsOperations.js.map +1 -1
- package/dist/esm/operations/backupScheduleGroups.js +32 -39
- package/dist/esm/operations/backupScheduleGroups.js.map +1 -1
- package/dist/esm/operations/backups.js +67 -91
- package/dist/esm/operations/backups.js.map +1 -1
- package/dist/esm/operations/chapSettingsOperations.js +32 -39
- package/dist/esm/operations/chapSettingsOperations.js.map +1 -1
- package/dist/esm/operations/devices.js +136 -159
- package/dist/esm/operations/devices.js.map +1 -1
- package/dist/esm/operations/fileServers.js +70 -123
- package/dist/esm/operations/fileServers.js.map +1 -1
- package/dist/esm/operations/fileShares.js +59 -117
- package/dist/esm/operations/fileShares.js.map +1 -1
- package/dist/esm/operations/iscsiDisks.js +59 -117
- package/dist/esm/operations/iscsiDisks.js.map +1 -1
- package/dist/esm/operations/iscsiServers.js +70 -123
- package/dist/esm/operations/iscsiServers.js.map +1 -1
- package/dist/esm/operations/jobs.js +45 -79
- package/dist/esm/operations/jobs.js.map +1 -1
- package/dist/esm/operations/managers.js +37 -105
- package/dist/esm/operations/managers.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/storageDomains.js +32 -39
- package/dist/esm/operations/storageDomains.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/storSimpleManagementClient.js +28 -5
- package/dist/esm/storSimpleManagementClient.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 +361 -169
- 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/availableProviderOperationsOperations.js +23 -40
- package/dist/react-native/operations/availableProviderOperationsOperations.js.map +1 -1
- package/dist/react-native/operations/backupScheduleGroups.js +32 -39
- package/dist/react-native/operations/backupScheduleGroups.js.map +1 -1
- package/dist/react-native/operations/backups.js +67 -91
- package/dist/react-native/operations/backups.js.map +1 -1
- package/dist/react-native/operations/chapSettingsOperations.js +32 -39
- package/dist/react-native/operations/chapSettingsOperations.js.map +1 -1
- package/dist/react-native/operations/devices.js +136 -159
- package/dist/react-native/operations/devices.js.map +1 -1
- package/dist/react-native/operations/fileServers.js +70 -123
- package/dist/react-native/operations/fileServers.js.map +1 -1
- package/dist/react-native/operations/fileShares.js +59 -117
- package/dist/react-native/operations/fileShares.js.map +1 -1
- package/dist/react-native/operations/iscsiDisks.js +59 -117
- package/dist/react-native/operations/iscsiDisks.js.map +1 -1
- package/dist/react-native/operations/iscsiServers.js +70 -123
- package/dist/react-native/operations/iscsiServers.js.map +1 -1
- package/dist/react-native/operations/jobs.js +45 -79
- package/dist/react-native/operations/jobs.js.map +1 -1
- package/dist/react-native/operations/managers.js +37 -105
- package/dist/react-native/operations/managers.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/storageDomains.js +32 -39
- package/dist/react-native/operations/storageDomains.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/storSimpleManagementClient.js +28 -5
- package/dist/react-native/storSimpleManagementClient.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupScheduleGroups.js","sourceRoot":"","sources":["../../../src/operations/backupScheduleGroups.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAYxC,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CACjB,UAAkB,EAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAwD;QAExD,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,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,sBAAsB,CAChC,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,sBAAsB,CACnC,UAAkB,EAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAwD,EACxD,SAAwB;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C,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,aAAa;IACrC,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,iBAAiB;KAC7B;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,wLAAwL;IAC1L,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,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,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { BackupScheduleGroups } 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 { StorSimpleManagementClient } from \"../storSimpleManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n BackupScheduleGroup,\n BackupScheduleGroupsListByDeviceOptionalParams,\n BackupScheduleGroupsListByDeviceResponse,\n BackupScheduleGroupsGetOptionalParams,\n BackupScheduleGroupsGetResponse,\n BackupScheduleGroupsCreateOrUpdateOptionalParams,\n BackupScheduleGroupsCreateOrUpdateResponse,\n BackupScheduleGroupsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupScheduleGroups operations. */\nexport class BackupScheduleGroupsImpl implements BackupScheduleGroups {\n private readonly client: StorSimpleManagementClient;\n\n /**\n * Initialize a new instance of the class BackupScheduleGroups class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimpleManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves all the backup schedule groups in a device.\n * @param deviceName The name of the device.\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?: BackupScheduleGroupsListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<BackupScheduleGroup> {\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?: BackupScheduleGroupsListByDeviceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<BackupScheduleGroup[]> {\n let result: BackupScheduleGroupsListByDeviceResponse;\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?: BackupScheduleGroupsListByDeviceOptionalParams\n ): AsyncIterableIterator<BackupScheduleGroup> {\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 * Retrieves all the backup schedule groups in a device.\n * @param deviceName The name of the device.\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?: BackupScheduleGroupsListByDeviceOptionalParams\n ): Promise<BackupScheduleGroupsListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Returns the properties of the specified backup schedule group name.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\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 scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsGetOptionalParams\n ): Promise<BackupScheduleGroupsGetResponse> {\n return this.client.sendOperationRequest(\n {\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or Updates the backup schedule Group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param scheduleGroup The schedule group to be created\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n scheduleGroup: BackupScheduleGroup,\n options?: BackupScheduleGroupsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<BackupScheduleGroupsCreateOrUpdateResponse>,\n BackupScheduleGroupsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<BackupScheduleGroupsCreateOrUpdateResponse> => {\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 scheduleGroupName,\n resourceGroupName,\n managerName,\n scheduleGroup,\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 Group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param scheduleGroup The schedule group to be created\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n scheduleGroup: BackupScheduleGroup,\n options?: BackupScheduleGroupsCreateOrUpdateOptionalParams\n ): Promise<BackupScheduleGroupsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n scheduleGroup,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the backup schedule group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\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 scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsDeleteOptionalParams\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 scheduleGroupName,\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 group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\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 scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n scheduleGroupName,\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}/backupScheduleGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\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}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n default: {\n bodyMapper: Mappers.ErrorModel\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.scheduleGroupName\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}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 201: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 202: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 204: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.scheduleGroup,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.scheduleGroupName\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}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\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.scheduleGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"backupScheduleGroups.js","sourceRoot":"","sources":["../../../src/operations/backupScheduleGroups.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAYxC,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CACjB,UAAkB,EAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAwD;QAExD,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CACrC,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,OA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C;IACrC,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 { BackupScheduleGroups } 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 { StorSimpleManagementClient } from \"../storSimpleManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n BackupScheduleGroup,\n BackupScheduleGroupsListByDeviceOptionalParams,\n BackupScheduleGroupsListByDeviceResponse,\n BackupScheduleGroupsGetOptionalParams,\n BackupScheduleGroupsGetResponse,\n BackupScheduleGroupsCreateOrUpdateOptionalParams,\n BackupScheduleGroupsCreateOrUpdateResponse,\n BackupScheduleGroupsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupScheduleGroups operations. */\nexport class BackupScheduleGroupsImpl implements BackupScheduleGroups {\n private readonly client: StorSimpleManagementClient;\n\n /**\n * Initialize a new instance of the class BackupScheduleGroups class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimpleManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves all the backup schedule groups in a device.\n * @param deviceName The name of the device.\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?: BackupScheduleGroupsListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<BackupScheduleGroup> {\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?: BackupScheduleGroupsListByDeviceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<BackupScheduleGroup[]> {\n let result: BackupScheduleGroupsListByDeviceResponse;\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?: BackupScheduleGroupsListByDeviceOptionalParams\n ): AsyncIterableIterator<BackupScheduleGroup> {\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 * Retrieves all the backup schedule groups in a device.\n * @param deviceName The name of the device.\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?: BackupScheduleGroupsListByDeviceOptionalParams\n ): Promise<BackupScheduleGroupsListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Returns the properties of the specified backup schedule group name.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\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 scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsGetOptionalParams\n ): Promise<BackupScheduleGroupsGetResponse> {\n return this.client.sendOperationRequest(\n {\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or Updates the backup schedule Group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param scheduleGroup The schedule group to be created\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n scheduleGroup: BackupScheduleGroup,\n options?: BackupScheduleGroupsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<BackupScheduleGroupsCreateOrUpdateResponse>,\n BackupScheduleGroupsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<BackupScheduleGroupsCreateOrUpdateResponse> => {\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 scheduleGroupName,\n resourceGroupName,\n managerName,\n scheduleGroup,\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 Group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param scheduleGroup The schedule group to be created\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n deviceName: string,\n scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n scheduleGroup: BackupScheduleGroup,\n options?: BackupScheduleGroupsCreateOrUpdateOptionalParams\n ): Promise<BackupScheduleGroupsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n deviceName,\n scheduleGroupName,\n resourceGroupName,\n managerName,\n scheduleGroup,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the backup schedule group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\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 scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsDeleteOptionalParams\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 scheduleGroupName,\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 group.\n * @param deviceName The name of the device.\n * @param scheduleGroupName The name of the schedule group.\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 scheduleGroupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupScheduleGroupsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n scheduleGroupName,\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}/backupScheduleGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\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}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n default: {\n bodyMapper: Mappers.ErrorModel\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.scheduleGroupName\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}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 201: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 202: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n 204: {\n bodyMapper: Mappers.BackupScheduleGroup\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.scheduleGroup,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.scheduleGroupName\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}/backupScheduleGroups/{scheduleGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\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.scheduleGroupName\n ],\n headerParameters: [Parameters.accept],\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
|
|
@@ -41,52 +42,35 @@ class BackupsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
52
|
+
async *listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._listByManager(resourceGroupName, managerName, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listByManagerNext(resourceGroupName, managerName, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
listByManagerPagingAll(resourceGroupName, managerName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByManagerPagingPage(resourceGroupName, managerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
70
|
+
async *listByManagerPagingAll(resourceGroupName, managerName, options) {
|
|
71
|
+
for await (const page of this.listByManagerPagingPage(resourceGroupName, managerName, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* Retrieves all the backups in a device. Can be used to get the backups for failover also.
|
|
@@ -105,52 +89,35 @@ class BackupsImpl {
|
|
|
105
89
|
return this;
|
|
106
90
|
},
|
|
107
91
|
byPage: (settings) => {
|
|
108
|
-
if (settings
|
|
92
|
+
if (settings?.maxPageSize) {
|
|
109
93
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
110
94
|
}
|
|
111
95
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
112
96
|
}
|
|
113
97
|
};
|
|
114
98
|
}
|
|
115
|
-
listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
});
|
|
99
|
+
async *listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
100
|
+
let result;
|
|
101
|
+
let continuationToken = settings?.continuationToken;
|
|
102
|
+
if (!continuationToken) {
|
|
103
|
+
result = await this._listByDevice(deviceName, resourceGroupName, managerName, options);
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
107
|
+
yield page;
|
|
108
|
+
}
|
|
109
|
+
while (continuationToken) {
|
|
110
|
+
result = await this._listByDeviceNext(deviceName, resourceGroupName, managerName, continuationToken, options);
|
|
111
|
+
continuationToken = result.nextLink;
|
|
112
|
+
let page = result.value || [];
|
|
113
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
114
|
+
yield page;
|
|
115
|
+
}
|
|
134
116
|
}
|
|
135
|
-
listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
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) {
|
|
140
|
-
_c = _f.value;
|
|
141
|
-
_d = false;
|
|
142
|
-
const page = _c;
|
|
143
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
147
|
-
finally {
|
|
148
|
-
try {
|
|
149
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
150
|
-
}
|
|
151
|
-
finally { if (e_2) throw e_2.error; }
|
|
152
|
-
}
|
|
153
|
-
});
|
|
117
|
+
async *listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
118
|
+
for await (const page of this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)) {
|
|
119
|
+
yield* page;
|
|
120
|
+
}
|
|
154
121
|
}
|
|
155
122
|
/**
|
|
156
123
|
* Retrieves all the backups in a manager.
|
|
@@ -184,14 +151,19 @@ class BackupsImpl {
|
|
|
184
151
|
return this.client.sendOperationRequest(args, spec);
|
|
185
152
|
};
|
|
186
153
|
const sendOperation = async (args, spec) => {
|
|
187
|
-
var _a;
|
|
188
154
|
let currentRawResponse = undefined;
|
|
189
|
-
const providedCallback =
|
|
155
|
+
const providedCallback = args.options?.onResponse;
|
|
190
156
|
const callback = (rawResponse, flatResponse) => {
|
|
191
157
|
currentRawResponse = rawResponse;
|
|
192
|
-
providedCallback
|
|
158
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
159
|
+
};
|
|
160
|
+
const updatedArgs = {
|
|
161
|
+
...args,
|
|
162
|
+
options: {
|
|
163
|
+
...args.options,
|
|
164
|
+
onResponse: callback
|
|
165
|
+
}
|
|
193
166
|
};
|
|
194
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
195
167
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
196
168
|
return {
|
|
197
169
|
flatResponse,
|
|
@@ -204,8 +176,8 @@ class BackupsImpl {
|
|
|
204
176
|
};
|
|
205
177
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { deviceName, backupName, resourceGroupName, managerName, options }, deleteOperationSpec);
|
|
206
178
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
207
|
-
resumeFrom: options
|
|
208
|
-
intervalInMs: options
|
|
179
|
+
resumeFrom: options?.resumeFrom,
|
|
180
|
+
intervalInMs: options?.updateIntervalInMs
|
|
209
181
|
});
|
|
210
182
|
await poller.poll();
|
|
211
183
|
return poller;
|
|
@@ -237,14 +209,19 @@ class BackupsImpl {
|
|
|
237
209
|
return this.client.sendOperationRequest(args, spec);
|
|
238
210
|
};
|
|
239
211
|
const sendOperation = async (args, spec) => {
|
|
240
|
-
var _a;
|
|
241
212
|
let currentRawResponse = undefined;
|
|
242
|
-
const providedCallback =
|
|
213
|
+
const providedCallback = args.options?.onResponse;
|
|
243
214
|
const callback = (rawResponse, flatResponse) => {
|
|
244
215
|
currentRawResponse = rawResponse;
|
|
245
|
-
providedCallback
|
|
216
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
217
|
+
};
|
|
218
|
+
const updatedArgs = {
|
|
219
|
+
...args,
|
|
220
|
+
options: {
|
|
221
|
+
...args.options,
|
|
222
|
+
onResponse: callback
|
|
223
|
+
}
|
|
246
224
|
};
|
|
247
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
248
225
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
249
226
|
return {
|
|
250
227
|
flatResponse,
|
|
@@ -265,8 +242,8 @@ class BackupsImpl {
|
|
|
265
242
|
options
|
|
266
243
|
}, cloneOperationSpec);
|
|
267
244
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
268
|
-
resumeFrom: options
|
|
269
|
-
intervalInMs: options
|
|
245
|
+
resumeFrom: options?.resumeFrom,
|
|
246
|
+
intervalInMs: options?.updateIntervalInMs
|
|
270
247
|
});
|
|
271
248
|
await poller.poll();
|
|
272
249
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backups.js","sourceRoot":"","sources":["../../../src/operations/backups.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAgBxC,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CACl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C,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { Backups } 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 { StorSimpleManagementClient } from \"../storSimpleManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n Backup,\n BackupsListByManagerNextOptionalParams,\n BackupsListByManagerOptionalParams,\n BackupsListByManagerResponse,\n BackupsListByDeviceNextOptionalParams,\n BackupsListByDeviceOptionalParams,\n BackupsListByDeviceResponse,\n BackupsDeleteOptionalParams,\n CloneRequest,\n BackupsCloneOptionalParams,\n BackupsListByManagerNextResponse,\n BackupsListByDeviceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Backups operations. */\nexport class BackupsImpl implements Backups {\n private readonly client: StorSimpleManagementClient;\n\n /**\n * Initialize a new instance of the class Backups class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimpleManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves all the backups in a manager.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n public listByManager(\n resourceGroupName: string,\n managerName: string,\n options?: BackupsListByManagerOptionalParams\n ): PagedAsyncIterableIterator<Backup> {\n const iter = this.listByManagerPagingAll(\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.listByManagerPagingPage(\n resourceGroupName,\n managerName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByManagerPagingPage(\n resourceGroupName: string,\n managerName: string,\n options?: BackupsListByManagerOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Backup[]> {\n let result: BackupsListByManagerResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByManager(\n resourceGroupName,\n managerName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByManagerNext(\n resourceGroupName,\n managerName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByManagerPagingAll(\n resourceGroupName: string,\n managerName: string,\n options?: BackupsListByManagerOptionalParams\n ): AsyncIterableIterator<Backup> {\n for await (const page of this.listByManagerPagingPage(\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all the backups in a device. Can be used to get the backups for failover also.\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?: BackupsListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<Backup> {\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?: BackupsListByDeviceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Backup[]> {\n let result: BackupsListByDeviceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByDevice(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByDeviceNext(\n deviceName,\n resourceGroupName,\n managerName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByDevicePagingAll(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupsListByDeviceOptionalParams\n ): AsyncIterableIterator<Backup> {\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 * Retrieves all the backups in a manager.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n private _listByManager(\n resourceGroupName: string,\n managerName: string,\n options?: BackupsListByManagerOptionalParams\n ): Promise<BackupsListByManagerResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, options },\n listByManagerOperationSpec\n );\n }\n\n /**\n * Retrieves all the backups in a device. Can be used to get the backups for failover also.\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?: BackupsListByDeviceOptionalParams\n ): Promise<BackupsListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Deletes the backup.\n * @param deviceName The device name.\n * @param backupName The backup name.\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 backupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupsDeleteOptionalParams\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, backupName, 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.\n * @param deviceName The device name.\n * @param backupName The backup name.\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 backupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n backupName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Clones the given backup element to a new disk or share with given details.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param elementName The backup element name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param cloneRequest The clone request.\n * @param options The options parameters.\n */\n async beginClone(\n deviceName: string,\n backupName: string,\n elementName: string,\n resourceGroupName: string,\n managerName: string,\n cloneRequest: CloneRequest,\n options?: BackupsCloneOptionalParams\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 backupName,\n elementName,\n resourceGroupName,\n managerName,\n cloneRequest,\n options\n },\n cloneOperationSpec\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 * Clones the given backup element to a new disk or share with given details.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param elementName The backup element name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param cloneRequest The clone request.\n * @param options The options parameters.\n */\n async beginCloneAndWait(\n deviceName: string,\n backupName: string,\n elementName: string,\n resourceGroupName: string,\n managerName: string,\n cloneRequest: CloneRequest,\n options?: BackupsCloneOptionalParams\n ): Promise<void> {\n const poller = await this.beginClone(\n deviceName,\n backupName,\n elementName,\n resourceGroupName,\n managerName,\n cloneRequest,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByManagerNext\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param nextLink The nextLink from the previous successful call to the ListByManager method.\n * @param options The options parameters.\n */\n private _listByManagerNext(\n resourceGroupName: string,\n managerName: string,\n nextLink: string,\n options?: BackupsListByManagerNextOptionalParams\n ): Promise<BackupsListByManagerNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, nextLink, options },\n listByManagerNextOperationSpec\n );\n }\n\n /**\n * ListByDeviceNext\n * @param deviceName The device name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param nextLink The nextLink from the previous successful call to the ListByDevice method.\n * @param options The options parameters.\n */\n private _listByDeviceNext(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n nextLink: string,\n options?: BackupsListByDeviceNextOptionalParams\n ): Promise<BackupsListByDeviceNextResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, nextLink, options },\n listByDeviceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByManagerOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/backups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByDeviceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.forFailover\n ],\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 deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups/{backupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\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.backupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cloneOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups/{backupName}/elements/{elementName}/clone\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.cloneRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupName,\n Parameters.elementName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByManagerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByDeviceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.nextLink,\n Parameters.deviceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"backups.js","sourceRoot":"","sources":["../../../src/operations/backups.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAgBxC,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,WAAW;IACL,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAA4C;QAE5C,MAAM,IAAI,GAAG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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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { Backups } 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 { StorSimpleManagementClient } from \"../storSimpleManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n Backup,\n BackupsListByManagerNextOptionalParams,\n BackupsListByManagerOptionalParams,\n BackupsListByManagerResponse,\n BackupsListByDeviceNextOptionalParams,\n BackupsListByDeviceOptionalParams,\n BackupsListByDeviceResponse,\n BackupsDeleteOptionalParams,\n CloneRequest,\n BackupsCloneOptionalParams,\n BackupsListByManagerNextResponse,\n BackupsListByDeviceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Backups operations. */\nexport class BackupsImpl implements Backups {\n private readonly client: StorSimpleManagementClient;\n\n /**\n * Initialize a new instance of the class Backups class.\n * @param client Reference to the service client\n */\n constructor(client: StorSimpleManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves all the backups in a manager.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n public listByManager(\n resourceGroupName: string,\n managerName: string,\n options?: BackupsListByManagerOptionalParams\n ): PagedAsyncIterableIterator<Backup> {\n const iter = this.listByManagerPagingAll(\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.listByManagerPagingPage(\n resourceGroupName,\n managerName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByManagerPagingPage(\n resourceGroupName: string,\n managerName: string,\n options?: BackupsListByManagerOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Backup[]> {\n let result: BackupsListByManagerResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByManager(\n resourceGroupName,\n managerName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByManagerNext(\n resourceGroupName,\n managerName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByManagerPagingAll(\n resourceGroupName: string,\n managerName: string,\n options?: BackupsListByManagerOptionalParams\n ): AsyncIterableIterator<Backup> {\n for await (const page of this.listByManagerPagingPage(\n resourceGroupName,\n managerName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all the backups in a device. Can be used to get the backups for failover also.\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?: BackupsListByDeviceOptionalParams\n ): PagedAsyncIterableIterator<Backup> {\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?: BackupsListByDeviceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Backup[]> {\n let result: BackupsListByDeviceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByDevice(\n deviceName,\n resourceGroupName,\n managerName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByDeviceNext(\n deviceName,\n resourceGroupName,\n managerName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByDevicePagingAll(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupsListByDeviceOptionalParams\n ): AsyncIterableIterator<Backup> {\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 * Retrieves all the backups in a manager.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param options The options parameters.\n */\n private _listByManager(\n resourceGroupName: string,\n managerName: string,\n options?: BackupsListByManagerOptionalParams\n ): Promise<BackupsListByManagerResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, options },\n listByManagerOperationSpec\n );\n }\n\n /**\n * Retrieves all the backups in a device. Can be used to get the backups for failover also.\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?: BackupsListByDeviceOptionalParams\n ): Promise<BackupsListByDeviceResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, options },\n listByDeviceOperationSpec\n );\n }\n\n /**\n * Deletes the backup.\n * @param deviceName The device name.\n * @param backupName The backup name.\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 backupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupsDeleteOptionalParams\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, backupName, 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.\n * @param deviceName The device name.\n * @param backupName The backup name.\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 backupName: string,\n resourceGroupName: string,\n managerName: string,\n options?: BackupsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n deviceName,\n backupName,\n resourceGroupName,\n managerName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Clones the given backup element to a new disk or share with given details.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param elementName The backup element name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param cloneRequest The clone request.\n * @param options The options parameters.\n */\n async beginClone(\n deviceName: string,\n backupName: string,\n elementName: string,\n resourceGroupName: string,\n managerName: string,\n cloneRequest: CloneRequest,\n options?: BackupsCloneOptionalParams\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 backupName,\n elementName,\n resourceGroupName,\n managerName,\n cloneRequest,\n options\n },\n cloneOperationSpec\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 * Clones the given backup element to a new disk or share with given details.\n * @param deviceName The device name.\n * @param backupName The backup name.\n * @param elementName The backup element name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param cloneRequest The clone request.\n * @param options The options parameters.\n */\n async beginCloneAndWait(\n deviceName: string,\n backupName: string,\n elementName: string,\n resourceGroupName: string,\n managerName: string,\n cloneRequest: CloneRequest,\n options?: BackupsCloneOptionalParams\n ): Promise<void> {\n const poller = await this.beginClone(\n deviceName,\n backupName,\n elementName,\n resourceGroupName,\n managerName,\n cloneRequest,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByManagerNext\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param nextLink The nextLink from the previous successful call to the ListByManager method.\n * @param options The options parameters.\n */\n private _listByManagerNext(\n resourceGroupName: string,\n managerName: string,\n nextLink: string,\n options?: BackupsListByManagerNextOptionalParams\n ): Promise<BackupsListByManagerNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managerName, nextLink, options },\n listByManagerNextOperationSpec\n );\n }\n\n /**\n * ListByDeviceNext\n * @param deviceName The device name.\n * @param resourceGroupName The resource group name\n * @param managerName The manager name\n * @param nextLink The nextLink from the previous successful call to the ListByDevice method.\n * @param options The options parameters.\n */\n private _listByDeviceNext(\n deviceName: string,\n resourceGroupName: string,\n managerName: string,\n nextLink: string,\n options?: BackupsListByDeviceNextOptionalParams\n ): Promise<BackupsListByDeviceNextResponse> {\n return this.client.sendOperationRequest(\n { deviceName, resourceGroupName, managerName, nextLink, options },\n listByDeviceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByManagerOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/backups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByDeviceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.forFailover\n ],\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 deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups/{backupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\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.backupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cloneOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/backups/{backupName}/elements/{elementName}/clone\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.cloneRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.deviceName,\n Parameters.backupName,\n Parameters.elementName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByManagerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByDeviceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managerName,\n Parameters.nextLink,\n Parameters.deviceName\n ],\n headerParameters: [Parameters.accept],\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 ChapSettingsOperations operations. */
|
|
19
19
|
class ChapSettingsOperationsImpl {
|
|
20
|
+
client;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize a new instance of the class ChapSettingsOperations class.
|
|
22
23
|
* @param client Reference to the service client
|
|
@@ -41,39 +42,22 @@ class ChapSettingsOperationsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, _settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
yield yield tslib_1.__await(result.value || []);
|
|
56
|
-
});
|
|
52
|
+
async *listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, _settings) {
|
|
53
|
+
let result;
|
|
54
|
+
result = await this._listByDevice(deviceName, resourceGroupName, managerName, options);
|
|
55
|
+
yield result.value || [];
|
|
57
56
|
}
|
|
58
|
-
listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
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) {
|
|
63
|
-
_c = _f.value;
|
|
64
|
-
_d = false;
|
|
65
|
-
const page = _c;
|
|
66
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
70
|
-
finally {
|
|
71
|
-
try {
|
|
72
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
73
|
-
}
|
|
74
|
-
finally { if (e_1) throw e_1.error; }
|
|
75
|
-
}
|
|
76
|
-
});
|
|
57
|
+
async *listByDevicePagingAll(deviceName, resourceGroupName, managerName, options) {
|
|
58
|
+
for await (const page of this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options)) {
|
|
59
|
+
yield* page;
|
|
60
|
+
}
|
|
77
61
|
}
|
|
78
62
|
/**
|
|
79
63
|
* Retrieves all the chap settings in a device.
|
|
@@ -110,14 +94,19 @@ class ChapSettingsOperationsImpl {
|
|
|
110
94
|
return this.client.sendOperationRequest(args, spec);
|
|
111
95
|
};
|
|
112
96
|
const sendOperation = async (args, spec) => {
|
|
113
|
-
var _a;
|
|
114
97
|
let currentRawResponse = undefined;
|
|
115
|
-
const providedCallback =
|
|
98
|
+
const providedCallback = args.options?.onResponse;
|
|
116
99
|
const callback = (rawResponse, flatResponse) => {
|
|
117
100
|
currentRawResponse = rawResponse;
|
|
118
|
-
providedCallback
|
|
101
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
102
|
+
};
|
|
103
|
+
const updatedArgs = {
|
|
104
|
+
...args,
|
|
105
|
+
options: {
|
|
106
|
+
...args.options,
|
|
107
|
+
onResponse: callback
|
|
108
|
+
}
|
|
119
109
|
};
|
|
120
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
121
110
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
122
111
|
return {
|
|
123
112
|
flatResponse,
|
|
@@ -137,8 +126,8 @@ class ChapSettingsOperationsImpl {
|
|
|
137
126
|
options
|
|
138
127
|
}, createOrUpdateOperationSpec);
|
|
139
128
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
140
|
-
resumeFrom: options
|
|
141
|
-
intervalInMs: options
|
|
129
|
+
resumeFrom: options?.resumeFrom,
|
|
130
|
+
intervalInMs: options?.updateIntervalInMs
|
|
142
131
|
});
|
|
143
132
|
await poller.poll();
|
|
144
133
|
return poller;
|
|
@@ -169,14 +158,19 @@ class ChapSettingsOperationsImpl {
|
|
|
169
158
|
return this.client.sendOperationRequest(args, spec);
|
|
170
159
|
};
|
|
171
160
|
const sendOperation = async (args, spec) => {
|
|
172
|
-
var _a;
|
|
173
161
|
let currentRawResponse = undefined;
|
|
174
|
-
const providedCallback =
|
|
162
|
+
const providedCallback = args.options?.onResponse;
|
|
175
163
|
const callback = (rawResponse, flatResponse) => {
|
|
176
164
|
currentRawResponse = rawResponse;
|
|
177
|
-
providedCallback
|
|
165
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
166
|
+
};
|
|
167
|
+
const updatedArgs = {
|
|
168
|
+
...args,
|
|
169
|
+
options: {
|
|
170
|
+
...args.options,
|
|
171
|
+
onResponse: callback
|
|
172
|
+
}
|
|
178
173
|
};
|
|
179
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
180
174
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
181
175
|
return {
|
|
182
176
|
flatResponse,
|
|
@@ -189,8 +183,8 @@ class ChapSettingsOperationsImpl {
|
|
|
189
183
|
};
|
|
190
184
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { deviceName, chapUserName, resourceGroupName, managerName, options }, deleteOperationSpec);
|
|
191
185
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
192
|
-
resumeFrom: options
|
|
193
|
-
intervalInMs: options
|
|
186
|
+
resumeFrom: options?.resumeFrom,
|
|
187
|
+
intervalInMs: options?.updateIntervalInMs
|
|
194
188
|
});
|
|
195
189
|
await poller.poll();
|
|
196
190
|
return poller;
|