@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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAuBxC,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,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,I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ACP,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"]}
1
+ {"version":3,"file":"labPlans.js","sourceRoot":"","sources":["../../../src/operations/labPlans.ts"],"names":[],"mappings":"AAAA;;;;;;GA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e,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;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,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"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { LroImpl } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing Labs operations. */
17
16
  export class LabsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Labs class.
20
20
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class LabsImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listBySubscriptionPagingPage(options, settings);
43
43
  }
44
44
  };
45
45
  }
46
- listBySubscriptionPagingPage(options, settings) {
47
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._listBySubscription(options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listBySubscriptionNext(continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listBySubscriptionPagingPage(options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listBySubscription(options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listBySubscriptionNext(continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listBySubscriptionPagingAll(options) {
67
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listBySubscriptionPagingAll(options) {
65
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Returns a list of all labs in a resource group.
@@ -98,52 +81,35 @@ export class LabsImpl {
98
81
  return this;
99
82
  },
100
83
  byPage: (settings) => {
101
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
84
+ if (settings?.maxPageSize) {
102
85
  throw new Error("maxPageSize is not supported by this operation.");
103
86
  }
104
87
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
105
88
  }
106
89
  };
107
90
  }
108
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
109
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
110
- let result;
111
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
- if (!continuationToken) {
113
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
114
- let page = result.value || [];
115
- continuationToken = result.nextLink;
116
- setContinuationToken(page, continuationToken);
117
- yield yield __await(page);
118
- }
119
- while (continuationToken) {
120
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
121
- continuationToken = result.nextLink;
122
- let page = result.value || [];
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
125
- }
126
- });
91
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
92
+ let result;
93
+ let continuationToken = settings?.continuationToken;
94
+ if (!continuationToken) {
95
+ result = await this._listByResourceGroup(resourceGroupName, options);
96
+ let page = result.value || [];
97
+ continuationToken = result.nextLink;
98
+ setContinuationToken(page, continuationToken);
99
+ yield page;
100
+ }
101
+ while (continuationToken) {
102
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
103
+ continuationToken = result.nextLink;
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
127
108
  }
128
- listByResourceGroupPagingAll(resourceGroupName, options) {
129
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
130
- var _a, e_2, _b, _c;
131
- try {
132
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
133
- _c = _f.value;
134
- _d = false;
135
- const page = _c;
136
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
137
- }
138
- }
139
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
140
- finally {
141
- try {
142
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
143
- }
144
- finally { if (e_2) throw e_2.error; }
145
- }
146
- });
109
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
110
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
111
+ yield* page;
112
+ }
147
113
  }
