@azure/arm-loadtesting 1.0.1-alpha.20250211.1 → 1.0.1-alpha.20250212.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/README.md +63 -35
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/loadTestClient.d.ts +2 -2
- package/dist/browser/loadTestClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/loadTestClient.js +15 -18
- package/dist/browser/loadTestClient.js.map +1 -0
- package/dist/browser/lroImpl.js +25 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +3 -3
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/loadTests.d.ts +3 -3
- package/dist/browser/operations/loadTests.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/loadTests.js +109 -121
- package/dist/browser/operations/loadTests.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/quotas.d.ts +3 -3
- package/dist/browser/operations/quotas.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/quotas.js +3 -3
- package/dist/browser/operations/quotas.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +3 -3
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/loadTests.d.ts +1 -1
- package/dist/browser/operationsInterfaces/loadTests.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/loadTests.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/quotas.d.ts +1 -1
- package/dist/browser/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/quotas.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/loadTestClient.d.ts +22 -0
- package/dist/commonjs/loadTestClient.d.ts.map +1 -0
- package/dist/commonjs/loadTestClient.js +104 -0
- package/dist/commonjs/loadTestClient.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +16 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +29 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-loadtesting.d.ts → dist/commonjs/models/index.d.ts} +568 -781
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +71 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +30 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +803 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +15 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +139 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +14 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/loadTests.d.ts +132 -0
- package/dist/commonjs/operations/loadTests.d.ts.map +1 -0
- package/dist/commonjs/operations/loadTests.js +656 -0
- package/dist/commonjs/operations/loadTests.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +137 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/quotas.d.ts +50 -0
- package/dist/commonjs/operations/quotas.d.ts.map +1 -0
- package/dist/commonjs/operations/quotas.js +212 -0
- package/dist/commonjs/operations/quotas.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +14 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/loadTests.d.ts +78 -0
- package/dist/commonjs/operationsInterfaces/loadTests.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/loadTests.js +10 -0
- package/dist/commonjs/operationsInterfaces/loadTests.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/quotas.d.ts +27 -0
- package/dist/commonjs/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/quotas.js +10 -0
- package/dist/commonjs/operationsInterfaces/quotas.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loadTestClient.d.ts +22 -0
- package/dist/esm/loadTestClient.d.ts.map +1 -0
- package/dist/esm/loadTestClient.js +99 -0
- package/dist/esm/loadTestClient.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +25 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +568 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +68 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +30 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +800 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +15 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +136 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +11 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/loadTests.d.ts +132 -0
- package/dist/esm/operations/loadTests.d.ts.map +1 -0
- package/dist/esm/operations/loadTests.js +652 -0
- package/dist/esm/operations/loadTests.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +133 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/quotas.d.ts +50 -0
- package/dist/esm/operations/quotas.d.ts.map +1 -0
- package/dist/esm/operations/quotas.js +208 -0
- package/dist/esm/operations/quotas.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +11 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/loadTests.d.ts +78 -0
- package/dist/esm/operationsInterfaces/loadTests.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/loadTests.js} +2 -4
- package/dist/esm/operationsInterfaces/loadTests.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/quotas.d.ts +27 -0
- package/dist/esm/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/quotas.js +9 -0
- package/dist/esm/operationsInterfaces/quotas.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/loadTestClient.d.ts +22 -0
- package/dist/react-native/loadTestClient.d.ts.map +1 -0
- package/dist/react-native/loadTestClient.js +99 -0
- package/dist/react-native/loadTestClient.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +16 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +25 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +568 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +68 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +30 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +800 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +15 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +136 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +11 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/loadTests.d.ts +132 -0
- package/dist/react-native/operations/loadTests.d.ts.map +1 -0
- package/dist/react-native/operations/loadTests.js +652 -0
- package/dist/react-native/operations/loadTests.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +133 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/quotas.d.ts +50 -0
- package/dist/react-native/operations/quotas.d.ts.map +1 -0
- package/dist/react-native/operations/quotas.js +208 -0
- package/dist/react-native/operations/quotas.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +11 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/loadTests.d.ts +78 -0
- package/dist/react-native/operationsInterfaces/loadTests.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/loadTests.js +9 -0
- package/dist/react-native/operationsInterfaces/loadTests.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/quotas.d.ts +27 -0
- package/dist/react-native/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/quotas.js +9 -0
- package/dist/react-native/operationsInterfaces/quotas.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +69 -40
- package/dist/index.js +0 -2213
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.js +0 -47
- package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/loadTestsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/loadTestsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/loadTestsDeleteSample.js +0 -36
- package/dist-esm/samples-dev/loadTestsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/loadTestsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/loadTestsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/loadTestsGetSample.js +0 -36
- package/dist-esm/samples-dev/loadTestsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.js +0 -51
- package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.js +0 -50
- package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.d.ts +0 -2
- package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.js +0 -52
- package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.js.map +0 -1
- package/dist-esm/samples-dev/loadTestsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/loadTestsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/loadTestsUpdateSample.js +0 -43
- package/dist-esm/samples-dev/loadTestsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -50
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/quotasCheckAvailabilitySample.d.ts +0 -2
- package/dist-esm/samples-dev/quotasCheckAvailabilitySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/quotasCheckAvailabilitySample.js +0 -35
- package/dist-esm/samples-dev/quotasCheckAvailabilitySample.js.map +0 -1
- package/dist-esm/samples-dev/quotasGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/quotasGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/quotasGetSample.js +0 -36
- package/dist-esm/samples-dev/quotasGetSample.js.map +0 -1
- package/dist-esm/samples-dev/quotasListSample.d.ts +0 -2
- package/dist-esm/samples-dev/quotasListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/quotasListSample.js +0 -51
- package/dist-esm/samples-dev/quotasListSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/loadTestClient.d.ts.map +0 -1
- package/dist-esm/src/loadTestClient.js.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -29
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -4
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/loadTests.d.ts.map +0 -1
- package/dist-esm/src/operations/loadTests.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/quotas.d.ts.map +0 -1
- package/dist-esm/src/operations/quotas.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/loadTests.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/loadTests.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/quotas.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/quotas.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/loadtesting_quota_operations.spec.d.ts +0 -2
- package/dist-esm/test/loadtesting_quota_operations.spec.d.ts.map +0 -1
- package/dist-esm/test/loadtesting_quota_operations.spec.js +0 -121
- package/dist-esm/test/loadtesting_quota_operations.spec.js.map +0 -1
- package/dist-esm/test/loadtesting_resource_operations.spec.d.ts +0 -4
- package/dist-esm/test/loadtesting_resource_operations.spec.d.ts.map +0 -1
- package/dist-esm/test/loadtesting_resource_operations.spec.js +0 -121
- package/dist-esm/test/loadtesting_resource_operations.spec.js.map +0 -1
- package/src/loadTestClient.ts +0 -144
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -645
- package/src/models/mappers.ts +0 -855
- package/src/models/parameters.ts +0 -158
- package/src/operations/loadTests.ts +0 -884
- package/src/operations/operations.ts +0 -149
- package/src/operations/quotas.ts +0 -257
- package/src/operationsInterfaces/index.ts +0 -11
- package/src/operationsInterfaces/loadTests.ts +0 -152
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/quotas.ts +0 -56
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/loadTests.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/quotas.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
|
@@ -0,0 +1,652 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
import { LroEngine } from "@azure/core-lro";
|
|
14
|
+
import { LroImpl } from "../lroImpl.js";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing LoadTests operations. */
|
|
17
|
+
export class LoadTestsImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class LoadTests class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Lists loadtests resources in a subscription.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
listBySubscription(options) {
|
|
30
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: (settings) => {
|
|
39
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
40
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
|
+
}
|
|
42
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = yield __await(this._listBySubscription(options));
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield yield __await(page);
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield yield __await(page);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
listBySubscriptionPagingAll(options) {
|
|
67
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
68
|
+
var _a, e_1, _b, _c;
|
|
69
|
+
try {
|
|
70
|
+
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
+
_c = _f.value;
|
|
72
|
+
_d = false;
|
|
73
|
+
const page = _c;
|
|
74
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
+
finally {
|
|
79
|
+
try {
|
|
80
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
+
}
|
|
82
|
+
finally { if (e_1) throw e_1.error; }
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Lists loadtest resources in a resource group.
|
|
88
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
92
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
93
|
+
return {
|
|
94
|
+
next() {
|
|
95
|
+
return iter.next();
|
|
96
|
+
},
|
|
97
|
+
[Symbol.asyncIterator]() {
|
|
98
|
+
return this;
|
|
99
|
+
},
|
|
100
|
+
byPage: (settings) => {
|
|
101
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
102
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
|
+
}
|
|
104
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
110
|
+
let result;
|
|
111
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
112
|
+
if (!continuationToken) {
|
|
113
|
+
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
114
|
+
let page = result.value || [];
|
|
115
|
+
continuationToken = result.nextLink;
|
|
116
|
+
setContinuationToken(page, continuationToken);
|
|
117
|
+
yield yield __await(page);
|
|
118
|
+
}
|
|
119
|
+
while (continuationToken) {
|
|
120
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
121
|
+
continuationToken = result.nextLink;
|
|
122
|
+
let page = result.value || [];
|
|
123
|
+
setContinuationToken(page, continuationToken);
|
|
124
|
+
yield yield __await(page);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
130
|
+
var _a, e_2, _b, _c;
|
|
131
|
+
try {
|
|
132
|
+
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
+
_c = _f.value;
|
|
134
|
+
_d = false;
|
|
135
|
+
const page = _c;
|
|
136
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
+
finally {
|
|
141
|
+
try {
|
|
142
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
+
}
|
|
144
|
+
finally { if (e_2) throw e_2.error; }
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Lists the endpoints that agents may call as part of load testing.
|
|
150
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
151
|
+
* @param loadTestName Load Test name.
|
|
152
|
+
* @param options The options parameters.
|
|
153
|
+
*/
|
|
154
|
+
listOutboundNetworkDependenciesEndpoints(resourceGroupName, loadTestName, options) {
|
|
155
|
+
const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, loadTestName, options);
|
|
156
|
+
return {
|
|
157
|
+
next() {
|
|
158
|
+
return iter.next();
|
|
159
|
+
},
|
|
160
|
+
[Symbol.asyncIterator]() {
|
|
161
|
+
return this;
|
|
162
|
+
},
|
|
163
|
+
byPage: (settings) => {
|
|
164
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
165
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
166
|
+
}
|
|
167
|
+
return this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, loadTestName, options, settings);
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, loadTestName, options, settings) {
|
|
172
|
+
return __asyncGenerator(this, arguments, function* listOutboundNetworkDependenciesEndpointsPagingPage_1() {
|
|
173
|
+
let result;
|
|
174
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
175
|
+
if (!continuationToken) {
|
|
176
|
+
result = yield __await(this._listOutboundNetworkDependenciesEndpoints(resourceGroupName, loadTestName, options));
|
|
177
|
+
let page = result.value || [];
|
|
178
|
+
continuationToken = result.nextLink;
|
|
179
|
+
setContinuationToken(page, continuationToken);
|
|
180
|
+
yield yield __await(page);
|
|
181
|
+
}
|
|
182
|
+
while (continuationToken) {
|
|
183
|
+
result = yield __await(this._listOutboundNetworkDependenciesEndpointsNext(resourceGroupName, loadTestName, continuationToken, options));
|
|
184
|
+
continuationToken = result.nextLink;
|
|
185
|
+
let page = result.value || [];
|
|
186
|
+
setContinuationToken(page, continuationToken);
|
|
187
|
+
yield yield __await(page);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, loadTestName, options) {
|
|
192
|
+
return __asyncGenerator(this, arguments, function* listOutboundNetworkDependenciesEndpointsPagingAll_1() {
|
|
193
|
+
var _a, e_3, _b, _c;
|
|
194
|
+
try {
|
|
195
|
+
for (var _d = true, _e = __asyncValues(this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, loadTestName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
196
|
+
_c = _f.value;
|
|
197
|
+
_d = false;
|
|
198
|
+
const page = _c;
|
|
199
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
203
|
+
finally {
|
|
204
|
+
try {
|
|
205
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
206
|
+
}
|
|
207
|
+
finally { if (e_3) throw e_3.error; }
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Lists loadtests resources in a subscription.
|
|
213
|
+
* @param options The options parameters.
|
|
214
|
+
*/
|
|
215
|
+
_listBySubscription(options) {
|
|
216
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Lists loadtest resources in a resource group.
|
|
220
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
221
|
+
* @param options The options parameters.
|
|
222
|
+
*/
|
|
223
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
224
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Get a LoadTest resource.
|
|
228
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
229
|
+
* @param loadTestName Load Test name.
|
|
230
|
+
* @param options The options parameters.
|
|
231
|
+
*/
|
|
232
|
+
get(resourceGroupName, loadTestName, options) {
|
|
233
|
+
return this.client.sendOperationRequest({ resourceGroupName, loadTestName, options }, getOperationSpec);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Create or update LoadTest resource.
|
|
237
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
238
|
+
* @param loadTestName Load Test name.
|
|
239
|
+
* @param loadTestResource LoadTest resource data
|
|
240
|
+
* @param options The options parameters.
|
|
241
|
+
*/
|
|
242
|
+
async beginCreateOrUpdate(resourceGroupName, loadTestName, loadTestResource, options) {
|
|
243
|
+
const directSendOperation = async (args, spec) => {
|
|
244
|
+
return this.client.sendOperationRequest(args, spec);
|
|
245
|
+
};
|
|
246
|
+
const sendOperation = async (args, spec) => {
|
|
247
|
+
var _a;
|
|
248
|
+
let currentRawResponse = undefined;
|
|
249
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
250
|
+
const callback = (rawResponse, flatResponse) => {
|
|
251
|
+
currentRawResponse = rawResponse;
|
|
252
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
253
|
+
};
|
|
254
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
255
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
256
|
+
return {
|
|
257
|
+
flatResponse,
|
|
258
|
+
rawResponse: {
|
|
259
|
+
statusCode: currentRawResponse.status,
|
|
260
|
+
body: currentRawResponse.parsedBody,
|
|
261
|
+
headers: currentRawResponse.headers.toJSON()
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, loadTestName, loadTestResource, options }, createOrUpdateOperationSpec);
|
|
266
|
+
const poller = new LroEngine(lro, {
|
|
267
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
268
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
269
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
270
|
+
});
|
|
271
|
+
await poller.poll();
|
|
272
|
+
return poller;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Create or update LoadTest resource.
|
|
276
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
277
|
+
* @param loadTestName Load Test name.
|
|
278
|
+
* @param loadTestResource LoadTest resource data
|
|
279
|
+
* @param options The options parameters.
|
|
280
|
+
*/
|
|
281
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, loadTestName, loadTestResource, options) {
|
|
282
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, loadTestName, loadTestResource, options);
|
|
283
|
+
return poller.pollUntilDone();
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Update a loadtest resource.
|
|
287
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
288
|
+
* @param loadTestName Load Test name.
|
|
289
|
+
* @param loadTestResourcePatchRequestBody LoadTest resource update data
|
|
290
|
+
* @param options The options parameters.
|
|
291
|
+
*/
|
|
292
|
+
async beginUpdate(resourceGroupName, loadTestName, loadTestResourcePatchRequestBody, options) {
|
|
293
|
+
const directSendOperation = async (args, spec) => {
|
|
294
|
+
return this.client.sendOperationRequest(args, spec);
|
|
295
|
+
};
|
|
296
|
+
const sendOperation = async (args, spec) => {
|
|
297
|
+
var _a;
|
|
298
|
+
let currentRawResponse = undefined;
|
|
299
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
300
|
+
const callback = (rawResponse, flatResponse) => {
|
|
301
|
+
currentRawResponse = rawResponse;
|
|
302
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
303
|
+
};
|
|
304
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
305
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
306
|
+
return {
|
|
307
|
+
flatResponse,
|
|
308
|
+
rawResponse: {
|
|
309
|
+
statusCode: currentRawResponse.status,
|
|
310
|
+
body: currentRawResponse.parsedBody,
|
|
311
|
+
headers: currentRawResponse.headers.toJSON()
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
const lro = new LroImpl(sendOperation, {
|
|
316
|
+
resourceGroupName,
|
|
317
|
+
loadTestName,
|
|
318
|
+
loadTestResourcePatchRequestBody,
|
|
319
|
+
options
|
|
320
|
+
}, updateOperationSpec);
|
|
321
|
+
const poller = new LroEngine(lro, {
|
|
322
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
323
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
324
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
325
|
+
});
|
|
326
|
+
await poller.poll();
|
|
327
|
+
return poller;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Update a loadtest resource.
|
|
331
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
332
|
+
* @param loadTestName Load Test name.
|
|
333
|
+
* @param loadTestResourcePatchRequestBody LoadTest resource update data
|
|
334
|
+
* @param options The options parameters.
|
|
335
|
+
*/
|
|
336
|
+
async beginUpdateAndWait(resourceGroupName, loadTestName, loadTestResourcePatchRequestBody, options) {
|
|
337
|
+
const poller = await this.beginUpdate(resourceGroupName, loadTestName, loadTestResourcePatchRequestBody, options);
|
|
338
|
+
return poller.pollUntilDone();
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Delete a LoadTest resource.
|
|
342
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
343
|
+
* @param loadTestName Load Test name.
|
|
344
|
+
* @param options The options parameters.
|
|
345
|
+
*/
|
|
346
|
+
async beginDelete(resourceGroupName, loadTestName, options) {
|
|
347
|
+
const directSendOperation = async (args, spec) => {
|
|
348
|
+
return this.client.sendOperationRequest(args, spec);
|
|
349
|
+
};
|
|
350
|
+
const sendOperation = async (args, spec) => {
|
|
351
|
+
var _a;
|
|
352
|
+
let currentRawResponse = undefined;
|
|
353
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
354
|
+
const callback = (rawResponse, flatResponse) => {
|
|
355
|
+
currentRawResponse = rawResponse;
|
|
356
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
357
|
+
};
|
|
358
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
359
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
360
|
+
return {
|
|
361
|
+
flatResponse,
|
|
362
|
+
rawResponse: {
|
|
363
|
+
statusCode: currentRawResponse.status,
|
|
364
|
+
body: currentRawResponse.parsedBody,
|
|
365
|
+
headers: currentRawResponse.headers.toJSON()
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, loadTestName, options }, deleteOperationSpec);
|
|
370
|
+
const poller = new LroEngine(lro, {
|
|
371
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
372
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
373
|
+
lroResourceLocationConfig: "location"
|
|
374
|
+
});
|
|
375
|
+
await poller.poll();
|
|
376
|
+
return poller;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Delete a LoadTest resource.
|
|
380
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
381
|
+
* @param loadTestName Load Test name.
|
|
382
|
+
* @param options The options parameters.
|
|
383
|
+
*/
|
|
384
|
+
async beginDeleteAndWait(resourceGroupName, loadTestName, options) {
|
|
385
|
+
const poller = await this.beginDelete(resourceGroupName, loadTestName, options);
|
|
386
|
+
return poller.pollUntilDone();
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Lists the endpoints that agents may call as part of load testing.
|
|
390
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
391
|
+
* @param loadTestName Load Test name.
|
|
392
|
+
* @param options The options parameters.
|
|
393
|
+
*/
|
|
394
|
+
_listOutboundNetworkDependenciesEndpoints(resourceGroupName, loadTestName, options) {
|
|
395
|
+
return this.client.sendOperationRequest({ resourceGroupName, loadTestName, options }, listOutboundNetworkDependenciesEndpointsOperationSpec);
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* ListBySubscriptionNext
|
|
399
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
400
|
+
* @param options The options parameters.
|
|
401
|
+
*/
|
|
402
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
403
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* ListByResourceGroupNext
|
|
407
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
408
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
409
|
+
* @param options The options parameters.
|
|
410
|
+
*/
|
|
411
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
412
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* ListOutboundNetworkDependenciesEndpointsNext
|
|
416
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
417
|
+
* @param loadTestName Load Test name.
|
|
418
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
419
|
+
* ListOutboundNetworkDependenciesEndpoints method.
|
|
420
|
+
* @param options The options parameters.
|
|
421
|
+
*/
|
|
422
|
+
_listOutboundNetworkDependenciesEndpointsNext(resourceGroupName, loadTestName, nextLink, options) {
|
|
423
|
+
return this.client.sendOperationRequest({ resourceGroupName, loadTestName, nextLink, options }, listOutboundNetworkDependenciesEndpointsNextOperationSpec);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
// Operation Specifications
|
|
427
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
428
|
+
const listBySubscriptionOperationSpec = {
|
|
429
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests",
|
|
430
|
+
httpMethod: "GET",
|
|
431
|
+
responses: {
|
|
432
|
+
200: {
|
|
433
|
+
bodyMapper: Mappers.LoadTestResourcePageList
|
|
434
|
+
},
|
|
435
|
+
default: {
|
|
436
|
+
bodyMapper: Mappers.ErrorResponse
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
queryParameters: [Parameters.apiVersion],
|
|
440
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
441
|
+
headerParameters: [Parameters.accept],
|
|
442
|
+
serializer
|
|
443
|
+
};
|
|
444
|
+
const listByResourceGroupOperationSpec = {
|
|
445
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests",
|
|
446
|
+
httpMethod: "GET",
|
|
447
|
+
responses: {
|
|
448
|
+
200: {
|
|
449
|
+
bodyMapper: Mappers.LoadTestResourcePageList
|
|
450
|
+
},
|
|
451
|
+
default: {
|
|
452
|
+
bodyMapper: Mappers.ErrorResponse
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
queryParameters: [Parameters.apiVersion],
|
|
456
|
+
urlParameters: [
|
|
457
|
+
Parameters.$host,
|
|
458
|
+
Parameters.subscriptionId,
|
|
459
|
+
Parameters.resourceGroupName
|
|
460
|
+
],
|
|
461
|
+
headerParameters: [Parameters.accept],
|
|
462
|
+
serializer
|
|
463
|
+
};
|
|
464
|
+
const getOperationSpec = {
|
|
465
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
|
|
466
|
+
httpMethod: "GET",
|
|
467
|
+
responses: {
|
|
468
|
+
200: {
|
|
469
|
+
bodyMapper: Mappers.LoadTestResource
|
|
470
|
+
},
|
|
471
|
+
default: {
|
|
472
|
+
bodyMapper: Mappers.ErrorResponse
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
queryParameters: [Parameters.apiVersion],
|
|
476
|
+
urlParameters: [
|
|
477
|
+
Parameters.$host,
|
|
478
|
+
Parameters.subscriptionId,
|
|
479
|
+
Parameters.resourceGroupName,
|
|
480
|
+
Parameters.loadTestName
|
|
481
|
+
],
|
|
482
|
+
headerParameters: [Parameters.accept],
|
|
483
|
+
serializer
|
|
484
|
+
};
|
|
485
|
+
const createOrUpdateOperationSpec = {
|
|
486
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
|
|
487
|
+
httpMethod: "PUT",
|
|
488
|
+
responses: {
|
|
489
|
+
200: {
|
|
490
|
+
bodyMapper: Mappers.LoadTestResource
|
|
491
|
+
},
|
|
492
|
+
201: {
|
|
493
|
+
bodyMapper: Mappers.LoadTestResource
|
|
494
|
+
},
|
|
495
|
+
202: {
|
|
496
|
+
bodyMapper: Mappers.LoadTestResource
|
|
497
|
+
},
|
|
498
|
+
204: {
|
|
499
|
+
bodyMapper: Mappers.LoadTestResource
|
|
500
|
+
},
|
|
501
|
+
default: {
|
|
502
|
+
bodyMapper: Mappers.ErrorResponse
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
requestBody: Parameters.loadTestResource,
|
|
506
|
+
queryParameters: [Parameters.apiVersion],
|
|
507
|
+
urlParameters: [
|
|
508
|
+
Parameters.$host,
|
|
509
|
+
Parameters.subscriptionId,
|
|
510
|
+
Parameters.resourceGroupName,
|
|
511
|
+
Parameters.loadTestName
|
|
512
|
+
],
|
|
513
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
514
|
+
mediaType: "json",
|
|
515
|
+
serializer
|
|
516
|
+
};
|
|
517
|
+
const updateOperationSpec = {
|
|
518
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
|
|
519
|
+
httpMethod: "PATCH",
|
|
520
|
+
responses: {
|
|
521
|
+
200: {
|
|
522
|
+
bodyMapper: Mappers.LoadTestResource
|
|
523
|
+
},
|
|
524
|
+
201: {
|
|
525
|
+
bodyMapper: Mappers.LoadTestResource
|
|
526
|
+
},
|
|
527
|
+
202: {
|
|
528
|
+
bodyMapper: Mappers.LoadTestResource
|
|
529
|
+
},
|
|
530
|
+
204: {
|
|
531
|
+
bodyMapper: Mappers.LoadTestResource
|
|
532
|
+
},
|
|
533
|
+
default: {
|
|
534
|
+
bodyMapper: Mappers.ErrorResponse
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
requestBody: Parameters.loadTestResourcePatchRequestBody,
|
|
538
|
+
queryParameters: [Parameters.apiVersion],
|
|
539
|
+
urlParameters: [
|
|
540
|
+
Parameters.$host,
|
|
541
|
+
Parameters.subscriptionId,
|
|
542
|
+
Parameters.resourceGroupName,
|
|
543
|
+
Parameters.loadTestName
|
|
544
|
+
],
|
|
545
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
546
|
+
mediaType: "json",
|
|
547
|
+
serializer
|
|
548
|
+
};
|
|
549
|
+
const deleteOperationSpec = {
|
|
550
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
|
|
551
|
+
httpMethod: "DELETE",
|
|
552
|
+
responses: {
|
|
553
|
+
200: {},
|
|
554
|
+
201: {},
|
|
555
|
+
202: {},
|
|
556
|
+
204: {},
|
|
557
|
+
default: {
|
|
558
|
+
bodyMapper: Mappers.ErrorResponse
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
queryParameters: [Parameters.apiVersion],
|
|
562
|
+
urlParameters: [
|
|
563
|
+
Parameters.$host,
|
|
564
|
+
Parameters.subscriptionId,
|
|
565
|
+
Parameters.resourceGroupName,
|
|
566
|
+
Parameters.loadTestName
|
|
567
|
+
],
|
|
568
|
+
headerParameters: [Parameters.accept],
|
|
569
|
+
serializer
|
|
570
|
+
};
|
|
571
|
+
const listOutboundNetworkDependenciesEndpointsOperationSpec = {
|
|
572
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}/outboundNetworkDependenciesEndpoints",
|
|
573
|
+
httpMethod: "GET",
|
|
574
|
+
responses: {
|
|
575
|
+
200: {
|
|
576
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
577
|
+
},
|
|
578
|
+
default: {
|
|
579
|
+
bodyMapper: Mappers.ErrorResponse
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
queryParameters: [Parameters.apiVersion],
|
|
583
|
+
urlParameters: [
|
|
584
|
+
Parameters.$host,
|
|
585
|
+
Parameters.subscriptionId,
|
|
586
|
+
Parameters.resourceGroupName,
|
|
587
|
+
Parameters.loadTestName
|
|
588
|
+
],
|
|
589
|
+
headerParameters: [Parameters.accept],
|
|
590
|
+
serializer
|
|
591
|
+
};
|
|
592
|
+
const listBySubscriptionNextOperationSpec = {
|
|
593
|
+
path: "{nextLink}",
|
|
594
|
+
httpMethod: "GET",
|
|
595
|
+
responses: {
|
|
596
|
+
200: {
|
|
597
|
+
bodyMapper: Mappers.LoadTestResourcePageList
|
|
598
|
+
},
|
|
599
|
+
default: {
|
|
600
|
+
bodyMapper: Mappers.ErrorResponse
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
urlParameters: [
|
|
604
|
+
Parameters.$host,
|
|
605
|
+
Parameters.nextLink,
|
|
606
|
+
Parameters.subscriptionId
|
|
607
|
+
],
|
|
608
|
+
headerParameters: [Parameters.accept],
|
|
609
|
+
serializer
|
|
610
|
+
};
|
|
611
|
+
const listByResourceGroupNextOperationSpec = {
|
|
612
|
+
path: "{nextLink}",
|
|
613
|
+
httpMethod: "GET",
|
|
614
|
+
responses: {
|
|
615
|
+
200: {
|
|
616
|
+
bodyMapper: Mappers.LoadTestResourcePageList
|
|
617
|
+
},
|
|
618
|
+
default: {
|
|
619
|
+
bodyMapper: Mappers.ErrorResponse
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
urlParameters: [
|
|
623
|
+
Parameters.$host,
|
|
624
|
+
Parameters.nextLink,
|
|
625
|
+
Parameters.subscriptionId,
|
|
626
|
+
Parameters.resourceGroupName
|
|
627
|
+
],
|
|
628
|
+
headerParameters: [Parameters.accept],
|
|
629
|
+
serializer
|
|
630
|
+
};
|
|
631
|
+
const listOutboundNetworkDependenciesEndpointsNextOperationSpec = {
|
|
632
|
+
path: "{nextLink}",
|
|
633
|
+
httpMethod: "GET",
|
|
634
|
+
responses: {
|
|
635
|
+
200: {
|
|
636
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
637
|
+
},
|
|
638
|
+
default: {
|
|
639
|
+
bodyMapper: Mappers.ErrorResponse
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
urlParameters: [
|
|
643
|
+
Parameters.$host,
|
|
644
|
+
Parameters.nextLink,
|
|
645
|
+
Parameters.subscriptionId,
|
|
646
|
+
Parameters.resourceGroupName,
|
|
647
|
+
Parameters.loadTestName
|
|
648
|
+
],
|
|
649
|
+
headerParameters: [Parameters.accept],
|
|
650
|
+
serializer
|
|
651
|
+
};
|
|
652
|
+
//# sourceMappingURL=loadTests.js.map
|