@azure/arm-baremetalinfrastructure 1.0.0-beta.1 → 1.0.0-beta.3
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/CHANGELOG.md +82 -1
- package/LICENSE +4 -4
- package/README.md +27 -18
- package/{dist-esm/src → dist/browser}/bareMetalInfrastructureClient.d.ts +4 -3
- package/dist/browser/bareMetalInfrastructureClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/bareMetalInfrastructureClient.js +35 -26
- package/dist/browser/bareMetalInfrastructureClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.d.ts +11 -0
- package/dist/browser/lroImpl.d.ts.map +1 -0
- package/dist/browser/lroImpl.js +18 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.d.ts +808 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.js +60 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.d.ts +30 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +405 -109
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.d.ts +3 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +27 -6
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/azureBareMetalInstances.d.ts +124 -0
- package/dist/browser/operations/azureBareMetalInstances.d.ts.map +1 -0
- package/dist/browser/operations/azureBareMetalInstances.js +563 -0
- package/dist/browser/operations/azureBareMetalInstances.js.map +1 -0
- package/dist/browser/operations/azureBareMetalStorageInstances.d.ts +93 -0
- package/dist/browser/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
- package/dist/browser/operations/azureBareMetalStorageInstances.js +370 -0
- package/dist/browser/operations/azureBareMetalStorageInstances.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/browser/operations/index.js +11 -0
- package/dist/browser/operations/index.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 +13 -35
- package/dist/browser/operations/operations.js.map +1 -0
- package/dist/browser/operationsInterfaces/azureBareMetalInstances.d.ts +86 -0
- package/dist/browser/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
- package/dist/browser/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
- package/dist/browser/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/browser/operationsInterfaces/azureBareMetalStorageInstances.js} +2 -3
- package/dist/browser/operationsInterfaces/azureBareMetalStorageInstances.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/browser/operationsInterfaces/index.js +11 -0
- package/dist/browser/operationsInterfaces/index.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/browser/package.json +3 -0
- package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/bareMetalInfrastructureClient.d.ts +22 -0
- package/dist/commonjs/bareMetalInfrastructureClient.d.ts.map +1 -0
- package/dist/commonjs/bareMetalInfrastructureClient.js +115 -0
- package/dist/commonjs/bareMetalInfrastructureClient.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/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +21 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +808 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +215 -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 +812 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +14 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +129 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/azureBareMetalInstances.d.ts +124 -0
- package/dist/commonjs/operations/azureBareMetalInstances.d.ts.map +1 -0
- package/dist/commonjs/operations/azureBareMetalInstances.js +568 -0
- package/dist/commonjs/operations/azureBareMetalInstances.js.map +1 -0
- package/dist/commonjs/operations/azureBareMetalStorageInstances.d.ts +93 -0
- package/dist/commonjs/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
- package/dist/commonjs/operations/azureBareMetalStorageInstances.js +375 -0
- package/dist/commonjs/operations/azureBareMetalStorageInstances.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/operations.d.ts +26 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +84 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/azureBareMetalInstances.d.ts +86 -0
- package/dist/commonjs/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
- package/{dist-esm/src/operationsInterfaces/index.js → dist/commonjs/operationsInterfaces/azureBareMetalInstances.js} +3 -3
- package/dist/commonjs/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
- package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.js +10 -0
- package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.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/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/{dist-esm/src/operations/index.js → dist/commonjs/operationsInterfaces/operations.js} +3 -3
- package/dist/commonjs/operationsInterfaces/operations.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 +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/bareMetalInfrastructureClient.d.ts +22 -0
- package/dist/esm/bareMetalInfrastructureClient.d.ts.map +1 -0
- package/dist/esm/bareMetalInfrastructureClient.js +110 -0
- package/dist/esm/bareMetalInfrastructureClient.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/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +18 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +808 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +212 -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 +809 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +14 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +126 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/azureBareMetalInstances.d.ts +124 -0
- package/dist/esm/operations/azureBareMetalInstances.d.ts.map +1 -0
- package/dist/esm/operations/azureBareMetalInstances.js +563 -0
- package/dist/esm/operations/azureBareMetalInstances.js.map +1 -0
- package/dist/esm/operations/azureBareMetalStorageInstances.d.ts +93 -0
- package/dist/esm/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
- package/dist/esm/operations/azureBareMetalStorageInstances.js +370 -0
- package/dist/esm/operations/azureBareMetalStorageInstances.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/operations.d.ts +26 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +79 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/azureBareMetalInstances.d.ts +86 -0
- package/dist/esm/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/azureBareMetalInstances.js} +2 -3
- package/dist/esm/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
- package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
- package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.js +9 -0
- package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.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/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/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 +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/bareMetalInfrastructureClient.d.ts +22 -0
- package/dist/react-native/bareMetalInfrastructureClient.d.ts.map +1 -0
- package/dist/react-native/bareMetalInfrastructureClient.js +110 -0
- package/dist/react-native/bareMetalInfrastructureClient.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/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +18 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +808 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +212 -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 +809 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +14 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +126 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/azureBareMetalInstances.d.ts +124 -0
- package/dist/react-native/operations/azureBareMetalInstances.d.ts.map +1 -0
- package/dist/react-native/operations/azureBareMetalInstances.js +563 -0
- package/dist/react-native/operations/azureBareMetalInstances.js.map +1 -0
- package/dist/react-native/operations/azureBareMetalStorageInstances.d.ts +93 -0
- package/dist/react-native/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
- package/dist/react-native/operations/azureBareMetalStorageInstances.js +370 -0
- package/dist/react-native/operations/azureBareMetalStorageInstances.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/operations.d.ts +26 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +79 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/azureBareMetalInstances.d.ts +86 -0
- package/dist/react-native/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/azureBareMetalInstances.js +9 -0
- package/dist/react-native/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
- package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
- package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.js +9 -0
- package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.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/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/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 +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +87 -76
- package/review/arm-baremetalinfrastructure-node.api.md +550 -0
- package/dist/index.js +0 -1378
- 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/azureBareMetalInstancesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js +0 -39
- package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js +0 -59
- package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js +0 -58
- package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.js +0 -60
- package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.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 -58
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/src/bareMetalInfrastructureClient.d.ts.map +0 -1
- package/dist-esm/src/bareMetalInfrastructureClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.d.ts +0 -519
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.d.ts +0 -20
- package/dist-esm/src/models/mappers.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.d.ts.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/azureBareMetalInstances.d.ts +0 -73
- package/dist-esm/src/operations/azureBareMetalInstances.d.ts.map +0 -1
- package/dist-esm/src/operations/azureBareMetalInstances.js +0 -334
- package/dist-esm/src/operations/azureBareMetalInstances.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -3
- package/dist-esm/src/operations/index.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/operationsInterfaces/azureBareMetalInstances.d.ts +0 -35
- package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/baremetalinfrastructure_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/baremetalinfrastructure_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js +0 -78
- package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js.map +0 -1
- package/review/arm-baremetalinfrastructure.api.md +0 -325
- package/rollup.config.js +0 -122
- package/src/bareMetalInfrastructureClient.ts +0 -142
- package/src/models/index.ts +0 -566
- package/src/models/mappers.ts +0 -549
- package/src/models/parameters.ts +0 -119
- package/src/operations/azureBareMetalInstances.ts +0 -395
- package/src/operations/operations.ts +0 -103
- package/src/operationsInterfaces/azureBareMetalInstances.ts +0 -67
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- package/types/arm-baremetalinfrastructure.d.ts +0 -633
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/azureBareMetalInstances.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.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
|
@@ -1,395 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { AzureBareMetalInstances } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient";
|
|
16
|
-
import {
|
|
17
|
-
AzureBareMetalInstance,
|
|
18
|
-
AzureBareMetalInstancesListBySubscriptionNextOptionalParams,
|
|
19
|
-
AzureBareMetalInstancesListBySubscriptionOptionalParams,
|
|
20
|
-
AzureBareMetalInstancesListBySubscriptionResponse,
|
|
21
|
-
AzureBareMetalInstancesListByResourceGroupNextOptionalParams,
|
|
22
|
-
AzureBareMetalInstancesListByResourceGroupOptionalParams,
|
|
23
|
-
AzureBareMetalInstancesListByResourceGroupResponse,
|
|
24
|
-
AzureBareMetalInstancesGetOptionalParams,
|
|
25
|
-
AzureBareMetalInstancesGetResponse,
|
|
26
|
-
Tags,
|
|
27
|
-
AzureBareMetalInstancesUpdateOptionalParams,
|
|
28
|
-
AzureBareMetalInstancesUpdateResponse,
|
|
29
|
-
AzureBareMetalInstancesListBySubscriptionNextResponse,
|
|
30
|
-
AzureBareMetalInstancesListByResourceGroupNextResponse
|
|
31
|
-
} from "../models";
|
|
32
|
-
|
|
33
|
-
/// <reference lib="esnext.asynciterable" />
|
|
34
|
-
/** Class containing AzureBareMetalInstances operations. */
|
|
35
|
-
export class AzureBareMetalInstancesImpl implements AzureBareMetalInstances {
|
|
36
|
-
private readonly client: BareMetalInfrastructureClient;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Initialize a new instance of the class AzureBareMetalInstances class.
|
|
40
|
-
* @param client Reference to the service client
|
|
41
|
-
*/
|
|
42
|
-
constructor(client: BareMetalInfrastructureClient) {
|
|
43
|
-
this.client = client;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Gets a list of AzureBareMetal instances in the specified subscription. The operations returns
|
|
48
|
-
* various properties of each Azure BareMetal instance.
|
|
49
|
-
* @param options The options parameters.
|
|
50
|
-
*/
|
|
51
|
-
public listBySubscription(
|
|
52
|
-
options?: AzureBareMetalInstancesListBySubscriptionOptionalParams
|
|
53
|
-
): PagedAsyncIterableIterator<AzureBareMetalInstance> {
|
|
54
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
55
|
-
return {
|
|
56
|
-
next() {
|
|
57
|
-
return iter.next();
|
|
58
|
-
},
|
|
59
|
-
[Symbol.asyncIterator]() {
|
|
60
|
-
return this;
|
|
61
|
-
},
|
|
62
|
-
byPage: (settings?: PageSettings) => {
|
|
63
|
-
if (settings?.maxPageSize) {
|
|
64
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
65
|
-
}
|
|
66
|
-
return this.listBySubscriptionPagingPage(options, settings);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
private async *listBySubscriptionPagingPage(
|
|
72
|
-
options?: AzureBareMetalInstancesListBySubscriptionOptionalParams,
|
|
73
|
-
settings?: PageSettings
|
|
74
|
-
): AsyncIterableIterator<AzureBareMetalInstance[]> {
|
|
75
|
-
let result: AzureBareMetalInstancesListBySubscriptionResponse;
|
|
76
|
-
let continuationToken = settings?.continuationToken;
|
|
77
|
-
if (!continuationToken) {
|
|
78
|
-
result = await this._listBySubscription(options);
|
|
79
|
-
let page = result.value || [];
|
|
80
|
-
continuationToken = result.nextLink;
|
|
81
|
-
setContinuationToken(page, continuationToken);
|
|
82
|
-
yield page;
|
|
83
|
-
}
|
|
84
|
-
while (continuationToken) {
|
|
85
|
-
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
86
|
-
continuationToken = result.nextLink;
|
|
87
|
-
let page = result.value || [];
|
|
88
|
-
setContinuationToken(page, continuationToken);
|
|
89
|
-
yield page;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private async *listBySubscriptionPagingAll(
|
|
94
|
-
options?: AzureBareMetalInstancesListBySubscriptionOptionalParams
|
|
95
|
-
): AsyncIterableIterator<AzureBareMetalInstance> {
|
|
96
|
-
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
97
|
-
yield* page;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Gets a list of AzureBareMetal instances in the specified subscription and resource group. The
|
|
103
|
-
* operations returns various properties of each Azure BareMetal instance.
|
|
104
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
105
|
-
* @param options The options parameters.
|
|
106
|
-
*/
|
|
107
|
-
public listByResourceGroup(
|
|
108
|
-
resourceGroupName: string,
|
|
109
|
-
options?: AzureBareMetalInstancesListByResourceGroupOptionalParams
|
|
110
|
-
): PagedAsyncIterableIterator<AzureBareMetalInstance> {
|
|
111
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
112
|
-
return {
|
|
113
|
-
next() {
|
|
114
|
-
return iter.next();
|
|
115
|
-
},
|
|
116
|
-
[Symbol.asyncIterator]() {
|
|
117
|
-
return this;
|
|
118
|
-
},
|
|
119
|
-
byPage: (settings?: PageSettings) => {
|
|
120
|
-
if (settings?.maxPageSize) {
|
|
121
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
122
|
-
}
|
|
123
|
-
return this.listByResourceGroupPagingPage(
|
|
124
|
-
resourceGroupName,
|
|
125
|
-
options,
|
|
126
|
-
settings
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
private async *listByResourceGroupPagingPage(
|
|
133
|
-
resourceGroupName: string,
|
|
134
|
-
options?: AzureBareMetalInstancesListByResourceGroupOptionalParams,
|
|
135
|
-
settings?: PageSettings
|
|
136
|
-
): AsyncIterableIterator<AzureBareMetalInstance[]> {
|
|
137
|
-
let result: AzureBareMetalInstancesListByResourceGroupResponse;
|
|
138
|
-
let continuationToken = settings?.continuationToken;
|
|
139
|
-
if (!continuationToken) {
|
|
140
|
-
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
141
|
-
let page = result.value || [];
|
|
142
|
-
continuationToken = result.nextLink;
|
|
143
|
-
setContinuationToken(page, continuationToken);
|
|
144
|
-
yield page;
|
|
145
|
-
}
|
|
146
|
-
while (continuationToken) {
|
|
147
|
-
result = await this._listByResourceGroupNext(
|
|
148
|
-
resourceGroupName,
|
|
149
|
-
continuationToken,
|
|
150
|
-
options
|
|
151
|
-
);
|
|
152
|
-
continuationToken = result.nextLink;
|
|
153
|
-
let page = result.value || [];
|
|
154
|
-
setContinuationToken(page, continuationToken);
|
|
155
|
-
yield page;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
private async *listByResourceGroupPagingAll(
|
|
160
|
-
resourceGroupName: string,
|
|
161
|
-
options?: AzureBareMetalInstancesListByResourceGroupOptionalParams
|
|
162
|
-
): AsyncIterableIterator<AzureBareMetalInstance> {
|
|
163
|
-
for await (const page of this.listByResourceGroupPagingPage(
|
|
164
|
-
resourceGroupName,
|
|
165
|
-
options
|
|
166
|
-
)) {
|
|
167
|
-
yield* page;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Gets a list of AzureBareMetal instances in the specified subscription. The operations returns
|
|
173
|
-
* various properties of each Azure BareMetal instance.
|
|
174
|
-
* @param options The options parameters.
|
|
175
|
-
*/
|
|
176
|
-
private _listBySubscription(
|
|
177
|
-
options?: AzureBareMetalInstancesListBySubscriptionOptionalParams
|
|
178
|
-
): Promise<AzureBareMetalInstancesListBySubscriptionResponse> {
|
|
179
|
-
return this.client.sendOperationRequest(
|
|
180
|
-
{ options },
|
|
181
|
-
listBySubscriptionOperationSpec
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Gets a list of AzureBareMetal instances in the specified subscription and resource group. The
|
|
187
|
-
* operations returns various properties of each Azure BareMetal instance.
|
|
188
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
189
|
-
* @param options The options parameters.
|
|
190
|
-
*/
|
|
191
|
-
private _listByResourceGroup(
|
|
192
|
-
resourceGroupName: string,
|
|
193
|
-
options?: AzureBareMetalInstancesListByResourceGroupOptionalParams
|
|
194
|
-
): Promise<AzureBareMetalInstancesListByResourceGroupResponse> {
|
|
195
|
-
return this.client.sendOperationRequest(
|
|
196
|
-
{ resourceGroupName, options },
|
|
197
|
-
listByResourceGroupOperationSpec
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
|
|
203
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
204
|
-
* @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
|
|
205
|
-
* @param options The options parameters.
|
|
206
|
-
*/
|
|
207
|
-
get(
|
|
208
|
-
resourceGroupName: string,
|
|
209
|
-
azureBareMetalInstanceName: string,
|
|
210
|
-
options?: AzureBareMetalInstancesGetOptionalParams
|
|
211
|
-
): Promise<AzureBareMetalInstancesGetResponse> {
|
|
212
|
-
return this.client.sendOperationRequest(
|
|
213
|
-
{ resourceGroupName, azureBareMetalInstanceName, options },
|
|
214
|
-
getOperationSpec
|
|
215
|
-
);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group,
|
|
220
|
-
* and instance name.
|
|
221
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
222
|
-
* @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
|
|
223
|
-
* @param tagsParameter Request body that only contains the new Tags field
|
|
224
|
-
* @param options The options parameters.
|
|
225
|
-
*/
|
|
226
|
-
update(
|
|
227
|
-
resourceGroupName: string,
|
|
228
|
-
azureBareMetalInstanceName: string,
|
|
229
|
-
tagsParameter: Tags,
|
|
230
|
-
options?: AzureBareMetalInstancesUpdateOptionalParams
|
|
231
|
-
): Promise<AzureBareMetalInstancesUpdateResponse> {
|
|
232
|
-
return this.client.sendOperationRequest(
|
|
233
|
-
{ resourceGroupName, azureBareMetalInstanceName, tagsParameter, options },
|
|
234
|
-
updateOperationSpec
|
|
235
|
-
);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* ListBySubscriptionNext
|
|
240
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
241
|
-
* @param options The options parameters.
|
|
242
|
-
*/
|
|
243
|
-
private _listBySubscriptionNext(
|
|
244
|
-
nextLink: string,
|
|
245
|
-
options?: AzureBareMetalInstancesListBySubscriptionNextOptionalParams
|
|
246
|
-
): Promise<AzureBareMetalInstancesListBySubscriptionNextResponse> {
|
|
247
|
-
return this.client.sendOperationRequest(
|
|
248
|
-
{ nextLink, options },
|
|
249
|
-
listBySubscriptionNextOperationSpec
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* ListByResourceGroupNext
|
|
255
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
256
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
257
|
-
* @param options The options parameters.
|
|
258
|
-
*/
|
|
259
|
-
private _listByResourceGroupNext(
|
|
260
|
-
resourceGroupName: string,
|
|
261
|
-
nextLink: string,
|
|
262
|
-
options?: AzureBareMetalInstancesListByResourceGroupNextOptionalParams
|
|
263
|
-
): Promise<AzureBareMetalInstancesListByResourceGroupNextResponse> {
|
|
264
|
-
return this.client.sendOperationRequest(
|
|
265
|
-
{ resourceGroupName, nextLink, options },
|
|
266
|
-
listByResourceGroupNextOperationSpec
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
// Operation Specifications
|
|
271
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
272
|
-
|
|
273
|
-
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
274
|
-
path:
|
|
275
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
|
|
276
|
-
httpMethod: "GET",
|
|
277
|
-
responses: {
|
|
278
|
-
200: {
|
|
279
|
-
bodyMapper: Mappers.AzureBareMetalInstancesListResult
|
|
280
|
-
},
|
|
281
|
-
default: {
|
|
282
|
-
bodyMapper: Mappers.ErrorResponse
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
queryParameters: [Parameters.apiVersion],
|
|
286
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
287
|
-
headerParameters: [Parameters.accept],
|
|
288
|
-
serializer
|
|
289
|
-
};
|
|
290
|
-
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
291
|
-
path:
|
|
292
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
|
|
293
|
-
httpMethod: "GET",
|
|
294
|
-
responses: {
|
|
295
|
-
200: {
|
|
296
|
-
bodyMapper: Mappers.AzureBareMetalInstancesListResult
|
|
297
|
-
},
|
|
298
|
-
default: {
|
|
299
|
-
bodyMapper: Mappers.ErrorResponse
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
queryParameters: [Parameters.apiVersion],
|
|
303
|
-
urlParameters: [
|
|
304
|
-
Parameters.$host,
|
|
305
|
-
Parameters.subscriptionId,
|
|
306
|
-
Parameters.resourceGroupName
|
|
307
|
-
],
|
|
308
|
-
headerParameters: [Parameters.accept],
|
|
309
|
-
serializer
|
|
310
|
-
};
|
|
311
|
-
const getOperationSpec: coreClient.OperationSpec = {
|
|
312
|
-
path:
|
|
313
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
|
|
314
|
-
httpMethod: "GET",
|
|
315
|
-
responses: {
|
|
316
|
-
200: {
|
|
317
|
-
bodyMapper: Mappers.AzureBareMetalInstance
|
|
318
|
-
},
|
|
319
|
-
default: {
|
|
320
|
-
bodyMapper: Mappers.ErrorResponse
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
queryParameters: [Parameters.apiVersion],
|
|
324
|
-
urlParameters: [
|
|
325
|
-
Parameters.$host,
|
|
326
|
-
Parameters.subscriptionId,
|
|
327
|
-
Parameters.resourceGroupName,
|
|
328
|
-
Parameters.azureBareMetalInstanceName
|
|
329
|
-
],
|
|
330
|
-
headerParameters: [Parameters.accept],
|
|
331
|
-
serializer
|
|
332
|
-
};
|
|
333
|
-
const updateOperationSpec: coreClient.OperationSpec = {
|
|
334
|
-
path:
|
|
335
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
|
|
336
|
-
httpMethod: "PATCH",
|
|
337
|
-
responses: {
|
|
338
|
-
200: {
|
|
339
|
-
bodyMapper: Mappers.AzureBareMetalInstance
|
|
340
|
-
},
|
|
341
|
-
default: {
|
|
342
|
-
bodyMapper: Mappers.ErrorResponse
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
requestBody: Parameters.tagsParameter,
|
|
346
|
-
queryParameters: [Parameters.apiVersion],
|
|
347
|
-
urlParameters: [
|
|
348
|
-
Parameters.$host,
|
|
349
|
-
Parameters.subscriptionId,
|
|
350
|
-
Parameters.resourceGroupName,
|
|
351
|
-
Parameters.azureBareMetalInstanceName
|
|
352
|
-
],
|
|
353
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
354
|
-
mediaType: "json",
|
|
355
|
-
serializer
|
|
356
|
-
};
|
|
357
|
-
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
358
|
-
path: "{nextLink}",
|
|
359
|
-
httpMethod: "GET",
|
|
360
|
-
responses: {
|
|
361
|
-
200: {
|
|
362
|
-
bodyMapper: Mappers.AzureBareMetalInstancesListResult
|
|
363
|
-
},
|
|
364
|
-
default: {
|
|
365
|
-
bodyMapper: Mappers.ErrorResponse
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
urlParameters: [
|
|
369
|
-
Parameters.$host,
|
|
370
|
-
Parameters.subscriptionId,
|
|
371
|
-
Parameters.nextLink
|
|
372
|
-
],
|
|
373
|
-
headerParameters: [Parameters.accept],
|
|
374
|
-
serializer
|
|
375
|
-
};
|
|
376
|
-
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
377
|
-
path: "{nextLink}",
|
|
378
|
-
httpMethod: "GET",
|
|
379
|
-
responses: {
|
|
380
|
-
200: {
|
|
381
|
-
bodyMapper: Mappers.AzureBareMetalInstancesListResult
|
|
382
|
-
},
|
|
383
|
-
default: {
|
|
384
|
-
bodyMapper: Mappers.ErrorResponse
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
urlParameters: [
|
|
388
|
-
Parameters.$host,
|
|
389
|
-
Parameters.subscriptionId,
|
|
390
|
-
Parameters.resourceGroupName,
|
|
391
|
-
Parameters.nextLink
|
|
392
|
-
],
|
|
393
|
-
headerParameters: [Parameters.accept],
|
|
394
|
-
serializer
|
|
395
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { Operations } from "../operationsInterfaces";
|
|
11
|
-
import * as coreClient from "@azure/core-client";
|
|
12
|
-
import * as Mappers from "../models/mappers";
|
|
13
|
-
import * as Parameters from "../models/parameters";
|
|
14
|
-
import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient";
|
|
15
|
-
import {
|
|
16
|
-
Operation,
|
|
17
|
-
OperationsListOptionalParams,
|
|
18
|
-
OperationsListResponse
|
|
19
|
-
} from "../models";
|
|
20
|
-
|
|
21
|
-
/// <reference lib="esnext.asynciterable" />
|
|
22
|
-
/** Class containing Operations operations. */
|
|
23
|
-
export class OperationsImpl implements Operations {
|
|
24
|
-
private readonly client: BareMetalInfrastructureClient;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Initialize a new instance of the class Operations class.
|
|
28
|
-
* @param client Reference to the service client
|
|
29
|
-
*/
|
|
30
|
-
constructor(client: BareMetalInfrastructureClient) {
|
|
31
|
-
this.client = client;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Gets a list of AzureBareMetal management operations.
|
|
36
|
-
* @param options The options parameters.
|
|
37
|
-
*/
|
|
38
|
-
public list(
|
|
39
|
-
options?: OperationsListOptionalParams
|
|
40
|
-
): PagedAsyncIterableIterator<Operation> {
|
|
41
|
-
const iter = this.listPagingAll(options);
|
|
42
|
-
return {
|
|
43
|
-
next() {
|
|
44
|
-
return iter.next();
|
|
45
|
-
},
|
|
46
|
-
[Symbol.asyncIterator]() {
|
|
47
|
-
return this;
|
|
48
|
-
},
|
|
49
|
-
byPage: (settings?: PageSettings) => {
|
|
50
|
-
if (settings?.maxPageSize) {
|
|
51
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
52
|
-
}
|
|
53
|
-
return this.listPagingPage(options, settings);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
private async *listPagingPage(
|
|
59
|
-
options?: OperationsListOptionalParams,
|
|
60
|
-
_settings?: PageSettings
|
|
61
|
-
): AsyncIterableIterator<Operation[]> {
|
|
62
|
-
let result: OperationsListResponse;
|
|
63
|
-
result = await this._list(options);
|
|
64
|
-
yield result.value || [];
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
private async *listPagingAll(
|
|
68
|
-
options?: OperationsListOptionalParams
|
|
69
|
-
): AsyncIterableIterator<Operation> {
|
|
70
|
-
for await (const page of this.listPagingPage(options)) {
|
|
71
|
-
yield* page;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Gets a list of AzureBareMetal management operations.
|
|
77
|
-
* @param options The options parameters.
|
|
78
|
-
*/
|
|
79
|
-
private _list(
|
|
80
|
-
options?: OperationsListOptionalParams
|
|
81
|
-
): Promise<OperationsListResponse> {
|
|
82
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
// Operation Specifications
|
|
86
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
87
|
-
|
|
88
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
|
89
|
-
path: "/providers/Microsoft.BareMetalInfrastructure/operations",
|
|
90
|
-
httpMethod: "GET",
|
|
91
|
-
responses: {
|
|
92
|
-
200: {
|
|
93
|
-
bodyMapper: Mappers.OperationList
|
|
94
|
-
},
|
|
95
|
-
default: {
|
|
96
|
-
bodyMapper: Mappers.ErrorResponse
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
queryParameters: [Parameters.apiVersion],
|
|
100
|
-
urlParameters: [Parameters.$host],
|
|
101
|
-
headerParameters: [Parameters.accept],
|
|
102
|
-
serializer
|
|
103
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
11
|
-
AzureBareMetalInstance,
|
|
12
|
-
AzureBareMetalInstancesListBySubscriptionOptionalParams,
|
|
13
|
-
AzureBareMetalInstancesListByResourceGroupOptionalParams,
|
|
14
|
-
AzureBareMetalInstancesGetOptionalParams,
|
|
15
|
-
AzureBareMetalInstancesGetResponse,
|
|
16
|
-
Tags,
|
|
17
|
-
AzureBareMetalInstancesUpdateOptionalParams,
|
|
18
|
-
AzureBareMetalInstancesUpdateResponse
|
|
19
|
-
} from "../models";
|
|
20
|
-
|
|
21
|
-
/// <reference lib="esnext.asynciterable" />
|
|
22
|
-
/** Interface representing a AzureBareMetalInstances. */
|
|
23
|
-
export interface AzureBareMetalInstances {
|
|
24
|
-
/**
|
|
25
|
-
* Gets a list of AzureBareMetal instances in the specified subscription. The operations returns
|
|
26
|
-
* various properties of each Azure BareMetal instance.
|
|
27
|
-
* @param options The options parameters.
|
|
28
|
-
*/
|
|
29
|
-
listBySubscription(
|
|
30
|
-
options?: AzureBareMetalInstancesListBySubscriptionOptionalParams
|
|
31
|
-
): PagedAsyncIterableIterator<AzureBareMetalInstance>;
|
|
32
|
-
/**
|
|
33
|
-
* Gets a list of AzureBareMetal instances in the specified subscription and resource group. The
|
|
34
|
-
* operations returns various properties of each Azure BareMetal instance.
|
|
35
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
36
|
-
* @param options The options parameters.
|
|
37
|
-
*/
|
|
38
|
-
listByResourceGroup(
|
|
39
|
-
resourceGroupName: string,
|
|
40
|
-
options?: AzureBareMetalInstancesListByResourceGroupOptionalParams
|
|
41
|
-
): PagedAsyncIterableIterator<AzureBareMetalInstance>;
|
|
42
|
-
/**
|
|
43
|
-
* Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
|
|
44
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
-
* @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
|
|
46
|
-
* @param options The options parameters.
|
|
47
|
-
*/
|
|
48
|
-
get(
|
|
49
|
-
resourceGroupName: string,
|
|
50
|
-
azureBareMetalInstanceName: string,
|
|
51
|
-
options?: AzureBareMetalInstancesGetOptionalParams
|
|
52
|
-
): Promise<AzureBareMetalInstancesGetResponse>;
|
|
53
|
-
/**
|
|
54
|
-
* Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group,
|
|
55
|
-
* and instance name.
|
|
56
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
57
|
-
* @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
|
|
58
|
-
* @param tagsParameter Request body that only contains the new Tags field
|
|
59
|
-
* @param options The options parameters.
|
|
60
|
-
*/
|
|
61
|
-
update(
|
|
62
|
-
resourceGroupName: string,
|
|
63
|
-
azureBareMetalInstanceName: string,
|
|
64
|
-
tagsParameter: Tags,
|
|
65
|
-
options?: AzureBareMetalInstancesUpdateOptionalParams
|
|
66
|
-
): Promise<AzureBareMetalInstancesUpdateResponse>;
|
|
67
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import { Operation, OperationsListOptionalParams } from "../models";
|
|
11
|
-
|
|
12
|
-
/// <reference lib="esnext.asynciterable" />
|
|
13
|
-
/** Interface representing a Operations. */
|
|
14
|
-
export interface Operations {
|
|
15
|
-
/**
|
|
16
|
-
* Gets a list of AzureBareMetal management operations.
|
|
17
|
-
* @param options The options parameters.
|
|
18
|
-
*/
|
|
19
|
-
list(
|
|
20
|
-
options?: OperationsListOptionalParams
|
|
21
|
-
): PagedAsyncIterableIterator<Operation>;
|
|
22
|
-
}
|
package/src/pagingHelper.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
export interface PageInfo {
|
|
10
|
-
continuationToken?: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
|
17
|
-
* returns a continuation token that can be used to begin paging from
|
|
18
|
-
* that point later.
|
|
19
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
20
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
21
|
-
*/
|
|
22
|
-
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
-
if (typeof page !== "object" || page === null) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
return pageMap.get(page)?.continuationToken;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function setContinuationToken(
|
|
30
|
-
page: unknown,
|
|
31
|
-
continuationToken: string | undefined
|
|
32
|
-
): void {
|
|
33
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
-
pageInfo.continuationToken = continuationToken;
|
|
38
|
-
pageMap.set(page, pageInfo);
|
|
39
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "es6",
|
|
4
|
-
"moduleResolution": "node",
|
|
5
|
-
"strict": true,
|
|
6
|
-
"target": "es6",
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"allowSyntheticDefaultImports": true,
|
|
11
|
-
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"lib": [
|
|
13
|
-
"es6",
|
|
14
|
-
"dom"
|
|
15
|
-
],
|
|
16
|
-
"declaration": true,
|
|
17
|
-
"outDir": "./dist-esm",
|
|
18
|
-
"importHelpers": true,
|
|
19
|
-
"paths": {
|
|
20
|
-
"@azure/arm-baremetalinfrastructure": [
|
|
21
|
-
"./src/index"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"include": [
|
|
26
|
-
"./src/**/*.ts",
|
|
27
|
-
"./test/**/*.ts",
|
|
28
|
-
"samples-dev/**/*.ts"
|
|
29
|
-
],
|
|
30
|
-
"exclude": [
|
|
31
|
-
"node_modules"
|
|
32
|
-
]
|
|
33
|
-
}
|