@azure/arm-labservices 3.1.1-alpha.20250620.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.api.md → arm-labservices-node.api.md} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/operations/users.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAmBxC,4CAA4C;AAC5C,yCAAyC;AACzC,MAAa,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAAyB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,SAAS,CACd,iBAAyB,EACzB,OAAe,EACf,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC1E,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,mBAAmB,CAC7B,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,mBAAmB,CAChC,iBAAyB,EACzB,OAAe,EACf,OAAsC,EACtC,QAAuB;;YAEvB,IAAI,MAA8B,CAAC;YACnC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,C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;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,OAAO;KACnB;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 { Users } 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 User,\n UsersListByLabNextOptionalParams,\n UsersListByLabOptionalParams,\n UsersListByLabResponse,\n UsersGetOptionalParams,\n UsersGetResponse,\n UsersCreateOrUpdateOptionalParams,\n UsersCreateOrUpdateResponse,\n UserUpdate,\n UsersUpdateOptionalParams,\n UsersUpdateResponse,\n UsersDeleteOptionalParams,\n InviteBody,\n UsersInviteOptionalParams,\n UsersListByLabNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Users operations. */\nexport class UsersImpl implements Users {\n private readonly client: LabServicesClient;\n\n /**\n * Initialize a new instance of the class Users 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 users for a lab.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param options The options parameters.\n */\n public listByLab(\n resourceGroupName: string,\n labName: string,\n options?: UsersListByLabOptionalParams\n ): PagedAsyncIterableIterator<User> {\n const iter = this.listByLabPagingAll(resourceGroupName, labName, 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.listByLabPagingPage(\n resourceGroupName,\n labName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByLabPagingPage(\n resourceGroupName: string,\n labName: string,\n options?: UsersListByLabOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<User[]> {\n let result: UsersListByLabResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByLab(resourceGroupName, labName, 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._listByLabNext(\n resourceGroupName,\n labName,\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 *listByLabPagingAll(\n resourceGroupName: string,\n labName: string,\n options?: UsersListByLabOptionalParams\n ): AsyncIterableIterator<User> {\n for await (const page of this.listByLabPagingPage(\n resourceGroupName,\n labName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all users for a lab.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param options The options parameters.\n */\n private _listByLab(\n resourceGroupName: string,\n labName: string,\n options?: UsersListByLabOptionalParams\n ): Promise<UsersListByLabResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, labName, options },\n listByLabOperationSpec\n );\n }\n\n /**\n * Returns the properties of a lab user.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n labName: string,\n userName: string,\n options?: UsersGetOptionalParams\n ): Promise<UsersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, labName, userName, options },\n getOperationSpec\n );\n }\n\n /**\n * Operation to create or update a lab user.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: User,\n options?: UsersCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<UsersCreateOrUpdateResponse>,\n UsersCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<UsersCreateOrUpdateResponse> => {\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, labName, userName, 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 user.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: User,\n options?: UsersCreateOrUpdateOptionalParams\n ): Promise<UsersCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n labName,\n userName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Operation to update a lab user.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: UserUpdate,\n options?: UsersUpdateOptionalParams\n ): Promise<\n PollerLike<PollOperationState<UsersUpdateResponse>, UsersUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<UsersUpdateResponse> => {\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, labName, userName, 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 user.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: UserUpdate,\n options?: UsersUpdateOptionalParams\n ): Promise<UsersUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n labName,\n userName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Operation to delete a user resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n labName: string,\n userName: string,\n options?: UsersDeleteOptionalParams\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, labName, userName, 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 user resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n labName: string,\n userName: string,\n options?: UsersDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n labName,\n userName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Operation to invite a user to a lab.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginInvite(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: InviteBody,\n options?: UsersInviteOptionalParams\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, labName, userName, body, options },\n inviteOperationSpec\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 invite a user to a lab.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginInviteAndWait(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: InviteBody,\n options?: UsersInviteOptionalParams\n ): Promise<void> {\n const poller = await this.beginInvite(\n resourceGroupName,\n labName,\n userName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByLabNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param nextLink The nextLink from the previous successful call to the ListByLab method.\n * @param options The options parameters.\n */\n private _listByLabNext(\n resourceGroupName: string,\n labName: string,\n nextLink: string,\n options?: UsersListByLabNextOptionalParams\n ): Promise<UsersListByLabNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, labName, nextLink, options },\n listByLabNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLabOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedUsers\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.User\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.labName,\n Parameters.userName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.User\n },\n 201: {\n bodyMapper: Mappers.User\n },\n 202: {\n bodyMapper: Mappers.User\n },\n 204: {\n bodyMapper: Mappers.User\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labName,\n Parameters.userName\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/labs/{labName}/users/{userName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.User\n },\n 201: {\n bodyMapper: Mappers.User\n },\n 202: {\n bodyMapper: Mappers.User\n },\n 204: {\n bodyMapper: Mappers.User\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labName,\n Parameters.userName\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/labs/{labName}/users/{userName}\",\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.labName,\n Parameters.userName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst inviteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}/invite\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labName,\n Parameters.userName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByLabNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedUsers\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.labName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/operations/users.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAmBxC,4CAA4C;AAC5C,yCAAyC;AACzC,MAAa,SAAS;IACH,MAAM,CAAoB;IAE3C;;;OAGG;IACH,YAAY,MAAyB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,SAAS,CACd,iBAAyB,EACzB,OAAe,EACf,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OA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OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,MAAM;IAC9B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,OAAO;KACnB;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 { Users } 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 User,\n UsersListByLabNextOptionalParams,\n UsersListByLabOptionalParams,\n UsersListByLabResponse,\n UsersGetOptionalParams,\n UsersGetResponse,\n UsersCreateOrUpdateOptionalParams,\n UsersCreateOrUpdateResponse,\n UserUpdate,\n UsersUpdateOptionalParams,\n UsersUpdateResponse,\n UsersDeleteOptionalParams,\n InviteBody,\n UsersInviteOptionalParams,\n UsersListByLabNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Users operations. */\nexport class UsersImpl implements Users {\n private readonly client: LabServicesClient;\n\n /**\n * Initialize a new instance of the class Users 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 users for a lab.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param options The options parameters.\n */\n public listByLab(\n resourceGroupName: string,\n labName: string,\n options?: UsersListByLabOptionalParams\n ): PagedAsyncIterableIterator<User> {\n const iter = this.listByLabPagingAll(resourceGroupName, labName, 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.listByLabPagingPage(\n resourceGroupName,\n labName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByLabPagingPage(\n resourceGroupName: string,\n labName: string,\n options?: UsersListByLabOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<User[]> {\n let result: UsersListByLabResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByLab(resourceGroupName, labName, 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._listByLabNext(\n resourceGroupName,\n labName,\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 *listByLabPagingAll(\n resourceGroupName: string,\n labName: string,\n options?: UsersListByLabOptionalParams\n ): AsyncIterableIterator<User> {\n for await (const page of this.listByLabPagingPage(\n resourceGroupName,\n labName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all users for a lab.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param options The options parameters.\n */\n private _listByLab(\n resourceGroupName: string,\n labName: string,\n options?: UsersListByLabOptionalParams\n ): Promise<UsersListByLabResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, labName, options },\n listByLabOperationSpec\n );\n }\n\n /**\n * Returns the properties of a lab user.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n labName: string,\n userName: string,\n options?: UsersGetOptionalParams\n ): Promise<UsersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, labName, userName, options },\n getOperationSpec\n );\n }\n\n /**\n * Operation to create or update a lab user.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: User,\n options?: UsersCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<UsersCreateOrUpdateResponse>,\n UsersCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<UsersCreateOrUpdateResponse> => {\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, labName, userName, 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 user.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: User,\n options?: UsersCreateOrUpdateOptionalParams\n ): Promise<UsersCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n labName,\n userName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Operation to update a lab user.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: UserUpdate,\n options?: UsersUpdateOptionalParams\n ): Promise<\n PollerLike<PollOperationState<UsersUpdateResponse>, UsersUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<UsersUpdateResponse> => {\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, labName, userName, 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 user.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: UserUpdate,\n options?: UsersUpdateOptionalParams\n ): Promise<UsersUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n labName,\n userName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Operation to delete a user resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n labName: string,\n userName: string,\n options?: UsersDeleteOptionalParams\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, labName, userName, 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 user resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n labName: string,\n userName: string,\n options?: UsersDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n labName,\n userName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Operation to invite a user to a lab.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginInvite(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: InviteBody,\n options?: UsersInviteOptionalParams\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, labName, userName, body, options },\n inviteOperationSpec\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 invite a user to a lab.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param userName The name of the user that uniquely identifies it within containing lab. Used in\n * resource URIs.\n * @param body The request body.\n * @param options The options parameters.\n */\n async beginInviteAndWait(\n resourceGroupName: string,\n labName: string,\n userName: string,\n body: InviteBody,\n options?: UsersInviteOptionalParams\n ): Promise<void> {\n const poller = await this.beginInvite(\n resourceGroupName,\n labName,\n userName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByLabNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in\n * resource URIs.\n * @param nextLink The nextLink from the previous successful call to the ListByLab method.\n * @param options The options parameters.\n */\n private _listByLabNext(\n resourceGroupName: string,\n labName: string,\n nextLink: string,\n options?: UsersListByLabNextOptionalParams\n ): Promise<UsersListByLabNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, labName, nextLink, options },\n listByLabNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLabOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedUsers\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.User\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.labName,\n Parameters.userName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.User\n },\n 201: {\n bodyMapper: Mappers.User\n },\n 202: {\n bodyMapper: Mappers.User\n },\n 204: {\n bodyMapper: Mappers.User\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labName,\n Parameters.userName\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/labs/{labName}/users/{userName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.User\n },\n 201: {\n bodyMapper: Mappers.User\n },\n 202: {\n bodyMapper: Mappers.User\n },\n 204: {\n bodyMapper: Mappers.User\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labName,\n Parameters.userName\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/labs/{labName}/users/{userName}\",\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.labName,\n Parameters.userName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst inviteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}/invite\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.labName,\n Parameters.userName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByLabNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedUsers\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.labName\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 VirtualMachines operations. */
20
20
  class VirtualMachinesImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class VirtualMachines class.
23
24
  * @param client Reference to the service client
@@ -42,52 +43,35 @@ class VirtualMachinesImpl {
42
43
  return this;
43
44
  },
44
45
  byPage: (settings) => {
45
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
46
+ if (settings?.maxPageSize) {
46
47
  throw new Error("maxPageSize is not supported by this operation.");
47
48
  }
48
49
  return this.listByLabPagingPage(resourceGroupName, labName, options, settings);
49
50
  }
50
51
  };
51
52
  }
52
- listByLabPagingPage(resourceGroupName, labName, options, settings) {
53
- return tslib_1.__asyncGenerator(this, arguments, function* listByLabPagingPage_1() {
54
- let result;
55
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
56
- if (!continuationToken) {
57
- result = yield tslib_1.__await(this._listByLab(resourceGroupName, labName, options));
58
- let page = result.value || [];
59
- continuationToken = result.nextLink;
60
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
- yield yield tslib_1.__await(page);
62
- }
63
- while (continuationToken) {
64
- result = yield tslib_1.__await(this._listByLabNext(resourceGroupName, labName, continuationToken, options));
65
- continuationToken = result.nextLink;
66
- let page = result.value || [];
67
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
- yield yield tslib_1.__await(page);
69
- }
70
- });
53
+ async *listByLabPagingPage(resourceGroupName, labName, options, settings) {
54
+ let result;
55
+ let continuationToken = settings?.continuationToken;
56
+ if (!continuationToken) {
57
+ result = await this._listByLab(resourceGroupName, labName, options);
58
+ let page = result.value || [];
59
+ continuationToken = result.nextLink;
60
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
+ yield page;
62
+ }
63
+ while (continuationToken) {
64
+ result = await this._listByLabNext(resourceGroupName, labName, continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ let page = result.value || [];
67
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
+ yield page;
69
+ }
71
70
  }
72
- listByLabPagingAll(resourceGroupName, labName, options) {
73
- return tslib_1.__asyncGenerator(this, arguments, function* listByLabPagingAll_1() {
74
- var _a, e_1, _b, _c;
75
- try {
76
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByLabPagingPage(resourceGroupName, labName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
77
- _c = _f.value;
78
- _d = false;
79
- const page = _c;
80
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
81
- }
82
- }
83
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
84
- finally {
85
- try {
86
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
87
- }
88
- finally { if (e_1) throw e_1.error; }
89
- }
90
- });
71
+ async *listByLabPagingAll(resourceGroupName, labName, options) {
72
+ for await (const page of this.listByLabPagingPage(resourceGroupName, labName, options)) {
73
+ yield* page;
74
+ }
91
75
  }
92
76
  /**
93
77
  * Returns a list of all virtual machines for a lab.
@@ -125,14 +109,19 @@ class VirtualMachinesImpl {
125
109
  return this.client.sendOperationRequest(args, spec);
126
110
  };
127
111
  const sendOperation = async (args, spec) => {
128
- var _a;
129
112
  let currentRawResponse = undefined;
130
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
113
+ const providedCallback = args.options?.onResponse;
131
114
  const callback = (rawResponse, flatResponse) => {
132
115
  currentRawResponse = rawResponse;
133
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
116
+ providedCallback?.(rawResponse, flatResponse);
117
+ };
118
+ const updatedArgs = {
119
+ ...args,
120
+ options: {
121
+ ...args.options,
122
+ onResponse: callback
123
+ }
134
124
  };
135
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
136
125
  const flatResponse = await directSendOperation(updatedArgs, spec);
137
126
  return {
138
127
  flatResponse,
@@ -145,8 +134,8 @@ class VirtualMachinesImpl {
145
134
  };
146
135
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, startOperationSpec);
147
136
  const poller = new core_lro_1.LroEngine(lro, {
148
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
149
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
137
+ resumeFrom: options?.resumeFrom,
138
+ intervalInMs: options?.updateIntervalInMs,
150
139
  lroResourceLocationConfig: "location"
151
140
  });
152
141
  await poller.poll();
@@ -179,14 +168,19 @@ class VirtualMachinesImpl {
179
168
  return this.client.sendOperationRequest(args, spec);
180
169
  };
181
170
  const sendOperation = async (args, spec) => {
182
- var _a;
183
171
  let currentRawResponse = undefined;
184
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
172
+ const providedCallback = args.options?.onResponse;
185
173
  const callback = (rawResponse, flatResponse) => {
186
174
  currentRawResponse = rawResponse;
187
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
175
+ providedCallback?.(rawResponse, flatResponse);
176
+ };
177
+ const updatedArgs = {
178
+ ...args,
179
+ options: {
180
+ ...args.options,
181
+ onResponse: callback
182
+ }
188
183
  };
189
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
190
184
  const flatResponse = await directSendOperation(updatedArgs, spec);
191
185
  return {
192
186
  flatResponse,
@@ -199,8 +193,8 @@ class VirtualMachinesImpl {
199
193
  };
200
194
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, stopOperationSpec);
201
195
  const poller = new core_lro_1.LroEngine(lro, {
202
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
203
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
196
+ resumeFrom: options?.resumeFrom,
197
+ intervalInMs: options?.updateIntervalInMs,
204
198
  lroResourceLocationConfig: "location"
205
199
  });
206
200
  await poller.poll();
@@ -234,14 +228,19 @@ class VirtualMachinesImpl {
234
228
  return this.client.sendOperationRequest(args, spec);
235
229
  };
236
230
  const sendOperation = async (args, spec) => {
237
- var _a;
238
231
  let currentRawResponse = undefined;
239
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
232
+ const providedCallback = args.options?.onResponse;
240
233
  const callback = (rawResponse, flatResponse) => {
241
234
  currentRawResponse = rawResponse;
242
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
235
+ providedCallback?.(rawResponse, flatResponse);
236
+ };
237
+ const updatedArgs = {
238
+ ...args,
239
+ options: {
240
+ ...args.options,
241
+ onResponse: callback
242
+ }
243
243
  };
244
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
245
244
  const flatResponse = await directSendOperation(updatedArgs, spec);
246
245
  return {
247
246
  flatResponse,
@@ -254,8 +253,8 @@ class VirtualMachinesImpl {
254
253
  };
255
254
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, reimageOperationSpec);
256
255
  const poller = new core_lro_1.LroEngine(lro, {
257
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
258
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
256
+ resumeFrom: options?.resumeFrom,
257
+ intervalInMs: options?.updateIntervalInMs,
259
258
  lroResourceLocationConfig: "location"
260
259
  });
261
260
  await poller.poll();
@@ -290,14 +289,19 @@ class VirtualMachinesImpl {
290
289
  return this.client.sendOperationRequest(args, spec);
291
290
  };
292
291
  const sendOperation = async (args, spec) => {
293
- var _a;
294
292
  let currentRawResponse = undefined;
295
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
293
+ const providedCallback = args.options?.onResponse;
296
294
  const callback = (rawResponse, flatResponse) => {
297
295
  currentRawResponse = rawResponse;
298
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
296
+ providedCallback?.(rawResponse, flatResponse);
297
+ };
298
+ const updatedArgs = {
299
+ ...args,
300
+ options: {
301
+ ...args.options,
302
+ onResponse: callback
303
+ }
299
304
  };
300
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
301
305
  const flatResponse = await directSendOperation(updatedArgs, spec);
302
306
  return {
303
307
  flatResponse,
@@ -310,8 +314,8 @@ class VirtualMachinesImpl {
310
314
  };
311
315
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, redeployOperationSpec);
312
316
  const poller = new core_lro_1.LroEngine(lro, {
313
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
314
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
317
+ resumeFrom: options?.resumeFrom,
318
+ intervalInMs: options?.updateIntervalInMs,
315
319
  lroResourceLocationConfig: "location"
316
320
  });
317
321
  await poller.poll();
@@ -346,14 +350,19 @@ class VirtualMachinesImpl {
346
350
  return this.client.sendOperationRequest(args, spec);
347
351
  };
348
352
  const sendOperation = async (args, spec) => {
349
- var _a;
350
353
  let currentRawResponse = undefined;
351
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
354
+ const providedCallback = args.options?.onResponse;
352
355
  const callback = (rawResponse, flatResponse) => {
353
356
  currentRawResponse = rawResponse;
354
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
357
+ providedCallback?.(rawResponse, flatResponse);
358
+ };
359
+ const updatedArgs = {
360
+ ...args,
361
+ options: {
362
+ ...args.options,
363
+ onResponse: callback
364
+ }
355
365
  };
356
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
357
366
  const flatResponse = await directSendOperation(updatedArgs, spec);
358
367
  return {
359
368
  flatResponse,
@@ -366,8 +375,8 @@ class VirtualMachinesImpl {
366
375
  };
367
376
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, body, options }, resetPasswordOperationSpec);
368
377
  const poller = new core_lro_1.LroEngine(lro, {
369
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
370
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
378
+ resumeFrom: options?.resumeFrom,
379
+ intervalInMs: options?.updateIntervalInMs,
371
380
  lroResourceLocationConfig: "location"
372
381
  });
373
382
  await poller.poll();