@azure/arm-migrationassessment 1.0.0-alpha.20250718.1 → 1.0.0-alpha.20250722.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/azureMigrateAssessmentService.js +38 -5
- package/dist/browser/azureMigrateAssessmentService.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +1209 -588
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/assessedMachinesOperations.js +23 -40
- package/dist/browser/operations/assessedMachinesOperations.js.map +1 -1
- package/dist/browser/operations/assessedSqlDatabaseV2Operations.js +23 -40
- package/dist/browser/operations/assessedSqlDatabaseV2Operations.js.map +1 -1
- package/dist/browser/operations/assessedSqlInstanceV2Operations.js +23 -40
- package/dist/browser/operations/assessedSqlInstanceV2Operations.js.map +1 -1
- package/dist/browser/operations/assessedSqlMachinesOperations.js +23 -40
- package/dist/browser/operations/assessedSqlMachinesOperations.js.map +1 -1
- package/dist/browser/operations/assessedSqlRecommendedEntityOperations.js +23 -40
- package/dist/browser/operations/assessedSqlRecommendedEntityOperations.js.map +1 -1
- package/dist/browser/operations/assessmentOptionsOperations.js +23 -40
- package/dist/browser/operations/assessmentOptionsOperations.js.map +1 -1
- package/dist/browser/operations/assessmentProjectSummaryOperations.js +23 -40
- package/dist/browser/operations/assessmentProjectSummaryOperations.js.map +1 -1
- package/dist/browser/operations/assessmentProjectsOperations.js +67 -91
- package/dist/browser/operations/assessmentProjectsOperations.js.map +1 -1
- package/dist/browser/operations/assessmentsOperations.js +45 -52
- package/dist/browser/operations/assessmentsOperations.js.map +1 -1
- package/dist/browser/operations/avsAssessedMachinesOperations.js +23 -40
- package/dist/browser/operations/avsAssessedMachinesOperations.js.map +1 -1
- package/dist/browser/operations/avsAssessmentOptionsOperations.js +23 -40
- package/dist/browser/operations/avsAssessmentOptionsOperations.js.map +1 -1
- package/dist/browser/operations/avsAssessmentsOperations.js +45 -52
- package/dist/browser/operations/avsAssessmentsOperations.js.map +1 -1
- package/dist/browser/operations/groupsOperations.js +45 -52
- package/dist/browser/operations/groupsOperations.js.map +1 -1
- package/dist/browser/operations/hypervCollectorsOperations.js +34 -46
- package/dist/browser/operations/hypervCollectorsOperations.js.map +1 -1
- package/dist/browser/operations/importCollectorsOperations.js +34 -46
- package/dist/browser/operations/importCollectorsOperations.js.map +1 -1
- package/dist/browser/operations/machinesOperations.js +23 -40
- package/dist/browser/operations/machinesOperations.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/privateEndpointConnectionOperations.js +34 -46
- package/dist/browser/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/browser/operations/privateLinkResourceOperations.js +23 -40
- package/dist/browser/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/browser/operations/serverCollectorsOperations.js +34 -46
- package/dist/browser/operations/serverCollectorsOperations.js.map +1 -1
- package/dist/browser/operations/sqlAssessmentOptionsOperations.js +23 -40
- package/dist/browser/operations/sqlAssessmentOptionsOperations.js.map +1 -1
- package/dist/browser/operations/sqlAssessmentV2Operations.js +45 -52
- package/dist/browser/operations/sqlAssessmentV2Operations.js.map +1 -1
- package/dist/browser/operations/sqlAssessmentV2SummaryOperations.js +23 -40
- package/dist/browser/operations/sqlAssessmentV2SummaryOperations.js.map +1 -1
- package/dist/browser/operations/sqlCollectorOperations.js +34 -46
- package/dist/browser/operations/sqlCollectorOperations.js.map +1 -1
- package/dist/browser/operations/vmwareCollectorsOperations.js +34 -46
- package/dist/browser/operations/vmwareCollectorsOperations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/azureMigrateAssessmentService.js +38 -5
- package/dist/commonjs/azureMigrateAssessmentService.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +1209 -588
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/assessedMachinesOperations.js +23 -39
- package/dist/commonjs/operations/assessedMachinesOperations.js.map +1 -1
- package/dist/commonjs/operations/assessedSqlDatabaseV2Operations.js +23 -39
- package/dist/commonjs/operations/assessedSqlDatabaseV2Operations.js.map +1 -1
- package/dist/commonjs/operations/assessedSqlInstanceV2Operations.js +23 -39
- package/dist/commonjs/operations/assessedSqlInstanceV2Operations.js.map +1 -1
- package/dist/commonjs/operations/assessedSqlMachinesOperations.js +23 -39
- package/dist/commonjs/operations/assessedSqlMachinesOperations.js.map +1 -1
- package/dist/commonjs/operations/assessedSqlRecommendedEntityOperations.js +23 -39
- package/dist/commonjs/operations/assessedSqlRecommendedEntityOperations.js.map +1 -1
- package/dist/commonjs/operations/assessmentOptionsOperations.js +23 -39
- package/dist/commonjs/operations/assessmentOptionsOperations.js.map +1 -1
- package/dist/commonjs/operations/assessmentProjectSummaryOperations.js +23 -39
- package/dist/commonjs/operations/assessmentProjectSummaryOperations.js.map +1 -1
- package/dist/commonjs/operations/assessmentProjectsOperations.js +67 -90
- package/dist/commonjs/operations/assessmentProjectsOperations.js.map +1 -1
- package/dist/commonjs/operations/assessmentsOperations.js +45 -51
- package/dist/commonjs/operations/assessmentsOperations.js.map +1 -1
- package/dist/commonjs/operations/avsAssessedMachinesOperations.js +23 -39
- package/dist/commonjs/operations/avsAssessedMachinesOperations.js.map +1 -1
- package/dist/commonjs/operations/avsAssessmentOptionsOperations.js +23 -39
- package/dist/commonjs/operations/avsAssessmentOptionsOperations.js.map +1 -1
- package/dist/commonjs/operations/avsAssessmentsOperations.js +45 -51
- package/dist/commonjs/operations/avsAssessmentsOperations.js.map +1 -1
- package/dist/commonjs/operations/groupsOperations.js +45 -51
- package/dist/commonjs/operations/groupsOperations.js.map +1 -1
- package/dist/commonjs/operations/hypervCollectorsOperations.js +34 -45
- package/dist/commonjs/operations/hypervCollectorsOperations.js.map +1 -1
- package/dist/commonjs/operations/importCollectorsOperations.js +34 -45
- package/dist/commonjs/operations/importCollectorsOperations.js.map +1 -1
- package/dist/commonjs/operations/machinesOperations.js +23 -39
- package/dist/commonjs/operations/machinesOperations.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/privateEndpointConnectionOperations.js +34 -45
- package/dist/commonjs/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResourceOperations.js +23 -39
- package/dist/commonjs/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/commonjs/operations/serverCollectorsOperations.js +34 -45
- package/dist/commonjs/operations/serverCollectorsOperations.js.map +1 -1
- package/dist/commonjs/operations/sqlAssessmentOptionsOperations.js +23 -39
- package/dist/commonjs/operations/sqlAssessmentOptionsOperations.js.map +1 -1
- package/dist/commonjs/operations/sqlAssessmentV2Operations.js +45 -51
- package/dist/commonjs/operations/sqlAssessmentV2Operations.js.map +1 -1
- package/dist/commonjs/operations/sqlAssessmentV2SummaryOperations.js +23 -39
- package/dist/commonjs/operations/sqlAssessmentV2SummaryOperations.js.map +1 -1
- package/dist/commonjs/operations/sqlCollectorOperations.js +34 -45
- package/dist/commonjs/operations/sqlCollectorOperations.js.map +1 -1
- package/dist/commonjs/operations/vmwareCollectorsOperations.js +34 -45
- package/dist/commonjs/operations/vmwareCollectorsOperations.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/azureMigrateAssessmentService.js +38 -5
- package/dist/esm/azureMigrateAssessmentService.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +1209 -588
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/assessedMachinesOperations.js +23 -40
- package/dist/esm/operations/assessedMachinesOperations.js.map +1 -1
- package/dist/esm/operations/assessedSqlDatabaseV2Operations.js +23 -40
- package/dist/esm/operations/assessedSqlDatabaseV2Operations.js.map +1 -1
- package/dist/esm/operations/assessedSqlInstanceV2Operations.js +23 -40
- package/dist/esm/operations/assessedSqlInstanceV2Operations.js.map +1 -1
- package/dist/esm/operations/assessedSqlMachinesOperations.js +23 -40
- package/dist/esm/operations/assessedSqlMachinesOperations.js.map +1 -1
- package/dist/esm/operations/assessedSqlRecommendedEntityOperations.js +23 -40
- package/dist/esm/operations/assessedSqlRecommendedEntityOperations.js.map +1 -1
- package/dist/esm/operations/assessmentOptionsOperations.js +23 -40
- package/dist/esm/operations/assessmentOptionsOperations.js.map +1 -1
- package/dist/esm/operations/assessmentProjectSummaryOperations.js +23 -40
- package/dist/esm/operations/assessmentProjectSummaryOperations.js.map +1 -1
- package/dist/esm/operations/assessmentProjectsOperations.js +67 -91
- package/dist/esm/operations/assessmentProjectsOperations.js.map +1 -1
- package/dist/esm/operations/assessmentsOperations.js +45 -52
- package/dist/esm/operations/assessmentsOperations.js.map +1 -1
- package/dist/esm/operations/avsAssessedMachinesOperations.js +23 -40
- package/dist/esm/operations/avsAssessedMachinesOperations.js.map +1 -1
- package/dist/esm/operations/avsAssessmentOptionsOperations.js +23 -40
- package/dist/esm/operations/avsAssessmentOptionsOperations.js.map +1 -1
- package/dist/esm/operations/avsAssessmentsOperations.js +45 -52
- package/dist/esm/operations/avsAssessmentsOperations.js.map +1 -1
- package/dist/esm/operations/groupsOperations.js +45 -52
- package/dist/esm/operations/groupsOperations.js.map +1 -1
- package/dist/esm/operations/hypervCollectorsOperations.js +34 -46
- package/dist/esm/operations/hypervCollectorsOperations.js.map +1 -1
- package/dist/esm/operations/importCollectorsOperations.js +34 -46
- package/dist/esm/operations/importCollectorsOperations.js.map +1 -1
- package/dist/esm/operations/machinesOperations.js +23 -40
- package/dist/esm/operations/machinesOperations.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/privateEndpointConnectionOperations.js +34 -46
- package/dist/esm/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/esm/operations/privateLinkResourceOperations.js +23 -40
- package/dist/esm/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/esm/operations/serverCollectorsOperations.js +34 -46
- package/dist/esm/operations/serverCollectorsOperations.js.map +1 -1
- package/dist/esm/operations/sqlAssessmentOptionsOperations.js +23 -40
- package/dist/esm/operations/sqlAssessmentOptionsOperations.js.map +1 -1
- package/dist/esm/operations/sqlAssessmentV2Operations.js +45 -52
- package/dist/esm/operations/sqlAssessmentV2Operations.js.map +1 -1
- package/dist/esm/operations/sqlAssessmentV2SummaryOperations.js +23 -40
- package/dist/esm/operations/sqlAssessmentV2SummaryOperations.js.map +1 -1
- package/dist/esm/operations/sqlCollectorOperations.js +34 -46
- package/dist/esm/operations/sqlCollectorOperations.js.map +1 -1
- package/dist/esm/operations/vmwareCollectorsOperations.js +34 -46
- package/dist/esm/operations/vmwareCollectorsOperations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/azureMigrateAssessmentService.js +38 -5
- package/dist/react-native/azureMigrateAssessmentService.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +1209 -588
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/assessedMachinesOperations.js +23 -40
- package/dist/react-native/operations/assessedMachinesOperations.js.map +1 -1
- package/dist/react-native/operations/assessedSqlDatabaseV2Operations.js +23 -40
- package/dist/react-native/operations/assessedSqlDatabaseV2Operations.js.map +1 -1
- package/dist/react-native/operations/assessedSqlInstanceV2Operations.js +23 -40
- package/dist/react-native/operations/assessedSqlInstanceV2Operations.js.map +1 -1
- package/dist/react-native/operations/assessedSqlMachinesOperations.js +23 -40
- package/dist/react-native/operations/assessedSqlMachinesOperations.js.map +1 -1
- package/dist/react-native/operations/assessedSqlRecommendedEntityOperations.js +23 -40
- package/dist/react-native/operations/assessedSqlRecommendedEntityOperations.js.map +1 -1
- package/dist/react-native/operations/assessmentOptionsOperations.js +23 -40
- package/dist/react-native/operations/assessmentOptionsOperations.js.map +1 -1
- package/dist/react-native/operations/assessmentProjectSummaryOperations.js +23 -40
- package/dist/react-native/operations/assessmentProjectSummaryOperations.js.map +1 -1
- package/dist/react-native/operations/assessmentProjectsOperations.js +67 -91
- package/dist/react-native/operations/assessmentProjectsOperations.js.map +1 -1
- package/dist/react-native/operations/assessmentsOperations.js +45 -52
- package/dist/react-native/operations/assessmentsOperations.js.map +1 -1
- package/dist/react-native/operations/avsAssessedMachinesOperations.js +23 -40
- package/dist/react-native/operations/avsAssessedMachinesOperations.js.map +1 -1
- package/dist/react-native/operations/avsAssessmentOptionsOperations.js +23 -40
- package/dist/react-native/operations/avsAssessmentOptionsOperations.js.map +1 -1
- package/dist/react-native/operations/avsAssessmentsOperations.js +45 -52
- package/dist/react-native/operations/avsAssessmentsOperations.js.map +1 -1
- package/dist/react-native/operations/groupsOperations.js +45 -52
- package/dist/react-native/operations/groupsOperations.js.map +1 -1
- package/dist/react-native/operations/hypervCollectorsOperations.js +34 -46
- package/dist/react-native/operations/hypervCollectorsOperations.js.map +1 -1
- package/dist/react-native/operations/importCollectorsOperations.js +34 -46
- package/dist/react-native/operations/importCollectorsOperations.js.map +1 -1
- package/dist/react-native/operations/machinesOperations.js +23 -40
- package/dist/react-native/operations/machinesOperations.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/privateEndpointConnectionOperations.js +34 -46
- package/dist/react-native/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/react-native/operations/privateLinkResourceOperations.js +23 -40
- package/dist/react-native/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/react-native/operations/serverCollectorsOperations.js +34 -46
- package/dist/react-native/operations/serverCollectorsOperations.js.map +1 -1
- package/dist/react-native/operations/sqlAssessmentOptionsOperations.js +23 -40
- package/dist/react-native/operations/sqlAssessmentOptionsOperations.js.map +1 -1
- package/dist/react-native/operations/sqlAssessmentV2Operations.js +45 -52
- package/dist/react-native/operations/sqlAssessmentV2Operations.js.map +1 -1
- package/dist/react-native/operations/sqlAssessmentV2SummaryOperations.js +23 -40
- package/dist/react-native/operations/sqlAssessmentV2SummaryOperations.js.map +1 -1
- package/dist/react-native/operations/sqlCollectorOperations.js +34 -46
- package/dist/react-native/operations/sqlCollectorOperations.js.map +1 -1
- package/dist/react-native/operations/vmwareCollectorsOperations.js +34 -46
- package/dist/react-native/operations/vmwareCollectorsOperations.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-migrationassessment-node.api.md +4068 -4068
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assessmentsOperations.js","sourceRoot":"","sources":["../../../src/operations/assessmentsOperations.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,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAgB9C,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,WAAW,CAChB,iBAAyB,EACzB,WAAmB,EACnB,SA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,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;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 { AssessmentsOperations } 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 { AzureMigrateAssessmentService } from \"../azureMigrateAssessmentService.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Assessment,\n AssessmentsOperationsListByGroupNextOptionalParams,\n AssessmentsOperationsListByGroupOptionalParams,\n AssessmentsOperationsListByGroupResponse,\n AssessmentsOperationsGetOptionalParams,\n AssessmentsOperationsGetResponse,\n AssessmentsOperationsCreateOptionalParams,\n AssessmentsOperationsCreateResponse,\n AssessmentsOperationsDeleteOptionalParams,\n AssessmentsOperationsDownloadUrlOptionalParams,\n AssessmentsOperationsDownloadUrlResponse,\n AssessmentsOperationsListByGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AssessmentsOperations operations. */\nexport class AssessmentsOperationsImpl implements AssessmentsOperations {\n private readonly client: AzureMigrateAssessmentService;\n\n /**\n * Initialize a new instance of the class AssessmentsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMigrateAssessmentService) {\n this.client = client;\n }\n\n /**\n * List Assessment resources by Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param options The options parameters.\n */\n public listByGroup(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n options?: AssessmentsOperationsListByGroupOptionalParams,\n ): PagedAsyncIterableIterator<Assessment> {\n const iter = this.listByGroupPagingAll(\n resourceGroupName,\n projectName,\n groupName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByGroupPagingPage(\n resourceGroupName,\n projectName,\n groupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByGroupPagingPage(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n options?: AssessmentsOperationsListByGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Assessment[]> {\n let result: AssessmentsOperationsListByGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByGroup(\n resourceGroupName,\n projectName,\n groupName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByGroupNext(\n resourceGroupName,\n projectName,\n groupName,\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 *listByGroupPagingAll(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n options?: AssessmentsOperationsListByGroupOptionalParams,\n ): AsyncIterableIterator<Assessment> {\n for await (const page of this.listByGroupPagingPage(\n resourceGroupName,\n projectName,\n groupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List Assessment resources by Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param options The options parameters.\n */\n private _listByGroup(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n options?: AssessmentsOperationsListByGroupOptionalParams,\n ): Promise<AssessmentsOperationsListByGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, groupName, options },\n listByGroupOperationSpec,\n );\n }\n\n /**\n * Get a Assessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AssessmentsOperationsGetOptionalParams,\n ): Promise<AssessmentsOperationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, groupName, assessmentName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a Assessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n resource: Assessment,\n options?: AssessmentsOperationsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AssessmentsOperationsCreateResponse>,\n AssessmentsOperationsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AssessmentsOperationsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n resource,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n AssessmentsOperationsCreateResponse,\n OperationState<AssessmentsOperationsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a Assessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n resource: Assessment,\n options?: AssessmentsOperationsCreateOptionalParams,\n ): Promise<AssessmentsOperationsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n resource,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a Assessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AssessmentsOperationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, groupName, assessmentName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the URL for downloading the assessment in a report format.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param body The content of the action request\n * @param options The options parameters.\n */\n async beginDownloadUrl(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n body: Record<string, unknown>,\n options?: AssessmentsOperationsDownloadUrlOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AssessmentsOperationsDownloadUrlResponse>,\n AssessmentsOperationsDownloadUrlResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AssessmentsOperationsDownloadUrlResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n body,\n options,\n },\n spec: downloadUrlOperationSpec,\n });\n const poller = await createHttpPoller<\n AssessmentsOperationsDownloadUrlResponse,\n OperationState<AssessmentsOperationsDownloadUrlResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Get the URL for downloading the assessment in a report format.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param body The content of the action request\n * @param options The options parameters.\n */\n async beginDownloadUrlAndWait(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n body: Record<string, unknown>,\n options?: AssessmentsOperationsDownloadUrlOptionalParams,\n ): Promise<AssessmentsOperationsDownloadUrlResponse> {\n const poller = await this.beginDownloadUrl(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param nextLink The nextLink from the previous successful call to the ListByGroup method.\n * @param options The options parameters.\n */\n private _listByGroupNext(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n nextLink: string,\n options?: AssessmentsOperationsListByGroupNextOptionalParams,\n ): Promise<AssessmentsOperationsListByGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, groupName, nextLink, options },\n listByGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentListResult,\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.projectName,\n Parameters.groupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Assessment,\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.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Assessment,\n },\n 201: {\n bodyMapper: Mappers.Assessment,\n },\n 202: {\n bodyMapper: Mappers.Assessment,\n },\n 204: {\n bodyMapper: Mappers.Assessment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\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.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst downloadUrlOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}/downloadUrl\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DownloadUrl,\n },\n 201: {\n bodyMapper: Mappers.DownloadUrl,\n },\n 202: {\n bodyMapper: Mappers.DownloadUrl,\n },\n 204: {\n bodyMapper: Mappers.DownloadUrl,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.groupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"assessmentsOperations.js","sourceRoot":"","sources":["../../../src/operations/assessmentsOperations.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,OAA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,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;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 { AssessmentsOperations } 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 { AzureMigrateAssessmentService } from \"../azureMigrateAssessmentService.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Assessment,\n AssessmentsOperationsListByGroupNextOptionalParams,\n AssessmentsOperationsListByGroupOptionalParams,\n AssessmentsOperationsListByGroupResponse,\n AssessmentsOperationsGetOptionalParams,\n AssessmentsOperationsGetResponse,\n AssessmentsOperationsCreateOptionalParams,\n AssessmentsOperationsCreateResponse,\n AssessmentsOperationsDeleteOptionalParams,\n AssessmentsOperationsDownloadUrlOptionalParams,\n AssessmentsOperationsDownloadUrlResponse,\n AssessmentsOperationsListByGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AssessmentsOperations operations. */\nexport class AssessmentsOperationsImpl implements AssessmentsOperations {\n private readonly client: AzureMigrateAssessmentService;\n\n /**\n * Initialize a new instance of the class AssessmentsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMigrateAssessmentService) {\n this.client = client;\n }\n\n /**\n * List Assessment resources by Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param options The options parameters.\n */\n public listByGroup(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n options?: AssessmentsOperationsListByGroupOptionalParams,\n ): PagedAsyncIterableIterator<Assessment> {\n const iter = this.listByGroupPagingAll(\n resourceGroupName,\n projectName,\n groupName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByGroupPagingPage(\n resourceGroupName,\n projectName,\n groupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByGroupPagingPage(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n options?: AssessmentsOperationsListByGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Assessment[]> {\n let result: AssessmentsOperationsListByGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByGroup(\n resourceGroupName,\n projectName,\n groupName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByGroupNext(\n resourceGroupName,\n projectName,\n groupName,\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 *listByGroupPagingAll(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n options?: AssessmentsOperationsListByGroupOptionalParams,\n ): AsyncIterableIterator<Assessment> {\n for await (const page of this.listByGroupPagingPage(\n resourceGroupName,\n projectName,\n groupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List Assessment resources by Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param options The options parameters.\n */\n private _listByGroup(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n options?: AssessmentsOperationsListByGroupOptionalParams,\n ): Promise<AssessmentsOperationsListByGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, groupName, options },\n listByGroupOperationSpec,\n );\n }\n\n /**\n * Get a Assessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AssessmentsOperationsGetOptionalParams,\n ): Promise<AssessmentsOperationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, groupName, assessmentName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a Assessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n resource: Assessment,\n options?: AssessmentsOperationsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AssessmentsOperationsCreateResponse>,\n AssessmentsOperationsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AssessmentsOperationsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n resource,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n AssessmentsOperationsCreateResponse,\n OperationState<AssessmentsOperationsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a Assessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n resource: Assessment,\n options?: AssessmentsOperationsCreateOptionalParams,\n ): Promise<AssessmentsOperationsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n resource,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a Assessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AssessmentsOperationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, groupName, assessmentName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the URL for downloading the assessment in a report format.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param body The content of the action request\n * @param options The options parameters.\n */\n async beginDownloadUrl(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n body: Record<string, unknown>,\n options?: AssessmentsOperationsDownloadUrlOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AssessmentsOperationsDownloadUrlResponse>,\n AssessmentsOperationsDownloadUrlResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AssessmentsOperationsDownloadUrlResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n body,\n options,\n },\n spec: downloadUrlOperationSpec,\n });\n const poller = await createHttpPoller<\n AssessmentsOperationsDownloadUrlResponse,\n OperationState<AssessmentsOperationsDownloadUrlResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Get the URL for downloading the assessment in a report format.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName Machine Assessment ARM name\n * @param body The content of the action request\n * @param options The options parameters.\n */\n async beginDownloadUrlAndWait(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n body: Record<string, unknown>,\n options?: AssessmentsOperationsDownloadUrlOptionalParams,\n ): Promise<AssessmentsOperationsDownloadUrlResponse> {\n const poller = await this.beginDownloadUrl(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param nextLink The nextLink from the previous successful call to the ListByGroup method.\n * @param options The options parameters.\n */\n private _listByGroupNext(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n nextLink: string,\n options?: AssessmentsOperationsListByGroupNextOptionalParams,\n ): Promise<AssessmentsOperationsListByGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, groupName, nextLink, options },\n listByGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentListResult,\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.projectName,\n Parameters.groupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Assessment,\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.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Assessment,\n },\n 201: {\n bodyMapper: Mappers.Assessment,\n },\n 202: {\n bodyMapper: Mappers.Assessment,\n },\n 204: {\n bodyMapper: Mappers.Assessment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\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.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst downloadUrlOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}/downloadUrl\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DownloadUrl,\n },\n 201: {\n bodyMapper: Mappers.DownloadUrl,\n },\n 202: {\n bodyMapper: Mappers.DownloadUrl,\n },\n 204: {\n bodyMapper: Mappers.DownloadUrl,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AssessmentListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.groupName,\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";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing AvsAssessedMachinesOperations operations. */
|
|
15
14
|
export class AvsAssessedMachinesOperationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class AvsAssessedMachinesOperations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class AvsAssessedMachinesOperationsImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByAvsAssessmentPagingPage(resourceGroupName, projectName, groupName, assessmentName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByAvsAssessmentPagingPage(resourceGroupName, projectName, groupName, assessmentName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByAvsAssessmentPagingPage(resourceGroupName, projectName, groupName, assessmentName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByAvsAssessment(resourceGroupName, projectName, groupName, assessmentName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByAvsAssessmentNext(resourceGroupName, projectName, groupName, assessmentName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByAvsAssessmentPagingAll(resourceGroupName, projectName, groupName, assessmentName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByAvsAssessmentPagingPage(resourceGroupName, projectName, groupName, assessmentName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listByAvsAssessmentPagingAll(resourceGroupName, projectName, groupName, assessmentName, options) {
|
|
67
|
+
for await (const page of this.listByAvsAssessmentPagingPage(resourceGroupName, projectName, groupName, assessmentName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* List AvsAssessedMachine resources by AvsAssessment
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avsAssessedMachinesOperations.js","sourceRoot":"","sources":["../../../src/operations/avsAssessedMachinesOperations.ts"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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 { AvsAssessedMachinesOperations } 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 { AzureMigrateAssessmentService } from \"../azureMigrateAssessmentService.js\";\nimport {\n AvsAssessedMachine,\n AvsAssessedMachinesOperationsListByAvsAssessmentNextOptionalParams,\n AvsAssessedMachinesOperationsListByAvsAssessmentOptionalParams,\n AvsAssessedMachinesOperationsListByAvsAssessmentResponse,\n AvsAssessedMachinesOperationsGetOptionalParams,\n AvsAssessedMachinesOperationsGetResponse,\n AvsAssessedMachinesOperationsListByAvsAssessmentNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AvsAssessedMachinesOperations operations. */\nexport class AvsAssessedMachinesOperationsImpl\n implements AvsAssessedMachinesOperations\n{\n private readonly client: AzureMigrateAssessmentService;\n\n /**\n * Initialize a new instance of the class AvsAssessedMachinesOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMigrateAssessmentService) {\n this.client = client;\n }\n\n /**\n * List AvsAssessedMachine resources by AvsAssessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName AVS Assessment ARM name\n * @param options The options parameters.\n */\n public listByAvsAssessment(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AvsAssessedMachinesOperationsListByAvsAssessmentOptionalParams,\n ): PagedAsyncIterableIterator<AvsAssessedMachine> {\n const iter = this.listByAvsAssessmentPagingAll(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAvsAssessmentPagingPage(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByAvsAssessmentPagingPage(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AvsAssessedMachinesOperationsListByAvsAssessmentOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AvsAssessedMachine[]> {\n let result: AvsAssessedMachinesOperationsListByAvsAssessmentResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAvsAssessment(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAvsAssessmentNext(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\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 *listByAvsAssessmentPagingAll(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AvsAssessedMachinesOperationsListByAvsAssessmentOptionalParams,\n ): AsyncIterableIterator<AvsAssessedMachine> {\n for await (const page of this.listByAvsAssessmentPagingPage(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List AvsAssessedMachine resources by AvsAssessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName AVS Assessment ARM name\n * @param options The options parameters.\n */\n private _listByAvsAssessment(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AvsAssessedMachinesOperationsListByAvsAssessmentOptionalParams,\n ): Promise<AvsAssessedMachinesOperationsListByAvsAssessmentResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, groupName, assessmentName, options },\n listByAvsAssessmentOperationSpec,\n );\n }\n\n /**\n * Get a AvsAssessedMachine\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName AVS Assessment ARM name\n * @param avsAssessedMachineName AVS assessment Assessed Machine ARM name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n avsAssessedMachineName: string,\n options?: AvsAssessedMachinesOperationsGetOptionalParams,\n ): Promise<AvsAssessedMachinesOperationsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n avsAssessedMachineName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListByAvsAssessmentNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName AVS Assessment ARM name\n * @param nextLink The nextLink from the previous successful call to the ListByAvsAssessment method.\n * @param options The options parameters.\n */\n private _listByAvsAssessmentNext(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n nextLink: string,\n options?: AvsAssessedMachinesOperationsListByAvsAssessmentNextOptionalParams,\n ): Promise<AvsAssessedMachinesOperationsListByAvsAssessmentNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n nextLink,\n options,\n },\n listByAvsAssessmentNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByAvsAssessmentOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/avsAssessments/{assessmentName}/avsAssessedMachines\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessedMachineListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.pageSize,\n Parameters.continuationToken,\n Parameters.totalRecordCount,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/avsAssessments/{assessmentName}/avsAssessedMachines/{avsAssessedMachineName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessedMachine,\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.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n Parameters.avsAssessedMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByAvsAssessmentNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessedMachineListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"avsAssessedMachinesOperations.js","sourceRoot":"","sources":["../../../src/operations/avsAssessedMachinesOperations.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;AAYtD,4CAA4C;AAC5C,iEAAiE;AACjE,MAAM,OAAO,iCAAiC;IAG3B,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,WAAmB,EACnB,SAAiB,EACjB,cAAsB,EACtB,OAAwE;QAExE,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAC5C,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,cAAc,EACd,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,cAAc,EACd,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,6BAA6B,CAC1C,iBAAyB,EACzB,WAAmB,EACnB,SAAiB,EACjB,cAAsB,EACtB,OAAwE,EACxE,QAA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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 { AvsAssessedMachinesOperations } 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 { AzureMigrateAssessmentService } from \"../azureMigrateAssessmentService.js\";\nimport {\n AvsAssessedMachine,\n AvsAssessedMachinesOperationsListByAvsAssessmentNextOptionalParams,\n AvsAssessedMachinesOperationsListByAvsAssessmentOptionalParams,\n AvsAssessedMachinesOperationsListByAvsAssessmentResponse,\n AvsAssessedMachinesOperationsGetOptionalParams,\n AvsAssessedMachinesOperationsGetResponse,\n AvsAssessedMachinesOperationsListByAvsAssessmentNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AvsAssessedMachinesOperations operations. */\nexport class AvsAssessedMachinesOperationsImpl\n implements AvsAssessedMachinesOperations\n{\n private readonly client: AzureMigrateAssessmentService;\n\n /**\n * Initialize a new instance of the class AvsAssessedMachinesOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMigrateAssessmentService) {\n this.client = client;\n }\n\n /**\n * List AvsAssessedMachine resources by AvsAssessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName AVS Assessment ARM name\n * @param options The options parameters.\n */\n public listByAvsAssessment(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AvsAssessedMachinesOperationsListByAvsAssessmentOptionalParams,\n ): PagedAsyncIterableIterator<AvsAssessedMachine> {\n const iter = this.listByAvsAssessmentPagingAll(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAvsAssessmentPagingPage(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByAvsAssessmentPagingPage(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AvsAssessedMachinesOperationsListByAvsAssessmentOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AvsAssessedMachine[]> {\n let result: AvsAssessedMachinesOperationsListByAvsAssessmentResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAvsAssessment(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAvsAssessmentNext(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\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 *listByAvsAssessmentPagingAll(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AvsAssessedMachinesOperationsListByAvsAssessmentOptionalParams,\n ): AsyncIterableIterator<AvsAssessedMachine> {\n for await (const page of this.listByAvsAssessmentPagingPage(\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List AvsAssessedMachine resources by AvsAssessment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName AVS Assessment ARM name\n * @param options The options parameters.\n */\n private _listByAvsAssessment(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n options?: AvsAssessedMachinesOperationsListByAvsAssessmentOptionalParams,\n ): Promise<AvsAssessedMachinesOperationsListByAvsAssessmentResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, groupName, assessmentName, options },\n listByAvsAssessmentOperationSpec,\n );\n }\n\n /**\n * Get a AvsAssessedMachine\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName AVS Assessment ARM name\n * @param avsAssessedMachineName AVS assessment Assessed Machine ARM name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n avsAssessedMachineName: string,\n options?: AvsAssessedMachinesOperationsGetOptionalParams,\n ): Promise<AvsAssessedMachinesOperationsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n avsAssessedMachineName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListByAvsAssessmentNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param groupName Group ARM name\n * @param assessmentName AVS Assessment ARM name\n * @param nextLink The nextLink from the previous successful call to the ListByAvsAssessment method.\n * @param options The options parameters.\n */\n private _listByAvsAssessmentNext(\n resourceGroupName: string,\n projectName: string,\n groupName: string,\n assessmentName: string,\n nextLink: string,\n options?: AvsAssessedMachinesOperationsListByAvsAssessmentNextOptionalParams,\n ): Promise<AvsAssessedMachinesOperationsListByAvsAssessmentNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n projectName,\n groupName,\n assessmentName,\n nextLink,\n options,\n },\n listByAvsAssessmentNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByAvsAssessmentOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/avsAssessments/{assessmentName}/avsAssessedMachines\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessedMachineListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.pageSize,\n Parameters.continuationToken,\n Parameters.totalRecordCount,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/avsAssessments/{assessmentName}/avsAssessedMachines/{avsAssessedMachineName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessedMachine,\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.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\n Parameters.avsAssessedMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByAvsAssessmentNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessedMachineListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.groupName,\n Parameters.assessmentName,\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";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing AvsAssessmentOptionsOperations operations. */
|
|
15
14
|
export class AvsAssessmentOptionsOperationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class AvsAssessmentOptionsOperations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class AvsAssessmentOptionsOperationsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listByAssessmentProjectPagingPage(resourceGroupName, projectName, options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listByAssessmentProjectPagingPage(resourceGroupName, projectName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listByAssessmentProjectPagingPage(resourceGroupName, projectName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listByAssessmentProject(resourceGroupName, projectName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listByAssessmentProjectNext(resourceGroupName, projectName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listByAssessmentProjectPagingAll(resourceGroupName, projectName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listByAssessmentProjectPagingPage(resourceGroupName, projectName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listByAssessmentProjectPagingAll(resourceGroupName, projectName, options) {
|
|
65
|
+
for await (const page of this.listByAssessmentProjectPagingPage(resourceGroupName, projectName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* List AvsAssessmentOptions resources by AssessmentProject
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avsAssessmentOptionsOperations.js","sourceRoot":"","sources":["../../../src/operations/avsAssessmentOptionsOperations.ts"],"names":[],"mappings":"AAAA;;;;;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e,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,wBAAwB;KACpC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;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 { AvsAssessmentOptionsOperations } 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 { AzureMigrateAssessmentService } from \"../azureMigrateAssessmentService.js\";\nimport {\n AvsAssessmentOptions,\n AvsAssessmentOptionsOperationsListByAssessmentProjectNextOptionalParams,\n AvsAssessmentOptionsOperationsListByAssessmentProjectOptionalParams,\n AvsAssessmentOptionsOperationsListByAssessmentProjectResponse,\n AvsAssessmentOptionsOperationsGetOptionalParams,\n AvsAssessmentOptionsOperationsGetResponse,\n AvsAssessmentOptionsOperationsListByAssessmentProjectNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AvsAssessmentOptionsOperations operations. */\nexport class AvsAssessmentOptionsOperationsImpl\n implements AvsAssessmentOptionsOperations\n{\n private readonly client: AzureMigrateAssessmentService;\n\n /**\n * Initialize a new instance of the class AvsAssessmentOptionsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMigrateAssessmentService) {\n this.client = client;\n }\n\n /**\n * List AvsAssessmentOptions resources by AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param options The options parameters.\n */\n public listByAssessmentProject(\n resourceGroupName: string,\n projectName: string,\n options?: AvsAssessmentOptionsOperationsListByAssessmentProjectOptionalParams,\n ): PagedAsyncIterableIterator<AvsAssessmentOptions> {\n const iter = this.listByAssessmentProjectPagingAll(\n resourceGroupName,\n projectName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAssessmentProjectPagingPage(\n resourceGroupName,\n projectName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByAssessmentProjectPagingPage(\n resourceGroupName: string,\n projectName: string,\n options?: AvsAssessmentOptionsOperationsListByAssessmentProjectOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AvsAssessmentOptions[]> {\n let result: AvsAssessmentOptionsOperationsListByAssessmentProjectResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAssessmentProject(\n resourceGroupName,\n projectName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAssessmentProjectNext(\n resourceGroupName,\n projectName,\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 *listByAssessmentProjectPagingAll(\n resourceGroupName: string,\n projectName: string,\n options?: AvsAssessmentOptionsOperationsListByAssessmentProjectOptionalParams,\n ): AsyncIterableIterator<AvsAssessmentOptions> {\n for await (const page of this.listByAssessmentProjectPagingPage(\n resourceGroupName,\n projectName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List AvsAssessmentOptions resources by AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param options The options parameters.\n */\n private _listByAssessmentProject(\n resourceGroupName: string,\n projectName: string,\n options?: AvsAssessmentOptionsOperationsListByAssessmentProjectOptionalParams,\n ): Promise<AvsAssessmentOptionsOperationsListByAssessmentProjectResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, options },\n listByAssessmentProjectOperationSpec,\n );\n }\n\n /**\n * Get a AvsAssessmentOptions\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param avsAssessmentOptionsName AVS Assessment options ARM name. Accepted value is 'default'\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n projectName: string,\n avsAssessmentOptionsName: string,\n options?: AvsAssessmentOptionsOperationsGetOptionalParams,\n ): Promise<AvsAssessmentOptionsOperationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, avsAssessmentOptionsName, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListByAssessmentProjectNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param nextLink The nextLink from the previous successful call to the ListByAssessmentProject\n * method.\n * @param options The options parameters.\n */\n private _listByAssessmentProjectNext(\n resourceGroupName: string,\n projectName: string,\n nextLink: string,\n options?: AvsAssessmentOptionsOperationsListByAssessmentProjectNextOptionalParams,\n ): Promise<AvsAssessmentOptionsOperationsListByAssessmentProjectNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, nextLink, options },\n listByAssessmentProjectNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByAssessmentProjectOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/avsAssessmentOptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessmentOptionsListResult,\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.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/avsAssessmentOptions/{avsAssessmentOptionsName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessmentOptions,\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.projectName,\n Parameters.avsAssessmentOptionsName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByAssessmentProjectNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessmentOptionsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"avsAssessmentOptionsOperations.js","sourceRoot":"","sources":["../../../src/operations/avsAssessmentOptionsOperations.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;AAYtD,4CAA4C;AAC5C,kEAAkE;AAClE,MAAM,OAAO,kCAAkC;IAG5B,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,WAAmB,EACnB,OAA6E;QAE7E,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAChD,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,iCAAiC,CAC3C,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,iCAAiC,CAC9C,iBAAyB,EACzB,WAAmB,EACnB,OAA6E,EAC7E,QAAuB;QAEvB,IAAI,MAAqE,CAAC;QAC1E,IAAI,iBAAiB,G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AC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,wBAAwB;KACpC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;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 { AvsAssessmentOptionsOperations } 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 { AzureMigrateAssessmentService } from \"../azureMigrateAssessmentService.js\";\nimport {\n AvsAssessmentOptions,\n AvsAssessmentOptionsOperationsListByAssessmentProjectNextOptionalParams,\n AvsAssessmentOptionsOperationsListByAssessmentProjectOptionalParams,\n AvsAssessmentOptionsOperationsListByAssessmentProjectResponse,\n AvsAssessmentOptionsOperationsGetOptionalParams,\n AvsAssessmentOptionsOperationsGetResponse,\n AvsAssessmentOptionsOperationsListByAssessmentProjectNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AvsAssessmentOptionsOperations operations. */\nexport class AvsAssessmentOptionsOperationsImpl\n implements AvsAssessmentOptionsOperations\n{\n private readonly client: AzureMigrateAssessmentService;\n\n /**\n * Initialize a new instance of the class AvsAssessmentOptionsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMigrateAssessmentService) {\n this.client = client;\n }\n\n /**\n * List AvsAssessmentOptions resources by AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param options The options parameters.\n */\n public listByAssessmentProject(\n resourceGroupName: string,\n projectName: string,\n options?: AvsAssessmentOptionsOperationsListByAssessmentProjectOptionalParams,\n ): PagedAsyncIterableIterator<AvsAssessmentOptions> {\n const iter = this.listByAssessmentProjectPagingAll(\n resourceGroupName,\n projectName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAssessmentProjectPagingPage(\n resourceGroupName,\n projectName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByAssessmentProjectPagingPage(\n resourceGroupName: string,\n projectName: string,\n options?: AvsAssessmentOptionsOperationsListByAssessmentProjectOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AvsAssessmentOptions[]> {\n let result: AvsAssessmentOptionsOperationsListByAssessmentProjectResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAssessmentProject(\n resourceGroupName,\n projectName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAssessmentProjectNext(\n resourceGroupName,\n projectName,\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 *listByAssessmentProjectPagingAll(\n resourceGroupName: string,\n projectName: string,\n options?: AvsAssessmentOptionsOperationsListByAssessmentProjectOptionalParams,\n ): AsyncIterableIterator<AvsAssessmentOptions> {\n for await (const page of this.listByAssessmentProjectPagingPage(\n resourceGroupName,\n projectName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List AvsAssessmentOptions resources by AssessmentProject\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param options The options parameters.\n */\n private _listByAssessmentProject(\n resourceGroupName: string,\n projectName: string,\n options?: AvsAssessmentOptionsOperationsListByAssessmentProjectOptionalParams,\n ): Promise<AvsAssessmentOptionsOperationsListByAssessmentProjectResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, options },\n listByAssessmentProjectOperationSpec,\n );\n }\n\n /**\n * Get a AvsAssessmentOptions\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param avsAssessmentOptionsName AVS Assessment options ARM name. Accepted value is 'default'\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n projectName: string,\n avsAssessmentOptionsName: string,\n options?: AvsAssessmentOptionsOperationsGetOptionalParams,\n ): Promise<AvsAssessmentOptionsOperationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, avsAssessmentOptionsName, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListByAssessmentProjectNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName Assessment Project Name\n * @param nextLink The nextLink from the previous successful call to the ListByAssessmentProject\n * method.\n * @param options The options parameters.\n */\n private _listByAssessmentProjectNext(\n resourceGroupName: string,\n projectName: string,\n nextLink: string,\n options?: AvsAssessmentOptionsOperationsListByAssessmentProjectNextOptionalParams,\n ): Promise<AvsAssessmentOptionsOperationsListByAssessmentProjectNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, nextLink, options },\n listByAssessmentProjectNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByAssessmentProjectOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/avsAssessmentOptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessmentOptionsListResult,\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.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/avsAssessmentOptions/{avsAssessmentOptionsName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessmentOptions,\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.projectName,\n Parameters.avsAssessmentOptionsName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByAssessmentProjectNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvsAssessmentOptionsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\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 { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing AvsAssessmentsOperations operations. */
|
|
17
16
|
export class AvsAssessmentsOperationsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class AvsAssessmentsOperations class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -39,52 +39,35 @@ export class AvsAssessmentsOperationsImpl {
|
|
|
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.listByGroupPagingPage(resourceGroupName, projectName, groupName, options, settings);
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
listByGroupPagingPage(resourceGroupName, projectName, groupName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
49
|
+
async *listByGroupPagingPage(resourceGroupName, projectName, groupName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._listByGroup(resourceGroupName, projectName, groupName, 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._listByGroupNext(resourceGroupName, projectName, groupName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
68
66
|
}
|
|
69
|
-
listByGroupPagingAll(resourceGroupName, projectName, groupName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = __asyncValues(this.listByGroupPagingPage(resourceGroupName, projectName, groupName, 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 *listByGroupPagingAll(resourceGroupName, projectName, groupName, options) {
|
|
68
|
+
for await (const page of this.listByGroupPagingPage(resourceGroupName, projectName, groupName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
88
71
|
}
|
|
89
72
|
/**
|
|
90
73
|
* List AvsAssessment resources by Group
|
|
@@ -121,14 +104,19 @@ export class AvsAssessmentsOperationsImpl {
|
|
|
121
104
|
return this.client.sendOperationRequest(args, spec);
|
|
122
105
|
};
|
|
123
106
|
const sendOperationFn = async (args, spec) => {
|
|
124
|
-
var _a;
|
|
125
107
|
let currentRawResponse = undefined;
|
|
126
|
-
const providedCallback =
|
|
108
|
+
const providedCallback = args.options?.onResponse;
|
|
127
109
|
const callback = (rawResponse, flatResponse) => {
|
|
128
110
|
currentRawResponse = rawResponse;
|
|
129
|
-
providedCallback
|
|
111
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
112
|
+
};
|
|
113
|
+
const updatedArgs = {
|
|
114
|
+
...args,
|
|
115
|
+
options: {
|
|
116
|
+
...args.options,
|
|
117
|
+
onResponse: callback,
|
|
118
|
+
},
|
|
130
119
|
};
|
|
131
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
132
120
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
133
121
|
return {
|
|
134
122
|
flatResponse,
|
|
@@ -152,8 +140,8 @@ export class AvsAssessmentsOperationsImpl {
|
|
|
152
140
|
spec: createOperationSpec,
|
|
153
141
|
});
|
|
154
142
|
const poller = await createHttpPoller(lro, {
|
|
155
|
-
restoreFrom: options
|
|
156
|
-
intervalInMs: options
|
|
143
|
+
restoreFrom: options?.resumeFrom,
|
|
144
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
157
145
|
resourceLocationConfig: "azure-async-operation",
|
|
158
146
|
});
|
|
159
147
|
await poller.poll();
|
|
@@ -197,14 +185,19 @@ export class AvsAssessmentsOperationsImpl {
|
|
|
197
185
|
return this.client.sendOperationRequest(args, spec);
|
|
198
186
|
};
|
|
199
187
|
const sendOperationFn = async (args, spec) => {
|
|
200
|
-
var _a;
|
|
201
188
|
let currentRawResponse = undefined;
|
|
202
|
-
const providedCallback =
|
|
189
|
+
const providedCallback = args.options?.onResponse;
|
|
203
190
|
const callback = (rawResponse, flatResponse) => {
|
|
204
191
|
currentRawResponse = rawResponse;
|
|
205
|
-
providedCallback
|
|
192
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
193
|
+
};
|
|
194
|
+
const updatedArgs = {
|
|
195
|
+
...args,
|
|
196
|
+
options: {
|
|
197
|
+
...args.options,
|
|
198
|
+
onResponse: callback,
|
|
199
|
+
},
|
|
206
200
|
};
|
|
207
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
208
201
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
209
202
|
return {
|
|
210
203
|
flatResponse,
|
|
@@ -228,8 +221,8 @@ export class AvsAssessmentsOperationsImpl {
|
|
|
228
221
|
spec: downloadUrlOperationSpec,
|
|
229
222
|
});
|
|
230
223
|
const poller = await createHttpPoller(lro, {
|
|
231
|
-
restoreFrom: options
|
|
232
|
-
intervalInMs: options
|
|
224
|
+
restoreFrom: options?.resumeFrom,
|
|
225
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
233
226
|
resourceLocationConfig: "location",
|
|
234
227
|
});
|
|
235
228
|
await poller.poll();
|