@azure/arm-labservices 3.1.1-alpha.20250718.1 → 3.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.
Files changed (115) hide show
  1. package/dist/browser/labServicesClient.js +23 -5
  2. package/dist/browser/labServicesClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +11 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +257 -121
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/images.js +23 -40
  8. package/dist/browser/operations/images.js.map +1 -1
  9. package/dist/browser/operations/labPlans.js +89 -103
  10. package/dist/browser/operations/labPlans.js.map +1 -1
  11. package/dist/browser/operations/labs.js +100 -109
  12. package/dist/browser/operations/labs.js.map +1 -1
  13. package/dist/browser/operations/operationResults.js +1 -0
  14. package/dist/browser/operations/operationResults.js.map +1 -1
  15. package/dist/browser/operations/operations.js +23 -40
  16. package/dist/browser/operations/operations.js.map +1 -1
  17. package/dist/browser/operations/schedules.js +34 -46
  18. package/dist/browser/operations/schedules.js.map +1 -1
  19. package/dist/browser/operations/skus.js +23 -40
  20. package/dist/browser/operations/skus.js.map +1 -1
  21. package/dist/browser/operations/usages.js +23 -40
  22. package/dist/browser/operations/usages.js.map +1 -1
  23. package/dist/browser/operations/users.js +67 -64
  24. package/dist/browser/operations/users.js.map +1 -1
  25. package/dist/browser/operations/virtualMachines.js +78 -70
  26. package/dist/browser/operations/virtualMachines.js.map +1 -1
  27. package/dist/browser/pagingHelper.js +2 -4
  28. package/dist/browser/pagingHelper.js.map +1 -1
  29. package/dist/commonjs/labServicesClient.js +23 -5
  30. package/dist/commonjs/labServicesClient.js.map +1 -1
  31. package/dist/commonjs/lroImpl.js +11 -3
  32. package/dist/commonjs/lroImpl.js.map +1 -1
  33. package/dist/commonjs/models/mappers.js +257 -121
  34. package/dist/commonjs/models/mappers.js.map +1 -1
  35. package/dist/commonjs/operations/images.js +23 -39
  36. package/dist/commonjs/operations/images.js.map +1 -1
  37. package/dist/commonjs/operations/labPlans.js +89 -102
  38. package/dist/commonjs/operations/labPlans.js.map +1 -1
  39. package/dist/commonjs/operations/labs.js +100 -108
  40. package/dist/commonjs/operations/labs.js.map +1 -1
  41. package/dist/commonjs/operations/operationResults.js +1 -0
  42. package/dist/commonjs/operations/operationResults.js.map +1 -1
  43. package/dist/commonjs/operations/operations.js +23 -39
  44. package/dist/commonjs/operations/operations.js.map +1 -1
  45. package/dist/commonjs/operations/schedules.js +34 -45
  46. package/dist/commonjs/operations/schedules.js.map +1 -1
  47. package/dist/commonjs/operations/skus.js +23 -39
  48. package/dist/commonjs/operations/skus.js.map +1 -1
  49. package/dist/commonjs/operations/usages.js +23 -39
  50. package/dist/commonjs/operations/usages.js.map +1 -1
  51. package/dist/commonjs/operations/users.js +67 -63
  52. package/dist/commonjs/operations/users.js.map +1 -1
  53. package/dist/commonjs/operations/virtualMachines.js +78 -69
  54. package/dist/commonjs/operations/virtualMachines.js.map +1 -1
  55. package/dist/commonjs/pagingHelper.js +2 -4
  56. package/dist/commonjs/pagingHelper.js.map +1 -1
  57. package/dist/commonjs/tsdoc-metadata.json +11 -11
  58. package/dist/esm/labServicesClient.js +23 -5
  59. package/dist/esm/labServicesClient.js.map +1 -1
  60. package/dist/esm/lroImpl.js +11 -3
  61. package/dist/esm/lroImpl.js.map +1 -1
  62. package/dist/esm/models/mappers.js +257 -121
  63. package/dist/esm/models/mappers.js.map +1 -1
  64. package/dist/esm/operations/images.js +23 -40
  65. package/dist/esm/operations/images.js.map +1 -1
  66. package/dist/esm/operations/labPlans.js +89 -103
  67. package/dist/esm/operations/labPlans.js.map +1 -1
  68. package/dist/esm/operations/labs.js +100 -109
  69. package/dist/esm/operations/labs.js.map +1 -1
  70. package/dist/esm/operations/operationResults.js +1 -0
  71. package/dist/esm/operations/operationResults.js.map +1 -1
  72. package/dist/esm/operations/operations.js +23 -40
  73. package/dist/esm/operations/operations.js.map +1 -1
  74. package/dist/esm/operations/schedules.js +34 -46
  75. package/dist/esm/operations/schedules.js.map +1 -1
  76. package/dist/esm/operations/skus.js +23 -40
  77. package/dist/esm/operations/skus.js.map +1 -1
  78. package/dist/esm/operations/usages.js +23 -40
  79. package/dist/esm/operations/usages.js.map +1 -1
  80. package/dist/esm/operations/users.js +67 -64
  81. package/dist/esm/operations/users.js.map +1 -1
  82. package/dist/esm/operations/virtualMachines.js +78 -70
  83. package/dist/esm/operations/virtualMachines.js.map +1 -1
  84. package/dist/esm/pagingHelper.js +2 -4
  85. package/dist/esm/pagingHelper.js.map +1 -1
  86. package/dist/react-native/labServicesClient.js +23 -5
  87. package/dist/react-native/labServicesClient.js.map +1 -1
  88. package/dist/react-native/lroImpl.js +11 -3
  89. package/dist/react-native/lroImpl.js.map +1 -1
  90. package/dist/react-native/models/mappers.js +257 -121
  91. package/dist/react-native/models/mappers.js.map +1 -1
  92. package/dist/react-native/operations/images.js +23 -40
  93. package/dist/react-native/operations/images.js.map +1 -1
  94. package/dist/react-native/operations/labPlans.js +89 -103
  95. package/dist/react-native/operations/labPlans.js.map +1 -1
  96. package/dist/react-native/operations/labs.js +100 -109
  97. package/dist/react-native/operations/labs.js.map +1 -1
  98. package/dist/react-native/operations/operationResults.js +1 -0
  99. package/dist/react-native/operations/operationResults.js.map +1 -1
  100. package/dist/react-native/operations/operations.js +23 -40
  101. package/dist/react-native/operations/operations.js.map +1 -1
  102. package/dist/react-native/operations/schedules.js +34 -46
  103. package/dist/react-native/operations/schedules.js.map +1 -1
  104. package/dist/react-native/operations/skus.js +23 -40
  105. package/dist/react-native/operations/skus.js.map +1 -1
  106. package/dist/react-native/operations/usages.js +23 -40
  107. package/dist/react-native/operations/usages.js.map +1 -1
  108. package/dist/react-native/operations/users.js +67 -64
  109. package/dist/react-native/operations/users.js.map +1 -1
  110. package/dist/react-native/operations/virtualMachines.js +78 -70
  111. package/dist/react-native/operations/virtualMachines.js.map +1 -1
  112. package/dist/react-native/pagingHelper.js +2 -4
  113. package/dist/react-native/pagingHelper.js.map +1 -1
  114. package/package.json +2 -2
  115. package/review/arm-labservices-node.api.md +1198 -1198