148
114
  /**
149
115
  * Returns a list of all labs for a subscription.
@@ -183,14 +149,19 @@ export class LabsImpl {
183
149
  return this.client.sendOperationRequest(args, spec);
184
150
  };
185
151
  const sendOperation = async (args, spec) => {
186
- var _a;
187
152
  let currentRawResponse = undefined;
188
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
153
+ const providedCallback = args.options?.onResponse;
189
154
  const callback = (rawResponse, flatResponse) => {
190
155
  currentRawResponse = rawResponse;
191
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
156
+ providedCallback?.(rawResponse, flatResponse);
157
+ };
158
+ const updatedArgs = {
159
+ ...args,
160
+ options: {
161
+ ...args.options,
162
+ onResponse: callback
163
+ }
192
164
  };
193
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
194
165
  const flatResponse = await directSendOperation(updatedArgs, spec);
195
166
  return {
196
167
  flatResponse,
@@ -203,8 +174,8 @@ export class LabsImpl {
203
174
  };
204
175
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, body, options }, createOrUpdateOperationSpec);
205
176
  const poller = new LroEngine(lro, {
206
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
207
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
177
+ resumeFrom: options?.resumeFrom,
178
+ intervalInMs: options?.updateIntervalInMs,
208
179
  lroResourceLocationConfig: "original-uri"
209
180
  });
210
181
  await poller.poll();
@@ -235,14 +206,19 @@ export class LabsImpl {
235
206
  return this.client.sendOperationRequest(args, spec);
236
207
  };
237
208
  const sendOperation = async (args, spec) => {
238
- var _a;
239
209
  let currentRawResponse = undefined;
240
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
210
+ const providedCallback = args.options?.onResponse;
241
211
  const callback = (rawResponse, flatResponse) => {
242
212
  currentRawResponse = rawResponse;
243
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
213
+ providedCallback?.(rawResponse, flatResponse);
214
+ };
215
+ const updatedArgs = {
216
+ ...args,
217
+ options: {
218
+ ...args.options,
219
+ onResponse: callback
220
+ }
244
221
  };
245
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
246
222
  const flatResponse = await directSendOperation(updatedArgs, spec);
247
223
  return {
248
224
  flatResponse,
@@ -255,8 +231,8 @@ export class LabsImpl {
255
231
  };
256
232
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, body, options }, updateOperationSpec);
257
233
  const poller = new LroEngine(lro, {
258
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
259
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
234
+ resumeFrom: options?.resumeFrom,
235
+ intervalInMs: options?.updateIntervalInMs,
260
236
  lroResourceLocationConfig: "location"
261
237
  });
262
238
  await poller.poll();
@@ -286,14 +262,19 @@ export class LabsImpl {
286
262
  return this.client.sendOperationRequest(args, spec);
287
263
  };
288
264
  const sendOperation = async (args, spec) => {
289
- var _a;
290
265
  let currentRawResponse = undefined;
291
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
266
+ const providedCallback = args.options?.onResponse;
292
267
  const callback = (rawResponse, flatResponse) => {
293
268
  currentRawResponse = rawResponse;
294
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
269
+ providedCallback?.(rawResponse, flatResponse);
270
+ };
271
+ const updatedArgs = {
272
+ ...args,
273
+ options: {
274
+ ...args.options,
275
+ onResponse: callback
276
+ }
295
277
  };
296
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
297
278
  const flatResponse = await directSendOperation(updatedArgs, spec);
298
279
  return {
299
280
  flatResponse,
@@ -306,8 +287,8 @@ export class LabsImpl {
306
287
  };
307
288
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, options }, deleteOperationSpec);
308
289
  const poller = new LroEngine(lro, {
309
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
310
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
290
+ resumeFrom: options?.resumeFrom,
291
+ intervalInMs: options?.updateIntervalInMs,
311
292
  lroResourceLocationConfig: "location"
312
293
  });
313
294
  await poller.poll();
@@ -336,14 +317,19 @@ export class LabsImpl {
336
317
  return this.client.sendOperationRequest(args, spec);
337
318
  };
338
319
  const sendOperation = async (args, spec) => {
339
- var _a;
340
320
  let currentRawResponse = undefined;
341
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
321
+ const providedCallback = args.options?.onResponse;
342
322
  const callback = (rawResponse, flatResponse) => {
343
323
  currentRawResponse = rawResponse;
344
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
324
+ providedCallback?.(rawResponse, flatResponse);
325
+ };
326
+ const updatedArgs = {
327
+ ...args,
328
+ options: {
329
+ ...args.options,
330
+ onResponse: callback
331
+ }
345
332
  };
346
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
347
333
  const flatResponse = await directSendOperation(updatedArgs, spec);
348
334
  return {
349
335
  flatResponse,
@@ -356,8 +342,8 @@ export class LabsImpl {
356
342
  };
357
343
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, options }, publishOperationSpec);
358
344
  const poller = new LroEngine(lro, {
359
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
360
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
345
+ resumeFrom: options?.resumeFrom,
346
+ intervalInMs: options?.updateIntervalInMs,
361
347
  lroResourceLocationConfig: "location"
362
348
  });
363
349
  await poller.poll();
@@ -386,14 +372,19 @@ export class LabsImpl {
386
372
  return this.client.sendOperationRequest(args, spec);
387
373
  };
388
374
  const sendOperation = async (args, spec) => {
389
- var _a;
390
375
  let currentRawResponse = undefined;
391
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
376
+ const providedCallback = args.options?.onResponse;
392
377
  const callback = (rawResponse, flatResponse) => {
393
378
  currentRawResponse = rawResponse;
394
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
379
+ providedCallback?.(rawResponse, flatResponse);
380
+ };
381
+ const updatedArgs = {
382
+ ...args,
383
+ options: {
384
+ ...args.options,
385
+ onResponse: callback
386
+ }
395
387
  };
396
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
397
388
  const flatResponse = await directSendOperation(updatedArgs, spec);
398
389
  return {
399
390
  flatResponse,
@@ -406,8 +397,8 @@ export class LabsImpl {
406
397
  };
407
398
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, options }, syncGroupOperationSpec);
408
399
  const poller = new LroEngine(lro, {
409
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
410
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
400
+ resumeFrom: options?.resumeFrom,
401
+ intervalInMs: options?.updateIntervalInMs,
411
402
  lroResourceLocationConfig: "location"
412
403
  });
413
404
  await poller.poll();