@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.
- package/dist/browser/labServicesClient.js +23 -5
- package/dist/browser/labServicesClient.js.map +1 -1
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +257 -121
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/images.js +23 -40
- package/dist/browser/operations/images.js.map +1 -1
- package/dist/browser/operations/labPlans.js +89 -103
- package/dist/browser/operations/labPlans.js.map +1 -1
- package/dist/browser/operations/labs.js +100 -109
- package/dist/browser/operations/labs.js.map +1 -1
- package/dist/browser/operations/operationResults.js +1 -0
- package/dist/browser/operations/operationResults.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/schedules.js +34 -46
- package/dist/browser/operations/schedules.js.map +1 -1
- package/dist/browser/operations/skus.js +23 -40
- package/dist/browser/operations/skus.js.map +1 -1
- package/dist/browser/operations/usages.js +23 -40
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/operations/users.js +67 -64
- package/dist/browser/operations/users.js.map +1 -1
- package/dist/browser/operations/virtualMachines.js +78 -70
- package/dist/browser/operations/virtualMachines.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/labServicesClient.js +23 -5
- package/dist/commonjs/labServicesClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +257 -121
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/images.js +23 -39
- package/dist/commonjs/operations/images.js.map +1 -1
- package/dist/commonjs/operations/labPlans.js +89 -102
- package/dist/commonjs/operations/labPlans.js.map +1 -1
- package/dist/commonjs/operations/labs.js +100 -108
- package/dist/commonjs/operations/labs.js.map +1 -1
- package/dist/commonjs/operations/operationResults.js +1 -0
- package/dist/commonjs/operations/operationResults.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/schedules.js +34 -45
- package/dist/commonjs/operations/schedules.js.map +1 -1
- package/dist/commonjs/operations/skus.js +23 -39
- package/dist/commonjs/operations/skus.js.map +1 -1
- package/dist/commonjs/operations/usages.js +23 -39
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/operations/users.js +67 -63
- package/dist/commonjs/operations/users.js.map +1 -1
- package/dist/commonjs/operations/virtualMachines.js +78 -69
- package/dist/commonjs/operations/virtualMachines.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/labServicesClient.js +23 -5
- package/dist/esm/labServicesClient.js.map +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +257 -121
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/images.js +23 -40
- package/dist/esm/operations/images.js.map +1 -1
- package/dist/esm/operations/labPlans.js +89 -103
- package/dist/esm/operations/labPlans.js.map +1 -1
- package/dist/esm/operations/labs.js +100 -109
- package/dist/esm/operations/labs.js.map +1 -1
- package/dist/esm/operations/operationResults.js +1 -0
- package/dist/esm/operations/operationResults.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/schedules.js +34 -46
- package/dist/esm/operations/schedules.js.map +1 -1
- package/dist/esm/operations/skus.js +23 -40
- package/dist/esm/operations/skus.js.map +1 -1
- package/dist/esm/operations/usages.js +23 -40
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/operations/users.js +67 -64
- package/dist/esm/operations/users.js.map +1 -1
- package/dist/esm/operations/virtualMachines.js +78 -70
- package/dist/esm/operations/virtualMachines.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/labServicesClient.js +23 -5
- package/dist/react-native/labServicesClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +257 -121
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/images.js +23 -40
- package/dist/react-native/operations/images.js.map +1 -1
- package/dist/react-native/operations/labPlans.js +89 -103
- package/dist/react-native/operations/labPlans.js.map +1 -1
- package/dist/react-native/operations/labs.js +100 -109
- package/dist/react-native/operations/labs.js.map +1 -1
- package/dist/react-native/operations/operationResults.js +1 -0
- package/dist/react-native/operations/operationResults.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/schedules.js +34 -46
- package/dist/react-native/operations/schedules.js.map +1 -1
- package/dist/react-native/operations/skus.js +23 -40
- package/dist/react-native/operations/skus.js.map +1 -1
- package/dist/react-native/operations/usages.js +23 -40
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/operations/users.js +67 -64
- package/dist/react-native/operations/users.js.map +1 -1
- package/dist/react-native/operations/virtualMachines.js +78 -70
- package/dist/react-native/operations/virtualMachines.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK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AE,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,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;AAmBxC,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,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,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AG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,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"]}
|
@@ -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 VirtualMachines operations. */
|
17
16
|
export class VirtualMachinesImpl {
|
17
|
+
client;
|
18
18
|
/**
|
19
19
|
* Initialize a new instance of the class VirtualMachines class.
|
20
20
|
* @param client Reference to the service client
|
@@ -39,52 +39,35 @@ export class VirtualMachinesImpl {
|
|
39
39
|
return this;
|
40
40
|
},
|
41
41
|
byPage: (settings) => {
|
42
|
-
if (settings
|
42
|
+
if (settings?.maxPageSize) {
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
44
44
|
}
|
45
45
|
return this.listByLabPagingPage(resourceGroupName, labName, options, settings);
|
46
46
|
}
|
47
47
|
};
|
48
48
|
}
|
49
|
-
listByLabPagingPage(resourceGroupName, labName, options, settings) {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
}
|
67
|
-
});
|
49
|
+
async *listByLabPagingPage(resourceGroupName, labName, options, settings) {
|
50
|
+
let result;
|
51
|
+
let continuationToken = settings?.continuationToken;
|
52
|
+
if (!continuationToken) {
|
53
|
+
result = await this._listByLab(resourceGroupName, labName, options);
|
54
|
+
let page = result.value || [];
|
55
|
+
continuationToken = result.nextLink;
|
56
|
+
setContinuationToken(page, continuationToken);
|
57
|
+
yield page;
|
58
|
+
}
|
59
|
+
while (continuationToken) {
|
60
|
+
result = await this._listByLabNext(resourceGroupName, labName, continuationToken, options);
|
61
|
+
continuationToken = result.nextLink;
|
62
|
+
let page = result.value || [];
|
63
|
+
setContinuationToken(page, continuationToken);
|
64
|
+
yield page;
|
65
|
+
}
|
68
66
|
}
|
69
|
-
listByLabPagingAll(resourceGroupName, labName, options) {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
for (var _d = true, _e = __asyncValues(this.listByLabPagingPage(resourceGroupName, labName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
74
|
-
_c = _f.value;
|
75
|
-
_d = false;
|
76
|
-
const page = _c;
|
77
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
78
|
-
}
|
79
|
-
}
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
81
|
-
finally {
|
82
|
-
try {
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
84
|
-
}
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
86
|
-
}
|
87
|
-
});
|
67
|
+
async *listByLabPagingAll(resourceGroupName, labName, options) {
|
68
|
+
for await (const page of this.listByLabPagingPage(resourceGroupName, labName, options)) {
|
69
|
+
yield* page;
|
70
|
+
}
|
88
71
|
}
|
89
72
|
/**
|
90
73
|
* Returns a list of all virtual machines for a lab.
|
@@ -122,14 +105,19 @@ export class VirtualMachinesImpl {
|
|
122
105
|
return this.client.sendOperationRequest(args, spec);
|
123
106
|
};
|
124
107
|
const sendOperation = async (args, spec) => {
|
125
|
-
var _a;
|
126
108
|
let currentRawResponse = undefined;
|
127
|
-
const providedCallback =
|
109
|
+
const providedCallback = args.options?.onResponse;
|
128
110
|
const callback = (rawResponse, flatResponse) => {
|
129
111
|
currentRawResponse = rawResponse;
|
130
|
-
providedCallback
|
112
|
+
providedCallback?.(rawResponse, flatResponse);
|
113
|
+
};
|
114
|
+
const updatedArgs = {
|
115
|
+
...args,
|
116
|
+
options: {
|
117
|
+
...args.options,
|
118
|
+
onResponse: callback
|
119
|
+
}
|
131
120
|
};
|
132
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
133
121
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
134
122
|
return {
|
135
123
|
flatResponse,
|
@@ -142,8 +130,8 @@ export class VirtualMachinesImpl {
|
|
142
130
|
};
|
143
131
|
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, startOperationSpec);
|
144
132
|
const poller = new LroEngine(lro, {
|
145
|
-
resumeFrom: options
|
146
|
-
intervalInMs: options
|
133
|
+
resumeFrom: options?.resumeFrom,
|
134
|
+
intervalInMs: options?.updateIntervalInMs,
|
147
135
|
lroResourceLocationConfig: "location"
|
148
136
|
});
|
149
137
|
await poller.poll();
|
@@ -176,14 +164,19 @@ export class VirtualMachinesImpl {
|
|
176
164
|
return this.client.sendOperationRequest(args, spec);
|
177
165
|
};
|
178
166
|
const sendOperation = async (args, spec) => {
|
179
|
-
var _a;
|
180
167
|
let currentRawResponse = undefined;
|
181
|
-
const providedCallback =
|
168
|
+
const providedCallback = args.options?.onResponse;
|
182
169
|
const callback = (rawResponse, flatResponse) => {
|
183
170
|
currentRawResponse = rawResponse;
|
184
|
-
providedCallback
|
171
|
+
providedCallback?.(rawResponse, flatResponse);
|
172
|
+
};
|
173
|
+
const updatedArgs = {
|
174
|
+
...args,
|
175
|
+
options: {
|
176
|
+
...args.options,
|
177
|
+
onResponse: callback
|
178
|
+
}
|
185
179
|
};
|
186
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
187
180
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
188
181
|
return {
|
189
182
|
flatResponse,
|
@@ -196,8 +189,8 @@ export class VirtualMachinesImpl {
|
|
196
189
|
};
|
197
190
|
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, stopOperationSpec);
|
198
191
|
const poller = new LroEngine(lro, {
|
199
|
-
resumeFrom: options
|
200
|
-
intervalInMs: options
|
192
|
+
resumeFrom: options?.resumeFrom,
|
193
|
+
intervalInMs: options?.updateIntervalInMs,
|
201
194
|
lroResourceLocationConfig: "location"
|
202
195
|
});
|
203
196
|
await poller.poll();
|
@@ -231,14 +224,19 @@ export class VirtualMachinesImpl {
|
|
231
224
|
return this.client.sendOperationRequest(args, spec);
|
232
225
|
};
|
233
226
|
const sendOperation = async (args, spec) => {
|
234
|
-
var _a;
|
235
227
|
let currentRawResponse = undefined;
|
236
|
-
const providedCallback =
|
228
|
+
const providedCallback = args.options?.onResponse;
|
237
229
|
const callback = (rawResponse, flatResponse) => {
|
238
230
|
currentRawResponse = rawResponse;
|
239
|
-
providedCallback
|
231
|
+
providedCallback?.(rawResponse, flatResponse);
|
232
|
+
};
|
233
|
+
const updatedArgs = {
|
234
|
+
...args,
|
235
|
+
options: {
|
236
|
+
...args.options,
|
237
|
+
onResponse: callback
|
238
|
+
}
|
240
239
|
};
|
241
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
242
240
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
243
241
|
return {
|
244
242
|
flatResponse,
|
@@ -251,8 +249,8 @@ export class VirtualMachinesImpl {
|
|
251
249
|
};
|
252
250
|
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, reimageOperationSpec);
|
253
251
|
const poller = new LroEngine(lro, {
|
254
|
-
resumeFrom: options
|
255
|
-
intervalInMs: options
|
252
|
+
resumeFrom: options?.resumeFrom,
|
253
|
+
intervalInMs: options?.updateIntervalInMs,
|
256
254
|
lroResourceLocationConfig: "location"
|
257
255
|
});
|
258
256
|
await poller.poll();
|
@@ -287,14 +285,19 @@ export class VirtualMachinesImpl {
|
|
287
285
|
return this.client.sendOperationRequest(args, spec);
|
288
286
|
};
|
289
287
|
const sendOperation = async (args, spec) => {
|
290
|
-
var _a;
|
291
288
|
let currentRawResponse = undefined;
|
292
|
-
const providedCallback =
|
289
|
+
const providedCallback = args.options?.onResponse;
|
293
290
|
const callback = (rawResponse, flatResponse) => {
|
294
291
|
currentRawResponse = rawResponse;
|
295
|
-
providedCallback
|
292
|
+
providedCallback?.(rawResponse, flatResponse);
|
293
|
+
};
|
294
|
+
const updatedArgs = {
|
295
|
+
...args,
|
296
|
+
options: {
|
297
|
+
...args.options,
|
298
|
+
onResponse: callback
|
299
|
+
}
|
296
300
|
};
|
297
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
298
301
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
299
302
|
return {
|
300
303
|
flatResponse,
|
@@ -307,8 +310,8 @@ export class VirtualMachinesImpl {
|
|
307
310
|
};
|
308
311
|
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, redeployOperationSpec);
|
309
312
|
const poller = new LroEngine(lro, {
|
310
|
-
resumeFrom: options
|
311
|
-
intervalInMs: options
|
313
|
+
resumeFrom: options?.resumeFrom,
|
314
|
+
intervalInMs: options?.updateIntervalInMs,
|
312
315
|
lroResourceLocationConfig: "location"
|
313
316
|
});
|
314
317
|
await poller.poll();
|
@@ -343,14 +346,19 @@ export class VirtualMachinesImpl {
|
|
343
346
|
return this.client.sendOperationRequest(args, spec);
|
344
347
|
};
|
345
348
|
const sendOperation = async (args, spec) => {
|
346
|
-
var _a;
|
347
349
|
let currentRawResponse = undefined;
|
348
|
-
const providedCallback =
|
350
|
+
const providedCallback = args.options?.onResponse;
|
349
351
|
const callback = (rawResponse, flatResponse) => {
|
350
352
|
currentRawResponse = rawResponse;
|
351
|
-
providedCallback
|
353
|
+
providedCallback?.(rawResponse, flatResponse);
|
354
|
+
};
|
355
|
+
const updatedArgs = {
|
356
|
+
...args,
|
357
|
+
options: {
|
358
|
+
...args.options,
|
359
|
+
onResponse: callback
|
360
|
+
}
|
352
361
|
};
|
353
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
354
362
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
355
363
|
return {
|
356
364
|
flatResponse,
|
@@ -363,8 +371,8 @@ export class VirtualMachinesImpl {
|
|
363
371
|
};
|
364
372
|
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, body, options }, resetPasswordOperationSpec);
|
365
373
|
const poller = new LroEngine(lro, {
|
366
|
-
resumeFrom: options
|
367
|
-
intervalInMs: options
|
374
|
+
resumeFrom: options?.resumeFrom,
|
375
|
+
intervalInMs: options?.updateIntervalInMs,
|
368
376
|
lroResourceLocationConfig: "location"
|
369
377
|
});
|
370
378
|
await poller.poll();
|