@@ -1 +1 @@
1
- {"version":3,"file":"labPlans.js","sourceRoot":"","sources":["../../../src/operations/labPlans.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAuBxC,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAyB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,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,4BAA4B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,4BAA4B,CACzC,OAAkD,EAClD,QAAuB;;YAEvB,IAAI,MAA0C,CAAC;YAC/C,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;gBACvB,MAAM,GAAG,sBAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC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IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;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 { LabPlans } 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 { LabServicesClient } from \"../labServicesClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n LabPlan,\n LabPlansListBySubscriptionNextOptionalParams,\n LabPlansListBySubscriptionOptionalParams,\n LabPlansListBySubscriptionResponse,\n LabPlansListByResourceGroupNextOptionalParams,\n LabPlansListByResourceGroupOptionalParams,\n LabPlansListByResourceGroupResponse,\n LabPlansGetOptionalParams,\n LabPlansGetResponse,\n LabPlansCreateOrUpdateOptionalParams,\n LabPlansCreateOrUpdateResponse,\n LabPlanUpdate,\n LabPlansUpdateOptionalParams,\n LabPlansUpdateResponse,\n LabPlansDeleteOptionalParams,\n SaveImageBody,\n LabPlansSaveImageOptionalParams,\n LabPlansListBySubscriptionNextResponse,\n LabPlansListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LabPlans operations. */\nexport class LabPlansImpl implements LabPlans {\n private readonly client: LabServicesClient;\n\n /**\n * Initialize a new instance of the class LabPlans class.\n * @param client Reference to the service client\n */\n constructor(client: LabServicesClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of all lab plans within a subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: LabPlansListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<LabPlan> {\n const iter = this.listBySubscriptionPagingAll(options);\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.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: LabPlansListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LabPlan[]> {\n let result: LabPlansListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: LabPlansListBySubscriptionOptionalParams\n ): AsyncIterableIterator<LabPlan> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all lab plans for a subscription and resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: LabPlansListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<LabPlan> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: LabPlansListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LabPlan[]> {\n let result: LabPlansListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: LabPlansListByResourceGroupOptionalParams\n ): AsyncIterableIterator<LabPlan> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all lab plans within a subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: LabPlansListBySubscriptionOptionalParams\n ): Promise<LabPlansListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Returns a list of all lab plans for a subscription and resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: LabPlansListByResourceGroupOptionalParams\n ): Promise<LabPlansListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Retrieves the properties of a Lab Plan.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n labPlanName: string,\n options?: LabPlansGetOptionalParams\n ): Promise<LabPlansGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, labPlanName, options },\n getOperationSpec\n );\n }\n\n /**\n * Operation to create or update a Lab Plan resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n labPlanName: string,\n body: LabPlan,\n options?: LabPlansCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<LabPlansCreateOrUpdateResponse>,\n LabPlansCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<LabPlansCreateOrUpdateResponse> => {\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 { resourceGroupName, labPlanName, body, options },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"original-uri\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Operation to create or update a Lab Plan resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n labPlanName: string,\n body: LabPlan,\n options?: LabPlansCreateOrUpdateOptionalParams\n ): Promise<LabPlansCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n labPlanName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Operation to update a Lab Plan resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n labPlanName: string,\n body: LabPlanUpdate,\n options?: LabPlansUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<LabPlansUpdateResponse>,\n LabPlansUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<LabPlansUpdateResponse> => {\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 { resourceGroupName, labPlanName, body, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Operation to update a Lab Plan resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n labPlanName: string,\n body: LabPlanUpdate,\n options?: LabPlansUpdateOptionalParams\n ): Promise<LabPlansUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n labPlanName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a\n * lab plan, nor does it delete shared images added to a gallery via the lab plan permission container.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n labPlanName: string,\n options?: LabPlansDeleteOptionalParams\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 { resourceGroupName, labPlanName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a\n * lab plan, nor does it delete shared images added to a gallery via the lab plan permission container.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n labPlanName: string,\n options?: LabPlansDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n labPlanName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Saves an image from a lab VM to the attached shared image gallery.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginSaveImage(\n resourceGroupName: string,\n labPlanName: string,\n body: SaveImageBody,\n options?: LabPlansSaveImageOptionalParams\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 { resourceGroupName, labPlanName, body, options },\n saveImageOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Saves an image from a lab VM to the attached shared image gallery.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginSaveImageAndWait(\n resourceGroupName: string,\n labPlanName: string,\n body: SaveImageBody,\n options?: LabPlansSaveImageOptionalParams\n ): Promise<void> {\n const poller = await this.beginSaveImage(\n resourceGroupName,\n labPlanName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: LabPlansListBySubscriptionNextOptionalParams\n ): Promise<LabPlansListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: LabPlansListByResourceGroupNextOptionalParams\n ): Promise<LabPlansListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/labPlans\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedLabPlans\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedLabPlans\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LabPlan\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labPlanName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LabPlan\n },\n 201: {\n bodyMapper: Mappers.LabPlan\n },\n 202: {\n bodyMapper: Mappers.LabPlan\n },\n 204: {\n bodyMapper: Mappers.LabPlan\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labPlanName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.LabPlan\n },\n 201: {\n bodyMapper: Mappers.LabPlan\n },\n 202: {\n bodyMapper: Mappers.LabPlan\n },\n 204: {\n bodyMapper: Mappers.LabPlan\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labPlanName\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.LabServices/labPlans/{labPlanName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labPlanName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst saveImageOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/saveImage\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labPlanName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedLabPlans\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedLabPlans\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"labPlans.js","sourceRoot":"","sources":["../../../src/operations/labPlans.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAuBxC,4CAA4C;AAC5C,4CAA4C;AAC5C,MA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AM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;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 { LabPlans } 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 { LabServicesClient } from \"../labServicesClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n LabPlan,\n LabPlansListBySubscriptionNextOptionalParams,\n LabPlansListBySubscriptionOptionalParams,\n LabPlansListBySubscriptionResponse,\n LabPlansListByResourceGroupNextOptionalParams,\n LabPlansListByResourceGroupOptionalParams,\n LabPlansListByResourceGroupResponse,\n LabPlansGetOptionalParams,\n LabPlansGetResponse,\n LabPlansCreateOrUpdateOptionalParams,\n LabPlansCreateOrUpdateResponse,\n LabPlanUpdate,\n LabPlansUpdateOptionalParams,\n LabPlansUpdateResponse,\n LabPlansDeleteOptionalParams,\n SaveImageBody,\n LabPlansSaveImageOptionalParams,\n LabPlansListBySubscriptionNextResponse,\n LabPlansListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LabPlans operations. */\nexport class LabPlansImpl implements LabPlans {\n private readonly client: LabServicesClient;\n\n /**\n * Initialize a new instance of the class LabPlans class.\n * @param client Reference to the service client\n */\n constructor(client: LabServicesClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of all lab plans within a subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: LabPlansListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<LabPlan> {\n const iter = this.listBySubscriptionPagingAll(options);\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.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: LabPlansListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LabPlan[]> {\n let result: LabPlansListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: LabPlansListBySubscriptionOptionalParams\n ): AsyncIterableIterator<LabPlan> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all lab plans for a subscription and resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: LabPlansListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<LabPlan> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: LabPlansListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LabPlan[]> {\n let result: LabPlansListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: LabPlansListByResourceGroupOptionalParams\n ): AsyncIterableIterator<LabPlan> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all lab plans within a subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: LabPlansListBySubscriptionOptionalParams\n ): Promise<LabPlansListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Returns a list of all lab plans for a subscription and resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: LabPlansListByResourceGroupOptionalParams\n ): Promise<LabPlansListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Retrieves the properties of a Lab Plan.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n labPlanName: string,\n options?: LabPlansGetOptionalParams\n ): Promise<LabPlansGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, labPlanName, options },\n getOperationSpec\n );\n }\n\n /**\n * Operation to create or update a Lab Plan resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n labPlanName: string,\n body: LabPlan,\n options?: LabPlansCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<LabPlansCreateOrUpdateResponse>,\n LabPlansCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<LabPlansCreateOrUpdateResponse> => {\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 { resourceGroupName, labPlanName, body, options },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"original-uri\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Operation to create or update a Lab Plan resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n labPlanName: string,\n body: LabPlan,\n options?: LabPlansCreateOrUpdateOptionalParams\n ): Promise<LabPlansCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n labPlanName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Operation to update a Lab Plan resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n labPlanName: string,\n body: LabPlanUpdate,\n options?: LabPlansUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<LabPlansUpdateResponse>,\n LabPlansUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<LabPlansUpdateResponse> => {\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 { resourceGroupName, labPlanName, body, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Operation to update a Lab Plan resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n labPlanName: string,\n body: LabPlanUpdate,\n options?: LabPlansUpdateOptionalParams\n ): Promise<LabPlansUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n labPlanName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a\n * lab plan, nor does it delete shared images added to a gallery via the lab plan permission container.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n labPlanName: string,\n options?: LabPlansDeleteOptionalParams\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 { resourceGroupName, labPlanName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a\n * lab plan, nor does it delete shared images added to a gallery via the lab plan permission container.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n labPlanName: string,\n options?: LabPlansDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n labPlanName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Saves an image from a lab VM to the attached shared image gallery.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginSaveImage(\n resourceGroupName: string,\n labPlanName: string,\n body: SaveImageBody,\n options?: LabPlansSaveImageOptionalParams\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 { resourceGroupName, labPlanName, body, options },\n saveImageOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Saves an image from a lab VM to the attached shared image gallery.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labPlanName The name of the lab plan that uniquely identifies it within containing resource\n * group. Used in resource URIs and in UI.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginSaveImageAndWait(\n resourceGroupName: string,\n labPlanName: string,\n body: SaveImageBody,\n options?: LabPlansSaveImageOptionalParams\n ): Promise<void> {\n const poller = await this.beginSaveImage(\n resourceGroupName,\n labPlanName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: LabPlansListBySubscriptionNextOptionalParams\n ): Promise<LabPlansListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: LabPlansListByResourceGroupNextOptionalParams\n ): Promise<LabPlansListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/labPlans\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedLabPlans\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedLabPlans\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LabPlan\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labPlanName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LabPlan\n },\n 201: {\n bodyMapper: Mappers.LabPlan\n },\n 202: {\n bodyMapper: Mappers.LabPlan\n },\n 204: {\n bodyMapper: Mappers.LabPlan\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labPlanName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.LabPlan\n },\n 201: {\n bodyMapper: Mappers.LabPlan\n },\n 202: {\n bodyMapper: Mappers.LabPlan\n },\n 204: {\n bodyMapper: Mappers.LabPlan\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labPlanName\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.LabServices/labPlans/{labPlanName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labPlanName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst saveImageOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/saveImage\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labPlanName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedLabPlans\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedLabPlans\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\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 Labs operations. */
20
20
  class LabsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class Labs class.
23
24
  * @param client Reference to the service client
@@ -39,52 +40,35 @@ class LabsImpl {
39
40
  return this;
40
41
  },
41
42
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
43
44
  throw new Error("maxPageSize is not supported by this operation.");
44
45
  }
45
46
  return this.listBySubscriptionPagingPage(options, settings);
46
47
  }
47
48
  };
48
49
  }
49
- listBySubscriptionPagingPage(options, settings) {
50
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield tslib_1.__await(this._listBySubscription(options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield yield tslib_1.__await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield tslib_1.__await(this._listBySubscriptionNext(continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
- yield yield tslib_1.__await(page);
66
- }
67
- });
50
+ async *listBySubscriptionPagingPage(options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._listBySubscription(options);
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield page;
59
+ }
60
+ while (continuationToken) {
61
+ result = await this._listBySubscriptionNext(continuationToken, options);
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield page;
66
+ }
68
67
  }
69
- listBySubscriptionPagingAll(options) {
70
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__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 tslib_1.__await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
68
+ async *listBySubscriptionPagingAll(options) {
69
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
70
+ yield* page;
71
+ }
88
72
  }
89
73
  /**
90
74
  * Returns a list of all labs in a resource group.
@@ -101,52 +85,35 @@ class LabsImpl {
101
85
  return this;
102
86
  },
103
87
  byPage: (settings) => {
104
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
88
+ if (settings?.maxPageSize) {
105
89
  throw new Error("maxPageSize is not supported by this operation.");
106
90
  }
107
91
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
108
92
  }
109
93
  };
110
94
  }
111
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
112
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
113
- let result;
114
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
115
- if (!continuationToken) {
116
- result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
117
- let page = result.value || [];
118
- continuationToken = result.nextLink;
119
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
120
- yield yield tslib_1.__await(page);
121
- }
122
- while (continuationToken) {
123
- result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
124
- continuationToken = result.nextLink;
125
- let page = result.value || [];
126
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
127
- yield yield tslib_1.__await(page);
128
- }
129
- });
95
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
96
+ let result;
97
+ let continuationToken = settings?.continuationToken;
98
+ if (!continuationToken) {
99
+ result = await this._listByResourceGroup(resourceGroupName, options);
100
+ let page = result.value || [];
101
+ continuationToken = result.nextLink;
102
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
103
+ yield page;
104
+ }
105
+ while (continuationToken) {
106
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
107
+ continuationToken = result.nextLink;
108
+ let page = result.value || [];
109
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
110
+ yield page;
111
+ }
130
112
  }
131
- listByResourceGroupPagingAll(resourceGroupName, options) {
132
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
133
- var _a, e_2, _b, _c;
134
- try {
135
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
136
- _c = _f.value;
137
- _d = false;
138
- const page = _c;
139
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
140
- }
141
- }
142
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
143
- finally {
144
- try {
145
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
146
- }
147
- finally { if (e_2) throw e_2.error; }
148
- }
149
- });
113
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
114
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
115
+ yield* page;
116
+ }
150
117
  }
151
118
  /**
152
119
  * Returns a list of all labs for a subscription.
@@ -186,14 +153,19 @@ class LabsImpl {
186
153
  return this.client.sendOperationRequest(args, spec);
187
154
  };
188
155
  const sendOperation = async (args, spec) => {
189
- var _a;
190
156
  let currentRawResponse = undefined;
191
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
157
+ const providedCallback = args.options?.onResponse;
192
158
  const callback = (rawResponse, flatResponse) => {
193
159
  currentRawResponse = rawResponse;
194
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
160
+ providedCallback?.(rawResponse, flatResponse);
161
+ };
162
+ const updatedArgs = {
163
+ ...args,
164
+ options: {
165
+ ...args.options,
166
+ onResponse: callback
167
+ }
195
168
  };
196
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
197
169
  const flatResponse = await directSendOperation(updatedArgs, spec);
198
170
  return {
199
171
  flatResponse,
@@ -206,8 +178,8 @@ class LabsImpl {
206
178
  };
207
179
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, labName, body, options }, createOrUpdateOperationSpec);
208
180
  const poller = new core_lro_1.LroEngine(lro, {
209
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
210
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
181
+ resumeFrom: options?.resumeFrom,
182
+ intervalInMs: options?.updateIntervalInMs,
211
183
  lroResourceLocationConfig: "original-uri"
212
184
  });
213
185
  await poller.poll();
@@ -238,14 +210,19 @@ class LabsImpl {
238
210
  return this.client.sendOperationRequest(args, spec);
239
211
  };
240
212
  const sendOperation = async (args, spec) => {
241
- var _a;
242
213
  let currentRawResponse = undefined;
243
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
214
+ const providedCallback = args.options?.onResponse;
244
215
  const callback = (rawResponse, flatResponse) => {
245
216
  currentRawResponse = rawResponse;
246
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
217
+ providedCallback?.(rawResponse, flatResponse);
218
+ };
219
+ const updatedArgs = {
220
+ ...args,
221
+ options: {
222
+ ...args.options,
223
+ onResponse: callback
224
+ }
247
225
  };
248
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
249
226
  const flatResponse = await directSendOperation(updatedArgs, spec);
250
227
  return {
251
228
  flatResponse,
@@ -258,8 +235,8 @@ class LabsImpl {
258
235
  };
259
236
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, labName, body, options }, updateOperationSpec);
260
237
  const poller = new core_lro_1.LroEngine(lro, {
261
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
262
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
238
+ resumeFrom: options?.resumeFrom,
239
+ intervalInMs: options?.updateIntervalInMs,
263
240
  lroResourceLocationConfig: "location"
264
241
  });
265
242
  await poller.poll();
@@ -289,14 +266,19 @@ class LabsImpl {
289
266
  return this.client.sendOperationRequest(args, spec);
290
267
  };
291
268
  const sendOperation = async (args, spec) => {
292
- var _a;
293
269
  let currentRawResponse = undefined;
294
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
270
+ const providedCallback = args.options?.onResponse;
295
271
  const callback = (rawResponse, flatResponse) => {
296
272
  currentRawResponse = rawResponse;
297
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
273
+ providedCallback?.(rawResponse, flatResponse);
274
+ };
275
+ const updatedArgs = {
276
+ ...args,
277
+ options: {
278
+ ...args.options,
279
+ onResponse: callback
280
+ }
298
281
  };
299
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
300
282
  const flatResponse = await directSendOperation(updatedArgs, spec);
301
283
  return {
302
284
  flatResponse,
@@ -309,8 +291,8 @@ class LabsImpl {
309
291
  };
310
292
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, labName, options }, deleteOperationSpec);
311
293
  const poller = new core_lro_1.LroEngine(lro, {
312
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
313
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
294
+ resumeFrom: options?.resumeFrom,
295
+ intervalInMs: options?.updateIntervalInMs,
314
296
  lroResourceLocationConfig: "location"
315
297
  });
316
298
  await poller.poll();
@@ -339,14 +321,19 @@ class LabsImpl {
339
321
  return this.client.sendOperationRequest(args, spec);
340
322
  };
341
323
  const sendOperation = async (args, spec) => {
342
- var _a;
343
324
  let currentRawResponse = undefined;
344
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
325
+ const providedCallback = args.options?.onResponse;
345
326
  const callback = (rawResponse, flatResponse) => {
346
327
  currentRawResponse = rawResponse;
347
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
328
+ providedCallback?.(rawResponse, flatResponse);
329
+ };
330
+ const updatedArgs = {
331
+ ...args,
332
+ options: {
333
+ ...args.options,
334
+ onResponse: callback
335
+ }
348
336
  };
349
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
350
337
  const flatResponse = await directSendOperation(updatedArgs, spec);
351
338
  return {
352
339
  flatResponse,
@@ -359,8 +346,8 @@ class LabsImpl {
359
346
  };
360
347
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, labName, options }, publishOperationSpec);
361
348
  const poller = new core_lro_1.LroEngine(lro, {
362
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
363
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
349
+ resumeFrom: options?.resumeFrom,
350
+ intervalInMs: options?.updateIntervalInMs,
364
351
  lroResourceLocationConfig: "location"
365
352
  });
366
353
  await poller.poll();
@@ -389,14 +376,19 @@ class LabsImpl {
389
376
  return this.client.sendOperationRequest(args, spec);
390
377
  };
391
378
  const sendOperation = async (args, spec) => {
392
- var _a;
393
379
  let currentRawResponse = undefined;
394
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
380
+ const providedCallback = args.options?.onResponse;
395
381
  const callback = (rawResponse, flatResponse) => {
396
382
  currentRawResponse = rawResponse;
397
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
383
+ providedCallback?.(rawResponse, flatResponse);
384
+ };
385
+ const updatedArgs = {
386
+ ...args,
387
+ options: {
388
+ ...args.options,
389
+ onResponse: callback
390
+ }
398
391
  };
399
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
400
392
  const flatResponse = await directSendOperation(updatedArgs, spec);
401
393
  return {
402
394
  flatResponse,
@@ -409,8 +401,8 @@ class LabsImpl {
409
401
  };
410
402
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, labName, options }, syncGroupOperationSpec);
411
403
  const poller = new core_lro_1.LroEngine(lro, {
412
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
413
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
404
+ resumeFrom: options?.resumeFrom,
405
+ intervalInMs: options?.updateIntervalInMs,
414
406
  lroResourceLocationConfig: "location"
415
407
  });
416
408
  await poller.poll();